Documentation ¶
Overview ¶
Package geometry provides basic geometric interfaces to represent points, rectangles, quadrilaterals and transformation matrices.
Index ¶
- type DOMMatrix
- func DOMMatrixFromJS(value js.Wrapper) *DOMMatrix
- func FromFloat32Array(array32 *javascript.Float32Array) (_result *DOMMatrix)
- func FromFloat64Array(array64 *javascript.Float64Array) (_result *DOMMatrix)
- func FromMatrix(other *DOMMatrixInit) (_result *DOMMatrix)
- func NewDOMMatrix(init *Union) (_result *DOMMatrix)
- func (_this *DOMMatrix) A() float64
- func (_this *DOMMatrix) B() float64
- func (_this *DOMMatrix) C() float64
- func (_this *DOMMatrix) D() float64
- func (_this *DOMMatrix) E() float64
- func (_this *DOMMatrix) F() float64
- func (_this *DOMMatrix) InvertSelf() (_result *DOMMatrix)
- func (_this *DOMMatrix) M11() float64
- func (_this *DOMMatrix) M12() float64
- func (_this *DOMMatrix) M13() float64
- func (_this *DOMMatrix) M14() float64
- func (_this *DOMMatrix) M21() float64
- func (_this *DOMMatrix) M22() float64
- func (_this *DOMMatrix) M23() float64
- func (_this *DOMMatrix) M24() float64
- func (_this *DOMMatrix) M31() float64
- func (_this *DOMMatrix) M32() float64
- func (_this *DOMMatrix) M33() float64
- func (_this *DOMMatrix) M34() float64
- func (_this *DOMMatrix) M41() float64
- func (_this *DOMMatrix) M42() float64
- func (_this *DOMMatrix) M43() float64
- func (_this *DOMMatrix) M44() float64
- func (_this *DOMMatrix) MultiplySelf(other *DOMMatrixInit) (_result *DOMMatrix)
- func (_this *DOMMatrix) PreMultiplySelf(other *DOMMatrixInit) (_result *DOMMatrix)
- func (_this *DOMMatrix) RotateAxisAngleSelf(x *float64, y *float64, z *float64, angle *float64) (_result *DOMMatrix)
- func (_this *DOMMatrix) RotateFromVectorSelf(x *float64, y *float64) (_result *DOMMatrix)
- func (_this *DOMMatrix) RotateSelf(rotX *float64, rotY *float64, rotZ *float64) (_result *DOMMatrix)
- func (_this *DOMMatrix) Scale3dSelf(scale *float64, originX *float64, originY *float64, originZ *float64) (_result *DOMMatrix)
- func (_this *DOMMatrix) ScaleSelf(scaleX *float64, scaleY *float64, scaleZ *float64, originX *float64, ...) (_result *DOMMatrix)
- func (_this *DOMMatrix) SetA(value float64)
- func (_this *DOMMatrix) SetB(value float64)
- func (_this *DOMMatrix) SetC(value float64)
- func (_this *DOMMatrix) SetD(value float64)
- func (_this *DOMMatrix) SetE(value float64)
- func (_this *DOMMatrix) SetF(value float64)
- func (_this *DOMMatrix) SetM11(value float64)
- func (_this *DOMMatrix) SetM12(value float64)
- func (_this *DOMMatrix) SetM13(value float64)
- func (_this *DOMMatrix) SetM14(value float64)
- func (_this *DOMMatrix) SetM21(value float64)
- func (_this *DOMMatrix) SetM22(value float64)
- func (_this *DOMMatrix) SetM23(value float64)
- func (_this *DOMMatrix) SetM24(value float64)
- func (_this *DOMMatrix) SetM31(value float64)
- func (_this *DOMMatrix) SetM32(value float64)
- func (_this *DOMMatrix) SetM33(value float64)
- func (_this *DOMMatrix) SetM34(value float64)
- func (_this *DOMMatrix) SetM41(value float64)
- func (_this *DOMMatrix) SetM42(value float64)
- func (_this *DOMMatrix) SetM43(value float64)
- func (_this *DOMMatrix) SetM44(value float64)
- func (_this *DOMMatrix) SetMatrixValue(transformList string) (_result *DOMMatrix)
- func (_this *DOMMatrix) SkewXSelf(sx *float64) (_result *DOMMatrix)
- func (_this *DOMMatrix) SkewYSelf(sy *float64) (_result *DOMMatrix)
- func (_this *DOMMatrix) TranslateSelf(tx *float64, ty *float64, tz *float64) (_result *DOMMatrix)
- type DOMMatrix2DInit
- type DOMMatrixInit
- type DOMMatrixReadOnly
- func DOMMatrixReadOnlyFromJS(value js.Wrapper) *DOMMatrixReadOnly
- func FromFloat32Array2(array32 *javascript.Float32Array) (_result *DOMMatrixReadOnly)
- func FromFloat64Array2(array64 *javascript.Float64Array) (_result *DOMMatrixReadOnly)
- func FromMatrix2(other *DOMMatrixInit) (_result *DOMMatrixReadOnly)
- func NewDOMMatrixReadOnly(init *Union) (_result *DOMMatrixReadOnly)
- func (_this *DOMMatrixReadOnly) A() float64
- func (_this *DOMMatrixReadOnly) B() float64
- func (_this *DOMMatrixReadOnly) C() float64
- func (_this *DOMMatrixReadOnly) D() float64
- func (_this *DOMMatrixReadOnly) E() float64
- func (_this *DOMMatrixReadOnly) F() float64
- func (_this *DOMMatrixReadOnly) FlipX() (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) FlipY() (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) Inverse() (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) Is2D() bool
- func (_this *DOMMatrixReadOnly) IsIdentity() bool
- func (_this *DOMMatrixReadOnly) JSValue() js.Value
- func (_this *DOMMatrixReadOnly) M11() float64
- func (_this *DOMMatrixReadOnly) M12() float64
- func (_this *DOMMatrixReadOnly) M13() float64
- func (_this *DOMMatrixReadOnly) M14() float64
- func (_this *DOMMatrixReadOnly) M21() float64
- func (_this *DOMMatrixReadOnly) M22() float64
- func (_this *DOMMatrixReadOnly) M23() float64
- func (_this *DOMMatrixReadOnly) M24() float64
- func (_this *DOMMatrixReadOnly) M31() float64
- func (_this *DOMMatrixReadOnly) M32() float64
- func (_this *DOMMatrixReadOnly) M33() float64
- func (_this *DOMMatrixReadOnly) M34() float64
- func (_this *DOMMatrixReadOnly) M41() float64
- func (_this *DOMMatrixReadOnly) M42() float64
- func (_this *DOMMatrixReadOnly) M43() float64
- func (_this *DOMMatrixReadOnly) M44() float64
- func (_this *DOMMatrixReadOnly) Multiply(other *DOMMatrixInit) (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) Rotate(rotX *float64, rotY *float64, rotZ *float64) (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) RotateAxisAngle(x *float64, y *float64, z *float64, angle *float64) (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) RotateFromVector(x *float64, y *float64) (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) Scale(scaleX *float64, scaleY *float64, scaleZ *float64, originX *float64, ...) (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) Scale3d(scale *float64, originX *float64, originY *float64, originZ *float64) (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) ScaleNonUniform(scaleX *float64, scaleY *float64) (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) SkewX(sx *float64) (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) SkewY(sy *float64) (_result *DOMMatrix)
- func (_this *DOMMatrixReadOnly) ToFloat32Array() (_result *javascript.Float32Array)
- func (_this *DOMMatrixReadOnly) ToFloat64Array() (_result *javascript.Float64Array)
- func (_this *DOMMatrixReadOnly) ToJSON() (_result *javascript.Object)
- func (_this *DOMMatrixReadOnly) ToString() (_result string)
- func (_this *DOMMatrixReadOnly) TransformPoint(point *DOMPointInit) (_result *DOMPoint)
- func (_this *DOMMatrixReadOnly) Translate(tx *float64, ty *float64, tz *float64) (_result *DOMMatrix)
- type DOMPoint
- func (_this *DOMPoint) SetW(value float64)
- func (_this *DOMPoint) SetX(value float64)
- func (_this *DOMPoint) SetY(value float64)
- func (_this *DOMPoint) SetZ(value float64)
- func (_this *DOMPoint) W() float64
- func (_this *DOMPoint) X() float64
- func (_this *DOMPoint) Y() float64
- func (_this *DOMPoint) Z() float64
- type DOMPointInit
- type DOMPointReadOnly
- func (_this *DOMPointReadOnly) JSValue() js.Value
- func (_this *DOMPointReadOnly) MatrixTransform(matrix *DOMMatrixInit) (_result *DOMPoint)
- func (_this *DOMPointReadOnly) ToJSON() (_result *javascript.Object)
- func (_this *DOMPointReadOnly) W() float64
- func (_this *DOMPointReadOnly) X() float64
- func (_this *DOMPointReadOnly) Y() float64
- func (_this *DOMPointReadOnly) Z() float64
- type DOMQuad
- func (_this *DOMQuad) GetBounds() (_result *DOMRect)
- func (_this *DOMQuad) JSValue() js.Value
- func (_this *DOMQuad) P1() *DOMPoint
- func (_this *DOMQuad) P2() *DOMPoint
- func (_this *DOMQuad) P3() *DOMPoint
- func (_this *DOMQuad) P4() *DOMPoint
- func (_this *DOMQuad) ToJSON() (_result *javascript.Object)
- type DOMQuadInit
- type DOMRect
- func (_this *DOMRect) Height() float64
- func (_this *DOMRect) SetHeight(value float64)
- func (_this *DOMRect) SetWidth(value float64)
- func (_this *DOMRect) SetX(value float64)
- func (_this *DOMRect) SetY(value float64)
- func (_this *DOMRect) Width() float64
- func (_this *DOMRect) X() float64
- func (_this *DOMRect) Y() float64
- type DOMRectInit
- type DOMRectList
- type DOMRectReadOnly
- func (_this *DOMRectReadOnly) Bottom() float64
- func (_this *DOMRectReadOnly) Height() float64
- func (_this *DOMRectReadOnly) JSValue() js.Value
- func (_this *DOMRectReadOnly) Left() float64
- func (_this *DOMRectReadOnly) Right() float64
- func (_this *DOMRectReadOnly) ToJSON() (_result *javascript.Object)
- func (_this *DOMRectReadOnly) Top() float64
- func (_this *DOMRectReadOnly) Width() float64
- func (_this *DOMRectReadOnly) X() float64
- func (_this *DOMRectReadOnly) Y() float64
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DOMMatrix ¶
type DOMMatrix struct {
DOMMatrixReadOnly
}
class: DOMMatrix
func DOMMatrixFromJS ¶
DOMMatrixFromJS is casting a js.Wrapper into DOMMatrix.
func FromFloat32Array ¶
func FromFloat32Array(array32 *javascript.Float32Array) (_result *DOMMatrix)
func FromFloat64Array ¶
func FromFloat64Array(array64 *javascript.Float64Array) (_result *DOMMatrix)
func FromMatrix ¶
func FromMatrix(other *DOMMatrixInit) (_result *DOMMatrix)
func NewDOMMatrix ¶
func (*DOMMatrix) InvertSelf ¶
func (*DOMMatrix) MultiplySelf ¶
func (_this *DOMMatrix) MultiplySelf(other *DOMMatrixInit) (_result *DOMMatrix)
func (*DOMMatrix) PreMultiplySelf ¶
func (_this *DOMMatrix) PreMultiplySelf(other *DOMMatrixInit) (_result *DOMMatrix)
func (*DOMMatrix) RotateAxisAngleSelf ¶
func (*DOMMatrix) RotateFromVectorSelf ¶
func (*DOMMatrix) RotateSelf ¶
func (*DOMMatrix) Scale3dSelf ¶
func (*DOMMatrix) SetM11 ¶
SetM11 setting attribute 'm11' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM12 ¶
SetM12 setting attribute 'm12' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM13 ¶
SetM13 setting attribute 'm13' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM14 ¶
SetM14 setting attribute 'm14' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM21 ¶
SetM21 setting attribute 'm21' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM22 ¶
SetM22 setting attribute 'm22' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM23 ¶
SetM23 setting attribute 'm23' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM24 ¶
SetM24 setting attribute 'm24' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM31 ¶
SetM31 setting attribute 'm31' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM32 ¶
SetM32 setting attribute 'm32' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM33 ¶
SetM33 setting attribute 'm33' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM34 ¶
SetM34 setting attribute 'm34' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM41 ¶
SetM41 setting attribute 'm41' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM42 ¶
SetM42 setting attribute 'm42' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM43 ¶
SetM43 setting attribute 'm43' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetM44 ¶
SetM44 setting attribute 'm44' with type float64 (idl: unrestricted double).
func (*DOMMatrix) SetMatrixValue ¶
type DOMMatrix2DInit ¶
type DOMMatrix2DInit struct { A float64 B float64 C float64 D float64 E float64 F float64 M11 float64 M12 float64 M21 float64 M22 float64 M41 float64 M42 float64 }
dictionary: DOMMatrix2DInit
func DOMMatrix2DInitFromJS ¶
func DOMMatrix2DInitFromJS(value js.Wrapper) *DOMMatrix2DInit
DOMMatrix2DInitFromJS is allocating a new DOMMatrix2DInit object and copy all values from input javascript object
func (*DOMMatrix2DInit) JSValue ¶
func (_this *DOMMatrix2DInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DOMMatrixInit ¶
type DOMMatrixInit struct { A float64 B float64 C float64 D float64 E float64 F float64 M11 float64 M12 float64 M21 float64 M22 float64 M41 float64 M42 float64 M13 float64 M14 float64 M23 float64 M24 float64 M31 float64 M32 float64 M33 float64 M34 float64 M43 float64 M44 float64 Is2D bool }
dictionary: DOMMatrixInit
func DOMMatrixInitFromJS ¶
func DOMMatrixInitFromJS(value js.Wrapper) *DOMMatrixInit
DOMMatrixInitFromJS is allocating a new DOMMatrixInit object and copy all values from input javascript object
func (*DOMMatrixInit) JSValue ¶
func (_this *DOMMatrixInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DOMMatrixReadOnly ¶
type DOMMatrixReadOnly struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: DOMMatrixReadOnly
func DOMMatrixReadOnlyFromJS ¶
func DOMMatrixReadOnlyFromJS(value js.Wrapper) *DOMMatrixReadOnly
DOMMatrixReadOnlyFromJS is casting a js.Wrapper into DOMMatrixReadOnly.
func FromFloat32Array2 ¶
func FromFloat32Array2(array32 *javascript.Float32Array) (_result *DOMMatrixReadOnly)
func FromFloat64Array2 ¶
func FromFloat64Array2(array64 *javascript.Float64Array) (_result *DOMMatrixReadOnly)
func FromMatrix2 ¶
func FromMatrix2(other *DOMMatrixInit) (_result *DOMMatrixReadOnly)
func NewDOMMatrixReadOnly ¶
func NewDOMMatrixReadOnly(init *Union) (_result *DOMMatrixReadOnly)
func (*DOMMatrixReadOnly) A ¶
func (_this *DOMMatrixReadOnly) A() float64
A returning attribute 'a' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) B ¶
func (_this *DOMMatrixReadOnly) B() float64
B returning attribute 'b' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) C ¶
func (_this *DOMMatrixReadOnly) C() float64
C returning attribute 'c' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) D ¶
func (_this *DOMMatrixReadOnly) D() float64
D returning attribute 'd' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) E ¶
func (_this *DOMMatrixReadOnly) E() float64
E returning attribute 'e' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) F ¶
func (_this *DOMMatrixReadOnly) F() float64
F returning attribute 'f' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) FlipX ¶
func (_this *DOMMatrixReadOnly) FlipX() (_result *DOMMatrix)
func (*DOMMatrixReadOnly) FlipY ¶
func (_this *DOMMatrixReadOnly) FlipY() (_result *DOMMatrix)
func (*DOMMatrixReadOnly) Inverse ¶
func (_this *DOMMatrixReadOnly) Inverse() (_result *DOMMatrix)
func (*DOMMatrixReadOnly) Is2D ¶
func (_this *DOMMatrixReadOnly) Is2D() bool
Is2D returning attribute 'is2D' with type bool (idl: boolean).
func (*DOMMatrixReadOnly) IsIdentity ¶
func (_this *DOMMatrixReadOnly) IsIdentity() bool
IsIdentity returning attribute 'isIdentity' with type bool (idl: boolean).
func (*DOMMatrixReadOnly) JSValue ¶
func (_this *DOMMatrixReadOnly) JSValue() js.Value
func (*DOMMatrixReadOnly) M11 ¶
func (_this *DOMMatrixReadOnly) M11() float64
M11 returning attribute 'm11' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M12 ¶
func (_this *DOMMatrixReadOnly) M12() float64
M12 returning attribute 'm12' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M13 ¶
func (_this *DOMMatrixReadOnly) M13() float64
M13 returning attribute 'm13' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M14 ¶
func (_this *DOMMatrixReadOnly) M14() float64
M14 returning attribute 'm14' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M21 ¶
func (_this *DOMMatrixReadOnly) M21() float64
M21 returning attribute 'm21' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M22 ¶
func (_this *DOMMatrixReadOnly) M22() float64
M22 returning attribute 'm22' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M23 ¶
func (_this *DOMMatrixReadOnly) M23() float64
M23 returning attribute 'm23' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M24 ¶
func (_this *DOMMatrixReadOnly) M24() float64
M24 returning attribute 'm24' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M31 ¶
func (_this *DOMMatrixReadOnly) M31() float64
M31 returning attribute 'm31' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M32 ¶
func (_this *DOMMatrixReadOnly) M32() float64
M32 returning attribute 'm32' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M33 ¶
func (_this *DOMMatrixReadOnly) M33() float64
M33 returning attribute 'm33' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M34 ¶
func (_this *DOMMatrixReadOnly) M34() float64
M34 returning attribute 'm34' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M41 ¶
func (_this *DOMMatrixReadOnly) M41() float64
M41 returning attribute 'm41' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M42 ¶
func (_this *DOMMatrixReadOnly) M42() float64
M42 returning attribute 'm42' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M43 ¶
func (_this *DOMMatrixReadOnly) M43() float64
M43 returning attribute 'm43' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) M44 ¶
func (_this *DOMMatrixReadOnly) M44() float64
M44 returning attribute 'm44' with type float64 (idl: unrestricted double).
func (*DOMMatrixReadOnly) Multiply ¶
func (_this *DOMMatrixReadOnly) Multiply(other *DOMMatrixInit) (_result *DOMMatrix)
func (*DOMMatrixReadOnly) Rotate ¶
func (_this *DOMMatrixReadOnly) Rotate(rotX *float64, rotY *float64, rotZ *float64) (_result *DOMMatrix)
func (*DOMMatrixReadOnly) RotateAxisAngle ¶
func (*DOMMatrixReadOnly) RotateFromVector ¶
func (_this *DOMMatrixReadOnly) RotateFromVector(x *float64, y *float64) (_result *DOMMatrix)
func (*DOMMatrixReadOnly) ScaleNonUniform ¶
func (_this *DOMMatrixReadOnly) ScaleNonUniform(scaleX *float64, scaleY *float64) (_result *DOMMatrix)
func (*DOMMatrixReadOnly) SkewX ¶
func (_this *DOMMatrixReadOnly) SkewX(sx *float64) (_result *DOMMatrix)
func (*DOMMatrixReadOnly) SkewY ¶
func (_this *DOMMatrixReadOnly) SkewY(sy *float64) (_result *DOMMatrix)
func (*DOMMatrixReadOnly) ToFloat32Array ¶
func (_this *DOMMatrixReadOnly) ToFloat32Array() (_result *javascript.Float32Array)
func (*DOMMatrixReadOnly) ToFloat64Array ¶
func (_this *DOMMatrixReadOnly) ToFloat64Array() (_result *javascript.Float64Array)
func (*DOMMatrixReadOnly) ToJSON ¶
func (_this *DOMMatrixReadOnly) ToJSON() (_result *javascript.Object)
func (*DOMMatrixReadOnly) ToString ¶
func (_this *DOMMatrixReadOnly) ToString() (_result string)
func (*DOMMatrixReadOnly) TransformPoint ¶
func (_this *DOMMatrixReadOnly) TransformPoint(point *DOMPointInit) (_result *DOMPoint)
type DOMPoint ¶
type DOMPoint struct {
DOMPointReadOnly
}
class: DOMPoint
func DOMPointFromJS ¶
DOMPointFromJS is casting a js.Wrapper into DOMPoint.
func FromPoint ¶
func FromPoint(other *DOMPointInit) (_result *DOMPoint)
func NewDOMPoint ¶
type DOMPointInit ¶
dictionary: DOMPointInit
func DOMPointInitFromJS ¶
func DOMPointInitFromJS(value js.Wrapper) *DOMPointInit
DOMPointInitFromJS is allocating a new DOMPointInit object and copy all values from input javascript object
func (*DOMPointInit) JSValue ¶
func (_this *DOMPointInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DOMPointReadOnly ¶
type DOMPointReadOnly struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: DOMPointReadOnly
func DOMPointReadOnlyFromJS ¶
func DOMPointReadOnlyFromJS(value js.Wrapper) *DOMPointReadOnly
DOMPointReadOnlyFromJS is casting a js.Wrapper into DOMPointReadOnly.
func FromPoint2 ¶
func FromPoint2(other *DOMPointInit) (_result *DOMPointReadOnly)
func NewDOMPointReadOnly ¶
func NewDOMPointReadOnly(x *float64, y *float64, z *float64, w *float64) (_result *DOMPointReadOnly)
func (*DOMPointReadOnly) JSValue ¶
func (_this *DOMPointReadOnly) JSValue() js.Value
func (*DOMPointReadOnly) MatrixTransform ¶
func (_this *DOMPointReadOnly) MatrixTransform(matrix *DOMMatrixInit) (_result *DOMPoint)
func (*DOMPointReadOnly) ToJSON ¶
func (_this *DOMPointReadOnly) ToJSON() (_result *javascript.Object)
func (*DOMPointReadOnly) W ¶
func (_this *DOMPointReadOnly) W() float64
W returning attribute 'w' with type float64 (idl: unrestricted double).
func (*DOMPointReadOnly) X ¶
func (_this *DOMPointReadOnly) X() float64
X returning attribute 'x' with type float64 (idl: unrestricted double).
func (*DOMPointReadOnly) Y ¶
func (_this *DOMPointReadOnly) Y() float64
Y returning attribute 'y' with type float64 (idl: unrestricted double).
func (*DOMPointReadOnly) Z ¶
func (_this *DOMPointReadOnly) Z() float64
Z returning attribute 'z' with type float64 (idl: unrestricted double).
type DOMQuad ¶
class: DOMQuad
func DOMQuadFromJS ¶
DOMQuadFromJS is casting a js.Wrapper into DOMQuad.
func FromQuad ¶
func FromQuad(other *DOMQuadInit) (_result *DOMQuad)
func FromRect ¶
func FromRect(other *DOMRectInit) (_result *DOMQuad)
func NewDOMQuad ¶
func NewDOMQuad(p1 *DOMPointInit, p2 *DOMPointInit, p3 *DOMPointInit, p4 *DOMPointInit) (_result *DOMQuad)
func (*DOMQuad) ToJSON ¶
func (_this *DOMQuad) ToJSON() (_result *javascript.Object)
type DOMQuadInit ¶
type DOMQuadInit struct { P1 *DOMPointInit P2 *DOMPointInit P3 *DOMPointInit P4 *DOMPointInit }
dictionary: DOMQuadInit
func DOMQuadInitFromJS ¶
func DOMQuadInitFromJS(value js.Wrapper) *DOMQuadInit
DOMQuadInitFromJS is allocating a new DOMQuadInit object and copy all values from input javascript object
func (*DOMQuadInit) JSValue ¶
func (_this *DOMQuadInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DOMRect ¶
type DOMRect struct {
DOMRectReadOnly
}
class: DOMRect
func DOMRectFromJS ¶
DOMRectFromJS is casting a js.Wrapper into DOMRect.
func FromRect2 ¶
func FromRect2(other *DOMRectInit) (_result *DOMRect)
func NewDOMRect ¶
func (*DOMRect) Height ¶
Height returning attribute 'height' with type float64 (idl: unrestricted double).
func (*DOMRect) SetHeight ¶
SetHeight setting attribute 'height' with type float64 (idl: unrestricted double).
func (*DOMRect) SetWidth ¶
SetWidth setting attribute 'width' with type float64 (idl: unrestricted double).
func (*DOMRect) Width ¶
Width returning attribute 'width' with type float64 (idl: unrestricted double).
type DOMRectInit ¶
dictionary: DOMRectInit
func DOMRectInitFromJS ¶
func DOMRectInitFromJS(value js.Wrapper) *DOMRectInit
DOMRectInitFromJS is allocating a new DOMRectInit object and copy all values from input javascript object
func (*DOMRectInit) JSValue ¶
func (_this *DOMRectInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DOMRectList ¶
class: DOMRectList
func DOMRectListFromJS ¶
func DOMRectListFromJS(value js.Wrapper) *DOMRectList
DOMRectListFromJS is casting a js.Wrapper into DOMRectList.
func (*DOMRectList) Index ¶
func (_this *DOMRectList) Index(index uint) (_result *DOMRect)
func (*DOMRectList) Item ¶
func (_this *DOMRectList) Item(index uint) (_result *DOMRect)
func (*DOMRectList) JSValue ¶
func (_this *DOMRectList) JSValue() js.Value
func (*DOMRectList) Length ¶
func (_this *DOMRectList) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
type DOMRectReadOnly ¶
type DOMRectReadOnly struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: DOMRectReadOnly
func DOMRectReadOnlyFromJS ¶
func DOMRectReadOnlyFromJS(value js.Wrapper) *DOMRectReadOnly
DOMRectReadOnlyFromJS is casting a js.Wrapper into DOMRectReadOnly.
func FromRect3 ¶
func FromRect3(other *DOMRectInit) (_result *DOMRectReadOnly)
func NewDOMRectReadOnly ¶
func NewDOMRectReadOnly(x *float64, y *float64, width *float64, height *float64) (_result *DOMRectReadOnly)
func (*DOMRectReadOnly) Bottom ¶
func (_this *DOMRectReadOnly) Bottom() float64
Bottom returning attribute 'bottom' with type float64 (idl: unrestricted double).
func (*DOMRectReadOnly) Height ¶
func (_this *DOMRectReadOnly) Height() float64
Height returning attribute 'height' with type float64 (idl: unrestricted double).
func (*DOMRectReadOnly) JSValue ¶
func (_this *DOMRectReadOnly) JSValue() js.Value
func (*DOMRectReadOnly) Left ¶
func (_this *DOMRectReadOnly) Left() float64
Left returning attribute 'left' with type float64 (idl: unrestricted double).
func (*DOMRectReadOnly) Right ¶
func (_this *DOMRectReadOnly) Right() float64
Right returning attribute 'right' with type float64 (idl: unrestricted double).
func (*DOMRectReadOnly) ToJSON ¶
func (_this *DOMRectReadOnly) ToJSON() (_result *javascript.Object)
func (*DOMRectReadOnly) Top ¶
func (_this *DOMRectReadOnly) Top() float64
Top returning attribute 'top' with type float64 (idl: unrestricted double).
func (*DOMRectReadOnly) Width ¶
func (_this *DOMRectReadOnly) Width() float64
Width returning attribute 'width' with type float64 (idl: unrestricted double).
func (*DOMRectReadOnly) X ¶
func (_this *DOMRectReadOnly) X() float64
X returning attribute 'x' with type float64 (idl: unrestricted double).
func (*DOMRectReadOnly) Y ¶
func (_this *DOMRectReadOnly) Y() float64
Y returning attribute 'y' with type float64 (idl: unrestricted double).