CodeMirrorEditor.findPosV method
CodeMirrorEditor › findPosV
Unofficial
Find a position vertically relative to the given start position.Signature:
findPosV(start: EditorPosition, amount: number, unit: "page" | "line", goalColumn: number): EditorPositionParameters:
| Parameter | Type | Description |
|---|---|---|
| start | EditorPosition | The starting editor position. |
| amount | number | The number of units to move. |
| unit | "page" | "line" | The unit of movement. |
| goalColumn | number | The desired column to maintain. |
Returns: EditorPosition — The resulting editor position.