cubing.js — API Reference - v0.61.1-dev
    Preparing search index...

    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

    Index

    Properties

    currentMoveInfo?: (
        timestamp: ExperimentalMillisecondTimestamp,
    ) => CurrentMoveInfo
    timestampToPosition?: (
        timestamp: ExperimentalMillisecondTimestamp,
        startPattern?: KPattern,
    ) => PuzzlePosition

    Methods