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): PopoverAnchorParameters:
| Parameter | Type | Description |
|---|---|---|
doc | Document | The document to anchor in. |
Returns: PopoverAnchor — The anchor.