UndoManager
Local history captures user work once; host outcomes settle its replay journal.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UndoManager(
actor,emit,options?,publish?):UndoManager
Parameters
Section titled “Parameters”string
(effects) => Envelope
options?
Section titled “options?”publish?
Section titled “publish?”() => void
Returns
Section titled “Returns”UndoManager
Accessors
Section titled “Accessors”canRedo
Section titled “canRedo”Get Signature
Section titled “Get Signature”get canRedo():
boolean
Returns
Section titled “Returns”boolean
canUndo
Section titled “canUndo”Get Signature
Section titled “Get Signature”get canUndo():
boolean
Returns
Section titled “Returns”boolean
currentTransaction
Section titled “currentTransaction”Get Signature
Section titled “Get Signature”get currentTransaction():
UndoTransaction|null
Returns
Section titled “Returns”UndoTransaction | null
lastRecordedTransaction
Section titled “lastRecordedTransaction”Get Signature
Section titled “Get Signature”get lastRecordedTransaction():
UndoTransaction|null
Returns
Section titled “Returns”UndoTransaction | null
Methods
Section titled “Methods”beginTransaction()
Section titled “beginTransaction()”beginTransaction(
metadata?):void
Parameters
Section titled “Parameters”metadata?
Section titled “metadata?”unknown
Returns
Section titled “Returns”void
clearRedo()
Section titled “clearRedo()”clearRedo():
void
Returns
Section titled “Returns”void
clearUndo()
Section titled “clearUndo()”clearUndo():
void
Returns
Section titled “Returns”void
endTransaction()
Section titled “endTransaction()”endTransaction():
UndoTransaction|null
Returns
Section titled “Returns”UndoTransaction | null
pause()
Section titled “pause()”pause():
void
Returns
Section titled “Returns”void
record()
Section titled “record()”record(
envelope,capture?):void
Parameters
Section titled “Parameters”envelope
Section titled “envelope”capture?
Section titled “capture?”Returns
Section titled “Returns”void
redo()
Section titled “redo()”redo():
Envelope|null
Returns
Section titled “Returns”Envelope | null
reject()
Section titled “reject()”reject(
ids):void
Parameters
Section titled “Parameters”readonly EditId[]
Returns
Section titled “Returns”void
remote()
Section titled “remote()”remote(
envelope):void
Parameters
Section titled “Parameters”envelope
Section titled “envelope”Returns
Section titled “Returns”void
resume()
Section titled “resume()”resume():
void
Returns
Section titled “Returns”void
seal()
Section titled “seal()”seal():
void
Returns
Section titled “Returns”void
setActive()
Section titled “setActive()”setActive(
transaction,active):Envelope
Parameters
Section titled “Parameters”transaction
Section titled “transaction”active
Section titled “active”boolean
Returns
Section titled “Returns”setTransactions()
Section titled “setTransactions()”setTransactions(
changes):Envelope
A branching graph can set several departing/arriving edges in one command.
Parameters
Section titled “Parameters”changes
Section titled “changes”readonly object[]
Returns
Section titled “Returns”state()
Section titled “state()”state():
UndoState
Returns
Section titled “Returns”undo()
Section titled “undo()”undo():
Envelope|null
Returns
Section titled “Returns”Envelope | null