Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.2 · function

separateLinkPresentation

Source

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