For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
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