AddAnnotationCommand

Add annotation command.

Constructor

new AddAnnotationCommand(annotation, drawController)

Parameters:
NameTypeDescription
annotationAnnotation

The annotation to add.

drawControllerDrawController

The associated draw controller.

Classes

AddAnnotationCommand

Methods

execute()

Execute the command.

getName() → {string}

Get the command name.

Returns:

The command name.

Type: 
string

undo()

Undo the command.