Skip to content

RangeSet<T>

Unofficial

Import:

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

Signature:

export interface RangeSet<T extends RangeValue>

Methods

MethodReturnsDescription
between(from, to, f)voidIterate over the ranges that touch the region from to to.
iter(from?)RangeCursor<T>Iterate over the ranges in this set, in order.
map(changes)RangeSet<T>Map this range set through a set of changes, return the new set.
update(updateSpec)RangeSet<T>Update the range set, optionally adding new ranges or filtering out existing ones.