# getBandwidthWidth

Canonical: https://docs.shumoku.dev/en/library/api/getBandwidthWidth
Language: en

@shumoku/core · 0.4.0 · function

# getBandwidthWidth

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

Map a bandwidth label/number to the calibrated stroke width.

```
getBandwidthWidth(bw: LinkBandwidth | null | undefined): number
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `bw` | `LinkBandwidth | null | undefined` | No additional description. | `—` |

## Returns

```
number
```

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