ConnectionStrategyParams
Context handed to a ConnectionStrategy customize callback after a
link end is dropped. Describes where the end landed (cell, magnet, drop point)
so the callback can return the final end definition.
Properties
dropPoint
readonly dropPoint: PlainPoint;
Paper-space point where the end was dropped.
end
readonly end: EndJSON;
The end definition to return, pre-filled by the selected pin mode (or the dropped end when pinning is off).
endType
readonly endType: LinkEnd;
Which end was dropped: 'source' or 'target'.
graph
readonly graph: Graph;
The graph the link belongs to.
link
readonly link: Link;
The link being reconnected.
magnet
readonly magnet: Element;
The magnet element the end was dropped on.
model
readonly model: Cell;
The cell the end was dropped on.
paper
readonly paper: Paper;
The paper the link is drawn on.