y-takey / atom-mermaid

Preview mermaid on atom editor
MIT License
42 stars 7 forks source link

Add support to save the graphic as SVG #31

Closed xipki closed 7 years ago

xipki commented 7 years ago

Currently the graphic can only be saved as PNG. Do you plan to extend the atom plugin to save it as SVN?

y-takey commented 7 years ago

Hi @xipki,

Sorry, I don't have the plan now. why don't you convert PNG to SVG. ( e.g. http://image.online-convert.com/convert-to-svg )

best regards,

StefanoCecere commented 7 years ago

if you need a SVG version of the graph, @xipki use http://knsv.github.io/mermaid/live_editor/

@y-takey it would be anyway easy to geenrate the SVG by using mermaid-cli --svg !

xipki commented 7 years ago

It is not a good opinion to use online editor for private/enterprise data. @y-takey By exporting the sequence diagram as PNG and then converting it to SVG you are not able to get the diagram in SVG-qualitiy.

y-takey commented 7 years ago

Sorry for the delay.

@StefanoCecere Thank you the advice.

@xipki I implemented feature save as SVG, and update atom-mermaid to v2.2.0. would you try it?

xipki commented 7 years ago

Thanks. The fix works.

y-takey commented 7 years ago

Thank you.