I'm planning to make a fairly simple drawing app in the browser. I'm looking for a Javascript library that:
- Has a permissive license (MIT or BSD, GPL is okay but not preferred)
Makes it simple to draw on the canvas, for example something like this:
canvas.init($("#my_canvas"), {"mode": "drawing"});
Supports touch out of the box (bonus points for multitouch/zoom)
Bonus points for doing it in a vector-style format
Getting the paths/points from the canvas should be possible/easy
I've found a couple that look promising (EaselJS, FabricJS), but I haven't investigated too deeply yet. For an existing example of the kind of thing I'm interested in, Xournal is a desktop version, though I'm also rather interested in the idea of infinite canvas (see MyPaint, though it's raster-only).