I am looking for a framework / library that allows me to perform several tasks on HTML5-Canvas.
I need mechanisms to access objects after they are drawn so that they can be modified and parsed in XML. In addition, I need to be able to drag certain objects with the cursor.
I have already tried several frameworks, but none of them makes it possible to assign onDrag-Listeners to an object (only for canvas). It may be possible to implement it manually, but it gets complicated, since I have to deal with much more than one object on the canvas. In addition, performance is an important criterion, so it would be nice if I could use optimized library functions rather than my own pathetic code. I know SVG as an alternative, so please don't try to push me that way. I need to do this using canvas to compare the characteristics of both.
So, I think what I'm looking for is a structure that allows me to assign Listeners to canvas-objects. Animation skills are not so important as everything will focus on user input with the mouse.
Does anyone know of a structure / library that fits my needs and can share my experience? I would be glad if I had not been forced to test all the frameworks and libraries for HTML5-Canvas.
Thanks in advance.
EDIT: One thing I forgot to mention: besides geometric objects, I also need to be able to draw tracks (like scribbles) and analyze them. Although there is no need for them to have handlers, I would be happy if I did not have to implement this myself outside the library.
j0ker source share