Skip to main content
Version: 4.3

SnaplinesAdditionalSnapPointsParams

Params passed to the SnaplinesAdditionalSnapPoints callback (the <Snaplines additionalSnapPoints> prop). Extends SnaplinesCanSnapParams with the gesture type, so you can return different snap points for moves versus resizes.

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.

type

readonly type: SnaplinesType;

Whether the active gesture is a 'move' or a 'resize'.

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub