DOMRect.idl 495 B

12345678910111213141516
  1. #import <Geometry/DOMRectReadOnly.idl>
  2. // https://drafts.fxtf.org/geometry/#dompoint
  3. [Exposed=(Window,Worker), Serializable, LegacyWindowAlias=SVGRect]
  4. interface DOMRect : DOMRectReadOnly {
  5. constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);
  6. [NewObject] static DOMRect fromRect(optional DOMRectInit other = {});
  7. attribute double x;
  8. attribute double y;
  9. attribute double width;
  10. attribute double height;
  11. };