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 {
|
2024-07-01 21:12:26 +02:00
|
|
|
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
|
|
|
optional unrestricted double width = 0, optional unrestricted double height = 0);
|
2021-09-27 00:55:13 +02:00
|
|
|
|
2023-07-06 23:21:20 +01:00
|
|
|
[NewObject] static DOMRect fromRect(optional DOMRectInit other = {});
|
|
|
|
|
2024-07-01 21:12:26 +02:00
|
|
|
attribute unrestricted double x;
|
|
|
|
attribute unrestricted double y;
|
|
|
|
attribute unrestricted double width;
|
|
|
|
attribute unrestricted double height;
|
2021-09-27 00:55:13 +02:00
|
|
|
};
|