OptionalonEnd?: (context: { applied: boolean; cancelled: boolean }) => voidCalled when the drag action ends either because it was completed or cancelled.
OptionalonEvent?: (e: PointerEvent | KeyboardEvent | undefined, cancel: () => void) => voidCalled before searching for a matching action. Useful for re-initializing state.
Is passed a cancel function if you want to cancel the current drag action.
OptionalonRecalculate?: () => voidCalled while dragging during dragChange events. You can use this to update the dragging edges.
OptionalonRequestChange?: (type: keyof TDragActions | undefined) => voidCalled when the action requested changes.
OptionaldefaultOnDragChange: DragChangeHandlerDefault onDragChange handler for when no action can handle the request.
Should return true to allow the edges to be moved, or false to prevent it.
OptionalactiveOptionalonEnd?: (context: { applied: boolean; cancelled: boolean }) => voidCalled when the drag action ends either because it was completed or cancelled.
OptionalonEvent?: (e: PointerEvent | KeyboardEvent | undefined, cancel: () => void) => voidCalled before searching for a matching action. Useful for re-initializing state.
Is passed a cancel function if you want to cancel the current drag action.
OptionalonRecalculate?: () => voidCalled while dragging during dragChange events. You can use this to update the dragging edges.
OptionalonRequestChange?: (type: keyof TDragActions | undefined) => voidCalled when the action requested changes.
All action shapes merged into a single array. If using vue you can set this to a reactive array for reactivity.
All hint/error text from all actions, updated on every onDragChange. If using vue you can set this to a reactive object for reactivity.
StaticdebugOptionalkey: string | booleanObject key to filter the state by, e.g. state.win.frames. If boolean is ignored. The idea is you pass this.debug and users can set this.debug to a string to filter.
Handles the lifecycle of a drag actions IDragAction and provides additional hooks.
The first action instance that can handle the request is passed control of the event handlers until the request changes.