R
C

CommandHistory

v0.0.8tested

Command history with undo/redo/batch support

Signature

ts
class CommandHistory extends BaseCommandHistory<Command>

Methods

execute
ts
execute(command: Command): void
ParameterTypeDescription
commandCommand
undo
ts
undo(): boolean
Returnsboolean
redo
ts
redo(): boolean
Returnsboolean
batch
ts
batch(commands: Command[]): void
ParameterTypeDescription
commandsCommand[]