# portLabelBox

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

@shumoku/core · 0.4.0 · function

# portLabelBox

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

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

Axis-aligned box of the port's label, or undefined when the port has no label. Mirrors the renderer: - vertical (composite top/bottom): the label runs along the wire, away from the node face, in a 12px-wide strip. - horizontal: classic placement per side (above / below / beside).

```
portLabelBox(port: ResolvedPort): Bounds | undefined
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `port` | `ResolvedPort` | 追加説明はありません。 | `—` |

## 戻り値

```
Bounds | undefined
```

[`libs/@shumoku/core/src/layout/port-geometry.ts:87`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/port-geometry.ts#L87)
