Constructor
new AnnotationLayout(viewer, optsopt)
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
OpenSeadragon.Viewer | OpenSeadragon viewer (use viewer.element and viewer.container). | |||||||||||||||||||||||||||||||||||||||||
opts |
Object |
<optional> |
All optional.
Properties
|
- Source:
Methods
arePanelsVisible() → {boolean}
Whether toolbar/layer panels are in the "open" state (same as after pencil toggle).
- Source:
Returns:
- Type
- boolean
destroy()
Remove the grid from the viewer, remove the toggle button, detach listeners.
Does not destroy toolbar or layer UI; caller owns those.
- Source:
getPencilViewerButton() → {Object|null}
OpenSeadragon viewer button for the annotation toggle (pencil), or null if addButton was false.
- Source:
Returns:
- Type
- Object | null
togglePanelsFromButton()
Same behavior as clicking the pencil viewer button (toggle toolbar/layer visibility per options).
- Source: