Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@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 }[]

libs/@shumoku/core/src/layout/interaction.ts:61