new canvas(div_attach)
Creates the rendering canvas
Parameters:
Name | Type | Description |
---|---|---|
div_attach |
string | The div element where the canvas lives |
Methods
AttachAnnotation(anno)
Attach the annotation to the canvas.
Parameters:
Name | Type | Description |
---|---|---|
anno |
annotation | The annotation to attach |
DetachAnnotation(anno_id)
Detach annotation from the canvas. Given the annotation ID, the
corresponding annotation is located, detached, and returned.
Parameters:
Name | Type | Description |
---|---|---|
anno_id |
integer | id of the annotation to dettach |
UnhideAllAnnotations()
Unhide all annotations: