Class CreateCommand
Defined in: CreateCommand.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CreateCommand(property, previousValue, currentValue, previousValue, currentValue)
Object that is used to undo actions when figures/connectors are created
|
Method Attributes | Method Name and Description |
---|---|
redo()
This method got called every time the Command must execute
|
|
undo()
This method should be called every time the Command should be undone
|
Class Detail
CreateCommand(property, previousValue, currentValue, previousValue, currentValue)
Object that is used to undo actions when figures/connectors are created
- Parameters:
- property
- {Null}
- previousValue
- {Number} the figure/connector ID to delete
- currentValue
- {Array} [createFigureFunction,Event]
- previousValue
- currentValue
Method Detail
redo()
This method got called every time the Command must execute
undo()
This method should be called every time the Command should be undone