Class ZOrderCommand
Defined in: ZOrderCommand.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
ZOrderCommand(property, previousValue, currentValue, previousValue, currentValue)
Object that is used to undo actions when figures are moved from front to back
|
| 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
ZOrderCommand(property, previousValue, currentValue, previousValue, currentValue)
Object that is used to undo actions when figures are moved from front to back
- Parameters:
- property
- {Null}
- previousValue
- {Number} index
- currentValue
- {Number} index
- 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