device.getElementBounds
getElementBounds(element: string | HTMLElement) → {DOMRect}
returns the size of the given HTMLElement and its position relative to the viewport
Name | Type | Description |
---|---|---|
element | string | HTMLElement |
an HTMLElement object |
Type | Description |
---|---|
DOMRect |
the size and position of the element relatively to the viewport |