The svg-draw-component allows a user to draw SVG shapes on a HTML5 canvas using Paper.js, a canvas-wrapping library. Users have the option to overlay the canvas on images, an OpenSeadragon instance, or a plain canvas (default). To try out the component on your own, there are three basic steps:
<script type="text/javascript">
var svgdraw;
$(function() {
svgdraw = new IIIFComponents.SvgDrawComponent({
element: "#svgdraw",
subjectType: "" // other options are "image" or "openseadragon"
subject: "" // other options your imageID or osd config object
});
});
</script>