@shumoku/core · 0.4.2 · function
separateLinkPresentation
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