# collectObstacles

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

@shumoku/core · 0.4.0 · function

# collectObstacles

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/interaction.ts#L61)

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

Collect all obstacles as centre-based rects, excluding entities related to \`excludeId\`. Both nodes and subgraphs are treated as rectangles.

```
collectObstacles(excludeId: string, excludeParent: string | undefined, nodes: Map<string, Node>, subgraphs?: Map<string, Subgraph>): { h: number; w: number; x: number; y: number }[]
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `excludeId` | `string` | 追加説明はありません。 | `—` |
| `excludeParent` | `string | undefined` | 追加説明はありません。 | `—` |
| `nodes` | `Map<string, Node>` | 追加説明はありません。 | `—` |
| `subgraphs` | `Map<string, Subgraph>` | 追加説明はありません。 | `—` |

## 戻り値

```
{ h: number; w: number; x: number; y: number }[]
```

[`libs/@shumoku/core/src/layout/interaction.ts:61`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/interaction.ts#L61)
