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

The x coordinate of the DOMRect's origin.


The y coordinate of the DOMRect's origin.


width: Float

The width of the DOMRect.


height: Float

The height of the DOMRect.


top: Float

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


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


bottom: Float

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


left: Float

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


toJSON(): Dynamic
Returns
Dynamic

new(?x: Float = 0.0, ?y: Float = 0.0, ?width: Float = 0.0, ?height: Float = 0.0): Void
Name Type Default
x Float 0.0
y Float 0.0
width Float 0.0
height Float 0.0