Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / webidl / DOMPoint.webidl
blobad95b2f716ef6abb786160bf990f860f9d862329
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  */
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);
21     [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
23     readonly attribute unrestricted double x;
24     readonly attribute unrestricted double y;
25     readonly attribute unrestricted double z;
26     readonly attribute unrestricted double w;
28     [NewObject, Throws] DOMPoint matrixTransform(optional DOMMatrixInit matrix = {});
30     [Default] object toJSON();
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);
41     [NewObject] static DOMPoint fromPoint(optional DOMPointInit other = {});
43     inherit attribute unrestricted double x;
44     inherit attribute unrestricted double y;
45     inherit attribute unrestricted double z;
46     inherit attribute unrestricted double w;
49 dictionary DOMPointInit {
50     unrestricted double x = 0;
51     unrestricted double y = 0;
52     unrestricted double z = 0;
53     unrestricted double w = 1;