Interface: VirtualReference
Something a positioning library can place a popup next to. Compatible with Floating UI's virtual elements (computePosition(reference, floating)).
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
contextElement? | readonly | Element | The editor element, for scroll and clipping ancestors. |
Methods
getBoundingClientRect()
ts
getBoundingClientRect(): DOMRect;The rectangle to place the popup next to, in viewport coordinates.
Returns
DOMRect