Skip to content

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): EditorPosition

Parameters:

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: EditorPositionThe resulting editor position.