Svelte OpenSeadragon
This guide explains how to annotate a zoomable image using OpenSeadragon, Annotorious and Svelte.
Quick Start
Below is a basic example to get you started. The code creates an OpenSeadragon viewer instance, initializesAnnotorious, loads annotations from a file.
Step-by-Step Guide
-
Create a container DIV to hold your OpenSeadragon viewer, and bind it to a variable.
-
When your component mounts, initialize an OpenSeadragon viewer instance in the container DIV.
-
Use the
<OpenSeadragonAnnotator>
component from the@annotorious/svelte
package to initialize Annotorious on your viewer instance. Optionally, you can bind theanno
annotator instance to a variable. -
Use the
anno
API to load annotations from a file.