new ChangeGroupCommand(name, func, startAnchor, endAnchor, layer, viewController, style)
- Source:
Change group command.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The shape display name. |
func |
object | The change function. |
startAnchor |
object | The anchor that starts the change. |
endAnchor |
object | The anchor that ends the change. |
layer |
object | The layer where to change the group. |
viewController |
object | The associated viewController. |
style |
object | The app style. |
Methods
execute()
- Source:
Execute the command.
Fires:
getName() → {string}
- Source:
Get the command name.
Returns:
The command name.
- Type
- string
onExecute(_event)
- Source:
Handle an execute event.
Parameters:
Name | Type | Description |
---|---|---|
_event |
object | The execute event with type and id. |
onUndo(_event)
- Source:
Handle an undo event.
Parameters:
Name | Type | Description |
---|---|---|
_event |
object | The undo event with type and id. |
undo()
- Source:
Undo the command.
Fires:
Events
drawchange
- Source:
Draw change event.
Type:
- object