# bpsToLinkWidth

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

@shumoku/core · 0.4.0 · function

# bpsToLinkWidth

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

Map a raw bits/sec value to the calibrated stroke width.

```
bpsToLinkWidth(bps: number | undefined): number
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `bps` | `number | undefined` | No additional description. | `—` |

## Returns

```
number
```

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