cubing 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.DS_Store +0 -0
- package/dist/bin/puzzle-geometry-bin.js +9 -5
- package/dist/bin/puzzle-geometry-bin.js.map +2 -2
- package/dist/bundle-global/cubing.bundle-global.js +284 -303
- package/dist/esm/.DS_Store +0 -0
- package/dist/esm/3d-3WQVOHX5.js +21 -0
- package/dist/esm/3d-3WQVOHX5.js.map +7 -0
- package/dist/esm/alg/index.js +1 -1
- package/dist/esm/bluetooth/index.js +3 -3
- package/dist/esm/bluetooth/index.js.map +1 -1
- package/dist/esm/{chunk-RE7MIN5R.js → chunk-4IUYLRHT.js} +2 -2
- package/dist/esm/{chunk-RE7MIN5R.js.map → chunk-4IUYLRHT.js.map} +0 -0
- package/dist/esm/{chunk-7GADUDIG.js → chunk-7KI3I3Y7.js} +5 -5
- package/dist/esm/{chunk-7GADUDIG.js.map → chunk-7KI3I3Y7.js.map} +0 -0
- package/dist/esm/{chunk-5DN4DAAX.js → chunk-DLN5QS4V.js} +448 -1052
- package/dist/esm/chunk-DLN5QS4V.js.map +7 -0
- package/dist/esm/{chunk-BU5PUJK3.js → chunk-EWRBHQFX.js} +1 -1
- package/dist/esm/{chunk-BU5PUJK3.js.map → chunk-EWRBHQFX.js.map} +1 -1
- package/dist/esm/{chunk-CQS6JZ7G.js → chunk-HXKINJ7U.js} +6 -6
- package/dist/esm/{chunk-CQS6JZ7G.js.map → chunk-HXKINJ7U.js.map} +2 -2
- package/dist/esm/{chunk-YV3RT5PX.js → chunk-X6JHXPDX.js} +2 -2
- package/dist/esm/{chunk-YV3RT5PX.js.map → chunk-X6JHXPDX.js.map} +0 -0
- package/dist/esm/kpuzzle/index.js +2 -2
- package/dist/esm/notation/index.js +2 -2
- package/dist/esm/protocol/index.js +2 -2
- package/dist/esm/puzzle-geometry/index.js +10 -6
- package/dist/esm/puzzle-geometry/index.js.map +2 -2
- package/dist/esm/puzzles/index.js +7 -7
- package/dist/esm/scramble/index.js +4 -4
- package/dist/esm/search/index.js +4 -4
- package/dist/esm/stream/index.js +1 -1
- package/dist/esm/twisty/index.js +723 -2344
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/esm/{worker-inside-generated-string-KDZOUGJF.js → worker-inside-generated-string-ZA6E6672.js} +21 -21
- package/dist/esm/worker-inside-generated-string-ZA6E6672.js.map +7 -0
- package/dist/types/alg/index.d.ts +1 -0
- package/dist/types/alg/index.d.ts.map +1 -1
- package/dist/types/alg/units/leaves/Move.d.ts +1 -1
- package/dist/types/alg/units/leaves/Move.d.ts.map +1 -1
- package/dist/types/cubing.bundle-global.d.ts +1 -24
- package/dist/types/cubing.bundle-global.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts +3 -0
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts +5 -1
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts.map +1 -1
- package/dist/types/puzzles/index.d.ts +6 -2
- package/dist/types/puzzles/index.d.ts.map +1 -1
- package/dist/types/search/worker-inside-generated-string.d.ts +1 -1
- package/dist/types/search/worker-inside-generated-string.d.ts.map +1 -1
- package/dist/types/twisty/{old/animation/cursor/CursorTypes.d.ts → controllers/AnimationTypes.d.ts} +10 -3
- package/dist/types/twisty/controllers/AnimationTypes.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/RenderScheduler.d.ts +0 -0
- package/dist/types/twisty/controllers/RenderScheduler.d.ts.map +1 -0
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts +1 -1
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts.map +1 -1
- package/dist/types/twisty/{old/animation → controllers}/easing.d.ts +0 -0
- package/dist/types/twisty/controllers/easing.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/indexer/AlgDuration.d.ts +2 -2
- package/dist/types/twisty/controllers/indexer/AlgDuration.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/indexer/AlgIndexer.d.ts +3 -3
- package/dist/types/twisty/controllers/indexer/AlgIndexer.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/indexer/SimpleAlgIndexer.d.ts +3 -3
- package/dist/types/twisty/controllers/indexer/SimpleAlgIndexer.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts +3 -3
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts +3 -3
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/indexer/simultaneous-moves/simul-moves.d.ts +2 -2
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/simul-moves.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/indexer/tree/AlgWalker.d.ts +2 -2
- package/dist/types/twisty/controllers/indexer/tree/AlgWalker.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/indexer/tree/TreeAlgIndexer.d.ts +3 -3
- package/dist/types/twisty/controllers/indexer/tree/TreeAlgIndexer.d.ts.map +1 -0
- package/dist/types/twisty/controllers/indexer/tree/chunkAlgs.d.ts +3 -0
- package/dist/types/twisty/controllers/indexer/tree/chunkAlgs.d.ts.map +1 -0
- package/dist/types/twisty/{old/animation → controllers}/stream/timeline-move-calculation-draft.d.ts +2 -2
- package/dist/types/twisty/controllers/stream/timeline-move-calculation-draft.d.ts.map +1 -0
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts +1 -2
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts.map +1 -1
- package/dist/types/twisty/index.d.ts +9 -12
- package/dist/types/twisty/index.d.ts.map +1 -1
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts +11 -0
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts.map +1 -1
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts +1 -1
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/display/FoundationDisplayProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/display/FoundationDisplayProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts +5 -1
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts +44 -1
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts +2 -2
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesProp.d.ts +1 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts +1 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts +1 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts +5 -2
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts +2 -2
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts +2 -2
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/NaiveMoveCountProp.d.ts +10 -0
- package/dist/types/twisty/model/props/puzzle/state/NaiveMoveCountProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts +5 -1
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts +1 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts +19 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts +1 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts +2 -3
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts +1 -1
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts +1 -1
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts +6 -1
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts +5 -1
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts +5 -1
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts +18 -5
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts +6 -6
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts +2 -2
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts +5 -1
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts +7 -1
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts +1 -1
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts.map +1 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.css.d.ts +3 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.css.d.ts.map +1 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts +4 -6
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts.map +1 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts +1 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts.map +1 -1
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts +2 -2
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts.map +1 -1
- package/dist/types/twisty/views/3D/DragTracker.d.ts +28 -0
- package/dist/types/twisty/views/3D/DragTracker.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/RendererPool.d.ts.map +1 -1
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts +6 -1
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts.map +1 -1
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts +9 -4
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts.map +1 -1
- package/dist/types/twisty/views/3D/Twisty3DVantage.css.d.ts +3 -0
- package/dist/types/twisty/views/3D/Twisty3DVantage.css.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts +12 -8
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts.map +1 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts +24 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControls.spec.d.ts +5 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControls.spec.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts +4 -4
- package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts.map +1 -1
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts +17 -10
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts.map +1 -1
- package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts +1 -1
- package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts.map +1 -1
- package/dist/types/twisty/{old/dom/element → views}/ClassListManager.d.ts +0 -0
- package/dist/types/twisty/views/ClassListManager.d.ts.map +1 -0
- package/dist/types/twisty/{old/dom/element → views}/ManagedCustomElement.d.ts +0 -0
- package/dist/types/twisty/views/ManagedCustomElement.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts +1 -1
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts.map +1 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts +1 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts.map +1 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts +2 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts.map +1 -1
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts +1 -1
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts.map +1 -1
- package/dist/types/twisty/views/TwistyAlgViewer.d.ts +2 -2
- package/dist/types/twisty/views/TwistyAlgViewer.d.ts.map +1 -1
- package/dist/types/twisty/views/TwistyPlayer.css.d.ts +3 -0
- package/dist/types/twisty/views/TwistyPlayer.css.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyPlayer.d.ts +7 -3
- package/dist/types/twisty/views/TwistyPlayer.d.ts.map +1 -1
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts +7 -4
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts.map +1 -1
- package/dist/types/twisty/views/TwistyViewerWrapper.css.d.ts +3 -0
- package/dist/types/twisty/views/TwistyViewerWrapper.css.d.ts.map +1 -0
- package/dist/types/twisty/{old/dom/viewers → views}/canvas.d.ts +0 -0
- package/dist/types/twisty/views/canvas.d.ts.map +1 -0
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.css.d.ts +4 -0
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.css.d.ts.map +1 -0
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts +1 -1
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts.map +1 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubber.css.d.ts +3 -0
- package/dist/types/twisty/{old/dom/controls → views/control-panel}/TwistyScrubber.css.d.ts.map +1 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts +1 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts.map +1 -1
- package/dist/types/twisty/{old/dom/element → views}/node-custom-element-shims.d.ts +0 -0
- package/dist/types/twisty/views/node-custom-element-shims.d.ts.map +1 -0
- package/dist/types/twisty/views/stream/TwistyStreamSource.css.d.ts +3 -0
- package/dist/types/twisty/views/stream/TwistyStreamSource.css.d.ts.map +1 -0
- package/dist/types/twisty/{old/dom → views}/stream/TwistyStreamSource.d.ts +1 -1
- package/dist/types/twisty/views/stream/TwistyStreamSource.d.ts.map +1 -0
- package/docs/.DS_Store +0 -0
- package/docs/cubing/.DS_Store +0 -0
- package/docs/cubing/api/index.html +11 -52
- package/package.json +1 -1
- package/src/cubing/.DS_Store +0 -0
- package/src/cubing/alg/index.ts +1 -0
- package/src/cubing/alg/units/leaves/Move.ts +1 -1
- package/src/cubing/bluetooth/smart-timer/GanTimer.ts +1 -1
- package/src/cubing/cubing.bundle-global.ts +2 -2
- package/src/cubing/puzzle-geometry/PGPuzzles.spec.ts +4 -0
- package/src/cubing/puzzle-geometry/PuzzleGeometry.ts +14 -6
- package/src/cubing/puzzles/index.ts +3 -3
- package/src/cubing/search/worker-inside-generated-string.js +1 -1
- package/src/cubing/twisty/.DS_Store +0 -0
- package/src/cubing/{kpuzzle → twisty/controllers}/.DS_Store +0 -0
- package/src/cubing/twisty/{old/animation/cursor/CursorTypes.ts → controllers/AnimationTypes.ts} +11 -2
- package/src/cubing/twisty/{old/animation → controllers}/RenderScheduler.ts +0 -0
- package/src/cubing/twisty/controllers/TwistyAnimationController.ts +4 -4
- package/src/cubing/{search → twisty/controllers/animation}/.DS_Store +0 -0
- package/src/cubing/twisty/{old/animation → controllers}/easing.ts +0 -0
- package/src/cubing/{vendor → twisty/controllers/indexer}/.DS_Store +0 -0
- package/src/cubing/twisty/{old/animation → controllers}/indexer/AlgDuration.ts +2 -2
- package/src/cubing/twisty/{old/animation → controllers}/indexer/AlgIndexer.ts +4 -4
- package/src/cubing/twisty/{old/animation → controllers}/indexer/SimpleAlgIndexer.ts +4 -4
- package/src/cubing/twisty/{old/animation → controllers}/indexer/simultaneous-moves/SimultaneousMoveIndexer.ts +3 -3
- package/src/cubing/twisty/{old/animation → controllers}/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.ts +3 -3
- package/src/cubing/twisty/{old/animation → controllers}/indexer/simultaneous-moves/simul-moves.ts +2 -2
- package/src/cubing/twisty/{old/animation → controllers}/indexer/tree/AlgWalker.ts +4 -4
- package/src/cubing/twisty/{old/animation → controllers}/indexer/tree/TreeAlgIndexer.ts +3 -3
- package/src/cubing/twisty/{old/animation → controllers}/indexer/tree/chunkAlgs.ts +2 -2
- package/src/cubing/twisty/{old/animation → controllers}/stream/timeline-move-calculation-draft.spec.ts.TODO +0 -0
- package/src/cubing/twisty/{old/animation → controllers}/stream/timeline-move-calculation-draft.ts +2 -2
- package/src/cubing/{alg → twisty/heavy-code-imports}/.DS_Store +0 -0
- package/src/cubing/twisty/heavy-code-imports/dynamic-entries/3d.ts +2 -12
- package/src/cubing/twisty/index.ts +12 -19
- package/src/cubing/twisty/model/.DS_Store +0 -0
- package/src/cubing/twisty/model/TwistyPlayerModel.ts +30 -1
- package/src/cubing/twisty/model/props/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/TwistyPropDebugger.ts +3 -3
- package/src/cubing/twisty/model/props/puzzle/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/puzzle/display/FoundationDisplayProp.ts +9 -0
- package/src/cubing/twisty/model/props/puzzle/display/HintFaceletProp.ts +6 -1
- package/src/cubing/twisty/model/props/puzzle/display/StickeringProp.ts +47 -1
- package/src/cubing/twisty/model/props/puzzle/state/AlgTransformationProp.ts +1 -1
- package/src/cubing/twisty/model/props/puzzle/state/AnchoredStartProp.ts +2 -2
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesProp.ts +2 -2
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesSimplified.ts +1 -1
- package/src/cubing/twisty/model/props/puzzle/state/CurrentTransformationProp.ts +1 -1
- package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorProp.ts +12 -5
- package/src/cubing/twisty/model/props/puzzle/state/IndexerProp.ts +2 -2
- package/src/cubing/twisty/model/props/puzzle/state/LegacyPositionProp.ts +2 -2
- package/src/cubing/twisty/model/props/puzzle/state/MovePressInputProp.ts +9 -0
- package/src/cubing/twisty/model/props/puzzle/state/NaiveMoveCountProp.ts +20 -0
- package/src/cubing/twisty/model/props/puzzle/state/SetupAnchorProp.ts +7 -1
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDProp.ts +1 -1
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.ts +20 -1
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleLoaderProp.ts +1 -1
- package/src/cubing/twisty/model/props/timeline/DetailedTimelineInfoProp.ts +5 -3
- package/src/cubing/twisty/model/props/timeline/PlayingInfoProp.ts +1 -4
- package/src/cubing/twisty/model/props/timeline/TimestampRequestProp.ts +1 -1
- package/src/cubing/twisty/model/props/viewer/BackViewProp.ts +7 -1
- package/src/cubing/twisty/model/props/viewer/BackgroundProp.ts +6 -1
- package/src/cubing/twisty/model/props/viewer/ControlPanelProp.ts +5 -1
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesProp.ts +83 -12
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesRequestProp.ts +8 -8
- package/src/cubing/twisty/model/props/viewer/TimeRangeProp.ts +2 -2
- package/src/cubing/twisty/model/props/viewer/ViewerLinkProp.ts +5 -1
- package/src/cubing/twisty/model/props/viewer/VisualizationProp.ts +8 -1
- package/src/cubing/twisty/model/props/viewer/VisualizationStrategyProp.ts +1 -1
- package/src/cubing/twisty/old/.DS_Store +0 -0
- package/src/cubing/twisty/old/animation/.DS_Store +0 -0
- package/src/cubing/twisty/old/dom/.DS_Store +0 -0
- package/src/cubing/twisty/views/.DS_Store +0 -0
- package/src/cubing/twisty/{old/dom/viewers/Twisty2DSVGView.css.ts → views/2D/Twisty2DPuzzle.css.ts} +1 -1
- package/src/cubing/twisty/views/2D/Twisty2DPuzzle.ts +8 -12
- package/src/cubing/twisty/views/2D/Twisty2DPuzzleWrapper.ts +1 -1
- package/src/cubing/twisty/views/2D/Twisty2DSceneWrapper.ts +4 -4
- package/src/cubing/twisty/{old/animation/indexer → views/3D}/.DS_Store +0 -0
- package/src/cubing/twisty/views/3D/DragTracker.ts +184 -0
- package/src/cubing/twisty/views/3D/RendererPool.ts +2 -1
- package/src/cubing/twisty/views/3D/Twisty3DPuzzleWrapper.ts +51 -5
- package/src/cubing/twisty/views/3D/Twisty3DSceneWrapper.ts +51 -10
- package/src/cubing/twisty/{old/dom/viewers/Twisty3DCanvas.css.ts → views/3D/Twisty3DVantage.css.ts} +2 -2
- package/src/cubing/twisty/views/3D/Twisty3DVantage.ts +103 -35
- package/src/cubing/twisty/views/3D/TwistyOrbitControls.spec.ts +213 -0
- package/src/cubing/twisty/views/3D/TwistyOrbitControls.ts +176 -0
- package/src/cubing/twisty/views/3D/puzzles/Cube3D.ts +5 -9
- package/src/cubing/twisty/views/3D/puzzles/PG3D.ts +127 -37
- package/src/cubing/twisty/views/3D/puzzles/Twisty3DPuzzle.ts +1 -1
- package/src/cubing/twisty/{old/dom/element → views}/ClassListManager.ts +0 -0
- package/src/cubing/twisty/{old/dom/element → views}/ManagedCustomElement.ts +0 -0
- package/src/cubing/twisty/views/TwistyAlgEditor/LeafTokens.ts +1 -1
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.ts +1 -1
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.ts +11 -4
- package/src/cubing/twisty/views/TwistyAlgViewer.css.ts +1 -1
- package/src/cubing/twisty/views/TwistyAlgViewer.ts +4 -4
- package/src/cubing/twisty/{old/dom → views}/TwistyPlayer.css.ts +4 -1
- package/src/cubing/twisty/views/TwistyPlayer.ts +16 -25
- package/src/cubing/twisty/views/TwistyPlayerSettable.ts +14 -10
- package/src/cubing/twisty/{old/dom/viewers → views}/TwistyViewerWrapper.css.ts +1 -1
- package/src/cubing/twisty/{old/dom/viewers → views}/canvas.ts +0 -0
- package/src/cubing/twisty/{old/dom/controls/buttons.css.ts → views/control-panel/TwistyButtonsV2.css.ts} +1 -1
- package/src/cubing/twisty/views/control-panel/TwistyButtonsV2.ts +5 -8
- package/src/cubing/twisty/{old/dom/controls → views/control-panel}/TwistyScrubber.css.ts +1 -1
- package/src/cubing/twisty/views/control-panel/TwistyScrubberV2.ts +3 -3
- package/src/cubing/twisty/{old/dom/element → views}/node-custom-element-shims.ts +0 -0
- package/src/cubing/twisty/{old/dom → views}/stream/TwistyStreamSource.css.ts +1 -1
- package/src/cubing/twisty/{old/dom → views}/stream/TwistyStreamSource.ts +9 -9
- package/dist/esm/3d-JZD3V366.js +0 -39
- package/dist/esm/3d-JZD3V366.js.map +0 -7
- package/dist/esm/chunk-5DN4DAAX.js.map +0 -7
- package/dist/esm/worker-inside-generated-string-KDZOUGJF.js.map +0 -7
- package/dist/types/twisty/old/animation/RenderScheduler.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/Timeline.d.ts +0 -72
- package/dist/types/twisty/old/animation/Timeline.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/cursor/AlgCursor.d.ts +0 -53
- package/dist/types/twisty/old/animation/cursor/AlgCursor.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/cursor/CursorTypes.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/easing.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/indexer/AlgDuration.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/indexer/AlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/indexer/SimpleAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/simul-moves.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/indexer/tree/AlgWalker.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/indexer/tree/TreeAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/indexer/tree/chunkAlgs.d.ts +0 -3
- package/dist/types/twisty/old/animation/indexer/tree/chunkAlgs.d.ts.map +0 -1
- package/dist/types/twisty/old/animation/stream/timeline-move-calculation-draft.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.css.d.ts +0 -3
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.css.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.d.ts +0 -52
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/TwistyPlayer.css.d.ts +0 -3
- package/dist/types/twisty/old/dom/TwistyPlayer.css.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/TwistyPlayer.d.ts +0 -92
- package/dist/types/twisty/old/dom/TwistyPlayer.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/TwistyPlayer.spec.d.ts +0 -5
- package/dist/types/twisty/old/dom/TwistyPlayer.spec.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/TwistyPlayerConfig.d.ts +0 -165
- package/dist/types/twisty/old/dom/TwistyPlayerConfig.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/controls/TwistyControlElement.d.ts +0 -2
- package/dist/types/twisty/old/dom/controls/TwistyControlElement.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/controls/TwistyScrubber.css.d.ts +0 -3
- package/dist/types/twisty/old/dom/controls/TwistyScrubber.d.ts +0 -14
- package/dist/types/twisty/old/dom/controls/TwistyScrubber.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/controls/buttons.css.d.ts +0 -4
- package/dist/types/twisty/old/dom/controls/buttons.css.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/controls/buttons.d.ts +0 -40
- package/dist/types/twisty/old/dom/controls/buttons.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/controls/buttons.spec.d.ts +0 -5
- package/dist/types/twisty/old/dom/controls/buttons.spec.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/element/ClassListManager.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/element/ElementConfig.d.ts +0 -49
- package/dist/types/twisty/old/dom/element/ElementConfig.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/element/ManagedCustomElement.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/element/node-custom-element-shims.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/stream/TwistyStreamSource.css.d.ts +0 -3
- package/dist/types/twisty/old/dom/stream/TwistyStreamSource.css.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/stream/TwistyStreamSource.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/viewers/Twisty2DSVG.d.ts +0 -26
- package/dist/types/twisty/old/dom/viewers/Twisty2DSVG.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/viewers/Twisty2DSVGView.css.d.ts +0 -3
- package/dist/types/twisty/old/dom/viewers/Twisty2DSVGView.css.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/viewers/Twisty3DCanvas.css.d.ts +0 -3
- package/dist/types/twisty/old/dom/viewers/Twisty3DCanvas.css.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/viewers/Twisty3DCanvas.d.ts +0 -41
- package/dist/types/twisty/old/dom/viewers/Twisty3DCanvas.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/viewers/TwistyOrbitControls.d.ts +0 -59
- package/dist/types/twisty/old/dom/viewers/TwistyOrbitControls.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/viewers/TwistyViewerElement.d.ts +0 -4
- package/dist/types/twisty/old/dom/viewers/TwistyViewerElement.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/viewers/TwistyViewerWrapper.css.d.ts +0 -3
- package/dist/types/twisty/old/dom/viewers/TwistyViewerWrapper.css.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/viewers/TwistyViewerWrapper.d.ts +0 -18
- package/dist/types/twisty/old/dom/viewers/TwistyViewerWrapper.d.ts.map +0 -1
- package/dist/types/twisty/old/dom/viewers/canvas.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.d.ts +0 -41
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.spec.d.ts +0 -5
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.spec.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/puzzles/TwistyTestBox.d.ts +0 -9
- package/dist/types/twisty/views/3D/puzzles/TwistyTestBox.d.ts.map +0 -1
- package/src/cubing/alg/units/.DS_Store +0 -0
- package/src/cubing/bluetooth/.DS_Store +0 -0
- package/src/cubing/puzzles/.DS_Store +0 -0
- package/src/cubing/puzzles/implementations/.DS_Store +0 -0
- package/src/cubing/stream/.DS_Store +0 -0
- package/src/cubing/twisty/old/animation/Timeline.ts +0 -378
- package/src/cubing/twisty/old/animation/cursor/AlgCursor.ts +0 -252
- package/src/cubing/twisty/old/dom/TwistyAlgViewerV1.css.ts +0 -25
- package/src/cubing/twisty/old/dom/TwistyAlgViewerV1.ts +0 -516
- package/src/cubing/twisty/old/dom/TwistyPlayer.spec.ts +0 -25
- package/src/cubing/twisty/old/dom/TwistyPlayer.ts +0 -927
- package/src/cubing/twisty/old/dom/TwistyPlayerConfig.ts +0 -378
- package/src/cubing/twisty/old/dom/controls/TwistyControlElement.ts +0 -1
- package/src/cubing/twisty/old/dom/controls/TwistyScrubber.ts +0 -53
- package/src/cubing/twisty/old/dom/controls/buttons.spec.ts +0 -37
- package/src/cubing/twisty/old/dom/controls/buttons.ts +0 -326
- package/src/cubing/twisty/old/dom/element/ElementConfig.ts +0 -180
- package/src/cubing/twisty/old/dom/viewers/Twisty2DSVG.ts +0 -118
- package/src/cubing/twisty/old/dom/viewers/Twisty3DCanvas.ts +0 -256
- package/src/cubing/twisty/old/dom/viewers/TwistyOrbitControls.ts +0 -420
- package/src/cubing/twisty/old/dom/viewers/TwistyViewerElement.ts +0 -5
- package/src/cubing/twisty/old/dom/viewers/TwistyViewerWrapper.ts +0 -45
- package/src/cubing/twisty/views/3D/TwistyOrbitControlsV2.spec.ts +0 -209
- package/src/cubing/twisty/views/3D/TwistyOrbitControlsV2.ts +0 -270
- package/src/cubing/twisty/views/3D/puzzles/TwistyTestBox.ts +0 -22
|
Binary file
|
|
Binary file
|
package/src/cubing/twisty/{old/animation/cursor/CursorTypes.ts → controllers/AnimationTypes.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Move } from "
|
|
2
|
-
import type { Transformation as KPuzzleState } from "
|
|
1
|
+
import type { Move } from "../../alg";
|
|
2
|
+
import type { Transformation as KPuzzleState } from "../../kpuzzle";
|
|
3
3
|
|
|
4
4
|
export type MillisecondTimestamp = number;
|
|
5
5
|
|
|
@@ -38,4 +38,13 @@ export enum BoundaryType {
|
|
|
38
38
|
EntireTimeline = "entire-timeline",
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
export interface TimeRange {
|
|
42
|
+
start: MillisecondTimestamp;
|
|
43
|
+
end: MillisecondTimestamp;
|
|
44
|
+
}
|
|
45
|
+
|
|
41
46
|
// export type DurationForAmount = (amount: number) => Duration;
|
|
47
|
+
|
|
48
|
+
export interface PositionListener {
|
|
49
|
+
onPositionChange(position: PuzzlePosition): void;
|
|
50
|
+
}
|
|
File without changes
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { TimeRange } from "../old/animation/cursor/AlgCursor";
|
|
2
1
|
import {
|
|
3
2
|
BoundaryType,
|
|
4
3
|
Direction,
|
|
5
4
|
directionScalar,
|
|
6
5
|
MillisecondTimestamp,
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
TimeRange,
|
|
7
|
+
} from "./AnimationTypes";
|
|
8
|
+
import { RenderScheduler } from "./RenderScheduler";
|
|
9
9
|
import type {
|
|
10
10
|
PlayingInfo,
|
|
11
11
|
SimpleDirection,
|
|
12
12
|
} from "../model/props/timeline/PlayingInfoProp";
|
|
13
13
|
import type { TwistyPlayerModel } from "../model/TwistyPlayerModel";
|
|
14
14
|
import { StaleDropper } from "../model/PromiseFreshener";
|
|
15
|
-
import type { CurrentMoveInfo } from "
|
|
15
|
+
import type { CurrentMoveInfo } from "./indexer/AlgIndexer";
|
|
16
16
|
import type { TimestampRequest } from "../model/props/timeline/TimestampRequestProp";
|
|
17
17
|
import { modIntoRange } from "../model/helpers";
|
|
18
18
|
import type { CatchUpMove } from "../model/props/puzzle/state/CatchUpMoveProp";
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
Newline,
|
|
9
9
|
Pause,
|
|
10
10
|
TraversalUp,
|
|
11
|
-
} from "
|
|
12
|
-
import type { Duration } from "../
|
|
11
|
+
} from "../../../alg";
|
|
12
|
+
import type { Duration } from "../AnimationTypes";
|
|
13
13
|
|
|
14
14
|
export function constantDurationForAmount(_amount: number): Duration {
|
|
15
15
|
return 1000;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { Move } from "
|
|
2
|
-
import { arrayEqualsCompare } from "
|
|
1
|
+
import type { Move } from "../../../alg/units";
|
|
2
|
+
import { arrayEqualsCompare } from "../../model/helpers";
|
|
3
3
|
import type {
|
|
4
4
|
PuzzleWrapper,
|
|
5
5
|
State,
|
|
6
|
-
} from "
|
|
6
|
+
} from "../../views/3D/puzzles/KPuzzleWrapper";
|
|
7
7
|
import type {
|
|
8
8
|
Direction,
|
|
9
9
|
Duration,
|
|
10
10
|
MillisecondTimestamp,
|
|
11
11
|
PuzzlePosition,
|
|
12
12
|
Timestamp,
|
|
13
|
-
} from "../
|
|
13
|
+
} from "../AnimationTypes";
|
|
14
14
|
import type { AnimatedLeafUnit } from "./simultaneous-moves/simul-moves";
|
|
15
15
|
|
|
16
16
|
export interface CurrentMove {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Alg, Move, TraversalUp } from "
|
|
2
|
-
import { countAnimatedLeaves } from "
|
|
1
|
+
import { Alg, Move, TraversalUp } from "../../../alg";
|
|
2
|
+
import { countAnimatedLeaves } from "../../../notation";
|
|
3
3
|
import type {
|
|
4
4
|
PuzzleWrapper,
|
|
5
5
|
State,
|
|
6
|
-
} from "
|
|
7
|
-
import type { Duration, Timestamp } from "../
|
|
6
|
+
} from "../../views/3D/puzzles/KPuzzleWrapper";
|
|
7
|
+
import type { Duration, Timestamp } from "../AnimationTypes";
|
|
8
8
|
import { AlgDuration, defaultDurationForAmount } from "./AlgDuration";
|
|
9
9
|
import type { AlgIndexer } from "./AlgIndexer";
|
|
10
10
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Alg, Move } from "
|
|
1
|
+
import { Alg, Move } from "../../../../alg";
|
|
2
2
|
import type {
|
|
3
3
|
PuzzleWrapper,
|
|
4
4
|
State,
|
|
5
|
-
} from "
|
|
5
|
+
} from "../../../views/3D/puzzles/KPuzzleWrapper";
|
|
6
6
|
import {
|
|
7
7
|
Direction,
|
|
8
8
|
Duration,
|
|
9
9
|
PuzzlePosition,
|
|
10
10
|
Timestamp,
|
|
11
|
-
} from "../../
|
|
11
|
+
} from "../../AnimationTypes";
|
|
12
12
|
import type { AlgIndexer } from "../AlgIndexer";
|
|
13
13
|
import { AnimatedLeafUnit, AnimLeafWithRange, simulMoves } from "./simul-moves";
|
|
14
14
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Alg, Move } from "
|
|
1
|
+
import { Alg, Move } from "../../../../alg";
|
|
2
2
|
import type {
|
|
3
3
|
PuzzleWrapper,
|
|
4
4
|
State,
|
|
5
|
-
} from "
|
|
5
|
+
} from "../../../views/3D/puzzles/KPuzzleWrapper";
|
|
6
6
|
import {
|
|
7
7
|
Direction,
|
|
8
8
|
Duration,
|
|
9
9
|
PuzzlePosition,
|
|
10
10
|
Timestamp,
|
|
11
|
-
} from "../../
|
|
11
|
+
} from "../../AnimationTypes";
|
|
12
12
|
import type { AlgIndexer, CurrentMove, CurrentMoveInfo } from "../AlgIndexer";
|
|
13
13
|
import { AnimatedLeafUnit, AnimLeafWithRange, simulMoves } from "./simul-moves";
|
|
14
14
|
|
package/src/cubing/twisty/{old/animation → controllers}/indexer/simultaneous-moves/simul-moves.ts
RENAMED
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
Alg,
|
|
9
9
|
Grouping,
|
|
10
10
|
Newline,
|
|
11
|
-
} from "
|
|
12
|
-
import type { MillisecondTimestamp } from "../../
|
|
11
|
+
} from "../../../../alg";
|
|
12
|
+
import type { MillisecondTimestamp } from "../../AnimationTypes";
|
|
13
13
|
import { defaultDurationForAmount } from "../AlgDuration";
|
|
14
14
|
|
|
15
15
|
export type AnimatedLeafUnit = Move | Pause;
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
TraversalDownUp,
|
|
11
11
|
TraversalUp,
|
|
12
12
|
Unit,
|
|
13
|
-
} from "
|
|
13
|
+
} from "../../../../alg";
|
|
14
14
|
import {
|
|
15
15
|
experimentalDirectedGenerator,
|
|
16
16
|
ExperimentalIterationDirection,
|
|
17
|
-
} from "
|
|
17
|
+
} from "../../../../alg";
|
|
18
18
|
import type {
|
|
19
19
|
PuzzleWrapper,
|
|
20
20
|
State,
|
|
21
|
-
} from "
|
|
22
|
-
import type { Duration } from "../../
|
|
21
|
+
} from "../../../views/3D/puzzles/KPuzzleWrapper";
|
|
22
|
+
import type { Duration } from "../../AnimationTypes";
|
|
23
23
|
import { AlgDuration, defaultDurationForAmount } from "../AlgDuration";
|
|
24
24
|
|
|
25
25
|
export class AlgPartDecoration<P extends PuzzleWrapper> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Alg, Move } from "
|
|
1
|
+
import type { Alg, Move } from "../../../../alg";
|
|
2
2
|
import type {
|
|
3
3
|
PuzzleWrapper,
|
|
4
4
|
State,
|
|
5
|
-
} from "
|
|
6
|
-
import type { Duration, Timestamp } from "../../
|
|
5
|
+
} from "../../../views/3D/puzzles/KPuzzleWrapper";
|
|
6
|
+
import type { Duration, Timestamp } from "../../AnimationTypes";
|
|
7
7
|
import type { AlgIndexer } from "../AlgIndexer";
|
|
8
8
|
import { chunkAlgs } from "./chunkAlgs";
|
|
9
9
|
import {
|
|
File without changes
|
package/src/cubing/twisty/{old/animation → controllers}/stream/timeline-move-calculation-draft.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Move, QuantumMove } from "
|
|
2
|
-
import type { Duration, Timestamp } from "../
|
|
1
|
+
import { Move, QuantumMove } from "../../../alg";
|
|
2
|
+
import type { Duration, Timestamp } from "../AnimationTypes";
|
|
3
3
|
|
|
4
4
|
interface Event {
|
|
5
5
|
timeStamp: Timestamp;
|
|
Binary file
|
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
import { cube3x3x3, PuzzleLoader } from "../../../puzzles";
|
|
2
|
-
import type {
|
|
3
|
-
import type { HintFaceletStyle } from "../../old/dom/TwistyPlayerConfig";
|
|
2
|
+
import type { HintFaceletStyle } from "../../model/props/puzzle/display/HintFaceletProp";
|
|
4
3
|
import { Cube3D, Cube3DOptions } from "../../views/3D/puzzles/Cube3D";
|
|
5
4
|
import { PG3D } from "../../views/3D/puzzles/PG3D";
|
|
6
5
|
|
|
7
6
|
// Mangled to avoid autocompleting.
|
|
8
7
|
// This must not be imported directly.
|
|
9
8
|
export * as T3I from "three";
|
|
10
|
-
export { Twisty3DCanvas } from "../../old/dom/viewers/Twisty3DCanvas";
|
|
11
9
|
export { Cube3D } from "../../views/3D/puzzles/Cube3D";
|
|
12
10
|
export { PG3D } from "../../views/3D/puzzles/PG3D";
|
|
13
11
|
export { Twisty3DScene } from "../../views/3D/Twisty3DScene";
|
|
14
12
|
|
|
15
13
|
export async function cube3DShim(options?: Cube3DOptions): Promise<Cube3D> {
|
|
16
|
-
const cursorShim = { addPositionListener: () => {} } as any as AlgCursor; // TODO
|
|
17
14
|
const renderCallbackShim = () => {};
|
|
18
|
-
return new Cube3D(
|
|
19
|
-
await cube3x3x3.def(),
|
|
20
|
-
cursorShim,
|
|
21
|
-
renderCallbackShim,
|
|
22
|
-
options,
|
|
23
|
-
);
|
|
15
|
+
return new Cube3D(await cube3x3x3.def(), renderCallbackShim, options);
|
|
24
16
|
}
|
|
25
17
|
|
|
26
18
|
// TODO: take loader?
|
|
@@ -28,10 +20,8 @@ export async function pg3dShim(
|
|
|
28
20
|
puzzleLoader: PuzzleLoader,
|
|
29
21
|
hintFacelets: HintFaceletStyle,
|
|
30
22
|
): Promise<PG3D> {
|
|
31
|
-
const cursorShim = { addPositionListener: () => {} } as any as AlgCursor; // TODO
|
|
32
23
|
const renderCallbackShim = () => {};
|
|
33
24
|
return new PG3D(
|
|
34
|
-
cursorShim,
|
|
35
25
|
renderCallbackShim,
|
|
36
26
|
await puzzleLoader.def(),
|
|
37
27
|
(await puzzleLoader.pg!()).get3d(),
|
|
@@ -2,30 +2,23 @@ export { TwistyPlayer } from "./views/TwistyPlayer";
|
|
|
2
2
|
export { TwistyAlgViewer } from "./views/TwistyAlgViewer";
|
|
3
3
|
export { TwistyAlgEditor } from "./views/TwistyAlgEditor/TwistyAlgEditor";
|
|
4
4
|
export type { TwistyPlayerConfig } from "./views/TwistyPlayer";
|
|
5
|
-
export {
|
|
5
|
+
export { experimentalForceNewRendererSharing } from "./views/3D/Twisty3DVantage";
|
|
6
6
|
|
|
7
7
|
export { NO_VALUE as EXPERIMENTAL_PROP_NO_VALUE } from "./model/props/TwistyProp";
|
|
8
|
-
|
|
9
|
-
// Old
|
|
10
|
-
export type { Twisty3DPuzzle } from "./views/3D/puzzles/Twisty3DPuzzle";
|
|
8
|
+
export { ExperimentalStickering } from "./model/props/puzzle/display/StickeringProp";
|
|
11
9
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
15
|
-
export {
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./old/dom/TwistyPlayerConfig";
|
|
20
|
-
export { TimestampLocationType } from "./old/animation/Timeline";
|
|
21
|
-
export type { TimelineActionEvent } from "./old/animation/Timeline";
|
|
22
|
-
export { TwistyAlgViewerV1 } from "./old/dom/TwistyAlgViewerV1";
|
|
10
|
+
BackViewLayout,
|
|
11
|
+
backViewLayouts,
|
|
12
|
+
} from "./model/props/viewer/BackViewProp";
|
|
13
|
+
export type { PuzzleID } from "./model/props/puzzle/structure/PuzzleIDRequestProp";
|
|
14
|
+
export { VisualizationFormat } from "./model/props/viewer/VisualizationProp";
|
|
15
|
+
|
|
16
|
+
export { debugShowRenderStats as experimentalDebugShowRenderStats } from "./views/3D/Twisty3DVantage";
|
|
23
17
|
|
|
24
18
|
// Older
|
|
25
19
|
export { Cube3D } from "./views/3D/puzzles/Cube3D";
|
|
26
20
|
export { PG3D } from "./views/3D/puzzles/PG3D";
|
|
27
|
-
export type { AlgIndexer } from "./
|
|
28
|
-
export { SimpleAlgIndexer } from "./
|
|
29
|
-
export { TreeAlgIndexer } from "./
|
|
21
|
+
export type { AlgIndexer } from "./controllers/indexer/AlgIndexer";
|
|
22
|
+
export { SimpleAlgIndexer } from "./controllers/indexer/SimpleAlgIndexer";
|
|
23
|
+
export { TreeAlgIndexer } from "./controllers/indexer/tree/TreeAlgIndexer";
|
|
30
24
|
export { KPuzzleWrapper as KSolvePuzzle } from "./views/3D/puzzles/KPuzzleWrapper";
|
|
31
|
-
export type { BackViewLayout } from "./old/dom/viewers/TwistyViewerWrapper";
|
|
Binary file
|
|
@@ -37,6 +37,10 @@ import { LegacyPositionProp } from "./props/puzzle/state/LegacyPositionProp";
|
|
|
37
37
|
import { PuzzleDefProp } from "./props/puzzle/structure/PuzzleDefProp";
|
|
38
38
|
import { UserVisibleErrorTracker } from "./UserVisibleErrorTracker";
|
|
39
39
|
import { CatchUpMoveProp } from "./props/puzzle/state/CatchUpMoveProp";
|
|
40
|
+
import { experimentalAppendMove, Move } from "../../alg";
|
|
41
|
+
import { NaiveMoveCountProp } from "./props/puzzle/state/NaiveMoveCountProp";
|
|
42
|
+
import { MovePressInputProp } from "./props/puzzle/state/MovePressInputProp";
|
|
43
|
+
import { FoundationDisplayProp } from "./props/puzzle/display/FoundationDisplayProp";
|
|
40
44
|
|
|
41
45
|
export class TwistyPlayerModel {
|
|
42
46
|
// TODO: incorporate error handling into the entire prop graph.
|
|
@@ -51,14 +55,15 @@ export class TwistyPlayerModel {
|
|
|
51
55
|
backViewProp = new BackViewProp();
|
|
52
56
|
controlPanelProp = new ControlPanelProp();
|
|
53
57
|
catchUpMoveProp = new CatchUpMoveProp();
|
|
58
|
+
foundationDisplayProp = new FoundationDisplayProp();
|
|
54
59
|
foundationStickerSpriteURL = new URLProp();
|
|
55
60
|
hintFaceletProp = new HintFaceletProp();
|
|
56
61
|
hintStickerSpriteURL = new URLProp();
|
|
57
62
|
indexerConstructorRequestProp = new IndexerConstructorRequestProp();
|
|
58
63
|
latitudeLimitProp = new LatitudeLimitProp();
|
|
64
|
+
movePressInputProp = new MovePressInputProp();
|
|
59
65
|
orbitCoordinatesRequestProp: OrbitCoordinatesRequestProp =
|
|
60
66
|
new OrbitCoordinatesRequestProp();
|
|
61
|
-
|
|
62
67
|
playingInfoProp = new PlayingInfoProp();
|
|
63
68
|
puzzleDescriptionRequestProp = new PGPuzzleDescriptionStringProp();
|
|
64
69
|
puzzleIDRequestProp = new PuzzleIDRequestProp();
|
|
@@ -117,6 +122,8 @@ export class TwistyPlayerModel {
|
|
|
117
122
|
indexerConstructorRequest: this.indexerConstructorRequestProp,
|
|
118
123
|
});
|
|
119
124
|
|
|
125
|
+
moveCountProp = new NaiveMoveCountProp({ alg: this.puzzleAlgProp });
|
|
126
|
+
|
|
120
127
|
orbitCoordinatesProp = new OrbitCoordinatesProp({
|
|
121
128
|
orbitCoordinatesRequest: this.orbitCoordinatesRequestProp,
|
|
122
129
|
latitudeLimit: this.latitudeLimitProp,
|
|
@@ -222,4 +229,26 @@ export class TwistyPlayerModel {
|
|
|
222
229
|
}
|
|
223
230
|
return url.toString();
|
|
224
231
|
}
|
|
232
|
+
|
|
233
|
+
// TODO: Animate the new move.
|
|
234
|
+
experimentalAddMove(
|
|
235
|
+
flexibleMove: Move | string,
|
|
236
|
+
options: { coalesce?: boolean; mod?: number } = {},
|
|
237
|
+
): void {
|
|
238
|
+
const move =
|
|
239
|
+
typeof flexibleMove === "string" ? new Move(flexibleMove) : flexibleMove;
|
|
240
|
+
(async () => {
|
|
241
|
+
const alg = (await this.algProp.get()).alg;
|
|
242
|
+
const newAlg = experimentalAppendMove(alg, move, {
|
|
243
|
+
coalesce: options?.coalesce,
|
|
244
|
+
mod: options?.mod,
|
|
245
|
+
});
|
|
246
|
+
this.algProp.set(newAlg);
|
|
247
|
+
this.timestampRequestProp.set("end");
|
|
248
|
+
this.catchUpMoveProp.set({
|
|
249
|
+
move: move,
|
|
250
|
+
amount: 0,
|
|
251
|
+
});
|
|
252
|
+
})();
|
|
253
|
+
}
|
|
225
254
|
}
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Alg } from "../../../alg";
|
|
2
2
|
import { countMoves } from "../../../notation";
|
|
3
|
-
import { ClassListManager } from "../../
|
|
3
|
+
import { ClassListManager } from "../../views/ClassListManager";
|
|
4
4
|
import {
|
|
5
5
|
CSSSource,
|
|
6
6
|
ManagedCustomElement,
|
|
7
|
-
} from "../../
|
|
8
|
-
import { customElementsShim } from "../../
|
|
7
|
+
} from "../../views/ManagedCustomElement";
|
|
8
|
+
import { customElementsShim } from "../../views/node-custom-element-shims";
|
|
9
9
|
import type { TwistyPlayer } from "../../views/TwistyPlayer";
|
|
10
10
|
import type { AlgIssues } from "./puzzle/state/AlgProp";
|
|
11
11
|
import type { TwistyPropParent } from "./TwistyProp";
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SimpleTwistyPropSource } from "../../TwistyProp";
|
|
2
|
+
|
|
3
|
+
export type FoundationDisplay = "auto" | "opaque" | "none";
|
|
4
|
+
|
|
5
|
+
export class FoundationDisplayProp extends SimpleTwistyPropSource<FoundationDisplay> {
|
|
6
|
+
getDefaultValue(): FoundationDisplay {
|
|
7
|
+
return "auto";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import type { HintFaceletStyle } from "../../../../old/dom/TwistyPlayerConfig";
|
|
2
1
|
import { SimpleTwistyPropSource } from "../../TwistyProp";
|
|
3
2
|
|
|
3
|
+
// TODO: turn these maps into lists?
|
|
4
|
+
export const hintFaceletStyles = {
|
|
5
|
+
floating: true, // default
|
|
6
|
+
none: true,
|
|
7
|
+
};
|
|
8
|
+
export type HintFaceletStyle = keyof typeof hintFaceletStyles;
|
|
4
9
|
export type HintFaceletStyleWithAuto = HintFaceletStyle | "auto";
|
|
5
10
|
|
|
6
11
|
export class HintFaceletProp extends SimpleTwistyPropSource<HintFaceletStyleWithAuto> {
|
|
@@ -1,6 +1,52 @@
|
|
|
1
|
-
import type { ExperimentalStickering } from "../../../..";
|
|
2
1
|
import { SimpleTwistyPropSource } from "../../TwistyProp";
|
|
3
2
|
|
|
3
|
+
// TODO: turn these maps into lists?
|
|
4
|
+
// TODO: alg.cubing.net parity
|
|
5
|
+
export const experimentalStickerings = {
|
|
6
|
+
"full": true, // default
|
|
7
|
+
"centers-only": true, // TODO
|
|
8
|
+
"PLL": true,
|
|
9
|
+
"CLS": true,
|
|
10
|
+
"OLL": true,
|
|
11
|
+
"COLL": true,
|
|
12
|
+
"OCLL": true,
|
|
13
|
+
"CLL": true,
|
|
14
|
+
"ELL": true,
|
|
15
|
+
"ELS": true,
|
|
16
|
+
"LL": true,
|
|
17
|
+
"F2L": true,
|
|
18
|
+
"ZBLL": true,
|
|
19
|
+
"ZBLS": true,
|
|
20
|
+
"WVLS": true,
|
|
21
|
+
"VLS": true,
|
|
22
|
+
"LS": true,
|
|
23
|
+
"EO": true,
|
|
24
|
+
"CMLL": true,
|
|
25
|
+
"L6E": true,
|
|
26
|
+
"L6EO": true,
|
|
27
|
+
"Daisy": true,
|
|
28
|
+
"Cross": true,
|
|
29
|
+
"2x2x2": true,
|
|
30
|
+
"2x2x3": true,
|
|
31
|
+
"Void Cube": true,
|
|
32
|
+
"invisible": true,
|
|
33
|
+
"picture": true,
|
|
34
|
+
"experimental-centers-U": true,
|
|
35
|
+
"experimental-centers-U-D": true,
|
|
36
|
+
"experimental-centers-U-L-D": true,
|
|
37
|
+
"experimental-centers-U-L-B-D": true,
|
|
38
|
+
"experimental-centers": true,
|
|
39
|
+
"experimental-fto-fc": true,
|
|
40
|
+
"experimental-fto-f2t": true,
|
|
41
|
+
"experimental-fto-sc": true,
|
|
42
|
+
"experimental-fto-l2c": true,
|
|
43
|
+
"experimental-fto-lbt": true,
|
|
44
|
+
"experimental-fto-l3t": true,
|
|
45
|
+
"experimental-global-custom-1": true,
|
|
46
|
+
"experimental-global-custom-2": true,
|
|
47
|
+
};
|
|
48
|
+
export type ExperimentalStickering = keyof typeof experimentalStickerings;
|
|
49
|
+
|
|
4
50
|
export class StickeringProp extends SimpleTwistyPropSource<ExperimentalStickering> {
|
|
5
51
|
getDefaultValue(): ExperimentalStickering {
|
|
6
52
|
return "full"; // TODO: auto
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Alg } from "../../../../../alg";
|
|
2
2
|
import type { KPuzzleDefinition, Transformation } from "../../../../../kpuzzle";
|
|
3
3
|
import { KPuzzleWrapper } from "../../../../views/3D/puzzles/KPuzzleWrapper";
|
|
4
|
-
import { TreeAlgIndexer } from "../../../../
|
|
4
|
+
import { TreeAlgIndexer } from "../../../../controllers/indexer/tree/TreeAlgIndexer";
|
|
5
5
|
import type { AlgWithIssues } from "./AlgProp";
|
|
6
6
|
import { TwistyPropDerived } from "../../TwistyProp";
|
|
7
7
|
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
KPuzzleDefinition,
|
|
5
5
|
Transformation,
|
|
6
6
|
} from "../../../../../kpuzzle";
|
|
7
|
-
import type { AlgIndexer } from "../../../../
|
|
8
|
-
import type { SetupToLocation } from "../../../../old/dom/TwistyPlayerConfig";
|
|
7
|
+
import type { AlgIndexer } from "../../../../controllers/indexer/AlgIndexer";
|
|
9
8
|
import { TwistyPropDerived } from "../../TwistyProp";
|
|
9
|
+
import type { SetupToLocation } from "./SetupAnchorProp";
|
|
10
10
|
|
|
11
11
|
interface AnchoredStartPropInputs {
|
|
12
12
|
setupAnchor: SetupToLocation;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Move } from "../../../../../alg";
|
|
2
|
-
import { Direction } from "../../../../
|
|
2
|
+
import { Direction } from "../../../../controllers/AnimationTypes";
|
|
3
3
|
import type {
|
|
4
4
|
AlgIndexer,
|
|
5
5
|
CurrentMoveInfo,
|
|
6
|
-
} from "../../../../
|
|
6
|
+
} from "../../../../controllers/indexer/AlgIndexer";
|
|
7
7
|
import type { DetailedTimelineInfo } from "../../timeline/DetailedTimelineInfoProp";
|
|
8
8
|
import { TwistyPropDerived } from "../../TwistyProp";
|
|
9
9
|
import type { CatchUpMove } from "./CatchUpMoveProp";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Move } from "../../../../../alg";
|
|
2
|
-
import type { CurrentMoveInfo } from "../../../../
|
|
2
|
+
import type { CurrentMoveInfo } from "../../../../controllers/indexer/AlgIndexer";
|
|
3
3
|
import { arrayEqualsCompare } from "../../../helpers";
|
|
4
4
|
import { TwistyPropDerived } from "../../TwistyProp";
|
|
5
5
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
KPuzzleDefinition,
|
|
5
5
|
Transformation,
|
|
6
6
|
} from "../../../../../kpuzzle";
|
|
7
|
-
import type { AlgIndexer } from "../../../../
|
|
7
|
+
import type { AlgIndexer } from "../../../../controllers/indexer/AlgIndexer";
|
|
8
8
|
import type { CurrentLeavesSimplified } from "./CurrentLeavesSimplified";
|
|
9
9
|
import { TwistyPropDerived } from "../../TwistyProp";
|
|
10
10
|
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { countMoves } from "../../../../../notation";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { TreeAlgIndexer } from "../../../../old/animation/indexer/tree/TreeAlgIndexer";
|
|
6
|
-
import type { PuzzleID } from "../../../../old/dom/TwistyPlayerConfig";
|
|
2
|
+
import { SimpleAlgIndexer } from "../../../../controllers/indexer/SimpleAlgIndexer";
|
|
3
|
+
import { SimultaneousMoveIndexerV2 } from "../../../../controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2";
|
|
4
|
+
import { TreeAlgIndexer } from "../../../../controllers/indexer/tree/TreeAlgIndexer";
|
|
7
5
|
import type { AlgWithIssues } from "./AlgProp";
|
|
8
6
|
import type { IndexerStrategyName } from "./IndexerConstructorRequestProp";
|
|
9
7
|
import type { VisualizationStrategy } from "../../viewer/VisualizationStrategyProp";
|
|
10
8
|
import { TwistyPropDerived } from "../../TwistyProp";
|
|
9
|
+
import type { PuzzleID } from "../structure/PuzzleIDRequestProp";
|
|
10
|
+
import type { KPuzzleWrapper } from "../../../../views/3D/puzzles/KPuzzleWrapper";
|
|
11
|
+
import type { Alg } from "../../../../../alg";
|
|
12
|
+
import type { AlgIndexer } from "../../../..";
|
|
13
|
+
|
|
14
|
+
export type IndexerConstructor = new (
|
|
15
|
+
puzzle: KPuzzleWrapper,
|
|
16
|
+
alg: Alg,
|
|
17
|
+
) => AlgIndexer<KPuzzleWrapper>;
|
|
11
18
|
|
|
12
19
|
interface IndexerConstructorPropInputs {
|
|
13
20
|
puzzle: PuzzleID;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { KPuzzleDefinition } from "../../../../../kpuzzle";
|
|
2
2
|
import { KPuzzleWrapper } from "../../../../views/3D/puzzles/KPuzzleWrapper";
|
|
3
|
-
import type {
|
|
4
|
-
import type { AlgIndexer } from "../../../../old/animation/indexer/AlgIndexer";
|
|
3
|
+
import type { AlgIndexer } from "../../../../controllers/indexer/AlgIndexer";
|
|
5
4
|
import type { AlgWithIssues } from "./AlgProp";
|
|
6
5
|
import { TwistyPropDerived } from "../../TwistyProp";
|
|
6
|
+
import type { IndexerConstructor } from "./IndexerConstructorProp";
|
|
7
7
|
|
|
8
8
|
type IndexerPropInputs = {
|
|
9
9
|
indexerConstructor: IndexerConstructor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Transformation } from "../../../../../kpuzzle";
|
|
2
|
-
import type { PuzzlePosition } from "../../../../
|
|
3
|
-
import type { CurrentMoveInfo } from "../../../../
|
|
2
|
+
import type { PuzzlePosition } from "../../../../controllers/AnimationTypes";
|
|
3
|
+
import type { CurrentMoveInfo } from "../../../../controllers/indexer/AlgIndexer";
|
|
4
4
|
import { TwistyPropDerived } from "../../TwistyProp";
|
|
5
5
|
|
|
6
6
|
export interface LegacyPositionPropInputs {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SimpleTwistyPropSource } from "../../TwistyProp";
|
|
2
|
+
|
|
3
|
+
export type MovePressInput = "auto" | "none" | "basic";
|
|
4
|
+
|
|
5
|
+
export class MovePressInputProp extends SimpleTwistyPropSource<MovePressInput> {
|
|
6
|
+
getDefaultValue(): MovePressInput {
|
|
7
|
+
return "auto";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { countMoves } from "../../../../../notation";
|
|
2
|
+
import { TwistyPropDerived } from "../../TwistyProp";
|
|
3
|
+
import type { AlgWithIssues } from "./AlgProp";
|
|
4
|
+
|
|
5
|
+
interface NaiveMoveCountPropInputs {
|
|
6
|
+
alg: AlgWithIssues;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// TODO: handle metrics
|
|
10
|
+
export class NaiveMoveCountProp extends TwistyPropDerived<
|
|
11
|
+
NaiveMoveCountPropInputs,
|
|
12
|
+
number | null
|
|
13
|
+
> {
|
|
14
|
+
derive(inputs: NaiveMoveCountPropInputs): number | null {
|
|
15
|
+
if (inputs.alg.issues.errors.length > 0) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return countMoves(inputs.alg.alg);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import type { SetupToLocation } from "../../../../old/dom/TwistyPlayerConfig";
|
|
2
1
|
import { SimpleTwistyPropSource } from "../../TwistyProp";
|
|
3
2
|
|
|
3
|
+
// TODO: turn these maps into lists?
|
|
4
|
+
export const setupToLocations = {
|
|
5
|
+
start: true, // default // TODO: "beginning"
|
|
6
|
+
end: true,
|
|
7
|
+
};
|
|
8
|
+
export type SetupToLocation = keyof typeof setupToLocations;
|
|
9
|
+
|
|
4
10
|
export class SetupAnchorProp extends SimpleTwistyPropSource<SetupToLocation> {
|
|
5
11
|
getDefaultValue(): SetupToLocation {
|
|
6
12
|
return "start";
|