alixanderwang
Joined 6 years ago
Joined 6 years ago
I don't add this for D2 CLI because the outputs there are SVG, and this feature requires Javascript.
The urge to add silly stuff like this vs working on v2 of sequence diagram that has much more demand is often tempting.
Even if it's something simple like a node turning from green to red to convey it's shutting down. Maybe something like that before animations would be a text saying, "this node will shut down now", which takes reading/zooming into text.
I also think it can, if used well, result in diagrams that ⋆⋆spark joy⋆⋆. People like to see diagrams like that, even if it's not more utilitarian. I think sketch mode is an example of this. It changes the font to an objectively less readable one, yet I often hear people make all their D2 diagrams in sketch mode.
https://d2lang.com/examples/elk/
I like ELK's output better sometimes too, e.g. the Golang Queue example. Choice is good
A business can choose if they want
1. slow, pay for customer support and fraud protection
2. instant, lower cost, mistakes are irreversible
The linking you can do already if I understand the request correctly: https://play.d2lang.com/?script=Ks5ILEi1UihOLSxNzUtOjU_JTEwv...
Okay, we'll put those sequence diagram improvements in our sprint for next release.