Enteee / plantuml-parser

Parse PlantUML with JavaScript or TypeScript
https://duckpond.ch/category/plantuml-parser
Apache License 2.0
136 stars 33 forks source link

DOT notation formatter #32

Open Enteee opened 4 years ago

Enteee commented 4 years ago

Is your feature request related to a problem? Please describe. Formatting parsed plantuml diagrams as DOT.

Example (from wikipedia):

graph graphname {
     // This attribute applies to the graph itself
     size="1,1";
     // The label attribute can be used to change the label of a node
     a [label="Foo"];
     // Here, the node shape is changed.
     b [shape=box];
     // These edges both have different line properties
     a -- b -- c [color=blue];
     b -- d [style=dotted];
     // [style=invis] hides a node.
   }

Possible implementation

Maybe by using dagre's graphlibDot.write. Or an other alternative...