-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDOMMatrixReadOnly.res
More file actions
103 lines (82 loc) · 2.6 KB
/
DOMMatrixReadOnly.res
File metadata and controls
103 lines (82 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
open DOMAPI
open Prelude
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)
*/
@new
external make: (~init: string=?) => domMatrixReadOnly = "DOMMatrixReadOnly"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)
*/
@new
external fromFloatArray: (~init: array<float>=?) => domMatrixReadOnly = "DOMMatrixReadOnly"
@scope("DOMMatrixReadOnly")
external fromMatrix: (~other: domMatrixInit=?) => domMatrixReadOnly = "fromMatrix"
@scope("DOMMatrixReadOnly")
external fromFloat32Array: array<float> => domMatrixReadOnly = "fromFloat32Array"
@scope("DOMMatrixReadOnly")
external fromFloat64Array: float64Array => domMatrixReadOnly = "fromFloat64Array"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate)
*/
@send
external translate: (domMatrixReadOnly, ~tx: float=?, ~ty: float=?, ~tz: float=?) => domMatrix =
"translate"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale)
*/
@send
external scale: (
domMatrixReadOnly,
~scaleX: float=?,
~scaleY: float=?,
~scaleZ: float=?,
~originX: float=?,
~originY: float=?,
~originZ: float=?,
) => domMatrix = "scale"
@send
external scale3d: (
domMatrixReadOnly,
~scale: float=?,
~originX: float=?,
~originY: float=?,
~originZ: float=?,
) => domMatrix = "scale3d"
@send
external rotate: (domMatrixReadOnly, ~rotX: float=?, ~rotY: float=?, ~rotZ: float=?) => domMatrix =
"rotate"
@send
external rotateFromVector: (domMatrixReadOnly, ~x: float=?, ~y: float=?) => domMatrix =
"rotateFromVector"
@send
external rotateAxisAngle: (
domMatrixReadOnly,
~x: float=?,
~y: float=?,
~z: float=?,
~angle: float=?,
) => domMatrix = "rotateAxisAngle"
@send
external skewX: (domMatrixReadOnly, ~sx: float=?) => domMatrix = "skewX"
@send
external skewY: (domMatrixReadOnly, ~sy: float=?) => domMatrix = "skewY"
@send
external multiply: (domMatrixReadOnly, ~other: domMatrixInit=?) => domMatrix = "multiply"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX)
*/
@send
external flipX: domMatrixReadOnly => domMatrix = "flipX"
@send
external flipY: domMatrixReadOnly => domMatrix = "flipY"
@send
external inverse: domMatrixReadOnly => domMatrix = "inverse"
@send
external transformPoint: (domMatrixReadOnly, ~point: domPointInit=?) => domPoint = "transformPoint"
@send
external toFloat32Array: domMatrixReadOnly => array<float> = "toFloat32Array"
@send
external toFloat64Array: domMatrixReadOnly => float64Array = "toFloat64Array"
@send
external toJSON: domMatrixReadOnly => Dict.t<string> = "toJSON"