OptionalannotateCalled after visual edges are recalculated. Action handlers can annotate edges with error info.
Called when drag will be applied. If moveEnd was called with apply false, it will not be called.
Return {updateEdges: false} to not apply the regular drag end changes (i.e. return false to reset to the position before dragging). Optionally return a result value to resolve the promise with.
Do not use for resetting handler state, use onMoveEnded for that.
For doing cleanup
Called when the drag coordinates change (during any event). Should return updateEdges true to allow the edges to be updated/moved, or false to prevent it. See also MoveChangeHandler for the built in action handler.
Can be used to save some context/info to later apply safely during onMoveApply.
The call order is:
Calls moveEnd with apply: false. This can technically be called from "end", it should still work.
Saves result to resolve moveStart promise, updates edges if you passed updateEdges then aborts the handler (only onMoveEnded will fire after) . Not available during "end" event. It's designed for resolving from other external evente (e.g. key events).
Handler interface for drag actions.