DOMRectReadOnly.idl 779 B

1234567891011121314151617181920212223242526
  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. };
  15. dictionary DOMRectInit {
  16. unrestricted double x = 0;
  17. unrestricted double y = 0;
  18. unrestricted double width = 0;
  19. unrestricted double height = 0;
  20. };