paulkaefer / read-the-world

Webpage/SVG generator for reading books from every country of the world.
http://paulkaefer.com/read-the-world/
Creative Commons Zero v1.0 Universal
2 stars 0 forks source link

add function to export .png #24

Open paulkaefer opened 2 years ago

paulkaefer commented 2 years ago

Currently, I take a screenshot to generate images/map.png. Isn't there a way to have D3 export to a file, instead of writing to the webpage? Or is there a JavaScript function that will export the created SVG object as an .svg or PNG?