nx.js
Classes

DOMRect

MDN Reference

Extends

Constructors

new DOMRect()

new DOMRect(x?, y?, width?, height?): DOMRect

Parameters

ParameterType
x?number
y?number
width?number
height?number

Returns

DOMRect

Overrides

DOMRectReadOnly.constructor

Properties

PropertyTypeDescriptionOverrides
heightnumberMDN ReferenceDOMRectReadOnly.height
widthnumberMDN ReferenceDOMRectReadOnly.width
xnumberMDN ReferenceDOMRectReadOnly.x
ynumberMDN ReferenceDOMRectReadOnly.y

Accessors

bottom

get bottom(): number

MDN Reference

Returns

number

Inherited from

DOMRectReadOnly.bottom


left

get left(): number

MDN Reference

Returns

number

Inherited from

DOMRectReadOnly.left


get right(): number

MDN Reference

Returns

number

Inherited from

DOMRectReadOnly.right


top

get top(): number

MDN Reference

Returns

number

Inherited from

DOMRectReadOnly.top

Methods

toJSON()

toJSON(): object

Returns

object

NameType
bottomnumber
heightnumber
leftnumber
rightnumber
topnumber
widthnumber
xnumber
ynumber

Inherited from

DOMRectReadOnly.toJSON


fromRect()

static fromRect(o): DOMRect

MDN Reference

Parameters

ParameterType
oDOMRectInit

Returns

DOMRect

Overrides

DOMRectReadOnly.fromRect

On this page