# Fabricjs Overlay for OpenSeadragon

An [OpenSeadragon](http://openseadragon.github.io) plugin that adds fabricjs overlay capability.

Compatible with OpenSeadragon 2.0.0 or greater.

## Documentation

To use, include the `openseadragon-fabricjs-overlay.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.html for an example of it in use. 


# Fabricjs Overlay for OpenSeadragon

An OpenSeadragon plugin that adds fabricjs overlay capability.

Compatible with OpenSeadragon 2.0.0 or greater.

## Documentation

To use, include the `openseadragon-fabricjs-overlay.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.html for an example of it in use. 


Revert "add link to OpenSeadragon github"
Revert "add link to OpenSeadragon github"

This reverts commit 5e2f379310a4e7c3af450e189aee7b444249c6c5.
