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