magjac/graphviz-visual-editor

Save to "browser's local storage"?

silverwoodchuck47 opened this issue · 1 comments

That's a terrible place to put a file. Where is "browser's local storage"? Why do I have to hunt for that location?

Treat the output as a file and let the browser download it to wherever the user prefers.

image

See https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage. It's a very convenient way of always having the graph DOT source code stored without any risk that the user looses it when they leave the page.

If you're building the application yourself, you can use the unreleased "Export as SVG" function to export the rendered graph in the SVG format to your file system.

Save and load of the DOT source code is described in this enhancement request, but is not yet implemented.