參考類型

Connection

GitHub 上的原始碼

Connection 類型是兩個節點之間 Edge 的基本最小描述。addEdge 工具可用於將 Connection 升級為 Edge

export type Connection = {
  source: string;
  target: string;
  sourceHandle: string | null;
  targetHandle: string | null;
};

欄位

#source
字串
此連線起始的節點 ID。
#target
字串
此連線終止的節點 ID。
#sourceHandle
字串 | 空值
當不為空值時,此連線起始的來源節點上的控制點 ID。
#targetHandle
字串 | 空值
當不為空值時,此連線終止的目標節點上的控制點 ID。