Skip to content

Commit

Permalink
Removed d3 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pmkroeker authored Nov 13, 2018
1 parent 2f96760 commit 49131f3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Rasterize SVG Elements for Download as PNG

I needed an easy way to download SVG images created in [D3](https://d3js.org/) as PNG. I found that Mike Bostock made an [Observable Notebook](https://beta.observablehq.com/@mbostock/saving-svg) which solved the exact problem. the only issue was that some of the ways Observable handles DOM manipulation is not directly compatible with the browser. I modified the original code to be browser compatible.

**Currently it requires that d3 is declared globally, but that may change in future updates.**
**Below example also uses [FileSaver.js](https://github.com/eligrey/FileSaver.js) to save the blob, but it should be compatible with any blob saving library or implementation**

## Methods
Expand Down

0 comments on commit 49131f3

Please sign in to comment.