Live data from Hacker News

Snap – A JavaScript SVG Library

snapsvg.io

11–20 of 60 posts

Re: Snap – A JavaScript SVG Library

#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.

Re: Snap – A JavaScript SVG Library

#12
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"

I hear you on the Flash stigma, but you have to figure an open source library written in a widely used language to interact with an open standard that is largely adopted won't make you suffer the same as Flash?

Re: Snap – A JavaScript SVG Library

#16
post #8

Earlier quoted context omitted.

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"

I hear you on the Flash stigma, but you have to figure an open source library written in a widely used language to interact with an open standard that is largely adopted won't make you suffer the same as Flash?

Suffer the same fate as Flash?

The fate of sustaining comfortably for more than a good decade you mean?

Re: Snap – A JavaScript SVG Library

#17

This library really looks great; I was wondering if charts (financial, statistics,...) are supported, for example, by connecting to data sources in JSON, etc

I wouldn't mind taking a closer look at that. They do have a data API to store individual key value pairs http://snapsvg.io/docs/#Element.data

Definitely different than what I'm used to in D3js, but worst case scenario you would have to loop through each key value pair. Worth testing out.

Re: Snap – A JavaScript SVG Library

#18
post #9
post #6

I feel like whenever one of these gets posted, it should have a compare / contrast with d3.js

The OP's description makes it pretty clear. This is a library that seems specifically geared toward those who create SVGs in programs like Illustrator. That it is described as "jQuery for SVGs" should imply that it serves a different need than D3, as one usually does not call or think of D3 as the "jQuery for SVG data visualizations"

The moment we start calling things "the jQuery of..." we're no better than startups that are "the Facebook of..." :)

Re: Snap – A JavaScript SVG Library

#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 ...

Re: Snap – A JavaScript SVG Library

#20
post #16

Earlier quoted context omitted.

I hear you on the Flash stigma, but you have to figure an open source library written in a widely used language to interact with an open standard that is largely adopted won't make you suffer the same as Flash?

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.
Post reply on HN