DOMRect

@native @JSGlobal @JSType
class DOMRect extends DOMRectReadOnly

A DOMRect describes the size and position of a rectangle.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def height_=(height: Double): Unit
def width_=(width: Double): Unit
def x_=(x: Double): Unit
def y_=(y: Double): Unit

Inherited methods

def bottom: Double

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

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

Inherited from:
DOMRectReadOnly
def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def height: Double

The height of the DOMRect.

The height of the DOMRect.

Inherited from:
DOMRectReadOnly
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def left: Double

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

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

Inherited from:
DOMRectReadOnly
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def right: Double

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

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

Inherited from:
DOMRectReadOnly
def toLocaleString(): String
Inherited from:
Object
def top: Double

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

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

Inherited from:
DOMRectReadOnly
def valueOf(): Any
Inherited from:
Object
def width: Double

The width of the DOMRect.

The width of the DOMRect.

Inherited from:
DOMRectReadOnly
def x: Double

The x coordinate of the DOMRect's origin.

The x coordinate of the DOMRect's origin.

Inherited from:
DOMRectReadOnly
def y: Double

The y coordinate of the DOMRect's origin.

The y coordinate of the DOMRect's origin.

Inherited from:
DOMRectReadOnly