Preparing search index...
The search index is not available
@niuee/board
@niuee/board
KmtIdleState
Class KmtIdleState
Hierarchy (
View Summary
)
TemplateState
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
KmtIdleState
Index
Constructors
constructor
Properties
_event
Guards
_guards
Accessors
event
Guards
event
Reactions
guards
Methods
handles
left
Pointer
Move
Handler
middle
Pointer
Down
Handler
scroll
Handler
scroll
With
Ctrl
Handler
spacebar
Down
Handler
upon
Enter
upon
Leave
Constructors
constructor
new
KmtIdleState
(
world
?:
World
)
:
KmtIdleState
Parameters
world
:
World
= ...
Returns
KmtIdleState
Properties
Protected
_event
Guards
_eventGuards
:
Partial
<
EventGuards
<
KmtInputEventMapping
,
KmtInputStates
,
KmtInputContext
,
Guard
<
KmtInputContext
>
,
>
,
>
= {}
Protected
_guards
_guards
:
Guard
<
KmtInputContext
,
"isIdle"
>
= { isIdle: () => true, }
Accessors
event
Guards
get
eventGuards
()
:
Partial
<
EventGuards
<
EventPayloadMapping
,
States
,
Context
,
Guard
<
Context
,
string
>
,
>
,
>
Returns
Partial
<
EventGuards
<
EventPayloadMapping
,
States
,
Context
,
Guard
<
Context
,
string
>
,
>
,
>
event
Reactions
get
eventReactions
()
:
Partial
<
EventAction
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
,
>
Returns
Partial
<
EventAction
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
>
guards
get
guards
()
:
Guard
<
Context
>
Returns
Guard
<
Context
>
Methods
handles
handles
<
K
extends
keyof
KmtInputEventMapping
>
(
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
,
>
,
event
:
K
,
payload
:
KmtInputEventMapping
[
K
]
,
context
:
KmtInputContext
,
)
:
KmtInputStates
Type Parameters
K
extends
keyof
KmtInputEventMapping
Parameters
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
event
:
K
payload
:
KmtInputEventMapping
[
K
]
context
:
KmtInputContext
Returns
KmtInputStates
left
Pointer
Move
Handler
leftPointerMoveHandler
(
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
,
>
,
context
:
KmtInputContext
,
payload
:
PointerEventPayload
,
)
:
KmtInputStates
Parameters
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
context
:
KmtInputContext
payload
:
PointerEventPayload
Returns
KmtInputStates
middle
Pointer
Down
Handler
middlePointerDownHandler
(
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
,
>
,
context
:
KmtInputContext
,
payload
:
PointerEventPayload
,
)
:
KmtInputStates
Parameters
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
context
:
KmtInputContext
payload
:
PointerEventPayload
Returns
KmtInputStates
scroll
Handler
scrollHandler
(
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
,
>
,
context
:
KmtInputContext
,
payload
:
ScrollEventPayload
,
)
:
KmtInputStates
Parameters
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
context
:
KmtInputContext
payload
:
ScrollEventPayload
Returns
KmtInputStates
scroll
With
Ctrl
Handler
scrollWithCtrlHandler
(
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
,
>
,
context
:
KmtInputContext
,
payload
:
ScrollWithCtrlEventPayload
,
)
:
KmtInputStates
Parameters
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
context
:
KmtInputContext
payload
:
ScrollWithCtrlEventPayload
Returns
KmtInputStates
spacebar
Down
Handler
spacebarDownHandler
(
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
,
>
,
context
:
KmtInputContext
,
payload
:
SpaceBarEventPayload
,
)
:
KmtInputStates
Parameters
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
context
:
KmtInputContext
payload
:
SpaceBarEventPayload
Returns
KmtInputStates
upon
Enter
uponEnter
(
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
,
>
,
context
:
KmtInputContext
,
)
:
void
Parameters
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
context
:
KmtInputContext
Returns
void
upon
Leave
uponLeave
(
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
,
>
,
context
:
KmtInputContext
,
)
:
void
Parameters
stateMachine
:
StateMachine
<
KmtInputEventMapping
,
KmtInputContext
,
KmtInputStates
>
context
:
KmtInputContext
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_event
Guards
_guards
Accessors
event
Guards
event
Reactions
guards
Methods
handles
left
Pointer
Move
Handler
middle
Pointer
Down
Handler
scroll
Handler
scroll
With
Ctrl
Handler
spacebar
Down
Handler
upon
Enter
upon
Leave
@niuee/board
Loading...