Skip to main content
Version: 4.3

SnaplinesCanSnapParams

Params passed to the SnaplinesCanSnap callback (the <Snaplines canSnap> prop), describing the element currently being dragged or resized. Mirrors the { id, model, paper, graph } shape used by paper event params in @joint/react.

Extended by

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.

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub