svgdotjs / svg.js

The lightweight library for manipulating and animating SVG
https://svgjs.dev
Other
11.04k stars 1.07k forks source link

Save as .svg file #1098

Closed bejucoo closed 4 years ago

bejucoo commented 4 years ago

Hello, I'm sorry to open this but I don't know what else to do. I tried asking in stackoverflow.

I want to save the drawing I'm generating with svg.js as a .svg file. I read this issue but I think svg.export.js is obsolete. I also read the Import/Export page in the docs but I'm not sure how to use the svg() method to export the generated SVG, neither did I find any examples of how to use it for this purpose.

Fuzzyma commented 4 years ago

I posted an answer on stackoverflow. You were right to post it there!