Skip to content

@ue-too/board / index / InitialPanState

クラス: InitialPanState

定義: packages/board/src/input-interpretation/input-state-machine/kmt-input-state-machine.ts:459

Description

The initial pan state of the keyboard mouse and trackpad input state machine.

拡張

コンストラクター

コンストラクター

new InitialPanState(): InitialPanState

定義: packages/board/src/input-interpretation/input-state-machine/kmt-input-state-machine.ts:465

戻り値

InitialPanState

上書き

TemplateState< KmtInputEventMapping, KmtInputContext, KmtInputStates, KmtInputEventOutputMapping >.constructor

プロパティ

_defer

protected _defer: Defer<KmtInputContext, KmtInputEventMapping, "IDLE" | "READY_TO_PAN_VIA_SPACEBAR" | "READY_TO_PAN_VIA_SCROLL_WHEEL" | "PAN" | "INITIAL_PAN" | "PAN_VIA_SCROLL_WHEEL" | "DISABLED", KmtInputEventOutputMapping> | undefined

定義: packages/being/dist/interface.d.ts:493

継承元

TemplateState._defer


_delay

protected _delay: Delay<KmtInputContext, KmtInputEventMapping, "IDLE" | "READY_TO_PAN_VIA_SPACEBAR" | "READY_TO_PAN_VIA_SCROLL_WHEEL" | "PAN" | "INITIAL_PAN" | "PAN_VIA_SCROLL_WHEEL" | "DISABLED", KmtInputEventOutputMapping> | undefined

定義: packages/being/dist/interface.d.ts:492

継承元

TemplateState._delay


_eventGuards

protected _eventGuards: Partial<EventGuards<EventPayloadMapping, States, Context, Guard<Context>>>

定義: packages/being/dist/interface.d.ts:491

継承元

TemplateState._eventGuards


_eventReactions

protected _eventReactions: EventReactions<KmtInputEventMapping, KmtInputContext, KmtInputStates, KmtInputEventOutputMapping>

定義: packages/board/src/input-interpretation/input-state-machine/kmt-input-state-machine.ts:469

上書き

TemplateState._eventReactions


_guards

protected _guards: Guard<Context>

定義: packages/being/dist/interface.d.ts:490

継承元

TemplateState._guards

アクセッサー

delay

署名を取得する

get delay(): Delay<Context, EventPayloadMapping, States, EventOutputMapping> | undefined

定義: packages/being/dist/interface.d.ts:498

戻り値

Delay<Context, EventPayloadMapping, States, EventOutputMapping> | undefined

継承元

TemplateState.delay


eventGuards

署名を取得する

get eventGuards(): Partial<EventGuards<EventPayloadMapping, States, Context, Guard<Context>>>

定義: packages/being/dist/interface.d.ts:496

戻り値

Partial<EventGuards<EventPayloadMapping, States, Context, Guard<Context>>>

継承元

TemplateState.eventGuards


eventReactions

署名を取得する

get eventReactions(): EventReactions<EventPayloadMapping, Context, States, EventOutputMapping>

定義: packages/being/dist/interface.d.ts:497

戻り値

EventReactions<EventPayloadMapping, Context, States, EventOutputMapping>

継承元

TemplateState.eventReactions


guards

署名を取得する

get guards(): Guard<Context>

定義: packages/being/dist/interface.d.ts:495

戻り値

Guard<Context>

継承元

TemplateState.guards


handlingEvents

署名を取得する

get handlingEvents(): keyof EventPayloadMapping[]

定義: packages/being/dist/interface.d.ts:494

戻り値

keyof EventPayloadMapping[]

継承元

TemplateState.handlingEvents

メソッド

beforeExit()

beforeExit(context, stateMachine, to): void

定義: packages/being/dist/interface.d.ts:500

パラメータ

context

KmtInputContext

stateMachine

StateMachine<KmtInputEventMapping, KmtInputContext, "IDLE" | "READY_TO_PAN_VIA_SPACEBAR" | "READY_TO_PAN_VIA_SCROLL_WHEEL" | "PAN" | "INITIAL_PAN" | "PAN_VIA_SCROLL_WHEEL" | "DISABLED", KmtInputEventOutputMapping>

to

"TERMINAL" | "IDLE" | "READY_TO_PAN_VIA_SPACEBAR" | "READY_TO_PAN_VIA_SCROLL_WHEEL" | "PAN" | "INITIAL_PAN" | "PAN_VIA_SCROLL_WHEEL" | "DISABLED"

戻り値

void

継承元

TemplateState.beforeExit


handles()

handles<K>(args, context, stateMachine): EventResult<"IDLE" | "READY_TO_PAN_VIA_SPACEBAR" | "READY_TO_PAN_VIA_SCROLL_WHEEL" | "PAN" | "INITIAL_PAN" | "PAN_VIA_SCROLL_WHEEL" | "DISABLED", K extends keyof KmtInputEventOutputMapping ? KmtInputEventOutputMapping[K<K>] : void>

定義: packages/being/dist/interface.d.ts:501

型パラメーター

K

K extends string

パラメータ

args

EventArgs<KmtInputEventMapping, K>

context

KmtInputContext

stateMachine

StateMachine<KmtInputEventMapping, KmtInputContext, "IDLE" | "READY_TO_PAN_VIA_SPACEBAR" | "READY_TO_PAN_VIA_SCROLL_WHEEL" | "PAN" | "INITIAL_PAN" | "PAN_VIA_SCROLL_WHEEL" | "DISABLED", KmtInputEventOutputMapping>

戻り値

EventResult<"IDLE" | "READY_TO_PAN_VIA_SPACEBAR" | "READY_TO_PAN_VIA_SCROLL_WHEEL" | "PAN" | "INITIAL_PAN" | "PAN_VIA_SCROLL_WHEEL" | "DISABLED", K extends keyof KmtInputEventOutputMapping ? KmtInputEventOutputMapping[K<K>] : void>

継承元

TemplateState.handles


leftPointerMoveHandler()

leftPointerMoveHandler(context, payload): KmtOutputEvent

定義: packages/board/src/input-interpretation/input-state-machine/kmt-input-state-machine.ts:497

パラメータ

context

KmtInputContext

payload

PointerEventPayload

戻り値

KmtOutputEvent


uponEnter()

uponEnter(context): void

定義: packages/board/src/input-interpretation/input-state-machine/kmt-input-state-machine.ts:493

パラメータ

context

KmtInputContext

戻り値

void

上書き

TemplateState.uponEnter