Skip to content

SelectionRange

Unofficial

Import:

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

Signature:

export interface SelectionRange

Methods

Method Returns Description
eq(other, includeAssoc?) boolean Compare this range to another range.
extend(from, to?) SelectionRange Extend this range to cover at least from to to.
map(change, assoc?) SelectionRange Map this range through a change, producing a valid range in the updated document.
toJSON() unknown Return a JSON-serializable object representing the range.

Links to this page: