tmorin / plantuml-generator

A command line utility to generate stuff with and for PlantUML.
MIT License
10 stars 2 forks source link

Removing dependency on graphviz-dot #19

Open jayvdb opened 1 month ago

jayvdb commented 1 month ago

https://sourceforge.net/projects/plantuml uses GRAPHVIZ_DOT , which means there is the possibility to use a Rust work-alike binary. https://github.com/nadavrot/layout/pull/31 and a bit more work might do the trick.

And plantuml has alternative layout engines, available via -Playout=elk, -Playout=smetana , and maybe -Playout=visjs .

I have found the output when using -Playout=smetana is very good : slightly different layout in the output when using graphviz, but still correct - I havent seen any significant differences.

Perhaps plantuml-generator could detect if dot is installed, and GRAPHVIZ_DOT is unset, and automatically add -Playout=smetana if -Playout= is not already in the plantuml args.

tmorin commented 1 month ago

Hi, thanks for the message. I'm not sure where the dot should be removed. With the latest release, I guess you can leverage the --args argument to provide additional arguments to PlantUML. Is that OK?

jayvdb commented 1 month ago

This issue is suggesting that plantuml-generator automatically adds -Playout=smetana so that there is no need to have dot binary installed in order to run plantuml-generator.