Skip to content

@ue-too/board / index / DummyKmtInputContext

類別: DummyKmtInputContext ​

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:647

No-op implementation of KmtInputContext for web worker relay scenarios.

備註 ​

Used when the input state machine is configured to relay events to a web worker rather than process them locally. The state machine requires a context, but in the relay scenario, no actual state tracking is needed - events are simply forwarded.

All methods are no-ops and all properties return default values.

參閱 ​

DummyCanvas

實作 ​

建構函式 ​

建構函式 ​

new DummyKmtInputContext(): DummyKmtInputContext

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:652

回傳 ​

DummyKmtInputContext

屬性 ​

alignCoordinateSystem ​

alignCoordinateSystem: boolean = false

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:648

Whether to use standard screen coordinate system (vs inverted Y-axis)

實作了 ​

KmtInputContext.alignCoordinateSystem


canvas ​

canvas: Canvas

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:649

Canvas accessor for dimensions and cursor control

實作了 ​

KmtInputContext.canvas


initialCursorPosition ​

initialCursorPosition: Point

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:650

The cursor position when a pan gesture started

實作了 ​

KmtInputContext.initialCursorPosition


setCursorPosition() ​

setCursorPosition: (position) => void = NO_OP

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:656

參數 ​

position ​

Point

回傳 ​

void


toggleOffEdgeAutoCameraInput() ​

toggleOffEdgeAutoCameraInput: () => void = NO_OP

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:655

回傳 ​

void


toggleOnEdgeAutoCameraInput() ​

toggleOnEdgeAutoCameraInput: () => void = NO_OP

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:654

回傳 ​

void

存取器 ​

kmtTrackpadTrackScore ​

Getter 簽章 ​

get kmtTrackpadTrackScore(): number

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:664

Score tracking input modality: >0 for mouse, <0 for trackpad, 0 for undetermined

回傳 ​

number

Score tracking input modality: >0 for mouse, <0 for trackpad, 0 for undetermined

實作了 ​

KmtInputContext.kmtTrackpadTrackScore


mode ​

Getter 簽章 ​

get mode(): "kmt" | "trackpad" | "TBD"

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:674

The current input modality: 'kmt' (mouse), 'trackpad', or 'TBD' (to be determined)

回傳 ​

"kmt" | "trackpad" | "TBD"

The current input modality: 'kmt' (mouse), 'trackpad', or 'TBD' (to be determined)

實作了 ​

KmtInputContext.mode

方法 ​

addKmtTrackpadTrackScore() ​

addKmtTrackpadTrackScore(): void

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:670

Increases the score toward mouse

回傳 ​

void

實作了 ​

KmtInputContext.addKmtTrackpadTrackScore


cancelCurrentAction() ​

cancelCurrentAction(): void

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:678

Cancels the current action and resets cursor position

回傳 ​

void

實作了 ​

KmtInputContext.cancelCurrentAction


cleanup() ​

cleanup(): void

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:660

回傳 ​

void

實作了 ​

KmtInputContext.cleanup


setInitialCursorPosition() ​

setInitialCursorPosition(position): void

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:658

Sets the initial cursor position when starting a pan gesture

參數 ​

position ​

Point

回傳 ​

void

實作了 ​

KmtInputContext.setInitialCursorPosition


setMode() ​

setMode(mode): void

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:672

Sets the determined input modality

參數 ​

mode ​

"kmt" | "trackpad" | "TBD"

回傳 ​

void

實作了 ​

KmtInputContext.setMode


setup() ​

setup(): void

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:662

回傳 ​

void

實作了 ​

KmtInputContext.setup


subtractKmtTrackpadTrackScore() ​

subtractKmtTrackpadTrackScore(): void

定義於: packages/board/src/input-interpretation/input-state-machine/kmt-input-context.ts:668

Decreases the score toward trackpad

回傳 ​

void

實作了 ​

KmtInputContext.subtractKmtTrackpadTrackScore