# 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:
  - canvas.js, line 9

### Methods

#### AttachAnnotation(anno)

Attach the annotation to the canvas.

##### Parameters:

Name | Type | Description
--- | --- | ---
`anno` | annotation | The annotation to attach

Source:
  - canvas.js, line 26

#### 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:
  - canvas.js, line 35

#### UnhideAllAnnotations()

Unhide all annotations:

Source:
  - canvas.js, line 60