tor-browser

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

DOMPoint.webidl (1869B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
      5 *
      6 * The origin of this IDL file is
      7 * https://drafts.fxtf.org/geometry/
      8 *
      9 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
     10 * liability, trademark and document use rules apply.
     11 */
     12 
     13 [Exposed=(Window,Worker),
     14 Serializable]
     15 interface DOMPointReadOnly {
     16    constructor(optional unrestricted double x = 0,
     17                optional unrestricted double y = 0,
     18                optional unrestricted double z = 0,
     19                optional unrestricted double w = 1);
     20 
     21    [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
     22 
     23    readonly attribute unrestricted double x;
     24    readonly attribute unrestricted double y;
     25    readonly attribute unrestricted double z;
     26    readonly attribute unrestricted double w;
     27 
     28    [NewObject, Throws] DOMPoint matrixTransform(optional DOMMatrixInit matrix = {});
     29 
     30    [Default] object toJSON();
     31 };
     32 
     33 [Exposed=(Window,Worker),
     34 Serializable]
     35 interface DOMPoint : DOMPointReadOnly {
     36    constructor(optional unrestricted double x = 0,
     37                optional unrestricted double y = 0,
     38                optional unrestricted double z = 0,
     39                optional unrestricted double w = 1);
     40 
     41    [NewObject] static DOMPoint fromPoint(optional DOMPointInit other = {});
     42 
     43    inherit attribute unrestricted double x;
     44    inherit attribute unrestricted double y;
     45    inherit attribute unrestricted double z;
     46    inherit attribute unrestricted double w;
     47 };
     48 
     49 dictionary DOMPointInit {
     50    unrestricted double x = 0;
     51    unrestricted double y = 0;
     52    unrestricted double z = 0;
     53    unrestricted double w = 1;
     54 };