Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.2 · function

linkExists

Source

Check if a link already exists between two ports.

linkExists(links: Link[], fromNodeId: string, fromPort: string, toNodeId: string, toPort: string): boolean

Parameters

Parameter Type Description Default
links Link[] No additional description. —
fromNodeId string No additional description. —
fromPort string No additional description. —
toNodeId string No additional description. —
toPort string No additional description. —

Returns

boolean

libs/@shumoku/core/src/libs/@shumoku/core/src/layout/interaction.ts:558