ChangeDesc
Unofficial
Import:
import type { ChangeDesc } from '@codemirror/state';Signature:
export interface ChangeDescMethods
| Method | Returns | Description | |
|---|---|---|---|
| composeDesc(other) | ChangeDesc | Compute the combined effect of applying another set of changes after this one. | |
| iterChangedRanges(f, individual?) | void | Iterate over the ranges changed by these changes. | |
| iterGaps(f) | void | Iterate over the unchanged parts left by these changes. | |
| mapDesc(other, before?) | ChangeDesc | Map this description over another set of changes. | |
| mapPos(pos, assoc?) | number | Map a given position through these changes. | |
| mapPos(pos, assoc, mode) | null | number | Map a given position through these changes with a specific mode. | |
| toJSON() | readonly number[] | Serialize this change desc to a JSON-representable value. | |
| touchesRange(from, to?) | 'cover' | boolean | Check whether these changes touch a given range. |
Links to this page: