CodeMirrorEditor.charCoords method
CodeMirrorEditor › charCoords
Unofficial
Get the pixel coordinates of a character position.Signature:
charCoords(pos: EditorPosition, mode?: "div" | "local" | "page" | "window" | undefined): CodeMirrorEditorCharCoordsParameters:
| Parameter | Type | Description |
|---|---|---|
| pos | EditorPosition | The editor position to get coordinates for. |
| mode? | "div" | "local" | "page" | "window" | undefined | The coordinate system to use. |
Returns: CodeMirrorEditorCharCoords — The pixel coordinates of the position.