nytimes / svg-crowbar

Extracts an SVG node and accompanying styles from an HTML document and allows you to download it all as an SVG file.
https://nytimes.github.io/svg-crowbar/
MIT License
839 stars 153 forks source link

Custom filename for download #12

Closed hugolpz closed 7 years ago

hugolpz commented 10 years ago

It could be good to add a way so the downloaded file have a custom name, by example from an attribute title within of the <svg></svg> element, or with a var svg-crowbar-name = "New_York_2014_elections_(NYT).svg";. Then, D3js devs will add that to their code.

hugolpz commented 7 years ago

To close. The id already does that. See also this PR