Layout Properties
Grid Layout Builder

The Diagram.layout of the Diagram above is set to a GridLayout. This layout attempts to place all the Nodes into a grid-like arrangement with some kind of spacing. The way Nodes are layed out can be customized using several properties. This sample lets you interactively change these properties and see how they work.

For mpore information on GridLayout and its properties, see the GridLayout documentation page.

### GoJS Features in this sample

#### Grid Layouts

This predefined layout is used for placing Nodes in a grid-like arrangement. Nodes can be ordered, spaced apart, and wrapped as needed. This Layout ignores any Links connecting the nodes being laid out. More information can be found in the GoJS Intro.

Related samples