frontend
Preparing search index...
utils/replayBuilder
ReplayBuilderConfig
Interface ReplayBuilderConfig<TResponse, TAction, TCtx>
Configuration for building replay animation states from CPU actions.
interface
ReplayBuilderConfig
<
TResponse
,
TAction
,
TCtx
>
{
actions
:
TAction
[]
;
applyAction
:
(
ctx
:
TCtx
,
action
:
TAction
)
=>
void
;
buildState
:
(
finalState
:
TResponse
,
ctx
:
TCtx
,
action
:
TAction
,
processedActions
:
TAction
[]
,
isLast
:
boolean
,
)
=>
TResponse
;
finalState
:
TResponse
;
initContext
:
(
finalState
:
TResponse
)
=>
TCtx
;
reverseAction
:
(
ctx
:
TCtx
,
action
:
TAction
)
=>
void
;
}
Type Parameters
TResponse
TAction
TCtx
Index
Properties
actions
apply
Action
build
State
final
State
init
Context
reverse
Action
Properties
actions
actions
:
TAction
[]
apply
Action
applyAction
:
(
ctx
:
TCtx
,
action
:
TAction
)
=>
void
build
State
buildState
:
(
finalState
:
TResponse
,
ctx
:
TCtx
,
action
:
TAction
,
processedActions
:
TAction
[]
,
isLast
:
boolean
,
)
=>
TResponse
final
State
finalState
:
TResponse
init
Context
initContext
:
(
finalState
:
TResponse
)
=>
TCtx
reverse
Action
reverseAction
:
(
ctx
:
TCtx
,
action
:
TAction
)
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
actions
apply
Action
build
State
final
State
init
Context
reverse
Action
frontend
Loading...
Configuration for building replay animation states from CPU actions.