Skip to content

@ue-too/board-pixi-integration / index / PixiInputParser

類別: PixiInputParser

定義於: pixi-input-event-parser.ts:17

建構函式

建構函式

new PixiInputParser(app, kmtInputStateMachine, inputOrchestrator, camera): PixiInputParser

定義於: pixi-input-event-parser.ts:29

參數

app

Application

kmtInputStateMachine

KmtInputStateMachine

inputOrchestrator

InputOrchestrator

camera

BoardCamera

回傳

PixiInputParser

存取器

disabled

Getter 簽章

get disabled(): boolean

定義於: pixi-input-event-parser.ts:352

回傳

boolean

方法

bindFunctions()

bindFunctions(): void

定義於: pixi-input-event-parser.ts:46

回傳

void


disable()

disable(): void

定義於: pixi-input-event-parser.ts:344

回傳

void


enable()

enable(): void

定義於: pixi-input-event-parser.ts:348

回傳

void


hideHitAreaDebug()

hideHitAreaDebug(): void

定義於: pixi-input-event-parser.ts:206

Hides the hitArea debug visualization.

回傳

void


keydownHandler()

keydownHandler(event): void

定義於: pixi-input-event-parser.ts:319

參數

event

KeyboardEvent

回傳

void


keyupHandler()

keyupHandler(event): void

定義於: pixi-input-event-parser.ts:332

參數

event

KeyboardEvent

回傳

void


pointerDownHandler()

pointerDownHandler(event): void

定義於: pixi-input-event-parser.ts:233

參數

event

FederatedPointerEvent

回傳

void


pointerMoveHandler()

pointerMoveHandler(event): void

定義於: pixi-input-event-parser.ts:273

參數

event

FederatedPointerEvent

回傳

void


pointerUpHandler()

pointerUpHandler(event): void

定義於: pixi-input-event-parser.ts:253

參數

event

FederatedPointerEvent

回傳

void


scrollHandler()

scrollHandler(event): void

定義於: pixi-input-event-parser.ts:297

參數

event

WheelEvent

回傳

void


setUp()

setUp(): void

定義於: pixi-input-event-parser.ts:55

回傳

void


showHitAreaDebug()

showHitAreaDebug(): void

定義於: pixi-input-event-parser.ts:193

Shows a visual debug overlay of the hitArea.

回傳

void

備註

This creates a red polygon/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

定義於: pixi-input-event-parser.ts:214

回傳

void


updateHitArea()

updateHitArea(): void

定義於: pixi-input-event-parser.ts:93

Updates the stage's hitArea to cover the entire viewport in stage local coordinates.

回傳

void

備註

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 a Polygon instead of Rectangle to support rotated viewports. The four corners of the viewport are converted from viewport space to world space (which matches the stage's local space when the stage transform is applied).