Skip to Content

Connection

GitHub 上的源代码

¥Source on GitHub

Connection 类型是两个节点之间 Edge 的基本最小描述。addEdge 实用程序可用于将 Connection 升级到 Edge

¥The Connection type is the basic minimal description of an Edge between two nodes. The addEdge util can be used to upgrade a Connection to an Edge.

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

字段

¥Fields

NameTypeDefault
sourcestring

The id of the node this connection originates from.

targetstring

The id of the node this connection terminates at.

sourceHandlestring | null

When not null, the id of the handle on the source node that this connection originates from.

targetHandlestring | null

When not null, the id of the handle on the target node that this connection terminates at.

Last updated on