Variable DOMRectReadOnly
DOMRectReadOnly: {
prototype: DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
new (
x?: number,
y?: number,
width?: number,
height?: number,
): DOMRectReadOnly;
}
prototype: DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
new (
x?: number,
y?: number,
width?: number,
height?: number,
): DOMRectReadOnly;
}
Type declaration
- new (x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly
Parameters
Optional
x: numberOptional
y: numberOptional
width: numberOptional
height: number
Returns DOMRectReadOnly
prototype: DOMRectReadOnly
fromRect:function
- fromRect(other?: DOMRectInit): DOMRectReadOnly
Parameters
Optional
other: DOMRectInit
Returns DOMRectReadOnly
MDN Reference