Constructor
new ChangeGroupCommand(name, factory, startAnchor, endAnchor, layer, viewController, style)
Parameters:
Name | Type | Description |
---|---|---|
name | string | The shape display name. |
factory | object | The shape factory. |
startAnchor | object | The anchor that starts the change. |
endAnchor | object | The anchor that ends the change. |
layer | DrawLayer | The layer where to change the group. |
viewController | ViewController | The associated viewController. |
style | Style | The app style. |
Classes
Methods
execute()
Execute the command.
getName() → {string}
Get the command name.
Returns:
The command name.
- Type:
- string
onExecute(_event)
Handle an execute event.
Parameters:
Name | Type | Description |
---|---|---|
_event | object | The execute event with type and id. |
onUndo(_event)
Handle an undo event.
Parameters:
Name | Type | Description |
---|---|---|
_event | object | The undo event with type and id. |
undo()
Undo the command.
Events
drawchange
Draw change event.
Type:
Properties- object
Name | Type | Description |
---|---|---|
id | string | The id of the created draw. |
srclayerid | string | The id of the layer of the draw. |
dataid | string | The associated data id. |