OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // https://dev.w3.org/fxtf/geometry/#DOMMatrix |
| 6 |
| 7 [ |
| 8 Constructor, |
| 9 Constructor(DOMString transformList), |
| 10 Constructor(sequence<unrestricted double> numberSequence), |
| 11 RaisesException=Constructor, |
| 12 Exposed=(Window,Worker), |
| 13 RuntimeEnabled=GeometryInterfaces, |
| 14 ] interface DOMMatrixReadOnly { |
| 15 [RaisesException, NewObject] static DOMMatrixReadOnly fromMatrix(optional DO
MMatrixInit other); |
| 16 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat32Array(Float
32Array array32); |
| 17 [RaisesException, NewObject] static DOMMatrixReadOnly fromFloat64Array(Float
64Array array64); |
| 18 |
| 19 // These attributes are simple aliases for certain elements of the 4x4 matri
x |
| 20 readonly attribute unrestricted double a; |
| 21 readonly attribute unrestricted double b; |
| 22 readonly attribute unrestricted double c; |
| 23 readonly attribute unrestricted double d; |
| 24 readonly attribute unrestricted double e; |
| 25 readonly attribute unrestricted double f; |
| 26 |
| 27 readonly attribute unrestricted double m11; |
| 28 readonly attribute unrestricted double m12; |
| 29 readonly attribute unrestricted double m13; |
| 30 readonly attribute unrestricted double m14; |
| 31 readonly attribute unrestricted double m21; |
| 32 readonly attribute unrestricted double m22; |
| 33 readonly attribute unrestricted double m23; |
| 34 readonly attribute unrestricted double m24; |
| 35 readonly attribute unrestricted double m31; |
| 36 readonly attribute unrestricted double m32; |
| 37 readonly attribute unrestricted double m33; |
| 38 readonly attribute unrestricted double m34; |
| 39 readonly attribute unrestricted double m41; |
| 40 readonly attribute unrestricted double m42; |
| 41 readonly attribute unrestricted double m43; |
| 42 readonly attribute unrestricted double m44; |
| 43 |
| 44 readonly attribute boolean is2D; |
| 45 readonly attribute boolean isIdentity; |
| 46 |
| 47 // Immutable transform methods |
| 48 DOMMatrix translate(optional unrestricted double tx = 0, |
| 49 optional unrestricted double ty = 0, |
| 50 optional unrestricted double tz = 0); |
| 51 DOMMatrix scale(optional unrestricted double scaleX = 1, |
| 52 optional unrestricted double scaleY, |
| 53 optional unrestricted double scaleZ = 1, |
| 54 optional unrestricted double originX = 0, |
| 55 optional unrestricted double originY = 0, |
| 56 optional unrestricted double originZ = 0); |
| 57 DOMMatrix scale3d(optional unrestricted double scale = 1, |
| 58 optional unrestricted double originX = 0, |
| 59 optional unrestricted double originY = 0, |
| 60 optional unrestricted double originZ = 0); |
| 61 DOMMatrix rotate(optional unrestricted double rotX = 0, |
| 62 optional unrestricted double rotY, |
| 63 optional unrestricted double rotZ); |
| 64 DOMMatrix rotateFromVector(optional unrestricted double x = 0, |
| 65 optional unrestricted double y = 0); |
| 66 DOMMatrix rotateAxisAngle(optional unrestricted double x = 0, |
| 67 optional unrestricted double y = 0, |
| 68 optional unrestricted double z = 0, |
| 69 optional unrestricted double angle = 0); |
| 70 DOMMatrix skewX(optional unrestricted double sx = 0); |
| 71 DOMMatrix skewY(optional unrestricted double sy = 0); |
| 72 [RaisesException] DOMMatrix multiply(optional DOMMatrixInit other); |
| 73 DOMMatrix flipX(); |
| 74 DOMMatrix flipY(); |
| 75 DOMMatrix inverse(); |
| 76 |
| 77 DOMPoint transformPoint(optional DOMPointInit point); |
| 78 Float32Array toFloat32Array(); |
| 79 Float64Array toFloat64Array(); |
| 80 stringifier; |
| 81 serializer = { attribute }; |
| 82 }; |
OLD | NEW |