dcdg.dart icon indicating copy to clipboard operation
dcdg.dart copied to clipboard

Add support for Mermaid

Open glesica opened this issue 2 years ago • 1 comments

It would be cool to be able to output diagrams to Mermaid format since that tool is quite popular / useful.

See: http://mermaid-js.github.io

glesica avatar Mar 19 '22 21:03 glesica

Although plantuml is a very good system, it requires a java or dot environment, and every time the system developers made changes to the data tables or added functions, they had to worry about converting plantuml to png or svg and then further reflecting the changes in a word document. In other words, they found the plantuml format inconvenient to incorporate into explanatory materials for managers. The mermaid format also supports the insertion of drwa.io's XXX.drawio.svg and YYYYY.drawio.png, so explanatory materials can be unified in md, and if glesica can make dcdg mermaid-ready, it will definitely make a world of difference. I am very much looking forward to it, and although it's been almost 4 months now, I can't sleep at night every day thinking about the future where the "-b mermaid" option will become a reality.

seattlesbest avatar Jul 13 '22 09:07 seattlesbest

@glesica When this https://github.com/glesica/dcdg.dart/pull/56 will be merge to master?

plumsky avatar Aug 16 '22 07:08 plumsky

Once I've had time to address the outstanding issues described in the PR.

glesica avatar Aug 16 '22 15:08 glesica

I took this branch that has the mermaid option. It was very useful in diagramming my mobile app. I found there were a few lines that I had to remove from the generated code to allow the graph to be displayed but overall excellent to have this. Thank you.

bperreault avatar Sep 09 '22 14:09 bperreault

This is done.

glesica avatar Sep 20 '22 01:09 glesica