Live data from Hacker News

Show HN: Paths.js – Generate SVG paths for geometric shapes

github.com

21–29 of 29 posts

Re: Show HN: Paths.js – Generate SVG paths for geometric shapes

#21

So is the primary purpose of the library to save you from having to type "M 0 0 L 1 0 L 1 1", instead letting you type "Path().moveto(0, 0).lineto(1, 0).lineto(1, 1).print()"?

Yes, which is actually very useful once you start doing things like working with variables.

Re: Show HN: Paths.js – Generate SVG paths for geometric shapes

#22

Looks nice, but I would really prefer the samples on the sample-site to be in plain Javascript. Coffescript isn't for everyone, on the web Javascript should be considered the lingua franca. By all means, keep the Coffescript if you like, just don't limit it to just a non-standard language web-wise. I can test JS in my browser, with coffescript... Not so much.

All of the example code appears to be JS?

Re: Show HN: Paths.js – Generate SVG paths for geometric shapes

#23
post #22

Looks nice, but I would really prefer the samples on the sample-site to be in plain Javascript. Coffescript isn't for everyone, on the web Javascript should be considered the lingua franca. By all means, keep the Coffescript if you like, just don't limit it to just a non-standard language web-wise. I can test JS in my browser, with coffescript... Not so much.

All of the example code appears to be JS?

Parent is referring to the "demo application", though I personally disagree that one should worry about it on the demo app. The docs sure, but the demo app is readable enough even if you're not a coffeescript aficionado.

Re: Show HN: Paths.js – Generate SVG paths for geometric shapes

#24
post #7
post #3

Earlier quoted context omitted.

Hi, you can find a working demo on http://andreaferretti.github.io/paths-js-demo/ It is mentioned in the README (How does it look like?) but maybe it is not apparent enough

I reccomend changing the title of that section to either "How does it look?" or "What does it look like?" "How does it look like" is a minor but grating error to native english speakers. The rest of the document looks good, as does the library.

Interestingly, I've been hearing a lot of native speakers making the same mistake lately. Maybe it's because I live in San Francisco, and we hear foreigners make this mistake all-day-long - now it's rubbing off on people.

Re: Show HN: Paths.js – Generate SVG paths for geometric shapes

#27
This is a brilliantly conceived library. It does one thing well and even within that, decomposes into clear layers of abstraction. I've been using it at work and found the experience much nicer than the various high-level charting libs built on top of d3.

There's a nice example of using it with a declarative templating library like react or ractive.js here: http://mlarocca.github.io/01-22-2014/pathsjs_ractive.html

Only complaint is that some of the charts are a bit lacking in features (no stacked bar charts, for example). But it looks easy to hack on, which I'd take over a zillion different options.

Post reply on HN