ModelTransactionCommand
Defined in: undo/ModelTransactionCommand.ts:9
A command that records model changed events during a transaction and reverses them on undo (GoJS-compatible: model edits within a transaction are undoable).
Implements
Sección titulada «Implements»Constructors
Sección titulada «Constructors»Constructor
Sección titulada «Constructor»new ModelTransactionCommand(
model,events,name?):ModelTransactionCommand
Defined in: undo/ModelTransactionCommand.ts:14
Parameters
Sección titulada «Parameters»string = 'transaction'
Returns
Sección titulada «Returns»ModelTransactionCommand
Methods
Sección titulada «Methods»describe()
Sección titulada «describe()»describe():
string
Defined in: undo/ModelTransactionCommand.ts:135
Get a description of the command.
Returns
Sección titulada «Returns»string
Implementation of
Sección titulada «Implementation of»execute()
Sección titulada «execute()»execute():
void
Defined in: undo/ModelTransactionCommand.ts:20
Execute the command.
Returns
Sección titulada «Returns»void
Implementation of
Sección titulada «Implementation of»undo():
void
Defined in: undo/ModelTransactionCommand.ts:28
Undo the command.
Returns
Sección titulada «Returns»void