Editor.coordsAtPos method
Editor › coordsAtPos
Unofficial
Convert editor position to screen position.Signature:
coordsAtPos(pos: EditorPosition, relativeToEditor: boolean): CoordsParameters:
| Parameter | Type | Description |
|---|---|---|
| pos | EditorPosition | {@link obsidian#Editor} position. |
| relativeToEditor | boolean | Relative to the editor or the application window. |
Returns: Coords — The screen coordinates.