DOMRect
Module: JavaScript DOM API
DOM Rectangle object.
#include <DOMRect.idl>
Inherits from DOMRectReadOnly
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| attribute double | x |
| attribute double | y |
| attribute double | width |
| attribute double | height |
Additional inherited members
Section titled “Additional inherited members”Public Attributes inherited from DOMRectReadOnly
| Name | |
|---|---|
| readonly attribute double | top |
| readonly attribute double | right |
| readonly attribute double | bottom |
| readonly attribute double | left |
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable x
Section titled “variable x”attribute double x;variable y
Section titled “variable y”attribute double y;variable width
Section titled “variable width”attribute double width;variable height
Section titled “variable height”attribute double height;© 2026 Coherent Labs. All rights reserved.