PopoverAnchor
Where a popover is placed: viewport coordinates plus the document they belong to.
Carrying the document explicitly is what makes an anchor inside a pop-out window work — the popover is appended to, and clamped against, that window rather than the main one.
Import:
import type { PopoverAnchor } from 'obsidian-dev-utils/obsidian/popovers/popover-anchor';Signature:
export interface PopoverAnchorProperties
| Property | Type | Description |
|---|---|---|
| bottom | number | The viewport y coordinate the popover is placed below. |
| doc | Document | The document the coordinates belong to. |
| left | number | The viewport x coordinate the popover is aligned to. |
Links to this page: