Skip to content

EdgeDrawnEvent

Event payload emitted when a user manually draws an edge between two nodes. This event only fires for user-initiated edge creation through the UI, not for programmatically added edges.

edge: Edge

The newly created edge object


source: Node

The source node from which the edge originates


optional sourcePort: string

Source port identifier if connected to a specific port


target: Node

The target node to which the edge connects


optional targetPort: string

Target port identifier if connected to a specific port