Class: canvas

canvas

new canvas(div_attach)

Creates the rendering canvas
Parameters:
Name Type Description
div_attach string The div element where the canvas lives
Source:

Methods

AttachAnnotation(anno)

Attach the annotation to the canvas.
Parameters:
Name Type Description
anno annotation The annotation to attach
Source:

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
Source:

UnhideAllAnnotations()

Unhide all annotations:
Source: