# getLinkWidth

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

@shumoku/core · 0.4.0 · function

# getLinkWidth

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

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

Compute the visual line width for a link. Single source of truth — used by layout, routing, and rendering.

```
getLinkWidth(link: Link): number
```

## パラメーター

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

## 戻り値

```
number
```

[`libs/@shumoku/core/src/layout/link-utils.ts:190`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/link-utils.ts#L190)
