Skip to content

SelectionRange

Unofficial

Import:

import type { SelectionRange } from '@codemirror/state';

Signature:

export interface SelectionRange

Methods

MethodReturnsDescription
eq(other, includeAssoc?)booleanCompare this range to another range.
extend(from, to?)SelectionRangeExtend this range to cover at least from to to.
map(change, assoc?)SelectionRangeMap this range through a change, producing a valid range in the updated document.
toJSON()unknownReturn a JSON-serializable object representing the range.

Links to this page: