cubing.js — API Reference - v0.61.1-dev
Go to main documentation 🔗
Preparing search index...
twisty
AlgIndexer
Interface AlgIndexer
interface
AlgIndexer
{
currentMoveInfo
?:
(
timestamp
:
ExperimentalMillisecondTimestamp
,
)
=>
CurrentMoveInfo
;
timestampToPosition
?:
(
timestamp
:
ExperimentalMillisecondTimestamp
,
startPattern
?:
KPattern
,
)
=>
PuzzlePosition
;
algDuration
()
:
ExperimentalMillisecondDuration
;
getAnimLeaf
(
index
:
ExperimentalLeafIndex
)
:
AnimatedLeafAlgNode
|
null
;
indexToMoveStartTimestamp
(
index
:
ExperimentalLeafIndex
,
)
:
ExperimentalMillisecondTimestamp
;
moveDuration
(
index
:
ExperimentalLeafIndex
)
:
ExperimentalMillisecondDuration
;
numAnimatedLeaves
()
:
ExperimentalLeafCount
;
patternAtIndex
(
index
:
ExperimentalLeafIndex
,
startPattern
?:
KPattern
,
)
:
KPattern
;
timestampToIndex
(
timestamp
:
ExperimentalMillisecondTimestamp
,
)
:
ExperimentalLeafIndex
;
transformationAtIndex
(
index
:
ExperimentalLeafIndex
)
:
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
currentMoveInfo
?:
(
timestamp
:
ExperimentalMillisecondTimestamp
,
)
=>
CurrentMoveInfo
Optional
timestamp
To
Position
timestampToPosition
?:
(
timestamp
:
ExperimentalMillisecondTimestamp
,
startPattern
?:
KPattern
,
)
=>
PuzzlePosition
Methods
alg
Duration
algDuration
()
:
ExperimentalMillisecondDuration
Returns
ExperimentalMillisecondDuration
get
Anim
Leaf
getAnimLeaf
(
index
:
ExperimentalLeafIndex
)
:
AnimatedLeafAlgNode
|
null
Parameters
index
:
ExperimentalLeafIndex
Returns
AnimatedLeafAlgNode
|
null
index
To
Move
Start
Timestamp
indexToMoveStartTimestamp
(
index
:
ExperimentalLeafIndex
,
)
:
ExperimentalMillisecondTimestamp
Parameters
index
:
ExperimentalLeafIndex
Returns
ExperimentalMillisecondTimestamp
move
Duration
moveDuration
(
index
:
ExperimentalLeafIndex
)
:
ExperimentalMillisecondDuration
Parameters
index
:
ExperimentalLeafIndex
Returns
ExperimentalMillisecondDuration
num
Animated
Leaves
numAnimatedLeaves
()
:
ExperimentalLeafCount
Returns
ExperimentalLeafCount
pattern
At
Index
patternAtIndex
(
index
:
ExperimentalLeafIndex
,
startPattern
?:
KPattern
)
:
KPattern
Parameters
index
:
ExperimentalLeafIndex
Optional
startPattern
:
KPattern
Returns
KPattern
timestamp
To
Index
timestampToIndex
(
timestamp
:
ExperimentalMillisecondTimestamp
,
)
:
ExperimentalLeafIndex
Parameters
timestamp
:
ExperimentalMillisecondTimestamp
Returns
ExperimentalLeafIndex
transformation
At
Index
transformationAtIndex
(
index
:
ExperimentalLeafIndex
)
:
KTransformation
Parameters
index
:
ExperimentalLeafIndex
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.61.1-dev
Loading...