diagrams icon indicating copy to clipboard operation
diagrams copied to clipboard

Added option to preserve dot file

Open Stillerman opened this issue 4 years ago • 5 comments

Diagram("Label", outformat="png", preserve_graphviz_file=True)

will preserve the dot file generated for later use.

I could also refactor this so that dot file is preserved when outformat="dot"

This is a non-breaking change because preserve_graphviz_file is False by default.

Stillerman avatar May 30 '20 17:05 Stillerman

Does outformat="dot" generate only a dot file?

mingrammer avatar May 31 '20 12:05 mingrammer

No, but I can arrange for that.

Stillerman avatar Jun 06 '20 18:06 Stillerman

How about when preserve_dot_file is true, the dot file is kept, and if outformat=dot then the file is produced regardless of preserve_dot_file.

Stillerman avatar Jun 06 '20 19:06 Stillerman

IMO, outformat=dot may make users confused a bit due to it has different purposes other than the other image format options. preserve_dot_file option would be enough.

mingrammer avatar Jun 09 '20 11:06 mingrammer

Any changes this gets merged soonish?

steschuser avatar Sep 13 '20 10:09 steschuser