xstate-viz
xstate-viz copied to clipboard
Rotate LTR layout for 90° to render machine top to bottom
Since the renderer and editor consist of two columns, displaying the machine horizontally causes the space to run out quickly, while 80% of the space below remains unused.
Could we get an option to switch the LTR layout config to make better use of the screen space?
If you (or anyone else) feels like adding this as a feature; e.g., as a toggle in the Settings panel, this is the relevant part of the code that deals with ELK layout: https://github.com/statelyai/xstate-viz/blob/dev/src/graphUtils.ts