ReadonlygraphThe graph instance.
ReadonlypaperThe paper instance.
ReadonlysourceThe source end of the connection being created.
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 DefaultLink factory while the user drags a new connection from a port or element.