News for hackers. Stuff that matters.
Re:In defense of <canvas> by euroclydon on Monday May 06, 2013 @02:00PM (#5663723)
If you want a scene graph, have you evaluated fabric.js? It's a popular canvas library, providing mouse events, and import/export to SVG.
Re:In defense of <canvas> by vidarh on Tuesday May 07, 2013 @06:03AM (#5667276)
Caveat worth keeping in mind, since you mention SVG, is that Fabric is still rather picky about the SVG it handles. I was playing around with it for some very simple SVG symbols that rendered fine using built in SVG support in both Chrome, Firefox and rendered to PNG via rsvg, and loaded fine in Inkscape, and had to manually tweak the svg quite a bit before Fabric would handle it. (I don't remember the exact problem, but think it was an issue with stacking transformations including "translate"). I'm sure that will improve over time, but it was a bit of a nuisance.

Other than that, it seems to work great.

Re:In defense of <canvas> by plutr on Monday May 06, 2013 @03:14PM (#5664161)
The browser already has a scene graph library, it's called the DOM.
Re:In defense of <canvas> by babuskov on Monday May 06, 2013 @04:38PM (#5664620)
Looks interesting. Thanks.