DOMMatrixReadOnly
Values
flipX
let flipX: WebAPI.DOM.domMatrixReadOnly => WebAPI.DOM.domMatrixflipY
let flipY: WebAPI.DOM.domMatrixReadOnly => WebAPI.DOM.domMatrixfromArray
fromArray(array<float>)
Creates a new DOMMatrixReadOnly from an array of matrix component values.
let matrix = DOMMatrixReadOnly.fromArray([1., 0., 0., 1., 0., 0.])
let fromArray: array<float> => WebAPI.DOM.domMatrixReadOnlyfromFloat32Array
let fromFloat32Array: array<float> => WebAPI.DOM.domMatrixReadOnlyfromFloat64Array
let fromFloat64Array: Float64Array.t => WebAPI.DOM.domMatrixReadOnlyfromMatrix
let fromMatrix: ( ~other: WebAPI.DOM.domMatrixInit=?,) => WebAPI.DOM.domMatrixReadOnlyfromString
fromString(string)
Creates a new DOMMatrixReadOnly from a transform string.
let matrix = DOMMatrixReadOnly.fromString("matrix(1, 0, 0, 1, 0, 0)")
let fromString: string => WebAPI.DOM.domMatrixReadOnlyinverse
let inverse: WebAPI.DOM.domMatrixReadOnly => WebAPI.DOM.domMatrixmake
make()
Creates a new identity DOMMatrixReadOnly.
let matrix = DOMMatrixReadOnly.make()
let make: unit => WebAPI.DOM.domMatrixReadOnlymultiply
let multiply: ( WebAPI.DOM.domMatrixReadOnly, ~other: WebAPI.DOM.domMatrixInit=?,) => WebAPI.DOM.domMatrixParameters
WebAPI.DOM.domMatrixReadOnlyoption<WebAPI.DOM.domMatrixInit>Return type
WebAPI.DOM.domMatrixrotate
let rotate: ( WebAPI.DOM.domMatrixReadOnly, ~rotX: float=?, ~rotY: float=?, ~rotZ: float=?,) => WebAPI.DOM.domMatrixParameters
WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>option<float>Return type
WebAPI.DOM.domMatrixrotateAxisAngle
let rotateAxisAngle: ( WebAPI.DOM.domMatrixReadOnly, ~x: float=?, ~y: float=?, ~z: float=?, ~angle: float=?,) => WebAPI.DOM.domMatrixParameters
WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>option<float>option<float>Return type
WebAPI.DOM.domMatrixrotateFromVector
let rotateFromVector: ( WebAPI.DOM.domMatrixReadOnly, ~x: float=?, ~y: float=?,) => WebAPI.DOM.domMatrixscale
let scale: ( WebAPI.DOM.domMatrixReadOnly, ~scaleX: float=?, ~scaleY: float=?, ~scaleZ: float=?, ~originX: float=?, ~originY: float=?, ~originZ: float=?,) => WebAPI.DOM.domMatrixParameters
WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>option<float>option<float>option<float>option<float>Return type
WebAPI.DOM.domMatrixscale3d
let scale3d: ( WebAPI.DOM.domMatrixReadOnly, ~scale: float=?, ~originX: float=?, ~originY: float=?, ~originZ: float=?,) => WebAPI.DOM.domMatrixParameters
WebAPI.DOM.domMatrixReadOnlyoption<float>option<float>option<float>option<float>Return type
WebAPI.DOM.domMatrixskewX
let skewX: ( WebAPI.DOM.domMatrixReadOnly, ~sx: float=?,) => WebAPI.DOM.domMatrixskewY
let skewY: ( WebAPI.DOM.domMatrixReadOnly, ~sy: float=?,) => WebAPI.DOM.domMatrixtoFloat32Array
let toFloat32Array: WebAPI.DOM.domMatrixReadOnly => array<float>toFloat64Array
let toFloat64Array: WebAPI.DOM.domMatrixReadOnly => Float64Array.ttoJSON
let toJSON: WebAPI.DOM.domMatrixReadOnly => Dict.t<string>transformPoint
let transformPoint: ( WebAPI.DOM.domMatrixReadOnly, ~point: WebAPI.DOM.domPointInit=?,) => WebAPI.DOM.domPointtranslate
let translate: ( WebAPI.DOM.domMatrixReadOnly, ~tx: float=?, ~ty: float=?, ~tz: float=?,) => WebAPI.DOM.domMatrix