DOMRectList

The DOMRectList interface 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 Element.getClientRects.

MDN Reference

Properties

Link copied to clipboard
open override val length: Int

The read-only length property of the DOMRectList interface returns the number of DOMRect objects in the list.

Functions

Link copied to clipboard
open operator fun get(index: Int): DOMRect
open operator fun get(key: Symbol.iterator): () -> JsIterator<DOMRect>
Link copied to clipboard
fun item(index: Int): DOMRect?

The DOMRectList method item() returns the DOMRect at the specified index within the list, or null if the index is out of range.

Link copied to clipboard
open inline operator fun iterator(): Iterator<DOMRect>