Path: blob/main/website/awaited-dom/DOMRectReadOnly.md
2633 views
AwaitedDOM / DOMRectReadOnly
The
DOMRectReadOnly interface specifies the standard properties used by DOMRect to define a rectangle whose properties are immutable.Properties
.bottom W3C {#bottom}
Returns the bottom coordinate value of the DOMRect (usually the same as y + height).
Type: Promise<number>
.height W3C {#height}
The height of the DOMRect.
Type: Promise<number>
.left W3C {#left}
Returns the left coordinate value of the DOMRect (usually the same as x).
Type: Promise<number>
.right W3C {#right}
Returns the right coordinate value of the DOMRect (usually the same as x + width).
Type: Promise<number>
.top W3C {#top}
Returns the top coordinate value of the DOMRect (usually the same as y.)
Type: Promise<number>
.width W3C {#width}
The width of the DOMRect.
Type: Promise<number>
.x W3C {#x}
The x coordinate of the DOMRect's origin.
Type: Promise<number>
.y W3C {#y}
The y coordinate of the DOMRect's origin.
Type: Promise<number>
Unimplemented Specs
Methods
fromRect() |