Classes
DOMRectReadOnly
Extended by
Constructors
new DOMRectReadOnly()
new DOMRectReadOnly(x
?, y
?, width
?, height
?): DOMRectReadOnly
Parameters
Parameter | Type |
---|---|
x ? | number |
y ? | number |
width ? | number |
height ? | number |
Returns
Properties
Property | Modifier | Type | Description |
---|---|---|---|
height | readonly | number | MDN Reference |
width | readonly | number | MDN Reference |
x | readonly | number | MDN Reference |
y | readonly | number | MDN Reference |
Accessors
bottom
get
bottom(): number
Returns
number
left
get
left(): number
Returns
number
right
get
right(): number
Returns
number
top
get
top(): number
Returns
number
Methods
toJSON()
toJSON(): object
Returns
object
Name | Type |
---|---|
bottom | number |
height | number |
left | number |
right | number |
top | number |
width | number |
x | number |
y | number |
fromRect()
static
fromRect(o
): DOMRectReadOnly
Parameters
Parameter | Type |
---|---|
o | DOMRectInit |