Connection
Connection
型は、2つのノード間のEdge
の基本的な最小限の説明です。addEdge
ユーティリティは、Connection
をEdge
にアップグレードするために使用できます。
export type Connection = {
source: string;
target: string;
sourceHandle: string | null;
targetHandle: string | null;
};
フィールド
名前 | 型 |
---|---|
# source | 文字列 この接続が始まるノードのID。 |
# target | 文字列 この接続が終わるノードのID。 |
# sourceHandle | 文字列 | null nullでない場合、この接続が始まるソースノードのハンドルのID。 |
# targetHandle | 文字列 | null nullでない場合、この接続が終わるターゲットノードのハンドルのID。 |