Skip to content

UndoManager

Local history captures user work once; host outcomes settle its replay journal.

new UndoManager(actor, emit, options?, publish?): UndoManager

string

(effects) => Envelope

UndoOptions

() => void

UndoManager

get canRedo(): boolean

boolean


get canUndo(): boolean

boolean


get currentTransaction(): UndoTransaction | null

UndoTransaction | null


get lastRecordedTransaction(): UndoTransaction | null

UndoTransaction | null

beginTransaction(metadata?): void

unknown

void


clearRedo(): void

void


clearUndo(): void

void


endTransaction(): UndoTransaction | null

UndoTransaction | null


pause(): void

void


record(envelope, capture?): void

Envelope

CaptureOptions

void


redo(): Envelope | null

Envelope | null


reject(ids): void

readonly EditId[]

void


remote(envelope): void

Envelope

void


resume(): void

void


seal(): void

void


setActive(transaction, active): Envelope

UndoTransaction

boolean

Envelope


setTransactions(changes): Envelope

A branching graph can set several departing/arriving edges in one command.

readonly object[]

Envelope


state(): UndoState

UndoState


undo(): Envelope | null

Envelope | null