> ## Documentation Index
> Fetch the complete documentation index at: https://iso-topology.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Arrange nodes without calculating coordinates

> Choose automatic, row, grid, ring, and relative layouts, then understand how manual edits change placement.

Use a container layout when parts follow a pattern. Use relative placement when a particular relationship matters. Start with `auto` when the connectors should drive the arrangement.

| Intent | Choose | Example |
| - | - | - |
| A flow of connected services | `auto` | Layout follows the graph. |
| A sequence along one world axis | `row` or `column` | A service tier. |
| A board of components | `grid` | `layout: {mode: grid, cols: 3}` |
| One hub and its surrounding services | `ring` | First part is the hub. |
| One part beside another | `place` | `place: {rightOf: api, gap: 2}` |

## A complete row

```yaml theme={null}
canvas: {background: "#F7F8F5"}
nodes:
  scene:
    shape: composite
    layout: {mode: row, gap: 2}
    parts:
      - {id: api, shape: rectangle, label: API}
      - {id: cache, shape: cylinder, label: Cache}
      - {id: db, shape: cylinder, label: Database}
    connectors:
      - {from: api, to: cache, routing: orthogonal, arrow: triangle}
      - {from: api, to: db, routing: orthogonal, arrow: triangle}
```

Save as `layout.yaml` and run `isotopo render layout.yaml ./out`. Change `row` to `column` and render again. Gaps are layout cells, not pixels; inspect the final projection before choosing a compact spacing.

## Group related components

Give a `group` its own layout and nested `parts`. Let its footprint size itself before adding fixed width and depth. A fixed container can become too small when labels or children change.

## When to take manual control

Dragging a node in Studio can replace relevant layout declarations with explicit offsets. This makes the chosen position stable. Undo the operation to recover the preceding source, or restore layout declarations in a saved source version.

[Source and layout](https://iso-topology.mintlify.site/concepts/source-and-layout.md) explains this transition. [Quality checks](https://iso-topology.mintlify.site/guides/quality.md) help diagnose overlap and occlusion. See [YAML reference](https://iso-topology.mintlify.site/reference/dsl-yaml.md) for exact fields.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.