An Annotorious plugin that provides APIs to draw circular annotations on OpenSeadragon viewer.
Note: Presently this does not work with minified version of annotorious library.
To draw circular annotations on openseadragon viewer, include '/css/annotorious.css'
and '/annotorious-dev.js'
file as per the example into the project after including OpenSeadragon library.
Then include '/circular-annotation-plugin.js'
file.
<link type="text/css" rel="stylesheet" href="css/annotorious.css" />
<script src="annotorious-dev.js"></script>
<script src="circular-annotation-plugin.js"></script>
Then it can be used like this:
anno.makeAnnotatable(osd);
function activateCircularAnnotation() {
anno.selectTypeAndActivateSelector('circle');
}
function activateRectAnnotation() {
anno.selectTypeAndActivateSelector('rect');
}