Skip to content

createAnchorFromDocumentCenter

Anchors a popover in the middle of the document, for the cases where nothing better is known.

Import:

import { createAnchorFromDocumentCenter } from '@mnaoumov/obsidian-lib/popovers/popover-anchor';

Signature:

function createAnchorFromDocumentCenter(doc: Document): PopoverAnchor

Parameters:

Parameter Type Description
doc Document The document to anchor in.

Returns: PopoverAnchor — The anchor.