Constructors
constructor
- new DOMRectReadOnly(x?, y?, width?, height?): DOMRectReadOnly
Parameters
Optional
x: numberOptional
y: numberOptional
width: numberOptional
height: number
Properties
Readonly
height
height: number
Readonly
width
width: number
Readonly
x
x: number
Readonly
y
y: number
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(): {
bottom: number;
height: number;
left: number;
right: number;
top: number;
width: number;
x: number;
y: number;
} Returns {
bottom: number;
height: number;
left: number;
right: number;
top: number;
width: number;
x: number;
y: number;
}
bottom: number
height: number
left: number
right: number
top: number
width: number
x: number
y: number
MDN Reference