VertexMoveParams
Payload for the node:move event that is fired when a node/group has just begun to be moved.
Event Payload
Context
element-dragging
Type Parameters
E
E
Properties
dragGroup
dragGroup:
object[]
The list of vertices that were dragged. This array will always contain at the very least information about a vertex that was dragged. If the vertex was in a drag group then all of the members of that drag group will be in this array too.
element
element:
ViewportElement<E>
originalPos
originalPos:
PointXY
pos
pos:
PointXY
vertex
positions
positions:
Record<string,PointXY>
This object contains a record of the final position of every vertex that was moved as a result of this vertex drag - the vertex itself, any members of a drag group for which the vertex was an active member, plus any elements that may have been moved via the magnetizer during or after the drag.