React API
React-specific API documentation for Annota.
React Hooks
Section titled “React Hooks”| Hook | Description |
|---|---|
| useAnnotator | Access the annotator instance |
| useAnnotations | Get all annotations |
| useSelection | Get selected annotations |
| useTool | Activate annotation tools |
| useHistory | Access undo/redo history |
| useLayers | Get all layers |
| useLayerManager | Manage layers |
React Components
Section titled “React Components”| Component | Description |
|---|---|
| AnnotaProvider | Provides annotation context |
| AnnotaViewer | OpenSeadragon viewer wrapper |
| Annotator | Annotation overlay layer |
| AnnotationPopup | Display annotation information |
| ContextMenu | Context menu for annotations |