xstate-viz icon indicating copy to clipboard operation
xstate-viz copied to clipboard

Rotate LTR layout for 90° to render machine top to bottom

Open andraz opened this issue 4 years ago • 1 comments

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?

andraz avatar Oct 09 '21 10:10 andraz

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

davidkpiano avatar Oct 09 '21 17:10 davidkpiano