# applyOctilinearRoutes

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

@shumoku/core · 0.4.0 · function

# applyOctilinearRoutes

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

Mutates eligible edges: sets \`route\` to an octilinear polyline (and mirrors the corner points into \`points\` for labels / hit testing). Returns the number of edges routed.

```
applyOctilinearRoutes(edges: Map<string, ResolvedEdge>, options?: OctilinearOptions): number
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `edges` | `Map<string, ResolvedEdge>` | No additional description. | `—` |
| `options` | `OctilinearOptions` | No additional description. | `{}` |

## Returns

```
number
```

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