Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

EN

@shumoku/core · 0.4.2 · function

addPort

ソース

APIの説明は英語のcanonical sourceを表示しています。

Add an unnamed port to a node on the specified side. The port is appended to `Node.ports` (the data model) and to the resolved-port map (layout). Label stays empty — the renderer hides labelless ports' label rectangle, and the user can name it later from the detail panel.

addPort(nodeId: string, side: Side, nodes: Map<string, Node>, ports: Map<string, ResolvedPort>, _existingLinks: Link[]): { nodes: Map<string, Node>; portId: string; ports: Map<string, ResolvedPort> } | null

パラメーター

名前 型 説明 既定値
nodeId string 追加説明はありません。 —
side Side 追加説明はありません。 —
nodes Map<string, Node> 追加説明はありません。 —
ports Map<string, ResolvedPort> 追加説明はありません。 —
_existingLinks Link[] 追加説明はありません。 —

戻り値

{ nodes: Map<string, Node>; portId: string; ports: Map<string, ResolvedPort> } | null

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