Skip to content

@ue-too/board / index / IdleState

クラス: IdleState

定義: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:109

IDLE state - waiting for two-finger touch.

Remarks

This state handles touch lifecycle but only transitions to PENDING when exactly two touches are active. Single touches and three+ touches are ignored.

Guard Condition: Transitions to PENDING only when getCurrentTouchPointsCount() === 2. This ensures the state machine only handles two-finger gestures.

拡張

コンストラクター

コンストラクター

new IdleState(): IdleState

戻り値

IdleState

継承元

TemplateState< TouchEventMapping, TouchContext, TouchStates, TouchInputEventOutputMapping >.constructor

プロパティ

_defer

protected _defer: Defer<TouchContext, TouchEventMapping, TouchStates, TouchInputEventOutputMapping> | undefined

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

継承元

TemplateState._defer


_delay

protected _delay: Delay<TouchContext, TouchEventMapping, TouchStates, TouchInputEventOutputMapping> | undefined

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

継承元

TemplateState._delay


_eventGuards

protected _eventGuards: Partial<EventGuards<TouchEventMapping, TouchStates, TouchContext, typeof _guards>>

定義: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:137

上書き

TemplateState._eventGuards


_eventReactions

protected _eventReactions: EventReactions<TouchEventMapping, TouchContext, TouchStates, TouchInputEventOutputMapping>

定義: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:115

上書き

TemplateState._eventReactions


_guards

protected _guards: Guard<TouchContext, "touchPointsCount">

定義: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:131

上書き

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

TouchContext

stateMachine

StateMachine<TouchEventMapping, TouchContext, TouchStates, TouchInputEventOutputMapping>

to

"TERMINAL" | TouchStates

戻り値

void

継承元

TemplateState.beforeExit


handles()

handles<K>(args, context, stateMachine): EventResult<TouchStates, K extends "touchmove" ? TouchInputEventOutputMapping[K<K>] : void>

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

型パラメーター

K

K extends string

パラメータ

args

EventArgs<TouchEventMapping, K>

context

TouchContext

stateMachine

StateMachine<TouchEventMapping, TouchContext, TouchStates, TouchInputEventOutputMapping>

戻り値

EventResult<TouchStates, K extends "touchmove" ? TouchInputEventOutputMapping[K<K>] : void>

継承元

TemplateState.handles


touchend()

touchend(context, payload): void

定義: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:163

パラメータ

context

TouchContext

payload

TouchEventPayload

戻り値

void


touchstart()

touchstart(context, payload): void

定義: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:159

パラメータ

context

TouchContext

payload

TouchEventPayload

戻り値

void


uponEnter()

uponEnter(context, stateMachine, from): void

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

パラメータ

context

TouchContext

stateMachine

StateMachine<TouchEventMapping, TouchContext, TouchStates, TouchInputEventOutputMapping>

from

"INITIAL" | TouchStates

戻り値

void

継承元

TemplateState.uponEnter