# separateLinkPresentation

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

@shumoku/core · 0.4.2 · function

# separateLinkPresentation

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-document.ts#L307)

Split connection style from facts. Unstyled idless links are preserved.

```
separateLinkPresentation(link: Link): { link: TopologyLink; presentation?: { linkId: string; style: { minLength?: number; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number } } }
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `link` | `Link` | No additional description. | `—` |

## Returns

```
{ link: TopologyLink; presentation?: { linkId: string; style: { minLength?: number; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number } } }
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-document.ts:307`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-document.ts#L307)
