Please recommend simple lightweight opensource 2D graphics js library that allows to do this:
-
Draw primitives on canvas: circle, line (with width), polygon, text, put an icon.
-
All of the primitives should be represented as objects that I can dynamically change.
-
Primitives should be UI responsive (with methods like .on('click', clbk)).
-
Canvas properties like scaling, offset can be dynamically changed.
The closest things I could find:
-
ptsjs.org - cannot put an icon (vector or raster) on the canvas, UI is in 'Experimental' stage.
-
jsgl.org - seems to have everything I need, but it's last update was in 2013. I don't want to use dead projects.
Aucun commentaire:
Enregistrer un commentaire