2022-02-15 22:40:51 +03:30
|
|
|
#import <Geometry/DOMRectReadOnly.idl>
|
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://drafts.fxtf.org/geometry/#dompoint
|
|
|
|
|
[Exposed=(Window,Worker), Serializable, LegacyWindowAlias=SVGRect]
|
2021-10-08 22:59:15 +02:00
|
|
|
interface DOMRect : DOMRectReadOnly {
|
2021-09-27 00:55:13 +02:00
|
|
|
|
|
|
|
|
constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);
|
|
|
|
|
|
2023-07-06 23:21:20 +01:00
|
|
|
[NewObject] static DOMRect fromRect(optional DOMRectInit other = {});
|
|
|
|
|
|
2021-10-08 22:59:15 +02:00
|
|
|
attribute double x;
|
|
|
|
|
attribute double y;
|
|
|
|
|
attribute double width;
|
|
|
|
|
attribute double height;
|
2021-09-27 00:55:13 +02:00
|
|
|
|
|
|
|
|
};
|