ReadonlyendWhich end the user is dragging: 'source' or 'target'.
ReadonlygraphThe graph the link belongs to.
ReadonlypaperThe paper the link is being drawn on.
ReadonlysourceThe source end of the pending connection.
One end (source or target) of a link: the cell it attaches to and the exact
port or magnet within that cell. Shared by ValidateConnectionParams
and emitted on link:connect / link:disconnect events, so validation and
event payloads describe a connection the same way.
Readonlyid: IDID of the cell this end attaches to.
Readonlymagnet: Element | nullThe SVG magnet node the end attaches to, or null when attaching to the cell's root.
Readonlymodel: CellThe cell model (element or link) this end attaches to.
Readonlyport: string | nullID of the port the end attaches to, or null when it attaches to the cell body.
Readonlyselector: string | nullValue of the magnet's joint-selector attribute, or null when it has none.
ReadonlytargetThe target end of the pending connection.
One end (source or target) of a link: the cell it attaches to and the exact
port or magnet within that cell. Shared by ValidateConnectionParams
and emitted on link:connect / link:disconnect events, so validation and
event payloads describe a connection the same way.
Readonlyid: IDID of the cell this end attaches to.
Readonlymagnet: Element | nullThe SVG magnet node the end attaches to, or null when attaching to the cell's root.
Readonlymodel: CellThe cell model (element or link) this end attaches to.
Readonlyport: string | nullID of the port the end attaches to, or null when it attaches to the cell body.
Readonlyselector: string | nullValue of the magnet's joint-selector attribute, or null when it has none.
Context handed to a ValidateConnection callback (and to the
validateoption of CanConnectOptions) while the user drags a link end. Describes both ends of the pending connection along with the paper and graph it lives in.