Skip to content

An Annotorious plugin that provides APIs to draw circular annotations on OpenSeadragon viewer.

License

Notifications You must be signed in to change notification settings

harshalitalele/openseadragon-circular-annotation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

openseadragon-circular-annotation (Under development)

An Annotorious plugin that provides APIs to draw circular annotations on OpenSeadragon viewer.

How to Use:

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');
}

Demo:

Demo

About

An Annotorious plugin that provides APIs to draw circular annotations on OpenSeadragon viewer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published