Skip to main content
Version: 4.3

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.


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.

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub