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'.