Class GroupCommand
Defined in: GroupCommand.js.
Constructor Attributes | Constructor Name and Description |
---|---|
GroupCommand(objectId, typeOfObject, property, previousValue, currentValue)
Object that is used to undo actions when figures are grouped or ungrouped
|
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
GroupCommand(objectId, typeOfObject, property, previousValue, currentValue)
Object that is used to undo actions when figures are grouped or ungrouped
- Parameters:
- objectId
- {Numeric} - the id of the object we will operate on
- typeOfObject
- {Numeric} - the type of the object we will operate on (ex. History.OBJECT_FIGURE)
- property
- {String} - the property of the object we are observing
- previousValue
- {Object} - the pervious value of the object
- currentValue
- {Object} - the current value of the object
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