chevron_right Demos chevron_right Node Alignment
Discover More
Book a live Demo

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

  • Quick-start walkthrough + a real integration example
  • Live Q&A with next-step recommendations

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

Settings

Elements

Demo

Node Alignment

This demo shows how to automatically align nodes in rows and columns using the AlignmentStage layout algorithm.

The AlignmentStage assigns nodes to rows and columns and places all nodes in a column/row centered on a vertical/horizontal line. Two nodes belong to the same column/row, if the horizontal/vertical distance between the centers of said nodes is less than or equal to the value of the snapDistance property.

When aligning nodes, the horizontal distance between nodes in a shared row and the vertical distance between nodes in a shared column can only increase. As a result, reducing the minimumNodeDistance will not move existing rows and columns closer together.

Things to Try