I am trying to develop a drawing tool using HTML 5 canvas. When I searched for a good HTML 5 JavaScript library, most of them where focused just on generating static images or animations.
What I am looking for is the ability to draw primitive shapes like rectangle, circle etc. and also add click events to them. I should also be able to transform the shapes using handles.
I know I may need to customize some framework, but still.. if there is an existing framework with these features it would be good to know.
I read in some places that SVG will be good for all the interactive stuff I am planning to do more than canvas. Would that be more appropriate?
Paper.js
According to their website:
and
three.js
Another graphics library in JavaScript is three.js. According to their website:
I’m not sure how good the support is for handling mouse events in the library. The following SO question deals with an example for it: Event handling for geometries in Three.js?