Enables the drawing of SVG shapes on HTML5 canvases, and can be used as an overlay on top of images, deep zoom interfaces, and beyond

https://github.com/viewdir/svg-draw-component

svg-draw-component (example) allows you to draw SVG shapes on HTML5 canvases (using Paper.js), and can be used as an overlay on top of images, deep zoom interfaces, and beyond. This component simply publishes events as shapes are added, modified, and removed from the canvas. The events contain information that other components (i.e. an annotator or animator component) might find useful. Hence, the svg-draw-component is useful outside the IIIF context, but it takes the needs of IIIF’s approach to annotations into consideration when publishing events.

Play with it more using this jsbin.

Tags: components