2023-08-15 08:16:45 -03:00
|
|
|
#import <Geometry/DOMMatrixReadOnly.idl>
|
|
|
|
|
#import <Geometry/DOMPoint.idl>
|
|
|
|
|
|
2022-10-05 11:40:31 -03:00
|
|
|
// https://drafts.fxtf.org/geometry/#dompointreadonly
|
2022-10-07 19:45:09 -03:00
|
|
|
[Exposed=(Window,Worker), Serializable]
|
2022-07-12 15:06:50 -03:00
|
|
|
interface DOMPointReadOnly {
|
|
|
|
|
|
2022-10-05 11:40:31 -03:00
|
|
|
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
|
|
|
|
optional unrestricted double z = 0, optional unrestricted double w = 1);
|
2022-07-12 15:06:50 -03:00
|
|
|
|
2022-10-06 11:25:08 -03:00
|
|
|
[NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
|
2022-07-12 15:06:50 -03:00
|
|
|
|
2022-10-05 11:40:31 -03:00
|
|
|
readonly attribute unrestricted double x;
|
|
|
|
|
readonly attribute unrestricted double y;
|
|
|
|
|
readonly attribute unrestricted double z;
|
|
|
|
|
readonly attribute unrestricted double w;
|
|
|
|
|
|
2023-08-15 08:16:45 -03:00
|
|
|
[NewObject] DOMPoint matrixTransform(optional DOMMatrixInit matrix = {});
|
2022-10-05 11:40:31 -03:00
|
|
|
|
2023-03-23 13:43:32 -03:00
|
|
|
[Default] object toJSON();
|
2022-07-12 15:06:50 -03:00
|
|
|
};
|
2022-10-06 11:25:08 -03:00
|
|
|
|
|
|
|
|
dictionary DOMPointInit {
|
|
|
|
|
unrestricted double x = 0;
|
|
|
|
|
unrestricted double y = 0;
|
|
|
|
|
unrestricted double z = 0;
|
|
|
|
|
unrestricted double w = 1;
|
|
|
|
|
};
|