An alternative auto-layout function for tree diagrams which:
- Provides the classic ‘Tidy’ or Reingold Tilford layout of org-charts etc, as an alternative to the built-in Graphviz ‘dot’ layout, in which parents are not necessarily centred over children, and
- Automatically switches magnets between North-South and East-West for vertical ⇄ horizontal tree direction toggling.
Graphviz 'dot' layout
'Tidy' (Reingold-Tilford) layout
Auto-layout Top Down ⇄ Left Right toggle without magnet adjustment
Direction toggle + magnet adjustment combined
Similar to those of the built-in auto-layout:
- Tree direction options - top down, bottom up, left right, right left
- Gap options - vertical gap size between layers, horizontal gap size between siblings
omniJS user interaction question
How should we best specify direction and gap options for a platform-independent (iOS + macOS) version of an omniJS script that does this ?
(Perhaps this is not the perfect example of the general issue, because an omniJS script could read and use the settings for the built-in Auto-layout here, but the question is really about any script that allows the user to make a choice of some kind)