Skip to content

Editor.coordsAtPos method

Editor › coordsAtPos

Unofficial

Convert editor position to screen position.

Signature:

coordsAtPos(pos: EditorPosition, relativeToEditor: boolean): Coords

Parameters:

Parameter Type Description
pos EditorPosition {@link obsidian#Editor} position.
relativeToEditor boolean Relative to the editor or the application window.

Returns: CoordsThe screen coordinates.