For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages
are available by appending .md to any URL.
Interface DOMRectList
interface DOMRectList {
length: number;
"[iterator]"(): ArrayIterator<DOMRect>;
item(index: number): DOMRect | null;
[index: number]: DOMRect;
}
length: number;
"[iterator]"(): ArrayIterator<DOMRect>;
item(index: number): DOMRect | null;
[index: number]: DOMRect;
}
Indexable
Properties
Readonlylength
length: number
The read-only length property of the DOMRectList interface returns the number of DOMRect objects in the list.
Methods
[iterator]
-
Returns ArrayIterator<DOMRect>
item
-
The DOMRectList method
item()returns the DOMRect at the specified index within the list, or null if the index is out of range.Parameters
- index: number
Returns DOMRect | null
The
DOMRectListinterface represents a collection of DOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such as getClientRects(). It provides access to each rectangle in the list via its index, along with a length property that indicates the total number of rectangles in the list.MDN Reference