routemaster
routemaster copied to clipboard
Basic Visualisation
This PR introduces visualisation of state machines and labels locations in them.
Note: this has been handy for debugging configs but low priority and will likely not be finished and merged before launch.

TODO:
- [ ] explore linters
- [ ] tidy up the JS (remove inline
onchange, etc.)
@danpalmer were there any particular things you thought that the example visualisation should do? The example.yaml contains forks and merges in the graph, as well as both gates and actions, so I'm proposing that we build the example visualisation around that.
The main things I wanted to do were around readability. I remember it being pretty basic and not very clear. Destinations, triggers, defaults, etc would be good to get on there, maybe the field used to control the destination selection, etc.
@danpalmer since we discovered that pydot does indeed depend on having graphviz installed, thoughts on letting the render be in JavaScript? https://www.graphdracula.net/ looks fairly reasonable (and appears to allow annotations on various things which we know we want to do at some point)