tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

geometry.idl (12083B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Geometry Interfaces Module Level 1 (https://drafts.csswg.org/geometry/)
      5 
      6 [Exposed=(Window,Worker),
      7 Serializable]
      8 interface DOMPointReadOnly {
      9    constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
     10            optional unrestricted double z = 0, optional unrestricted double w = 1);
     11 
     12    [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
     13 
     14    readonly attribute unrestricted double x;
     15    readonly attribute unrestricted double y;
     16    readonly attribute unrestricted double z;
     17    readonly attribute unrestricted double w;
     18 
     19    [NewObject] DOMPoint matrixTransform(optional DOMMatrixInit matrix = {});
     20 
     21    [Default] object toJSON();
     22 };
     23 
     24 [Exposed=(Window,Worker),
     25 Serializable,
     26 LegacyWindowAlias=SVGPoint]
     27 interface DOMPoint : DOMPointReadOnly {
     28    constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
     29            optional unrestricted double z = 0, optional unrestricted double w = 1);
     30 
     31    [NewObject] static DOMPoint fromPoint(optional DOMPointInit other = {});
     32 
     33    inherit attribute unrestricted double x;
     34    inherit attribute unrestricted double y;
     35    inherit attribute unrestricted double z;
     36    inherit attribute unrestricted double w;
     37 };
     38 
     39 dictionary DOMPointInit {
     40    unrestricted double x = 0;
     41    unrestricted double y = 0;
     42    unrestricted double z = 0;
     43    unrestricted double w = 1;
     44 };
     45 
     46 [Exposed=(Window,Worker),
     47 Serializable]
     48 interface DOMRectReadOnly {
     49    constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
     50            optional unrestricted double width = 0, optional unrestricted double height = 0);
     51 
     52    [NewObject] static DOMRectReadOnly fromRect(optional DOMRectInit other = {});
     53 
     54    readonly attribute unrestricted double x;
     55    readonly attribute unrestricted double y;
     56    readonly attribute unrestricted double width;
     57    readonly attribute unrestricted double height;
     58    readonly attribute unrestricted double top;
     59    readonly attribute unrestricted double right;
     60    readonly attribute unrestricted double bottom;
     61    readonly attribute unrestricted double left;
     62 
     63    [Default] object toJSON();
     64 };
     65 
     66 [Exposed=(Window,Worker),
     67 Serializable,
     68 LegacyWindowAlias=SVGRect]
     69 interface DOMRect : DOMRectReadOnly {
     70    constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
     71            optional unrestricted double width = 0, optional unrestricted double height = 0);
     72 
     73    [NewObject] static DOMRect fromRect(optional DOMRectInit other = {});
     74 
     75    inherit attribute unrestricted double x;
     76    inherit attribute unrestricted double y;
     77    inherit attribute unrestricted double width;
     78    inherit attribute unrestricted double height;
     79 };
     80 
     81 dictionary DOMRectInit {
     82    unrestricted double x = 0;
     83    unrestricted double y = 0;
     84    unrestricted double width = 0;
     85    unrestricted double height = 0;
     86 };
     87 
     88 [Exposed=Window]
     89 interface DOMRectList {
     90    readonly attribute unsigned long length;
     91    getter DOMRect? item(unsigned long index);
     92 };
     93 
     94 [Exposed=(Window,Worker),
     95 Serializable]
     96 interface DOMQuad {
     97    constructor(optional DOMPointInit p1 = {}, optional DOMPointInit p2 = {},
     98            optional DOMPointInit p3 = {}, optional DOMPointInit p4 = {});
     99 
    100    [NewObject] static DOMQuad fromRect(optional DOMRectInit other = {});
    101    [NewObject] static DOMQuad fromQuad(optional DOMQuadInit other = {});
    102 
    103    [SameObject] readonly attribute DOMPoint p1;
    104    [SameObject] readonly attribute DOMPoint p2;
    105    [SameObject] readonly attribute DOMPoint p3;
    106    [SameObject] readonly attribute DOMPoint p4;
    107    [NewObject] DOMRect getBounds();
    108 
    109    [Default] object toJSON();
    110 };
    111 
    112 dictionary DOMQuadInit {
    113  DOMPointInit p1;
    114  DOMPointInit p2;
    115  DOMPointInit p3;
    116  DOMPointInit p4;
    117 };
    118 
    119 [Exposed=(Window,Worker),
    120 Serializable]
    121 interface DOMMatrixReadOnly {
    122    constructor(optional (DOMString or sequence<unrestricted double>) init);
    123 
    124    [NewObject] static DOMMatrixReadOnly fromMatrix(optional DOMMatrixInit other = {});
    125    [NewObject] static DOMMatrixReadOnly fromFloat32Array(Float32Array array32);
    126    [NewObject] static DOMMatrixReadOnly fromFloat64Array(Float64Array array64);
    127 
    128    // These attributes are simple aliases for certain elements of the 4x4 matrix
    129    readonly attribute unrestricted double a;
    130    readonly attribute unrestricted double b;
    131    readonly attribute unrestricted double c;
    132    readonly attribute unrestricted double d;
    133    readonly attribute unrestricted double e;
    134    readonly attribute unrestricted double f;
    135 
    136    readonly attribute unrestricted double m11;
    137    readonly attribute unrestricted double m12;
    138    readonly attribute unrestricted double m13;
    139    readonly attribute unrestricted double m14;
    140    readonly attribute unrestricted double m21;
    141    readonly attribute unrestricted double m22;
    142    readonly attribute unrestricted double m23;
    143    readonly attribute unrestricted double m24;
    144    readonly attribute unrestricted double m31;
    145    readonly attribute unrestricted double m32;
    146    readonly attribute unrestricted double m33;
    147    readonly attribute unrestricted double m34;
    148    readonly attribute unrestricted double m41;
    149    readonly attribute unrestricted double m42;
    150    readonly attribute unrestricted double m43;
    151    readonly attribute unrestricted double m44;
    152 
    153    readonly attribute boolean is2D;
    154    readonly attribute boolean isIdentity;
    155 
    156    // Immutable transform methods
    157    [NewObject] DOMMatrix translate(optional unrestricted double tx = 0,
    158                                    optional unrestricted double ty = 0,
    159                                    optional unrestricted double tz = 0);
    160    [NewObject] DOMMatrix scale(optional unrestricted double scaleX = 1,
    161                                optional unrestricted double scaleY,
    162                                optional unrestricted double scaleZ = 1,
    163                                optional unrestricted double originX = 0,
    164                                optional unrestricted double originY = 0,
    165                                optional unrestricted double originZ = 0);
    166    [NewObject] DOMMatrix scaleNonUniform(optional unrestricted double scaleX = 1,
    167                                          optional unrestricted double scaleY = 1);
    168    [NewObject] DOMMatrix scale3d(optional unrestricted double scale = 1,
    169                                  optional unrestricted double originX = 0,
    170                                  optional unrestricted double originY = 0,
    171                                  optional unrestricted double originZ = 0);
    172    [NewObject] DOMMatrix rotate(optional unrestricted double rotX = 0,
    173                                 optional unrestricted double rotY,
    174                                 optional unrestricted double rotZ);
    175    [NewObject] DOMMatrix rotateFromVector(optional unrestricted double x = 0,
    176                                           optional unrestricted double y = 0);
    177    [NewObject] DOMMatrix rotateAxisAngle(optional unrestricted double x = 0,
    178                                          optional unrestricted double y = 0,
    179                                          optional unrestricted double z = 0,
    180                                          optional unrestricted double angle = 0);
    181    [NewObject] DOMMatrix skewX(optional unrestricted double sx = 0);
    182    [NewObject] DOMMatrix skewY(optional unrestricted double sy = 0);
    183    [NewObject] DOMMatrix multiply(optional DOMMatrixInit other = {});
    184    [NewObject] DOMMatrix flipX();
    185    [NewObject] DOMMatrix flipY();
    186    [NewObject] DOMMatrix inverse();
    187 
    188    [NewObject] DOMPoint transformPoint(optional DOMPointInit point = {});
    189    [NewObject] Float32Array toFloat32Array();
    190    [NewObject] Float64Array toFloat64Array();
    191 
    192    [Exposed=Window] stringifier;
    193    [Default] object toJSON();
    194 };
    195 
    196 [Exposed=(Window,Worker),
    197 Serializable,
    198 LegacyWindowAlias=(SVGMatrix,WebKitCSSMatrix)]
    199 interface DOMMatrix : DOMMatrixReadOnly {
    200    constructor(optional (DOMString or sequence<unrestricted double>) init);
    201 
    202    [NewObject] static DOMMatrix fromMatrix(optional DOMMatrixInit other = {});
    203    [NewObject] static DOMMatrix fromFloat32Array(Float32Array array32);
    204    [NewObject] static DOMMatrix fromFloat64Array(Float64Array array64);
    205 
    206    // These attributes are simple aliases for certain elements of the 4x4 matrix
    207    inherit attribute unrestricted double a;
    208    inherit attribute unrestricted double b;
    209    inherit attribute unrestricted double c;
    210    inherit attribute unrestricted double d;
    211    inherit attribute unrestricted double e;
    212    inherit attribute unrestricted double f;
    213 
    214    inherit attribute unrestricted double m11;
    215    inherit attribute unrestricted double m12;
    216    inherit attribute unrestricted double m13;
    217    inherit attribute unrestricted double m14;
    218    inherit attribute unrestricted double m21;
    219    inherit attribute unrestricted double m22;
    220    inherit attribute unrestricted double m23;
    221    inherit attribute unrestricted double m24;
    222    inherit attribute unrestricted double m31;
    223    inherit attribute unrestricted double m32;
    224    inherit attribute unrestricted double m33;
    225    inherit attribute unrestricted double m34;
    226    inherit attribute unrestricted double m41;
    227    inherit attribute unrestricted double m42;
    228    inherit attribute unrestricted double m43;
    229    inherit attribute unrestricted double m44;
    230 
    231    // Mutable transform methods
    232    DOMMatrix multiplySelf(optional DOMMatrixInit other = {});
    233    DOMMatrix preMultiplySelf(optional DOMMatrixInit other = {});
    234    DOMMatrix translateSelf(optional unrestricted double tx = 0,
    235                            optional unrestricted double ty = 0,
    236                            optional unrestricted double tz = 0);
    237    DOMMatrix scaleSelf(optional unrestricted double scaleX = 1,
    238                        optional unrestricted double scaleY,
    239                        optional unrestricted double scaleZ = 1,
    240                        optional unrestricted double originX = 0,
    241                        optional unrestricted double originY = 0,
    242                        optional unrestricted double originZ = 0);
    243    DOMMatrix scale3dSelf(optional unrestricted double scale = 1,
    244                          optional unrestricted double originX = 0,
    245                          optional unrestricted double originY = 0,
    246                          optional unrestricted double originZ = 0);
    247    DOMMatrix rotateSelf(optional unrestricted double rotX = 0,
    248                         optional unrestricted double rotY,
    249                         optional unrestricted double rotZ);
    250    DOMMatrix rotateFromVectorSelf(optional unrestricted double x = 0,
    251                                   optional unrestricted double y = 0);
    252    DOMMatrix rotateAxisAngleSelf(optional unrestricted double x = 0,
    253                                  optional unrestricted double y = 0,
    254                                  optional unrestricted double z = 0,
    255                                  optional unrestricted double angle = 0);
    256    DOMMatrix skewXSelf(optional unrestricted double sx = 0);
    257    DOMMatrix skewYSelf(optional unrestricted double sy = 0);
    258    DOMMatrix invertSelf();
    259 
    260    [Exposed=Window] DOMMatrix setMatrixValue(DOMString transformList);
    261 };
    262 
    263 dictionary DOMMatrix2DInit {
    264    unrestricted double a;
    265    unrestricted double b;
    266    unrestricted double c;
    267    unrestricted double d;
    268    unrestricted double e;
    269    unrestricted double f;
    270    unrestricted double m11;
    271    unrestricted double m12;
    272    unrestricted double m21;
    273    unrestricted double m22;
    274    unrestricted double m41;
    275    unrestricted double m42;
    276 };
    277 
    278 dictionary DOMMatrixInit : DOMMatrix2DInit {
    279    unrestricted double m13 = 0;
    280    unrestricted double m14 = 0;
    281    unrestricted double m23 = 0;
    282    unrestricted double m24 = 0;
    283    unrestricted double m31 = 0;
    284    unrestricted double m32 = 0;
    285    unrestricted double m33 = 1;
    286    unrestricted double m34 = 0;
    287    unrestricted double m43 = 0;
    288    unrestricted double m44 = 1;
    289    boolean is2D;
    290 };