|
|
|
|
|
by remram
1911 days ago
|
|
Since I'm here, any tool recommendations for visualizing state machines, and state charts in particular? XState's [1] is ok but only works on the web and offers to export, and I found its layout algorithm a bit sub-par. Writing graphviz code by hand, or using google draw/draw.io/... gets painful very quickly. [1]: https://xstate.js.org/viz/ |
|
https://github.com/StoneCypher/jssm-viz
If you just want one to use, rather than to embed in your own software, The thing everyone's calling a live editor is actually the JSSM-viz demo. You can use that
https://stonecypher.github.io/jssm-viz-demo/graph_explorer.h...
It's kept outside of the main repo because, like xstate's, it's built on a transcompile of graphviz called viz.js, which is made with emscripten
It's several meg, and not many people want visualization, so I keep them in separate packages
You can get the graphviz code by hitting "dot" at the top, if you want to customize in ways the language doesn't know