Skip to content

SelectionRange.map method

SelectionRange › map

Official

Map this range through a change, producing a valid range in the updated document.

Signature:

map(change: ChangeDesc, assoc?: number): SelectionRange

Parameters:

ParameterTypeDescription
changeChangeDescThe change description.
assoc?numberWhich side the position is associated with.

Returns: SelectionRange — The mapped selection range.