SnaplinesIsSnapTargetParams
Params passed to the SnaplinesIsSnapTarget callback (the
<Snaplines isSnapTarget> prop).
id/modeldescribe the active (moving / resizing) element, the subject of the snap operation, the same meaning asmodelincanSnapandadditionalSnapPoints.targetId/targetModeldescribe the candidate snap target being evaluated: returntrueif it should be a snap target formodel,falseto exclude it.
The pair lets you write proximity- and relation-based filters such as "skip targets in a different swim-lane" or "only snap to targets within 200px of the active element".
Extends​
Properties​
graph​
readonly graph: Graph;
The graph the element belongs to.
id​
readonly id: ID;
Id of the active element (the one being dragged or resized).
model​
readonly model: Element;
The active element model being dragged or resized.
paper​
readonly paper: Paper;
The paper the element belongs to.
targetId​
readonly targetId: ID;
Id of the candidate snap target being evaluated.
targetModel​
readonly targetModel: Element;
The candidate snap-target element being evaluated against the active element.