Fabricjs Overlay for OpenSeadragon
An OpenSeadragon plugin that adds Fabric.js overlay capability.
Compatible with OpenSeadragon 2.0.0 or greater.
Documentation
To use, include the openseadragon-fabricjs-overlay.js
and fabric.adapted.js
file after openseadragon.js
on your web page.
To add fabricjs overlay capability to your OpenSeadragon Viewer, call fabricjsOverlay()
on it. This will return a new object with the following methods:
-
fabricCanvas()
: Returns fabricjs canvas that you can add elements to -
resize()
: If your viewer changes size, you'll need to resize the fabricjs overlay by calling this method.
See demo or demo.html in github repository for an example of it in use.