# autoLayoutFlatTree

Canonical: https://docs.shumoku.dev/ja/library/api/autoLayoutFlatTree
Language: ja

@shumoku/core · 0.4.0 · function

# autoLayoutFlatTree

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/auto-placement/flat-tree/auto-layout.ts#L222)

APIの説明は英語のcanonical sourceを表示しています。

Lay out a network graph using the flat-tree algorithm, using the supplied \`LayoutEngine\` for rules (sizes, gaps, label widths). Equivalent to the legacy \`layoutNetwork(graph, options)\`, but the engine is now a first-class concept. The same engine instance can also serve manual placement (\`engine.tryPlace\`) so layout and drag-snap stay consistent.

```
autoLayoutFlatTree(graph: NetworkGraph, engine: LayoutEngine, options?: AutoLayoutOptions): AutoLayoutResult
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `graph` | `NetworkGraph` | 追加説明はありません。 | `—` |
| `engine` | `LayoutEngine` | 追加説明はありません。 | `—` |
| `options` | `AutoLayoutOptions` | 追加説明はありません。 | `{}` |

## 戻り値

```
AutoLayoutResult
```

[`libs/@shumoku/core/src/layout/auto-placement/flat-tree/auto-layout.ts:222`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/auto-placement/flat-tree/auto-layout.ts#L222)
