Skip to content

@ue-too/board / PendingState

Class: PendingState

Defined in: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:173

Description

The pending state of the touch input state machine.

Extends

Constructors

Constructor

new PendingState(): PendingState

Returns

PendingState

Inherited from

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

Properties

_defer

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

Defined in: packages/being/dist/interface.d.ts:492

Inherited from

TemplateState._defer


_delay

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

Defined in: packages/being/dist/interface.d.ts:491

Inherited from

TemplateState._delay


_eventGuards

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

Defined in: packages/being/dist/interface.d.ts:490

Inherited from

TemplateState._eventGuards


_eventReactions

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

Defined in: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:179

Overrides

TemplateState._eventReactions


_guards

protected _guards: Guard<Context>

Defined in: packages/being/dist/interface.d.ts:489

Inherited from

TemplateState._guards

Accessors

delay

Get Signature

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

Defined in: packages/being/dist/interface.d.ts:497

Returns

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

Inherited from

TemplateState.delay


eventGuards

Get Signature

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

Defined in: packages/being/dist/interface.d.ts:495

Returns

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

Inherited from

TemplateState.eventGuards


eventReactions

Get Signature

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

Defined in: packages/being/dist/interface.d.ts:496

Returns

EventReactions<EventPayloadMapping, Context, States, EventOutputMapping>

Inherited from

TemplateState.eventReactions


guards

Get Signature

get guards(): Guard<Context>

Defined in: packages/being/dist/interface.d.ts:494

Returns

Guard<Context>

Inherited from

TemplateState.guards


handlingEvents

Get Signature

get handlingEvents(): keyof EventPayloadMapping[]

Defined in: packages/being/dist/interface.d.ts:493

Returns

keyof EventPayloadMapping[]

Inherited from

TemplateState.handlingEvents

Methods

beforeExit()

beforeExit(context, stateMachine, to): void

Defined in: packages/being/dist/interface.d.ts:499

Parameters

context

TouchContext

stateMachine

StateMachine<TouchEventMapping, TouchContext, TouchStates, TouchInputEventOutputMapping>

to

"TERMINAL" | TouchStates

Returns

void

Inherited from

TemplateState.beforeExit


handles()

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

Defined in: packages/being/dist/interface.d.ts:500

Type Parameters

K

K extends string

Parameters

args

EventArgs<TouchEventMapping, K>

context

TouchContext

stateMachine

StateMachine<TouchEventMapping, TouchContext, TouchStates, TouchInputEventOutputMapping>

Returns

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

Inherited from

TemplateState.handles


touchend()

touchend(context, payload): void

Defined in: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:203

Parameters

context

TouchContext

payload

TouchEventPayload

Returns

void


touchmove()

touchmove(context, payload): TouchOutputEvent

Defined in: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:207

Parameters

context

TouchContext

payload

TouchEventPayload

Returns

TouchOutputEvent


touchstart()

touchstart(context, payload): void

Defined in: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:199

Parameters

context

TouchContext

payload

TouchEventPayload

Returns

void


uponEnter()

uponEnter(context, stateMachine, from): void

Defined in: packages/being/dist/interface.d.ts:498

Parameters

context

TouchContext

stateMachine

StateMachine<TouchEventMapping, TouchContext, TouchStates, TouchInputEventOutputMapping>

from

"INITIAL" | TouchStates

Returns

void

Inherited from

TemplateState.uponEnter