Iterate over the ranges that touch the region from to to,
calling f for each. There is no guarantee that the ranges will
be reported in any specific order. When the callback returns
false, iteration stops.
Iterate over the ranges in this set, in order, including all
ranges that end at or after from.
Optionalfrom: numberMap this range set through a set of changes, return the new set.
Update the range set, optionally adding new ranges or filtering out existing ones.
(Note: The type parameter is just there as a kludge to work
around TypeScript variance issues that prevented RangeSet<X>
from being a subtype of RangeSet<Y> when X is a subtype of
Y.)
StaticcompareIterate over two groups of sets, calling methods on comparator
to notify it of possible differences.
This indicates how the underlying data changed between these ranges, and is needed to synchronize the iteration.
OptionalminPointSize: numberCan be used to ignore all non-point ranges, and points below the given size. When -1, all ranges are compared.
StaticeqCompare the contents of two groups of range sets, returning true if they are equivalent in the given range.
StaticiterIterate over the ranges in a collection of sets, in order,
starting from from.
StaticjoinJoin an array of range sets into a single set.
StaticofCreate a range set for the given range or array of ranges. By
default, this expects the ranges to be sorted (by start
position and, if two start at the same position,
value.startSide). You can pass true as second argument to
cause the method to sort them.
StaticspansIterate over a group of range sets at the same time, notifying
the iterator about the ranges covering every given piece of
content. Returns the open count (see
SpanIterator.span) at the end
of the iteration.
OptionalminPointSize: numberWhen given and greater than -1, only points of at least this size are taken into account.
A range set stores a collection of ranges in a way that makes them efficient to map and update. This is an immutable data structure.