# portLabelLength

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

@shumoku/core · 0.4.0 · function

# portLabelLength

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

Estimated label box length along the reading direction.

```
portLabelLength(label: string): number
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `label` | `string` | No additional description. | `—` |

## Returns

```
number
```

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