nx.js
Classes

DOMRectReadOnly

MDN Reference

Extended by

Constructors

new DOMRectReadOnly()

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

Parameters

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

Returns

DOMRectReadOnly

Properties

PropertyModifierTypeDescription
heightreadonlynumberMDN Reference
widthreadonlynumberMDN Reference
xreadonlynumberMDN Reference
yreadonlynumberMDN Reference

Accessors

bottom

get bottom(): number

MDN Reference

Returns

number


left

get left(): number

MDN Reference

Returns

number


get right(): number

MDN Reference

Returns

number


top

get top(): number

MDN Reference

Returns

number

Methods

toJSON()

toJSON(): object

Returns

object

NameType
bottomnumber
heightnumber
leftnumber
rightnumber
topnumber
widthnumber
xnumber
ynumber

fromRect()

static fromRect(o): DOMRectReadOnly

MDN Reference

Parameters

ParameterType
oDOMRectInit

Returns

DOMRectReadOnly

On this page