dwv.tool. ChangeGroupCommand

new ChangeGroupCommand(name, func, startAnchor, endAnchor, layer, viewController, style)

Change group command.

Parameters:
NameTypeDescription
namestring

The shape display name.

funcobject

The change function.

startAnchorobject

The anchor that starts the change.

endAnchorobject

The anchor that ends the change.

layerobject

The layer where to change the group.

viewControllerobject

The associated viewController.

styleobject

The app style.

Methods

execute()

Execute the command.

getName() → {string}

Get the command name.

Returns:

The command name.

Type: 
string

onExecute(_event)

Handle an execute event.

Parameters:
NameTypeDescription
_eventobject

The execute event with type and id.

onUndo(_event)

Handle an undo event.

Parameters:
NameTypeDescription
_eventobject

The undo event with type and id.

undo()

Undo the command.

Events

drawchange

Draw change event.

Type:
  • object