Interaction options which configure handling workflows
The current interaction state
Bound interaction data object to populate with custom data.
The drag handling time
The time of the last left-click event
The time of the last right-click event
A flag for whether we are right-click dragging
An optional ControlIcon instance for the object
The view id pertaining to the PIXI Application. If not provided, default to canvas.app.view.id
The client position of the last left/right-click.
Private
#handlersBound handlers which can be added and removed
Static
INTERACTION_Enumerate the states of a mouse interaction workflow. 0: NONE - the object is inactive 1: HOVER - the mouse is hovered over the object 2: CLICKED - the object is clicked 3: GRABBED - the object is grabbed 4: DRAG - the object is being dragged 5: DROP - the object is being dropped
Static
DOUBLE_The maximum number of milliseconds between two clicks to be considered a double-click.
Static
DOUBLE_The maximum number of pixels between two clicks to be considered a double-click.
Static
LONG_The number of milliseconds of mouse click depression to consider it a long press.
Static
longGlobal timeout for the long-press event.
Static
Private
#HANDLER_Enumerate the states of handle outcome. -2: SKIPPED - the handler has been skipped by previous logic -1: DISALLOWED - the handler has dissallowed further process 1: REFUSED - the handler callback has been processed and is refusing further process 2: ACCEPTED - the handler callback has been processed and is accepting further process
Get the target.
Is this mouse manager in a dragging state?
A reference to the possible interaction states which can be observed
A reference to the possible interaction states which can be observed
Activate interactivity for the handled object
Execute a callback function associated with a certain action in the workflow
The action being attempted
The event being handled
Rest
...args: any[]Additional callback arguments.
A boolean which may indicate that the event was handled by the callback. Events which do not specify a callback are assumed to have been handled as no-op.
Private
#activatePrivate
#activatePrivate
#deactivatePrivate
#activatePrivate
#deactivatePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#handlePrivate
#debugPrivate
#assignStatic
emulate
Handle mouse interaction events for a Canvas object. There are three phases of events: hover, click, and drag
Hover Events: _handlePointerOver action: hoverIn _handlePointerOut action: hoverOut
Left Click and Double-Click _handlePointerDown action: clickLeft action: clickLeft2 action: unclickLeft
Right Click and Double-Click _handleRightDown action: clickRight action: clickRight2 action: unclickRight
Drag and Drop _handlePointerMove action: dragLeftStart action: dragRightStart action: dragLeftMove action: dragRightMove _handlePointerUp action: dragLeftDrop action: dragRightDrop _handleDragCancel action: dragLeftCancel action: dragRightCancel