mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 19:07:31 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
a7a525c65e
49 changed files with 1519 additions and 539 deletions
|
|
@ -4,14 +4,19 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://dev.w3.org/fxtf/geometry/
|
||||
* https://drafts.fxtf.org/geometry/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="layout.css.DOMMatrix.enabled"]
|
||||
[Constructor(optional (DOMString or sequence<unrestricted double>) init),
|
||||
Exposed=(Window,Worker)]
|
||||
interface DOMMatrixReadOnly {
|
||||
[NewObject, Throws] static DOMMatrixReadOnly fromMatrix(optional DOMMatrixInit other);
|
||||
[NewObject, Throws] static DOMMatrixReadOnly fromFloat32Array(Float32Array array32);
|
||||
[NewObject, Throws] static DOMMatrixReadOnly fromFloat64Array(Float64Array array64);
|
||||
|
||||
// These attributes are simple aliases for certain elements of the 4x4 matrix
|
||||
readonly attribute unrestricted double a;
|
||||
readonly attribute unrestricted double b;
|
||||
|
|
@ -65,7 +70,7 @@ interface DOMMatrixReadOnly {
|
|||
unrestricted double angle);
|
||||
DOMMatrix skewX(unrestricted double sx);
|
||||
DOMMatrix skewY(unrestricted double sy);
|
||||
DOMMatrix multiply(DOMMatrix other);
|
||||
[NewObject, Throws] DOMMatrix multiply(optional DOMMatrixInit other);
|
||||
DOMMatrix flipX();
|
||||
DOMMatrix flipY();
|
||||
DOMMatrix inverse();
|
||||
|
|
@ -76,17 +81,21 @@ interface DOMMatrixReadOnly {
|
|||
DOMPoint transformPoint(optional DOMPointInit point);
|
||||
[Throws] Float32Array toFloat32Array();
|
||||
[Throws] Float64Array toFloat64Array();
|
||||
stringifier;
|
||||
[Exposed=Window] stringifier;
|
||||
};
|
||||
|
||||
[Pref="layout.css.DOMMatrix.enabled",
|
||||
Constructor,
|
||||
[Constructor,
|
||||
Constructor(DOMString transformList),
|
||||
Constructor(DOMMatrixReadOnly other),
|
||||
Constructor(Float32Array array32),
|
||||
Constructor(Float64Array array64),
|
||||
Constructor(sequence<unrestricted double> numberSequence)]
|
||||
Constructor(sequence<unrestricted double> numberSequence),
|
||||
Exposed=(Window,Worker)]
|
||||
interface DOMMatrix : DOMMatrixReadOnly {
|
||||
[NewObject, Throws] static DOMMatrix fromMatrix(optional DOMMatrixInit other);
|
||||
[NewObject, Throws] static DOMMatrix fromFloat32Array(Float32Array array32);
|
||||
[NewObject, Throws] static DOMMatrix fromFloat64Array(Float64Array array64);
|
||||
|
||||
// These attributes are simple aliases for certain elements of the 4x4 matrix
|
||||
inherit attribute unrestricted double a;
|
||||
inherit attribute unrestricted double b;
|
||||
|
|
@ -113,8 +122,8 @@ interface DOMMatrix : DOMMatrixReadOnly {
|
|||
inherit attribute unrestricted double m44;
|
||||
|
||||
// Mutable transform methods
|
||||
DOMMatrix multiplySelf(DOMMatrix other);
|
||||
DOMMatrix preMultiplySelf(DOMMatrix other);
|
||||
[Throws] DOMMatrix multiplySelf(optional DOMMatrixInit other);
|
||||
[Throws] DOMMatrix preMultiplySelf(optional DOMMatrixInit other);
|
||||
DOMMatrix translateSelf(unrestricted double tx,
|
||||
unrestricted double ty,
|
||||
optional unrestricted double tz = 0);
|
||||
|
|
@ -143,6 +152,34 @@ interface DOMMatrix : DOMMatrixReadOnly {
|
|||
DOMMatrix skewXSelf(unrestricted double sx);
|
||||
DOMMatrix skewYSelf(unrestricted double sy);
|
||||
DOMMatrix invertSelf();
|
||||
[Throws] DOMMatrix setMatrixValue(DOMString transformList);
|
||||
[Exposed=Window, Throws] DOMMatrix setMatrixValue(DOMString transformList);
|
||||
};
|
||||
|
||||
dictionary DOMMatrix2DInit {
|
||||
unrestricted double a;
|
||||
unrestricted double b;
|
||||
unrestricted double c;
|
||||
unrestricted double d;
|
||||
unrestricted double e;
|
||||
unrestricted double f;
|
||||
unrestricted double m11;
|
||||
unrestricted double m12;
|
||||
unrestricted double m21;
|
||||
unrestricted double m22;
|
||||
unrestricted double m41;
|
||||
unrestricted double m42;
|
||||
};
|
||||
|
||||
dictionary DOMMatrixInit : DOMMatrix2DInit {
|
||||
unrestricted double m13 = 0;
|
||||
unrestricted double m14 = 0;
|
||||
unrestricted double m23 = 0;
|
||||
unrestricted double m24 = 0;
|
||||
unrestricted double m31 = 0;
|
||||
unrestricted double m32 = 0;
|
||||
unrestricted double m33 = 1;
|
||||
unrestricted double m34 = 0;
|
||||
unrestricted double m43 = 0;
|
||||
unrestricted double m44 = 1;
|
||||
boolean is2D;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,25 +4,30 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://dev.w3.org/fxtf/geometry/
|
||||
* https://drafts.fxtf.org/geometry/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="layout.css.DOMPoint.enabled"]
|
||||
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||
optional unrestricted double z = 0, optional unrestricted double w = 1),
|
||||
Exposed=(Window,Worker)]
|
||||
interface DOMPointReadOnly {
|
||||
[NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other);
|
||||
|
||||
readonly attribute unrestricted double x;
|
||||
readonly attribute unrestricted double y;
|
||||
readonly attribute unrestricted double z;
|
||||
readonly attribute unrestricted double w;
|
||||
};
|
||||
|
||||
[Pref="layout.css.DOMPoint.enabled",
|
||||
Constructor(optional DOMPointInit point),
|
||||
Constructor(unrestricted double x, unrestricted double y,
|
||||
optional unrestricted double z = 0, optional unrestricted double w = 1)]
|
||||
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||
optional unrestricted double z = 0, optional unrestricted double w = 1),
|
||||
Exposed=(Window,Worker)]
|
||||
interface DOMPoint : DOMPointReadOnly {
|
||||
[NewObject] static DOMPoint fromPoint(optional DOMPointInit other);
|
||||
|
||||
inherit attribute unrestricted double x;
|
||||
inherit attribute unrestricted double y;
|
||||
inherit attribute unrestricted double z;
|
||||
|
|
@ -34,4 +39,4 @@ dictionary DOMPointInit {
|
|||
unrestricted double y = 0;
|
||||
unrestricted double z = 0;
|
||||
unrestricted double w = 1;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,20 +4,41 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://dev.w3.org/fxtf/geometry/
|
||||
* https://drafts.fxtf.org/geometry/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="layout.css.DOMQuad.enabled",
|
||||
Constructor(optional DOMPointInit p1, optional DOMPointInit p2,
|
||||
[Constructor(optional DOMPointInit p1, optional DOMPointInit p2,
|
||||
optional DOMPointInit p3, optional DOMPointInit p4),
|
||||
Constructor(DOMRectReadOnly rect)]
|
||||
Constructor(DOMRectReadOnly rect),
|
||||
Exposed=(Window,Worker)]
|
||||
interface DOMQuad {
|
||||
[NewObject] static DOMQuad fromRect(optional DOMRectInit other);
|
||||
[NewObject] static DOMQuad fromQuad(optional DOMQuadInit other);
|
||||
|
||||
[SameObject] readonly attribute DOMPoint p1;
|
||||
[SameObject] readonly attribute DOMPoint p2;
|
||||
[SameObject] readonly attribute DOMPoint p3;
|
||||
[SameObject] readonly attribute DOMPoint p4;
|
||||
[SameObject] readonly attribute DOMRectReadOnly bounds;
|
||||
};
|
||||
[NewObject] DOMRectReadOnly getBounds();
|
||||
|
||||
[SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds;
|
||||
|
||||
DOMQuadJSON toJSON();
|
||||
};
|
||||
|
||||
dictionary DOMQuadJSON {
|
||||
DOMPoint p1;
|
||||
DOMPoint p2;
|
||||
DOMPoint p3;
|
||||
DOMPoint p4;
|
||||
};
|
||||
|
||||
dictionary DOMQuadInit {
|
||||
DOMPointInit p1 = null;
|
||||
DOMPointInit p2 = null;
|
||||
DOMPointInit p3 = null;
|
||||
DOMPointInit p4 = null;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,23 +4,30 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://dev.w3.org/fxtf/geometry/
|
||||
* https://drafts.fxtf.org/geometry/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Constructor,
|
||||
Constructor(unrestricted double x, unrestricted double y,
|
||||
unrestricted double width, unrestricted double height)]
|
||||
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||
optional unrestricted double width = 0, optional unrestricted double height = 0),
|
||||
Exposed=(Window,Worker)]
|
||||
interface DOMRect : DOMRectReadOnly {
|
||||
[NewObject] static DOMRect fromRect(optional DOMRectInit other);
|
||||
|
||||
inherit attribute unrestricted double x;
|
||||
inherit attribute unrestricted double y;
|
||||
inherit attribute unrestricted double width;
|
||||
inherit attribute unrestricted double height;
|
||||
};
|
||||
|
||||
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||
optional unrestricted double width = 0, optional unrestricted double height = 0),
|
||||
Exposed=(Window,Worker)]
|
||||
interface DOMRectReadOnly {
|
||||
[NewObject] static DOMRectReadOnly fromRect(optional DOMRectInit other);
|
||||
|
||||
readonly attribute unrestricted double x;
|
||||
readonly attribute unrestricted double y;
|
||||
readonly attribute unrestricted double width;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@ interface WebKitCSSMatrix : DOMMatrix {
|
|||
WebKitCSSMatrix setMatrixValue(DOMString transformList);
|
||||
|
||||
// Immutable transform methods
|
||||
WebKitCSSMatrix multiply(WebKitCSSMatrix other);
|
||||
[Throws]
|
||||
WebKitCSSMatrix multiply(optional DOMMatrixInit other);
|
||||
[Throws]
|
||||
WebKitCSSMatrix inverse();
|
||||
WebKitCSSMatrix translate(optional unrestricted double tx = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue