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