Skip to content

Smart Layout

OpenFlowKit uses ELK-based layout strategies to turn rough graphs into readable diagrams quickly.

Use layout when:

  • a template is structurally right but visually rough
  • AI generation gave you the right nodes in the wrong places
  • imported code needs normalization
  • you have added branches manually and want spacing fixed

Open the Command Center and choose Auto Layout. The editor passes direction, algorithm, and spacing preferences into the layout request.

Current layout control is strongest when the diagram already has the right nodes and edges but needs better flow, spacing, and reading order.

Current directional options are:

  • TB
  • LR
  • RL
  • BT

The shell also uses active diagram type as context where needed.

Auto layout is especially effective for:

  • flowcharts
  • architecture graphs
  • state-like branching diagrams
  • AI-generated drafts
  • imported code and structured data drafts

It is less effective for intentionally hand-composed slides or dense annotated canvases where visual storytelling matters more than graph regularity.

For the best result:

  1. get the right nodes and edges first
  2. run layout
  3. use layers or sections if the diagram needs hierarchy
  4. make final manual adjustments

Do not spend time hand-aligning a graph before running layout. That work is usually wasted.

OpenFlow DSL and Mermaid edits are especially effective when combined with layout:

  • make structural changes in text
  • apply them
  • run auto layout
  • finish visual polish in the properties panel