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()"?
Show HN: Paths.js – Generate SVG paths for geometric shapes
21–29 of 29 posts
Re: Show HN: Paths.js – Generate SVG paths for geometric shapes
#22Looks 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.
Re: Show HN: Paths.js – Generate SVG paths for geometric shapes
#23Looks 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
#24Earlier 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.
Re: Show HN: Paths.js – Generate SVG paths for geometric shapes
#25Re: Show HN: Paths.js – Generate SVG paths for geometric shapes
#26Re: Show HN: Paths.js – Generate SVG paths for geometric shapes
#27There'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.
Re: Show HN: Paths.js – Generate SVG paths for geometric shapes
#28I just recently wrote something that does the lowest layer of this (generating SVG path strings) and didn't consider it "Show HN" worthy... https://github.com/akx/gravelly.js
(And no, this isn't an attempt at an underhanded sneaky "Show HN", just a thought.)