Skip to content

Interface: VirtualReference ​

Something a positioning library can place a popup next to. Compatible with Floating UI's virtual elements (computePosition(reference, floating)).

Properties ​

PropertyModifierTypeDescription
contextElement?readonlyElementThe 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