d3-save-svg icon indicating copy to clipboard operation
d3-save-svg copied to clipboard

Extracts an SVG node and accompanying styles from an HTML document and allows you to download it all as an SVG file.

Results 7 d3-save-svg issues
Sort by recently updated
recently updated
newest added

With a huge graph (from react d3 lib) is in a svg, the exported graph is truncated ![image](https://user-images.githubusercontent.com/8735746/102370404-50173880-3fbd-11eb-8372-c428521985db.png)

Hi, Thanks for the great work - it's been a awesome start to a problem I'm working on. I'm adding this issue as I didn't want to push these changes...

See http://shubhanshu.com/svg-crowbar/ and http://bl.ocks.org/deanmalmgren/22d76b9c1f487ad1dde6

enhancement

Most of the time is spent traversing the elements of the SVG and embedding the styles to make sure they are saved with the SVG. This is pretty slow. I...

enhancement

`embedRasterImages` currently is set up such that you specify an image element with a link. Then in your javascript, you convert it to the data URI. This might be more...

enhancement

Right now the tests are just to make sure `save` accepts SVG element and throws an error when the element is not an SVG. Probably should test the other components.

enhancement

Right now the code embeds external CSS as an element style. The problem is that after downloading, the style remains and can screw with interactive visualizations which change attributes, not...

enhancement