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 21 matching lines...) Expand all Loading... |
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 translate(unrestricted double tx, | 39 DOMMatrix translate(unrestricted double tx, |
40 unrestricted double ty, | 40 unrestricted double ty, |
41 optional unrestricted double tz = 0); | 41 optional unrestricted double tz = 0); |
| 42 DOMMatrix scale(unrestricted double scale, |
| 43 optional unrestricted double ox = 0, |
| 44 optional unrestricted double oy = 0); |
| 45 DOMMatrix scale3d(unrestricted double scale, |
| 46 optional unrestricted double ox = 0, |
| 47 optional unrestricted double oy = 0, |
| 48 optional unrestricted double oz = 0); |
| 49 DOMMatrix scaleNonUniform(unrestricted double sx, |
| 50 optional unrestricted double sy = 1, |
| 51 optional unrestricted double sz = 1, |
| 52 optional unrestricted double ox = 0, |
| 53 optional unrestricted double oy = 0, |
| 54 optional unrestricted double oz = 0); |
42 }; | 55 }; |
OLD | NEW |