runemadsen / rune.js

A JavaScript library for programming graphic design systems with SVG
http://runemadsen.github.io/rune.js
MIT License
654 stars 35 forks source link

do you have advice on saving to svg? #11

Closed sklise closed 8 years ago

sklise commented 8 years ago

Here's a gist I wrote to get output from a Rune to save to and svg.

I had trouble with the getEl() function, when I passed it to vdom-to-html I got empty string :cry: so I found .renderer.tree which worked.

Is there a better way you've used to save to files?

runemadsen commented 8 years ago

Good question. My students use the browser while developing their code, and then use SVG Crowbar (a Chrome extension that will download any SVG's on a page) to get their results to a singular SVG file.

http://nytimes.github.io/svg-crowbar/

Will that work?