# resolveNodePosition

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

@shumoku/core · 0.4.0 · function

# resolveNodePosition

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

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 }
```

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