Live data from Hacker News

Snap – A JavaScript SVG Library

snapsvg.io

21–30 of 60 posts

Re: Snap – A JavaScript SVG Library

#21
Nice and being made by Raphael author certainly does not hurt, still, the examples section could really do with bit of work: out of the 4 examples only 3 works proper for me and only the simply coffee maker and mascot bits are really smooth. The game is jerking about and not working proper on FF24: http://snapsvg.io/demos/#game

Re: Snap – A JavaScript SVG Library

#22
post #11

This is awesome. One of the problems I've had with Raphael is that it's explicitly not supposed to be an SVG library, so SVG-specific features tend to go unsupported. SVG groups are probably the most obvious example of this.

Without knowing this fact about Raphael, I was about to reply to another comment prematurely. I was going to complain that having the same author as Raphael doesn't explain why Snap.js exists, instead of a better version of Raphael.

Thank you.

Re: Snap – A JavaScript SVG Library

#23
post #8

Libraries like this come up on HN on a regular basis it seems. As I read through the site I kept asking myself "this looks great and all, but can I depend on it in the long term?". Then I came across the "about" section where it says it was created by the creator of Raphael.js[1]. Say no more.. I'm in! [1] http://raphaeljs.com/

I came across the snapsvg announcement in a Tweet by the creator: https://twitter.com/DmitryBaranovsk/status/39305298289322393... > Here we go: new SVG library from Adobe by yours truly Snap.svg. Snapsvg.io I didn't know Dmitry was Raphael's creator nor that he was working for Adobe. So all I saw was "Adobe" and thought "Flash" and then, "Nah"

Adobe seem to put out some pretty sweet HTML5 stuff. They know flash is going and are jumping on the next big thing in a healthy way.

That IDE he's using in the video is called brackets[1] and it's originally from adobe. I'm watching it closely to jump from sublime to it.

[1]: http://www.brackets.io/

Re: Snap – A JavaScript SVG Library

#25
SVG integration with JS and the DOM has been elusive and underdeveloped in the past. Between this and d3, there's finally a lot happening in this space. These are very slick libs, they are thorough and comprehensive with very sophisticated authors.

I have capable and deep server-side SVG generation libraries I've written for CAD/CAM applications. I've always wanted to use them for generating all-or-mostly SVG web UIs. I can generate an SVG view straight from a model, and it's not an HTML+CSS cludge. The SVG's relationship with the data object is much more clear. With better JS manipulation support from libraries like this, the possibility of a rich and full-featured implementation is closer.

Not to mention that the browser vendors are FINALLY putting effort into truly supporting SVG, after 10+ years. It's good to prod them in this direction by demoing. Maybe we can help encourage an SVG-support vendor battle like what's going on for JS engines.

Time for me to get started on open sourcing my libs. They need to be completely broken out and made more general but I think it's time to join in and support these excellent efforts.

Re: Snap – A JavaScript SVG Library

#27
post #16

Earlier quoted context omitted.

Suffer the same fate as Flash? The fate of sustaining comfortably for more than a good decade you mean?

?? I never wrote "Suffer the same fate as Flash". Please reread my comment. I was referring to the previous poster's apparent pain with Flash. Not the fate of Flash itself.

Sorry then, I guess I picked up a subtext which you (or the grandparent post) did not intend.

Re: Snap – A JavaScript SVG Library

#28
post #19

today i recovered this http://web.archive.org/web/20080426161839/http://www.fragmen... via waybackmachine. i coded this in 2006 (its optimized for IE6 and the (at that time cutting edge now for a long time deprecated) adobe svg plugin). basically a LOGO like language in svg and js. the good news is: it still works (webkit), the bad news is that i still dont believe that SVG is the future. fool me once ...

Care to share why?

Re: Snap – A JavaScript SVG Library

#29

Libraries like this come up on HN on a regular basis it seems. As I read through the site I kept asking myself "this looks great and all, but can I depend on it in the long term?". Then I came across the "about" section where it says it was created by the creator of Raphael.js[1]. Say no more.. I'm in! [1] http://raphaeljs.com/

Why not just release a new version of RaphaelJS and stop supporting anything before IE9?

He now has two very similar (but not compatible) libraries to support.

Raphaël.js is great, btw.

Re: Snap – A JavaScript SVG Library

#30
post #4

I find a bit strange not to have contributed in svg.js ( http://www.svgjs.com/ ). Not Invented Here ?

The author actually just gave a talk (actually finishing it) and he explained: he did not like the code style (svg.js does not use semicolons at the end of the lines).

Well that is what he said. But I believe having created Raphael.js in 2008, much before svg.js existed, also influenced his decision.

Post reply on HN