Interface: CommandBatch
Defined in: diagram/history.ts:228
Provide the means to store or discard command batch.
See
Properties
Property | Modifier | Type | Description |
---|---|---|---|
| Command history which owns this batch. |
Methods
discard()
discard():
void
Defined in: diagram/history.ts:244
Discards the batch, throwing away all nested commands, so they cannot be undone.
This is useful when performing state changes on temporary items to avoid being able to revert it.
Returns
void
store()
store():
void
Defined in: diagram/history.ts:237
Stores the batch, combining the nested command sequence into a single revertible command.
Returns
void