Variable DOMRect
DOMRect: {
prototype: DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
new (x?: number, y?: number, width?: number, height?: number): DOMRect;
}
prototype: DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
new (x?: number, y?: number, width?: number, height?: number): DOMRect;
}
Type Declaration
prototype: DOMRect
fromRect: function
Parameters
Optionalother: DOMRectInit
Returns DOMRect
The
fromRect()static method of the object with a given location and dimensions.MDN Reference