@shumoku/core · 0.4.0 · function
collectObstacles
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 }[]