Go to main documentation 🔗
Preparing search index...
The search index is not available
cubing.js — API Reference - v0.53.9-dev
cubing.js — API Reference
twisty
AlgIndexer
Interface AlgIndexer
interface
AlgIndexer
{
currentMoveInfo
?:
(
(
timestamp
:
number
)
=>
CurrentMoveInfo
)
;
timestampToPosition
?:
(
(
timestamp
:
number
,
startPattern
?:
KPattern
)
=>
PuzzlePosition
)
;
algDuration
(
)
:
number
;
getAnimLeaf
(
index
:
number
)
:
null
|
AnimatedLeafAlgNode
;
indexToMoveStartTimestamp
(
index
:
number
)
:
number
;
moveDuration
(
index
:
number
)
:
number
;
numAnimatedLeaves
(
)
:
number
;
patternAtIndex
(
index
:
number
,
startPattern
?:
KPattern
)
:
KPattern
;
timestampToIndex
(
timestamp
:
number
)
:
number
;
transformationAtIndex
(
index
:
number
)
:
KTransformation
;
}
Implemented by
SimpleAlgIndexer
TreeAlgIndexer
Index
Properties
current
Move
Info?
timestamp
To
Position?
Methods
alg
Duration
get
Anim
Leaf
index
To
Move
Start
Timestamp
move
Duration
num
Animated
Leaves
pattern
At
Index
timestamp
To
Index
transformation
At
Index
Properties
Optional
current
Move
Info
current
Move
Info
?:
(
(
timestamp
:
number
)
=>
CurrentMoveInfo
)
Optional
timestamp
To
Position
timestamp
To
Position
?:
(
(
timestamp
:
number
,
startPattern
?:
KPattern
)
=>
PuzzlePosition
)
Methods
alg
Duration
alg
Duration
(
)
:
number
Returns
number
get
Anim
Leaf
get
Anim
Leaf
(
index
)
:
null
|
AnimatedLeafAlgNode
Parameters
index
:
number
Returns
null
|
AnimatedLeafAlgNode
index
To
Move
Start
Timestamp
index
To
Move
Start
Timestamp
(
index
)
:
number
Parameters
index
:
number
Returns
number
move
Duration
move
Duration
(
index
)
:
number
Parameters
index
:
number
Returns
number
num
Animated
Leaves
num
Animated
Leaves
(
)
:
number
Returns
number
pattern
At
Index
pattern
At
Index
(
index
,
startPattern
?
)
:
KPattern
Parameters
index
:
number
Optional
startPattern
:
KPattern
Returns
KPattern
timestamp
To
Index
timestamp
To
Index
(
timestamp
)
:
number
Parameters
timestamp
:
number
Returns
number
transformation
At
Index
transformation
At
Index
(
index
)
:
KTransformation
Parameters
index
:
number
Returns
KTransformation
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
current
Move
Info
timestamp
To
Position
Methods
alg
Duration
get
Anim
Leaf
index
To
Move
Start
Timestamp
move
Duration
num
Animated
Leaves
pattern
At
Index
timestamp
To
Index
transformation
At
Index
Go to main documentation 🔗
cubing.js — API Reference - v0.53.9-dev
Loading...