Skip to content

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 PopoverAnchor

Properties

PropertyTypeDescription
bottomnumberThe viewport y coordinate the popover is placed below.
docDocumentThe document the coordinates belong to.
leftnumberThe viewport x coordinate the popover is aligned to.

Links to this page: