DOMRectReadOnly-1
DOMRectReadOnly: {
(x?, y?, width?, height?): DOMRectReadOnly;
prototype: DOMRectReadOnly;
fromRect: DOMRectReadOnly;
};
Type Declaration
Parameters
| Parameter | Type |
|---|---|
x? | number |
y? | number |
width? | number |
height? | number |
Returns
prototype
prototype: DOMRectReadOnly;
fromRect()
fromRect(other?): DOMRectReadOnly;
The fromRect() static method of the DOMRectReadOnly object creates a new DOMRectReadOnly object with a given location and dimensions.
Parameters
| Parameter | Type |
|---|---|
other? | DOMRectInit |