Constructor
new AnnotationUI(annotationToolkit, toolset, opts)
Creates an instance of AnnotationUI.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
annotationToolkit |
Object | The annotation toolkit object. | ||||||||||||||||||||||||||||||||||||||||||||||||||
toolset |
AnnotationToolset | The toolset (owned by the toolkit). | ||||||||||||||||||||||||||||||||||||||||||||||||||
opts |
Object | The options for the AnnotationUI.
Properties
|
- Source:
Methods
areAnnotationPanelsVisible() → {boolean}
Whether annotation panels are open (pencil toggle state).
- Source:
Returns:
- Type
- boolean
destroy()
Destroys the AnnotationUI and cleans up its resources. Does not destroy the toolkit's toolbar or layer UI.
- Source:
getViewerToolbarButtons() → {Object}
Viewer toolbar buttons managed by this UI (for host integrations such as ConfigurationWidget addSection).
- Source:
Returns:
OpenSeadragon button objects with `.element`, or null entries when not created.
- Type
- Object
hideToolbar()
Hide the toolbar
- Source:
hideUI()
Hide the LayerUI interface
- Source:
openFileDialog()
Opens the save/load file dialog (no-op if addFileButton was false).
- Source:
showToolbar()
Show the toolbar
- Source:
showUI()
Show the LayerUI interface
- Source:
toggleAnnotationPanels()
Same as clicking the pencil button: toggles toolbar/layer visibility per constructor options.
- Source: