@ue-too/board-integration / PixiInputParser
Class: PixiInputParser
Defined in: pixi-input-event-parser.ts:5
Constructors
Constructor
new PixiInputParser(
app,kmtInputStateMachine,inputOrchestrator,camera):PixiInputParser
Defined in: pixi-input-event-parser.ts:17
Parameters
app
Application
kmtInputStateMachine
KmtInputStateMachine
inputOrchestrator
InputOrchestrator
camera
BoardCamera
Returns
PixiInputParser
Accessors
disabled
Get Signature
get disabled():
boolean
Defined in: pixi-input-event-parser.ts:254
Returns
boolean
Methods
bindFunctions()
bindFunctions():
void
Defined in: pixi-input-event-parser.ts:30
Returns
void
disable()
disable():
void
Defined in: pixi-input-event-parser.ts:246
Returns
void
enable()
enable():
void
Defined in: pixi-input-event-parser.ts:250
Returns
void
hideHitAreaDebug()
hideHitAreaDebug():
void
Defined in: pixi-input-event-parser.ts:140
Hides the hitArea debug visualization.
Returns
void
keydownHandler()
keydownHandler(
event):void
Defined in: pixi-input-event-parser.ts:221
Parameters
event
KeyboardEvent
Returns
void
keyupHandler()
keyupHandler(
event):void
Defined in: pixi-input-event-parser.ts:234
Parameters
event
KeyboardEvent
Returns
void
pointerDownHandler()
pointerDownHandler(
event):void
Defined in: pixi-input-event-parser.ts:167
Parameters
event
FederatedPointerEvent
Returns
void
pointerMoveHandler()
pointerMoveHandler(
event):void
Defined in: pixi-input-event-parser.ts:195
Parameters
event
FederatedPointerEvent
Returns
void
pointerUpHandler()
pointerUpHandler(
event):void
Defined in: pixi-input-event-parser.ts:181
Parameters
event
FederatedPointerEvent
Returns
void
scrollHandler()
scrollHandler(
event):void
Defined in: pixi-input-event-parser.ts:210
Parameters
event
WheelEvent
Returns
void
setUp()
setUp():
void
Defined in: pixi-input-event-parser.ts:39
Returns
void
showHitAreaDebug()
showHitAreaDebug():
void
Defined in: pixi-input-event-parser.ts:127
Shows a visual debug overlay of the hitArea.
Returns
void
Remarks
This creates a red rectangle that shows the current hitArea boundaries. Useful for debugging hit detection issues. The debug graphics are automatically updated when updateHitArea() is called.
tearDown()
tearDown():
void
Defined in: pixi-input-event-parser.ts:148
Returns
void
updateHitArea()
updateHitArea():
void
Defined in: pixi-input-event-parser.ts:70
Updates the stage's hitArea to cover the entire viewport in stage local coordinates.
Returns
void
Remarks
This must be called whenever the stage transformation changes (pan, zoom, rotate) or when the canvas size changes. The hitArea is defined in the stage's local coordinate space. When the stage transforms, the hitArea moves with it, so we need to update it to cover the viewport rectangle transformed into stage local space.
Uses the stage's toLocal method to convert viewport corners from screen space to stage local space, then creates a bounding box for the hitArea.