# chamferCorners

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

@shumoku/core · 0.4.0 · function

# chamferCorners

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

Cut each ~90° corner with a 45° chamfer for the metro look.

```
chamferCorners(points: readonly Position[], size: number): Position[]
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `points` | `readonly Position[]` | No additional description. | `—` |
| `size` | `number` | No additional description. | `—` |

## Returns

```
Position[]
```

[`libs/@shumoku/core/src/layout/composite/router.ts:1300`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/composite/router.ts#L1300)
