DrawGroupCommand

dwv.tool. DrawGroupCommand

new DrawGroupCommand(group, name, layer, silent)

Source:

Draw group command.

Parameters:
Name Type Description
group object

The group draw.

name string

The shape display name.

layer object

The layer where to draw the group.

silent boolean

Whether to send a creation event or not.

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

drawcreate

Source:
Properties:
Name Type Description
id number

The id of the create draw.

Draw create event.

Type:
  • object