Class MatrixCommand
Defined in: MatrixCommand.js.
Constructor Attributes | Constructor Name and Description |
---|---|
MatrixCommand(property, previousValue, currentValue, previousValue, currentValue)
Object that is used to undo actions when anything is moved, rotated or resized
|
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
MatrixCommand(property, previousValue, currentValue, previousValue, currentValue)
Object that is used to undo actions when anything is moved, rotated or resized
- Parameters:
- property
- {Number} History.MATRIX
- previousValue
- {Matrix} the matrix to revert to
- currentValue
- {Matrix} the matrix we now have
- 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