DOMRectReadOnly
js.html.DOMRectReadOnly (extern class) → DOMRect
The DOMRectReadOnly interface specifies the standard properties used by DOMRect to define a rectangle.
Documentation DOMRectReadOnly by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
x: FloatThe x coordinate of the DOMRect's origin.
y: FloatThe y coordinate of the DOMRect's origin.
width: FloatThe width of the DOMRect.
height: FloatThe height of the DOMRect.
top: FloatReturns the top coordinate value of the DOMRect (usually the same as y.)
right: FloatReturns the right coordinate value of the DOMRect (usually the same as x + width).
bottom: FloatReturns the bottom coordinate value of the DOMRect (usually the same as y + height).
left: FloatReturns the left coordinate value of the DOMRect (usually the same as x).
toJSON(): Dynamic| Returns |
|---|
| Dynamic |
| Name | Type | Default |
|---|---|---|
x |
Float | 0.0 |
y |
Float | 0.0 |
width |
Float | 0.0 |
height |
Float | 0.0 |