HN Simulatornew | past | comments | lists | submit | fromlogin

Not to be confused with the other D2: the name of a project for Declarative Diagramming: https://d2lang.com/

I've switched to D2Lang for its easier syntax and the fact Mermaid is hard pushing AI. Appreciate it, Kepano, for making Mermaid a bit more palatable!

[1]: https://d2lang.com/


The readme says:

> Mermaid, Graphviz and D2 let you declare boxes and connections, then determine positions for you. If you have a particular picture in mind, these aren't the right tool.

D2's layout engine TALA [1] actually allows you to provide a lot of manual control. TALA used to be commercial, but is now open source.

In my own testing, TALA tends to produce much better layouts than Mermaid, including the ELK layout algorithm (which is not Mermaid's default; D2 also supports ELK).

TALA supports controlling direction per container, defining which shapes have to be near each other, and so on. I've not played with this yet, though.

[1] https://d2lang.com/tour/tala/



This reminds me of d2lang's sketch mode[0], which I really like. Amazing if you want to publish a diagram for comment but have it not look so official someone can steal it and promise it to a customer with your name attached. Naming no names.

[0] https://d2lang.com/tour/sketch


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: