OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 GarbageCollected, | 6 GarbageCollected, |
7 RuntimeEnabled=GeometryInterfaces, | 7 RuntimeEnabled=GeometryInterfaces, |
8 ] interface DOMMatrixReadOnly { | 8 ] interface DOMMatrixReadOnly { |
9 // These attributes are simple aliases for certain elements of the 4x4 matri
x | 9 // These attributes are simple aliases for certain elements of the 4x4 matri
x |
10 readonly attribute unrestricted double a; | 10 readonly attribute unrestricted double a; |
(...skipping 18 matching lines...) Expand all Loading... |
29 readonly attribute unrestricted double m41; | 29 readonly attribute unrestricted double m41; |
30 readonly attribute unrestricted double m42; | 30 readonly attribute unrestricted double m42; |
31 readonly attribute unrestricted double m43; | 31 readonly attribute unrestricted double m43; |
32 readonly attribute unrestricted double m44; | 32 readonly attribute unrestricted double m44; |
33 | 33 |
34 readonly attribute boolean is2D; | 34 readonly attribute boolean is2D; |
35 readonly attribute boolean isIdentity; | 35 readonly attribute boolean isIdentity; |
36 | 36 |
37 // FIXME: Should implement some methods (See: crbug.com/388780) | 37 // FIXME: Should implement some methods (See: crbug.com/388780) |
38 // Immutable transform methods | 38 // Immutable transform methods |
39 DOMMatrix multiply(DOMMatrix other); | |
40 DOMMatrix translate(unrestricted double tx, | 39 DOMMatrix translate(unrestricted double tx, |
41 unrestricted double ty, | 40 unrestricted double ty, |
42 optional unrestricted double tz = 0); | 41 optional unrestricted double tz = 0); |
43 DOMMatrix scale(unrestricted double scale, | 42 DOMMatrix scale(unrestricted double scale, |
44 optional unrestricted double ox = 0, | 43 optional unrestricted double ox = 0, |
45 optional unrestricted double oy = 0); | 44 optional unrestricted double oy = 0); |
46 DOMMatrix scale3d(unrestricted double scale, | 45 DOMMatrix scale3d(unrestricted double scale, |
47 optional unrestricted double ox = 0, | 46 optional unrestricted double ox = 0, |
48 optional unrestricted double oy = 0, | 47 optional unrestricted double oy = 0, |
49 optional unrestricted double oz = 0); | 48 optional unrestricted double oz = 0); |
50 DOMMatrix scaleNonUniform(unrestricted double sx, | 49 DOMMatrix scaleNonUniform(unrestricted double sx, |
51 optional unrestricted double sy = 1, | 50 optional unrestricted double sy = 1, |
52 optional unrestricted double sz = 1, | 51 optional unrestricted double sz = 1, |
53 optional unrestricted double ox = 0, | 52 optional unrestricted double ox = 0, |
54 optional unrestricted double oy = 0, | 53 optional unrestricted double oy = 0, |
55 optional unrestricted double oz = 0); | 54 optional unrestricted double oz = 0); |
56 DOMMatrix rotate(unrestricted double angle, | 55 DOMMatrix rotate(unrestricted double angle, |
57 optional unrestricted double ox = 0, | 56 optional unrestricted double ox = 0, |
58 optional unrestricted double oy = 0); | 57 optional unrestricted double oy = 0); |
59 DOMMatrix rotateFromVector(unrestricted double x, | 58 DOMMatrix rotateFromVector(unrestricted double x, |
60 unrestricted double y); | 59 unrestricted double y); |
61 DOMMatrix rotateAxisAngle(unrestricted double x, | 60 DOMMatrix rotateAxisAngle(unrestricted double x, |
62 unrestricted double y, | 61 unrestricted double y, |
63 unrestricted double z, | 62 unrestricted double z, |
64 unrestricted double angle); | 63 unrestricted double angle); |
| 64 DOMMatrix skewX(unrestricted double sx); |
| 65 DOMMatrix skewY(unrestricted double sy); |
| 66 DOMMatrix multiply(DOMMatrix other); |
65 | 67 |
66 Float32Array toFloat32Array(); | 68 Float32Array toFloat32Array(); |
67 Float64Array toFloat64Array(); | 69 Float64Array toFloat64Array(); |
68 }; | 70 }; |
OLD | NEW |