News for hackers. Stuff that matters.
Re:Show HN: GraphicsJS, New Powerful Free Open-Source JavaSc... by coldtea on Friday September 16, 2016 @05:56AM (#12512896)
>I'm interested, why does SVG seem to de the default choice for web graphics?

Because SVG IS web graphics (emphasis on "web"). It lives on the DOM, it's objects have event callbacks, can be styled in CSS-fashion, have nested items, links, etc.

In contrast, Canvas is just a bitmap pane that you can draw own in an imperative way through a JS API -- and everything above that has to be programmed by you or a third party lib in an ad-hoc way.

There are no comments on this comment yet.