@shumoku/core · 0.4.0 · function
resolveNodePosition
APIの説明は英語のcanonical sourceを表示しています。
Resolve a node's position against all other entities. Wrapper around `resolvePosition` for the legacy id-based API.
resolveNodePosition(id: string, x: number, y: number, nodes: Map<string, Node>, gap?: number, subgraphs?: Map<string, Subgraph>): { x: number; y: number } パラメーター
| 名前 | 型 | 説明 | 既定値 |
|---|---|---|---|
id | string | 追加説明はありません。 | — |
x | number | 追加説明はありません。 | — |
y | number | 追加説明はありません。 | — |
nodes | Map<string, Node> | 追加説明はありません。 | — |
gap | number | 追加説明はありません。 | DEFAULT_NODE_GAP |
subgraphs | Map<string, Subgraph> | 追加説明はありません。 | — |
戻り値
{ x: number; y: number }