DOMPointReadOnly.idl 914 B

12345678910111213141516171819202122232425262728
  1. #import <Geometry/DOMMatrixReadOnly.idl>
  2. #import <Geometry/DOMPoint.idl>
  3. // https://drafts.fxtf.org/geometry/#dompointreadonly
  4. [Exposed=(Window,Worker), Serializable]
  5. interface DOMPointReadOnly {
  6. constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
  7. optional unrestricted double z = 0, optional unrestricted double w = 1);
  8. [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
  9. readonly attribute unrestricted double x;
  10. readonly attribute unrestricted double y;
  11. readonly attribute unrestricted double z;
  12. readonly attribute unrestricted double w;
  13. [NewObject] DOMPoint matrixTransform(optional DOMMatrixInit matrix = {});
  14. [Default] object toJSON();
  15. };
  16. dictionary DOMPointInit {
  17. unrestricted double x = 0;
  18. unrestricted double y = 0;
  19. unrestricted double z = 0;
  20. unrestricted double w = 1;
  21. };