Skip to content

DOMMatrixReadOnly

Values

flipX

let flipX: WebAPI.DOM.domMatrixReadOnly => WebAPI.DOM.domMatrix

flipY

let flipY: WebAPI.DOM.domMatrixReadOnly => WebAPI.DOM.domMatrix

fromArray

fromArray(array<float>)

Creates a new DOMMatrixReadOnly from an array of matrix component values.

let matrix = DOMMatrixReadOnly.fromArray([1., 0., 0., 1., 0., 0.])

Read more on MDN

let fromArray: array<float> => WebAPI.DOM.domMatrixReadOnly

Parameters

array<float>

Return type

WebAPI.DOM.domMatrixReadOnly

fromFloat32Array

let fromFloat32Array: array<float> => WebAPI.DOM.domMatrixReadOnly

Parameters

array<float>

Return type

WebAPI.DOM.domMatrixReadOnly

fromFloat64Array

let fromFloat64Array: Float64Array.t => WebAPI.DOM.domMatrixReadOnly

Parameters

Stdlib.Float64Array.t

Return type

WebAPI.DOM.domMatrixReadOnly

fromMatrix

let fromMatrix: (
~other: WebAPI.DOM.domMatrixInit=?,
) => WebAPI.DOM.domMatrixReadOnly

fromString

fromString(string)

Creates a new DOMMatrixReadOnly from a transform string.

let matrix = DOMMatrixReadOnly.fromString("matrix(1, 0, 0, 1, 0, 0)")

Read more on MDN

let fromString: string => WebAPI.DOM.domMatrixReadOnly

Parameters

string

Return type

WebAPI.DOM.domMatrixReadOnly

inverse

let inverse: WebAPI.DOM.domMatrixReadOnly => WebAPI.DOM.domMatrix

make

make()

Creates a new identity DOMMatrixReadOnly.

let matrix = DOMMatrixReadOnly.make()

Read more on MDN

let make: unit => WebAPI.DOM.domMatrixReadOnly

Parameters

unit

Return type

WebAPI.DOM.domMatrixReadOnly

multiply

let multiply: (
WebAPI.DOM.domMatrixReadOnly,
~other: WebAPI.DOM.domMatrixInit=?,
) => WebAPI.DOM.domMatrix

rotate

let rotate: (
WebAPI.DOM.domMatrixReadOnly,
~rotX: float=?,
~rotY: float=?,
~rotZ: float=?,
) => WebAPI.DOM.domMatrix

Parameters

WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>option<float>

Return type

WebAPI.DOM.domMatrix

rotateAxisAngle

let rotateAxisAngle: (
WebAPI.DOM.domMatrixReadOnly,
~x: float=?,
~y: float=?,
~z: float=?,
~angle: float=?,
) => WebAPI.DOM.domMatrix

Parameters

WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>option<float>option<float>

Return type

WebAPI.DOM.domMatrix

rotateFromVector

let rotateFromVector: (
WebAPI.DOM.domMatrixReadOnly,
~x: float=?,
~y: float=?,
) => WebAPI.DOM.domMatrix

Parameters

WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>

Return type

WebAPI.DOM.domMatrix

scale

let scale: (
WebAPI.DOM.domMatrixReadOnly,
~scaleX: float=?,
~scaleY: float=?,
~scaleZ: float=?,
~originX: float=?,
~originY: float=?,
~originZ: float=?,
) => WebAPI.DOM.domMatrix

Parameters

WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>option<float>option<float>option<float>option<float>

Return type

WebAPI.DOM.domMatrix

scale3d

let scale3d: (
WebAPI.DOM.domMatrixReadOnly,
~scale: float=?,
~originX: float=?,
~originY: float=?,
~originZ: float=?,
) => WebAPI.DOM.domMatrix

Parameters

WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>option<float>option<float>

Return type

WebAPI.DOM.domMatrix

skewX

let skewX: (
WebAPI.DOM.domMatrixReadOnly,
~sx: float=?,
) => WebAPI.DOM.domMatrix

Parameters

WebAPI.DOM.domMatrixReadOnlyoption<float>

Return type

WebAPI.DOM.domMatrix

skewY

let skewY: (
WebAPI.DOM.domMatrixReadOnly,
~sy: float=?,
) => WebAPI.DOM.domMatrix

Parameters

WebAPI.DOM.domMatrixReadOnlyoption<float>

Return type

WebAPI.DOM.domMatrix

toFloat32Array

let toFloat32Array: WebAPI.DOM.domMatrixReadOnly => array<float>

Parameters

WebAPI.DOM.domMatrixReadOnly

Return type

array<float>

toFloat64Array

let toFloat64Array: WebAPI.DOM.domMatrixReadOnly => Float64Array.t

Parameters

WebAPI.DOM.domMatrixReadOnly

Return type

Stdlib.Float64Array.t

toJSON

let toJSON: WebAPI.DOM.domMatrixReadOnly => Dict.t<string>

Parameters

WebAPI.DOM.domMatrixReadOnly

Return type

Stdlib.Dict.t<string>

transformPoint

let transformPoint: (
WebAPI.DOM.domMatrixReadOnly,
~point: WebAPI.DOM.domPointInit=?,
) => WebAPI.DOM.domPoint

translate

let translate: (
WebAPI.DOM.domMatrixReadOnly,
~tx: float=?,
~ty: float=?,
~tz: float=?,
) => WebAPI.DOM.domMatrix

Parameters

WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>option<float>

Return type

WebAPI.DOM.domMatrix