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.