Called when the drag coordinates change (during any event).
Should return { allowed: true/false, shapes: LayoutShape[] } to control whether the action is allowed and edges update and what deco shapes to render.
{ allowed: true/false, shapes: LayoutShape[] }
Note that the allowed return type only affect the move event but is also typed as boolean for other events for ease of use.
move
boolean
Called when the drag coordinates change (during any event).
Should return
{ allowed: true/false, shapes: LayoutShape[] }to control whether the action is allowed and edges update and what deco shapes to render.Note that the allowed return type only affect the
moveevent but is also typed asbooleanfor other events for ease of use.