new MoveGroupCommand(group, name, translation, layer)
- Source:
Move group command.
Parameters:
Name | Type | Description |
---|---|---|
group |
object | The group draw. |
name |
string | The shape display name. |
translation |
object | A 2D translation to move the group by. |
layer |
object | The layer where to move the group. |
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
drawmove
- Source:
Properties:
Name | Type | Description |
---|---|---|
id |
number | The id of the create draw. |
Draw move event.
Type:
- object