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 'obsidian-dev-utils/obsidian/popovers/popover-anchor';

Signature:

function createAnchorFromDocumentCenter(doc: Document): PopoverAnchor

Parameters:

ParameterTypeDescription
docDocumentThe document to anchor in.

Returns: PopoverAnchor — The anchor.