DOMRectReadOnly.idl 811 B

12345678910111213141516171819202122232425262728
  1. // https://drafts.fxtf.org/geometry/#domrectreadonly
  2. [Exposed=(Window, Worker), Serializable]
  3. interface DOMRectReadOnly {
  4. constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);
  5. [NewObject] static DOMRectReadOnly fromRect(optional DOMRectInit other = {});
  6. readonly attribute double x;
  7. readonly attribute double y;
  8. readonly attribute double width;
  9. readonly attribute double height;
  10. readonly attribute double top;
  11. readonly attribute double right;
  12. readonly attribute double bottom;
  13. readonly attribute double left;
  14. [Default] object toJSON();
  15. };
  16. dictionary DOMRectInit {
  17. unrestricted double x = 0;
  18. unrestricted double y = 0;
  19. unrestricted double width = 0;
  20. unrestricted double height = 0;
  21. };