Skip to content

Type Editor


Type Editor / @type-editor/history / state/Branch

state/Branch

Classes

ClassDescription

Branch

Represents a branch in the history tree (either undo or redo history).

A branch maintains a sequence of items that represent the history of changes, where each item can contain a step (an actual change) and/or a position map (for transforming positions through the change).

Item

Represents a single item in the history branch.

An item can contain a step (an actual change), a position map (for tracking position changes), and optionally a selection bookmark (marking the start of an event).