AwaitedDOM/ DOMRect

Draft
This page is not complete.

Properties

.height
W3C

The height of the DOMRect.

Type: Promise<number>

.width
W3C

The width of the DOMRect.

Type: Promise<number>

.x
W3C

The x coordinate of the DOMRect's origin.

Type: Promise<number>

.y
W3C

The y coordinate of the DOMRect's origin.

Type: Promise<number>

.bottom
W3C

Returns the bottom coordinate value of the DOMRect (usually the same as y + height).

Type: Promise<number>

.height
W3C

The height of the DOMRect.

Type: Promise<number>

.left
W3C

Returns the left coordinate value of the DOMRect (usually the same as x).

Type: Promise<number>

Returns the right coordinate value of the DOMRect (usually the same as x + width).

Type: Promise<number>

.top
W3C

Returns the top coordinate value of the DOMRect (usually the same as y.)

Type: Promise<number>

.width
W3C

The width of the DOMRect.

Type: Promise<number>

.x
W3C

The x coordinate of the DOMRect's origin.

Type: Promise<number>

.y
W3C

The y coordinate of the DOMRect's origin.

Type: Promise<number>

Unimplemented Specs

Methods

fromRect()fromRect()

Edit this page on GitHub