cubing 0.20.2 → 0.21.0-pre12
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/README.md +6 -9
- package/dist/.DS_Store +0 -0
- package/dist/bin/puzzle-geometry-bin.js +1124 -1128
- package/dist/bin/puzzle-geometry-bin.js.map +3 -3
- package/dist/bundle-global/cubing.bundle-global.js +3978 -3587
- package/dist/esm/.DS_Store +0 -0
- package/dist/esm/{2x2x2.kpuzzle.json_-ZLJSYD5K.js → 2x2x2.kpuzzle.json-JOGUSQ4N.js} +3 -3
- package/dist/esm/{2x2x2.kpuzzle.json_-ZLJSYD5K.js.map → 2x2x2.kpuzzle.json-JOGUSQ4N.js.map} +1 -1
- package/dist/esm/{2x2x2.kpuzzle.svg-BNXPAM3A.js → 2x2x2.kpuzzle.svg-CQF2FTV7.js} +2 -2
- package/dist/esm/{2x2x2.kpuzzle.svg-BNXPAM3A.js.map → 2x2x2.kpuzzle.svg-CQF2FTV7.js.map} +0 -0
- package/dist/esm/3d-JZD3V366.js +39 -0
- package/dist/esm/3d-JZD3V366.js.map +7 -0
- package/dist/esm/{3x3x3-ll.kpuzzle.svg-EC42JHOH.js → 3x3x3-ll.kpuzzle.svg-53CBPG5O.js} +2 -2
- package/dist/esm/{3x3x3-ll.kpuzzle.svg-EC42JHOH.js.map → 3x3x3-ll.kpuzzle.svg-53CBPG5O.js.map} +0 -0
- package/dist/esm/{3x3x3.kpuzzle.svg-DUKG2WHC.js → 3x3x3.kpuzzle.svg-ERSSH66P.js} +2 -2
- package/dist/esm/{3x3x3.kpuzzle.svg-DUKG2WHC.js.map → 3x3x3.kpuzzle.svg-ERSSH66P.js.map} +0 -0
- package/dist/esm/alg/index.js +2 -2
- package/dist/esm/bluetooth/index.js +13 -11
- package/dist/esm/bluetooth/index.js.map +2 -2
- package/dist/esm/chunk-5DN4DAAX.js +2512 -0
- package/dist/esm/chunk-5DN4DAAX.js.map +7 -0
- package/dist/esm/{chunk-KKSDHNLH.js → chunk-7GADUDIG.js} +49 -71
- package/dist/esm/chunk-7GADUDIG.js.map +7 -0
- package/dist/esm/{chunk-YNB7QLBF.js → chunk-BU5PUJK3.js} +9 -10
- package/dist/esm/chunk-BU5PUJK3.js.map +7 -0
- package/dist/esm/chunk-CQS6JZ7G.js +762 -0
- package/dist/esm/chunk-CQS6JZ7G.js.map +7 -0
- package/dist/esm/{chunk-2GRKPQQL.js → chunk-RE7MIN5R.js} +2 -2
- package/dist/esm/{chunk-2GRKPQQL.js.map → chunk-RE7MIN5R.js.map} +0 -0
- package/dist/esm/{chunk-WJ7AVUI7.js → chunk-WO2AXYFE.js} +12 -1
- package/dist/esm/{chunk-WJ7AVUI7.js.map → chunk-WO2AXYFE.js.map} +0 -0
- package/dist/esm/{chunk-CWVB5RRW.js → chunk-YV3RT5PX.js} +625 -1282
- package/dist/esm/chunk-YV3RT5PX.js.map +7 -0
- package/dist/esm/{clock.kpuzzle.json_-PXORG6YF.js → clock.kpuzzle.json-EKWRMHJM.js} +3 -3
- package/dist/esm/{clock.kpuzzle.json_-PXORG6YF.js.map → clock.kpuzzle.json-EKWRMHJM.js.map} +1 -1
- package/dist/esm/{clock.kpuzzle.svg-E52B5OQV.js → clock.kpuzzle.svg-B7TMN3SY.js} +2 -2
- package/dist/esm/{clock.kpuzzle.svg-E52B5OQV.js.map → clock.kpuzzle.svg-B7TMN3SY.js.map} +0 -0
- package/dist/esm/esm-test-worker.js +2 -2
- package/dist/esm/esm-test-worker.js.map +1 -1
- package/dist/esm/kpuzzle/index.js +5 -3
- package/dist/esm/{node-SIGYKAZG.js → node-BSAQKO3G.js} +2 -2
- package/dist/esm/{node-SIGYKAZG.js.map → node-BSAQKO3G.js.map} +0 -0
- package/dist/esm/{node-BHGOVUN3.js → node-WEHVBEKP.js} +2 -2
- package/dist/esm/{node-BHGOVUN3.js.map → node-WEHVBEKP.js.map} +0 -0
- package/dist/esm/notation/index.js +3 -3
- package/dist/esm/protocol/index.js +3 -3
- package/dist/esm/puzzle-geometry/index.js +1085 -1179
- package/dist/esm/puzzle-geometry/index.js.map +3 -3
- package/dist/esm/puzzles/index.js +10 -4
- package/dist/esm/{pyraminx.kpuzzle.svg-QKUJX37T.js → pyraminx.kpuzzle.svg-QBBMZVDY.js} +2 -2
- package/dist/esm/{pyraminx.kpuzzle.svg-QKUJX37T.js.map → pyraminx.kpuzzle.svg-QBBMZVDY.js.map} +0 -0
- package/dist/esm/scramble/index.js +5 -4
- package/dist/esm/search/index.js +7 -4
- package/dist/esm/{sq1-hyperorbit.kpuzzle.json_-7KW5LSXC.js → sq1-hyperorbit.kpuzzle.json-N3FGCPML.js} +3 -3
- package/dist/esm/{sq1-hyperorbit.kpuzzle.json_-7KW5LSXC.js.map → sq1-hyperorbit.kpuzzle.json-N3FGCPML.js.map} +1 -1
- package/dist/esm/{sq1-hyperorbit.kpuzzle.svg-7Y7N37NN.js → sq1-hyperorbit.kpuzzle.svg-ID57EER7.js} +2 -2
- package/dist/esm/{sq1-hyperorbit.kpuzzle.svg-7Y7N37NN.js.map → sq1-hyperorbit.kpuzzle.svg-ID57EER7.js.map} +0 -0
- package/dist/esm/stream/index.js +3 -3
- package/dist/esm/stream/index.js.map +2 -2
- package/dist/esm/twisty/index.js +4442 -3214
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/esm/worker-inside-generated-string-KDZOUGJF.js +2831 -0
- package/dist/esm/worker-inside-generated-string-KDZOUGJF.js.map +7 -0
- package/dist/types/alg/Alg.d.ts +88 -0
- package/dist/types/alg/Alg.d.ts.map +1 -1
- package/dist/types/alg/Alg.spec.d.ts +2 -0
- package/dist/types/alg/Alg.spec.d.ts.map +1 -0
- package/dist/types/alg/common.d.ts.map +1 -1
- package/dist/types/alg/operation.spec.d.ts +2 -0
- package/dist/types/alg/operation.spec.d.ts.map +1 -0
- package/dist/types/alg/parse.spec.d.ts +2 -0
- package/dist/types/alg/parse.spec.d.ts.map +1 -0
- package/dist/types/alg/test/alg-comparison.d.ts.map +1 -1
- package/dist/types/alg/test/alg.spec.d.ts +2 -0
- package/dist/types/alg/test/alg.spec.d.ts.map +1 -0
- package/dist/types/alg/units/leaves/LineComment.spec.d.ts +2 -0
- package/dist/types/alg/units/leaves/LineComment.spec.d.ts.map +1 -0
- package/dist/types/alg/units/leaves/Move.spec.d.ts +2 -0
- package/dist/types/alg/units/leaves/Move.spec.d.ts.map +1 -0
- package/dist/types/alg/url.spec.d.ts +2 -0
- package/dist/types/alg/url.spec.d.ts.map +1 -0
- package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts +1 -1
- package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts.map +1 -1
- package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts +5 -0
- package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts +3 -0
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts +2 -0
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/canon.spec.d.ts +2 -0
- package/dist/types/kpuzzle/canon.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/index.d.ts +1 -0
- package/dist/types/kpuzzle/index.d.ts.map +1 -1
- package/dist/types/kpuzzle/kpuzzle.spec.d.ts +2 -0
- package/dist/types/kpuzzle/kpuzzle.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/prunetable.spec.d.ts +2 -0
- package/dist/types/kpuzzle/prunetable.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/svg.d.ts.map +1 -1
- package/dist/types/kpuzzle/transformations.spec.d.ts +2 -0
- package/dist/types/kpuzzle/transformations.spec.d.ts.map +1 -0
- package/dist/types/protocol/binary/binary3x3x3.spec.d.ts +2 -0
- package/dist/types/protocol/binary/binary3x3x3.spec.d.ts.map +1 -0
- package/dist/types/protocol/binary/hex.spec.d.ts +2 -0
- package/dist/types/protocol/binary/hex.spec.d.ts.map +1 -0
- package/dist/types/protocol/binary/orbit-indexing.spec.d.ts +2 -0
- package/dist/types/protocol/binary/orbit-indexing.spec.d.ts.map +1 -0
- package/dist/types/puzzle-geometry/Options.d.ts +45 -1
- package/dist/types/puzzle-geometry/Options.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts +2 -0
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts.map +1 -0
- package/dist/types/puzzle-geometry/PermOriSet.d.ts +39 -39
- package/dist/types/puzzle-geometry/PermOriSet.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts +118 -110
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/Quat.d.ts +0 -11
- package/dist/types/puzzle-geometry/Quat.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/Quat.spec.d.ts +2 -0
- package/dist/types/puzzle-geometry/Quat.spec.d.ts.map +1 -0
- package/dist/types/puzzle-geometry/SchreierSims.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/index.d.ts +2 -4
- package/dist/types/puzzle-geometry/index.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/interfaces.d.ts +1 -21
- package/dist/types/puzzle-geometry/interfaces.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/orientcenters.spec.d.ts +2 -0
- package/dist/types/puzzle-geometry/orientcenters.spec.d.ts.map +1 -0
- package/dist/types/puzzles/async/async-pg3d.d.ts.map +1 -1
- package/dist/types/puzzles/customPGPuzzleLoader.d.ts +12 -0
- package/dist/types/puzzles/customPGPuzzleLoader.d.ts.map +1 -0
- package/dist/types/puzzles/implementations/2x2x2/{2x2x2.kpuzzle.json_.d.ts → 2x2x2.kpuzzle.json.d.ts} +1 -1
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/puzzles/implementations/3x3x3/index.d.ts.map +1 -1
- package/dist/types/puzzles/implementations/clock/{clock.kpuzzle.json_.d.ts → clock.kpuzzle.json.d.ts} +1 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/puzzles/implementations/fto/index.d.ts +2 -2
- package/dist/types/puzzles/implementations/fto/index.d.ts.map +1 -1
- package/dist/types/puzzles/implementations/pyraminx/{pyraminx.kpuzzle.json_.d.ts → pyraminx.kpuzzle.json.d.ts} +1 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/puzzles/implementations/square1/index.d.ts.map +1 -1
- package/dist/types/puzzles/implementations/square1/{sq1-hyperorbit.kpuzzle.json_.d.ts → sq1-hyperorbit.kpuzzle.json.d.ts} +1 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/puzzles/index.d.ts +4 -2
- package/dist/types/puzzles/index.d.ts.map +1 -1
- package/dist/types/puzzles/stickerings/appearance.d.ts +9 -9
- package/dist/types/puzzles/stickerings/appearance.d.ts.map +1 -1
- package/dist/types/puzzles/stickerings/cube-stickerings.d.ts.map +1 -1
- package/dist/types/puzzles/stickerings/fto-stickerings.d.ts.map +1 -1
- package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts +3 -0
- package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts.map +1 -0
- package/dist/types/search/index.d.ts +1 -1
- package/dist/types/search/index.d.ts.map +1 -1
- package/dist/types/search/inside/api.d.ts +2 -1
- package/dist/types/search/inside/api.d.ts.map +1 -1
- package/dist/types/search/inside/api.spec.d.ts +2 -0
- package/dist/types/search/inside/api.spec.d.ts.map +1 -0
- package/dist/types/search/inside/solve/parseSGS.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/filter.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/index.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/megaminx.sgs.json.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts +2 -0
- package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts.map +1 -0
- package/dist/types/search/inside/solve/puzzles/skewb.sgs.json.d.ts.map +1 -1
- package/dist/types/search/inside/solve/tremble.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lib/mathlib.d.ts +4 -31
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lib/mathlib.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/scramble/scramble_444.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/min2phase/gwt.d.ts +3 -0
- package/dist/types/search/inside/solve/vendor/min2phase/gwt.d.ts.map +1 -0
- package/dist/types/search/inside/solve/vendor/random-uint-below/get-random-values.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/random-int.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/sq12phase/scramble_sq1.d.ts.map +1 -1
- package/dist/types/search/instantiator.d.ts.map +1 -1
- package/dist/types/search/outside.d.ts +4 -2
- package/dist/types/search/outside.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/stream/twizzle/TwizzleStream.d.ts +9 -8
- package/dist/types/stream/twizzle/TwizzleStream.d.ts.map +1 -1
- package/dist/types/stream/websocket-proxy.d.ts +1 -1
- package/dist/types/stream/websocket-proxy.d.ts.map +1 -1
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts +34 -0
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts.map +1 -0
- package/dist/types/twisty/controllers/TwistyPlayerController.d.ts +16 -0
- package/dist/types/twisty/controllers/TwistyPlayerController.d.ts.map +1 -0
- package/dist/types/twisty/heavy-code-imports/3d.d.ts +3 -0
- package/dist/types/twisty/heavy-code-imports/3d.d.ts.map +1 -0
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts +12 -0
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts.map +1 -0
- package/dist/types/twisty/index.d.ts +20 -15
- package/dist/types/twisty/index.d.ts.map +1 -1
- package/dist/types/twisty/model/PromiseFreshener.d.ts +14 -0
- package/dist/types/twisty/model/PromiseFreshener.d.ts.map +1 -0
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts +84 -0
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts.map +1 -0
- package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts +11 -0
- package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts.map +1 -0
- package/dist/types/twisty/model/helpers.d.ts +5 -0
- package/dist/types/twisty/model/helpers.d.ts.map +1 -0
- package/dist/types/twisty/model/props/TwistyProp.d.ts +60 -0
- package/dist/types/twisty/model/props/TwistyProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/TwistyProp.spec.d.ts +5 -0
- package/dist/types/twisty/model/props/TwistyProp.spec.d.ts.map +1 -0
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts +28 -0
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts.map +1 -0
- package/dist/types/twisty/model/props/general/URLProp.d.ts +6 -0
- package/dist/types/twisty/model/props/general/URLProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts +7 -0
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts +10 -0
- package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts +27 -0
- package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts +14 -0
- package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts +15 -0
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesProp.d.ts +12 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts +17 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts +15 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts +17 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts +12 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts +15 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts +12 -0
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts +13 -0
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts +11 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts +11 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts +13 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts +25 -0
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts +23 -0
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts +15 -0
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts +6 -0
- package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts +16 -0
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts +22 -0
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts +6 -0
- package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts +16 -0
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts +15 -0
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts +11 -0
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts +13 -0
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/RenderScheduler.d.ts +3 -0
- package/dist/types/twisty/old/animation/RenderScheduler.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/Timeline.d.ts +0 -0
- package/dist/types/twisty/old/animation/Timeline.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/cursor/AlgCursor.d.ts +4 -4
- package/dist/types/twisty/old/animation/cursor/AlgCursor.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/cursor/CursorTypes.d.ts +4 -4
- package/dist/types/twisty/old/animation/cursor/CursorTypes.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/easing.d.ts +0 -0
- package/dist/types/twisty/old/animation/easing.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/AlgDuration.d.ts +1 -1
- package/dist/types/twisty/old/animation/indexer/AlgDuration.d.ts.map +1 -0
- package/dist/types/twisty/old/animation/indexer/AlgIndexer.d.ts +36 -0
- package/dist/types/twisty/old/animation/indexer/AlgIndexer.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/SimpleAlgIndexer.d.ts +3 -3
- package/dist/types/twisty/old/animation/indexer/SimpleAlgIndexer.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts +6 -5
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts.map +1 -0
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts +22 -0
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts.map +1 -0
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/simul-moves.d.ts +26 -0
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/simul-moves.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/tree/AlgWalker.d.ts +2 -2
- package/dist/types/twisty/old/animation/indexer/tree/AlgWalker.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/tree/TreeAlgIndexer.d.ts +3 -3
- package/dist/types/twisty/old/animation/indexer/tree/TreeAlgIndexer.d.ts.map +1 -0
- package/dist/types/twisty/old/animation/indexer/tree/chunkAlgs.d.ts +3 -0
- package/dist/types/twisty/old/animation/indexer/tree/chunkAlgs.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/stream/timeline-move-calculation-draft.d.ts +1 -1
- package/dist/types/twisty/old/animation/stream/timeline-move-calculation-draft.d.ts.map +1 -0
- package/dist/types/twisty/{dom/TwistyAlgViewer.css_.d.ts → old/dom/TwistyAlgViewerV1.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.css.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.d.ts +52 -0
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.d.ts.map +1 -0
- package/dist/types/twisty/{dom/TwistyPlayer.css_.d.ts → old/dom/TwistyPlayer.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/TwistyPlayer.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/TwistyPlayer.d.ts +8 -8
- package/dist/types/twisty/old/dom/TwistyPlayer.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/TwistyPlayer.spec.d.ts +5 -0
- package/dist/types/twisty/old/dom/TwistyPlayer.spec.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/TwistyPlayerConfig.d.ts +10 -5
- package/dist/types/twisty/old/dom/TwistyPlayerConfig.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/controls/TwistyControlElement.d.ts +2 -0
- package/dist/types/twisty/old/dom/controls/TwistyControlElement.d.ts.map +1 -0
- package/dist/types/twisty/{dom/controls/TwistyScrubber.css_.d.ts → old/dom/controls/TwistyScrubber.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/controls/TwistyScrubber.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/controls/TwistyScrubber.d.ts +1 -1
- package/dist/types/twisty/old/dom/controls/TwistyScrubber.d.ts.map +1 -0
- package/dist/types/twisty/{dom/controls/buttons.css_.d.ts → old/dom/controls/buttons.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/controls/buttons.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/controls/buttons.d.ts +1 -1
- package/dist/types/twisty/old/dom/controls/buttons.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/controls/buttons.spec.d.ts +5 -0
- package/dist/types/twisty/old/dom/controls/buttons.spec.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/element/ClassListManager.d.ts +0 -0
- package/dist/types/twisty/old/dom/element/ClassListManager.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/element/ElementConfig.d.ts +1 -1
- package/dist/types/twisty/old/dom/element/ElementConfig.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/element/ManagedCustomElement.d.ts +0 -0
- package/dist/types/twisty/old/dom/element/ManagedCustomElement.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/element/node-custom-element-shims.d.ts +0 -0
- package/dist/types/twisty/old/dom/element/node-custom-element-shims.d.ts.map +1 -0
- package/dist/types/twisty/{dom/stream/TwistyStreamSource.css_.d.ts → old/dom/stream/TwistyStreamSource.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/stream/TwistyStreamSource.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/stream/TwistyStreamSource.d.ts +0 -0
- package/dist/types/twisty/old/dom/stream/TwistyStreamSource.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/viewers/Twisty2DSVG.d.ts +2 -2
- package/dist/types/twisty/old/dom/viewers/Twisty2DSVG.d.ts.map +1 -0
- package/dist/types/twisty/{dom/viewers/Twisty2DSVGView.css_.d.ts → old/dom/viewers/Twisty2DSVGView.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/viewers/Twisty2DSVGView.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom/viewers/Twisty3DCanvas.css_.d.ts → old/dom/viewers/Twisty3DCanvas.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/viewers/Twisty3DCanvas.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/viewers/Twisty3DCanvas.d.ts +1 -2
- package/dist/types/twisty/old/dom/viewers/Twisty3DCanvas.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/viewers/TwistyOrbitControls.d.ts +0 -0
- package/dist/types/twisty/old/dom/viewers/TwistyOrbitControls.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/viewers/TwistyViewerElement.d.ts +4 -0
- package/dist/types/twisty/old/dom/viewers/TwistyViewerElement.d.ts.map +1 -0
- package/dist/types/twisty/{dom/viewers/TwistyViewerWrapper.css_.d.ts → old/dom/viewers/TwistyViewerWrapper.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/viewers/TwistyViewerWrapper.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/viewers/TwistyViewerWrapper.d.ts +0 -0
- package/dist/types/twisty/old/dom/viewers/TwistyViewerWrapper.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/viewers/canvas.d.ts +3 -0
- package/dist/types/twisty/old/dom/viewers/canvas.d.ts.map +1 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts +29 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts.map +1 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts +16 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts.map +1 -0
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts +20 -0
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/RendererPool.d.ts +4 -0
- package/dist/types/twisty/views/3D/RendererPool.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/TAU.d.ts +0 -0
- package/dist/types/twisty/views/3D/TAU.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts +17 -0
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/Twisty3DRenderTarget.d.ts +0 -0
- package/dist/types/twisty/views/3D/Twisty3DRenderTarget.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/Twisty3DScene.d.ts +0 -0
- package/dist/types/twisty/views/3D/Twisty3DScene.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts +28 -0
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts +32 -0
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.d.ts +41 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.spec.d.ts +5 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.spec.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/puzzles/Cube3D.d.ts +11 -7
- package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/puzzles/KPuzzleWrapper.d.ts +2 -2
- package/dist/types/twisty/views/3D/puzzles/KPuzzleWrapper.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts +57 -0
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/puzzles/Twisty3DPuzzle.d.ts +1 -1
- package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/puzzles/TwistyTestBox.d.ts +2 -2
- package/dist/types/twisty/views/3D/puzzles/TwistyTestBox.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts +18 -0
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts +3 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts +40 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts +5 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts +61 -0
- package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts +3 -0
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → views}/TwistyAlgViewer.d.ts +6 -6
- package/dist/types/twisty/views/TwistyAlgViewer.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyPlayer.d.ts +97 -0
- package/dist/types/twisty/views/TwistyPlayer.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts +71 -0
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts.map +1 -0
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts +33 -0
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts.map +1 -0
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts +14 -0
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts.map +1 -0
- package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts +15 -0
- package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts.map +1 -0
- package/dist/types/twisty/views/document.d.ts +2 -0
- package/dist/types/twisty/views/document.d.ts.map +1 -0
- package/dist/types/twisty/views/screenshot.d.ts +12 -0
- package/dist/types/twisty/views/screenshot.d.ts.map +1 -0
- package/dist/types/vendor/p-lazy/p-lazy.d.ts +10 -0
- package/dist/types/vendor/p-lazy/p-lazy.d.ts.map +1 -0
- package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts +33 -0
- package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts.map +1 -0
- package/docs/.DS_Store +0 -0
- package/docs/cubing/.DS_Store +0 -0
- package/docs/cubing/alg/index.html +37 -23
- package/docs/cubing/index.html +56 -252
- package/docs/cubing/scramble/index.html +122 -0
- package/docs/cubing/twisty/index.html +329 -0
- package/docs/main.css +15 -3
- package/package.json +83 -57
- package/src/cubing/.DS_Store +0 -0
- package/src/cubing/alg/.DS_Store +0 -0
- package/src/cubing/alg/Alg.ts +89 -0
- package/src/cubing/alg/common.ts +4 -2
- package/src/cubing/alg/iteration.ts +1 -1
- package/src/cubing/alg/parse.ts +2 -0
- package/src/cubing/alg/test/alg-comparison.ts +1 -0
- package/src/cubing/alg/units/.DS_Store +0 -0
- package/src/cubing/alg/units/Unit.ts +0 -3
- package/src/cubing/alg/units/containers/Commutator.ts +1 -1
- package/src/cubing/alg/units/leaves/Move.ts +4 -4
- package/src/cubing/bluetooth/.DS_Store +0 -0
- package/src/cubing/bluetooth/connect/index.ts +1 -1
- package/src/cubing/bluetooth/smart-puzzle/Heykube.ts +1 -1
- package/src/cubing/bluetooth/smart-puzzle/bluetooth-puzzle.ts +1 -1
- package/src/cubing/bluetooth/smart-puzzle/gan.ts +5 -5
- package/src/cubing/bluetooth/smart-puzzle/giiker.ts +2 -2
- package/src/cubing/bluetooth/smart-puzzle/gocube.ts +5 -5
- package/src/cubing/bluetooth/smart-robot/GanRobot.ts +5 -5
- package/src/cubing/bluetooth/smart-timer/GanTimer.ts +2 -2
- package/src/cubing/kpuzzle/.DS_Store +0 -0
- package/src/cubing/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.ts +40 -0
- package/src/cubing/{puzzles/implementations/3x3x3/3x3x3.kpuzzle.json_.ts → kpuzzle/3x3x3/3x3x3.kpuzzle.json.ts} +11 -6
- package/src/cubing/kpuzzle/canon.spec.ts +6 -11
- package/src/cubing/kpuzzle/canonicalize.ts +1 -1
- package/src/cubing/kpuzzle/definition_types.ts +0 -3
- package/src/cubing/kpuzzle/index.ts +1 -0
- package/src/cubing/kpuzzle/prunetable.spec.ts +2 -4
- package/src/cubing/kpuzzle/puzzle-orientation.ts +1 -1
- package/src/cubing/kpuzzle/svg.ts +4 -9
- package/src/cubing/kpuzzle/transformations.ts +1 -1
- package/src/cubing/protocol/binary/binary3x3x3.spec.ts +5 -2
- package/src/cubing/protocol/binary/hex.ts +4 -4
- package/src/cubing/protocol/binary/orbit-indexing.ts +2 -2
- package/src/cubing/protocol/binary/puzzle-orientation.ts +2 -2
- package/src/cubing/puzzle-geometry/Options.ts +151 -22
- package/src/cubing/puzzle-geometry/PGPuzzles.spec.ts +24 -28
- package/src/cubing/puzzle-geometry/PermOriSet.ts +99 -98
- package/src/cubing/puzzle-geometry/PlatonicGenerator.ts +1 -1
- package/src/cubing/puzzle-geometry/PuzzleGeometry.ts +836 -867
- package/src/cubing/puzzle-geometry/Quat.ts +1 -68
- package/src/cubing/puzzle-geometry/SchreierSims.ts +2 -13
- package/src/cubing/puzzle-geometry/index.ts +2 -11
- package/src/cubing/puzzle-geometry/interfaces.ts +1 -27
- package/src/cubing/puzzle-geometry/orientcenters.spec.ts +24 -30
- package/src/cubing/puzzles/.DS_Store +0 -0
- package/src/cubing/puzzles/PuzzleLoader.ts +1 -1
- package/src/cubing/puzzles/async/async-pg3d.ts +5 -8
- package/src/cubing/puzzles/customPGPuzzleLoader.ts +60 -0
- package/src/cubing/puzzles/implementations/.DS_Store +0 -0
- package/src/cubing/puzzles/implementations/2x2x2/{2x2x2.kpuzzle.json_.ts → 2x2x2.kpuzzle.json.ts} +0 -0
- package/src/cubing/puzzles/implementations/2x2x2/index.ts +1 -1
- package/src/cubing/puzzles/implementations/3x3x3/index.ts +2 -3
- package/src/cubing/puzzles/implementations/clock/{clock.kpuzzle.json_.ts → clock.kpuzzle.json.ts} +0 -0
- package/src/cubing/puzzles/implementations/clock/index.ts +1 -1
- package/src/cubing/puzzles/implementations/fto/index.ts +19 -11
- package/src/cubing/puzzles/implementations/pyraminx/{pyraminx.kpuzzle.json_.ts → pyraminx.kpuzzle.json.ts} +0 -0
- package/src/cubing/puzzles/implementations/square1/index.ts +1 -2
- package/src/cubing/puzzles/implementations/square1/{sq1-hyperorbit.kpuzzle.json_.ts → sq1-hyperorbit.kpuzzle.json.ts} +0 -0
- package/src/cubing/puzzles/index.ts +30 -20
- package/src/cubing/puzzles/stickerings/appearance.ts +10 -9
- package/src/cubing/puzzles/stickerings/cube-stickerings.ts +8 -0
- package/src/cubing/puzzles/stickerings/fto-stickerings.ts +9 -0
- package/src/cubing/puzzles/stickerings/global-custom-stickering-hack.ts +61 -0
- package/src/cubing/search/.DS_Store +0 -0
- package/src/cubing/search/.gitignore +1 -2
- package/src/cubing/search/esm-test-worker.js +1 -1
- package/src/cubing/search/index.ts +1 -0
- package/src/cubing/search/inside/api.spec.ts +1 -0
- package/src/cubing/search/inside/api.ts +6 -1
- package/src/cubing/search/inside/solve/parseSGS.ts +7 -11
- package/src/cubing/search/inside/solve/puzzles/2x2x2.ts +3 -3
- package/src/cubing/search/inside/solve/puzzles/3x3x3/filter.ts +0 -6
- package/src/cubing/search/inside/solve/puzzles/3x3x3/index.ts +0 -2
- package/src/cubing/search/inside/solve/puzzles/FTO.sgs +264 -0
- package/src/cubing/search/inside/solve/puzzles/megaminx.sgs.json.ts +4 -6
- package/src/cubing/search/inside/solve/puzzles/skewb.sgs.json.ts +4 -6
- package/src/cubing/search/inside/solve/tremble.ts +6 -9
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/lib/mathlib.ts +20 -822
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/scramble/scramble_444.ts +177 -252
- package/src/cubing/search/inside/solve/vendor/min2phase/gwt.js +62 -222
- package/src/cubing/search/inside/solve/vendor/random-uint-below/get-random-values.ts +4 -5
- package/src/cubing/search/inside/solve/vendor/random-uint-below/random-int.ts +9 -11
- package/src/cubing/search/inside/solve/vendor/sq12phase/scramble_sq1.js +13 -582
- package/src/cubing/search/instantiator.ts +11 -7
- package/src/cubing/search/outside.ts +8 -2
- package/src/cubing/search/worker-inside-generated-string.js +1 -1
- package/src/cubing/stream/.DS_Store +0 -0
- package/src/cubing/stream/process/ReorientedStream.ts +1 -1
- package/src/cubing/stream/twizzle/TwizzleStream.ts +11 -8
- package/src/cubing/stream/websocket-proxy.ts +1 -3
- package/src/cubing/twisty/.DS_Store +0 -0
- package/src/cubing/twisty/controllers/TwistyAnimationController.ts +248 -0
- package/src/cubing/twisty/controllers/TwistyPlayerController.ts +38 -0
- package/src/cubing/twisty/heavy-code-imports/3d.ts +18 -0
- package/src/cubing/twisty/heavy-code-imports/dynamic-entries/3d.ts +41 -0
- package/src/cubing/twisty/index.ts +24 -17
- package/src/cubing/twisty/model/.DS_Store +0 -0
- package/src/cubing/twisty/model/PromiseFreshener.ts +49 -0
- package/src/cubing/twisty/model/TwistyPlayerModel.ts +222 -0
- package/src/cubing/twisty/model/UserVisibleErrorTracker.ts +22 -0
- package/src/cubing/twisty/model/helpers.ts +47 -0
- package/src/cubing/{search/vendor → twisty/model/props}/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/TwistyProp.spec.ts +38 -0
- package/src/cubing/twisty/model/props/TwistyProp.ts +366 -0
- package/src/cubing/twisty/model/props/TwistyPropDebugger.ts +370 -0
- package/src/cubing/twisty/model/props/general/URLProp.ts +14 -0
- package/src/cubing/{solve → twisty/model/props/puzzle}/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/puzzle/display/HintFaceletProp.ts +10 -0
- package/src/cubing/twisty/model/props/puzzle/display/SpriteProp.ts +43 -0
- package/src/cubing/twisty/model/props/puzzle/display/StickeringProp.ts +8 -0
- package/src/cubing/twisty/model/props/puzzle/state/AlgProp.ts +91 -0
- package/src/cubing/twisty/model/props/puzzle/state/AlgTransformationProp.ts +28 -0
- package/src/cubing/twisty/model/props/puzzle/state/AnchoredStartProp.ts +44 -0
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesProp.ts +91 -0
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesSimplified.ts +48 -0
- package/src/cubing/twisty/model/props/puzzle/state/CurrentTransformationProp.ts +46 -0
- package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorProp.ts +46 -0
- package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.ts +15 -0
- package/src/cubing/twisty/model/props/puzzle/state/IndexerProp.ts +24 -0
- package/src/cubing/twisty/model/props/puzzle/state/LegacyPositionProp.ts +22 -0
- package/src/cubing/twisty/model/props/puzzle/state/PuzzleAlgProp.ts +28 -0
- package/src/cubing/twisty/model/props/puzzle/state/SetupAnchorProp.ts +8 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDefProp.ts +14 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.ts +14 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDProp.ts +12 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.ts +17 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleLoaderProp.ts +38 -0
- package/src/cubing/twisty/model/props/timeline/CoarseTimelineInfoProp.ts +45 -0
- package/src/cubing/twisty/model/props/timeline/DetailedTimelineInfoProp.ts +76 -0
- package/src/cubing/twisty/model/props/timeline/PlayingInfoProp.ts +51 -0
- package/src/cubing/twisty/model/props/timeline/TempoScaleProp.ts +13 -0
- package/src/cubing/twisty/model/props/timeline/TimestampRequestProp.ts +38 -0
- package/src/cubing/twisty/model/props/viewer/BackViewProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/BackgroundProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/ButtonAppearanceProp.ts +86 -0
- package/src/cubing/twisty/model/props/viewer/ControlPanelProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/LatitudeLimit.ts +11 -0
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesProp.ts +56 -0
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesRequestProp.ts +69 -0
- package/src/cubing/twisty/model/props/viewer/TimeRangeProp.ts +15 -0
- package/src/cubing/twisty/model/props/viewer/ViewerLinkProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/VisualizationProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/VisualizationStrategyProp.ts +45 -0
- package/src/cubing/twisty/old/.DS_Store +0 -0
- package/src/cubing/twisty/old/animation/.DS_Store +0 -0
- package/src/cubing/twisty/{animation → old/animation}/RenderScheduler.ts +5 -0
- package/src/cubing/twisty/{animation → old/animation}/Timeline.ts +0 -0
- package/src/cubing/twisty/{animation → old/animation}/cursor/AlgCursor.ts +15 -8
- package/src/cubing/twisty/{animation → old/animation}/cursor/CursorTypes.ts +4 -4
- package/src/cubing/twisty/{animation → old/animation}/easing.ts +0 -0
- package/src/cubing/{search/inside → twisty/old/animation/indexer}/.DS_Store +0 -0
- package/src/cubing/twisty/{animation → old/animation}/indexer/AlgDuration.ts +1 -1
- package/src/cubing/twisty/old/animation/indexer/AlgIndexer.ts +86 -0
- package/src/cubing/twisty/{animation → old/animation}/indexer/SimpleAlgIndexer.ts +9 -6
- package/src/cubing/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexer.ts +181 -0
- package/src/cubing/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.ts +243 -0
- package/src/cubing/twisty/{animation → old/animation}/indexer/simultaneous-moves/simul-moves.ts +46 -34
- package/src/cubing/twisty/{animation → old/animation}/indexer/tree/AlgWalker.ts +6 -3
- package/src/cubing/twisty/{animation → old/animation}/indexer/tree/TreeAlgIndexer.ts +8 -5
- package/src/cubing/twisty/{animation → old/animation}/indexer/tree/chunkAlgs.ts +2 -2
- package/src/cubing/twisty/{animation → old/animation}/stream/timeline-move-calculation-draft.spec.ts.TODO +0 -0
- package/src/cubing/twisty/{animation → old/animation}/stream/timeline-move-calculation-draft.ts +2 -2
- package/src/cubing/twisty/old/dom/.DS_Store +0 -0
- package/src/cubing/twisty/{dom/TwistyAlgViewer.css_.ts → old/dom/TwistyAlgViewerV1.css.ts} +0 -0
- package/src/cubing/twisty/{dom/TwistyAlgViewer.ts → old/dom/TwistyAlgViewerV1.ts} +43 -36
- package/src/cubing/twisty/{dom/TwistyPlayer.css_.ts → old/dom/TwistyPlayer.css.ts} +28 -1
- package/src/cubing/twisty/{dom → old/dom}/TwistyPlayer.spec.ts +5 -6
- package/src/cubing/twisty/{dom → old/dom}/TwistyPlayer.ts +36 -43
- package/src/cubing/twisty/{dom → old/dom}/TwistyPlayerConfig.ts +27 -10
- package/src/cubing/twisty/{dom/controls/TwistyControlElement.ts.ts → old/dom/controls/TwistyControlElement.ts} +0 -0
- package/src/cubing/twisty/{dom/controls/TwistyScrubber.css_.ts → old/dom/controls/TwistyScrubber.css.ts} +0 -0
- package/src/cubing/twisty/{dom → old/dom}/controls/TwistyScrubber.ts +3 -3
- package/src/cubing/twisty/{dom/controls/buttons.css_.ts → old/dom/controls/buttons.css.ts} +14 -1
- package/src/cubing/twisty/{dom → old/dom}/controls/buttons.spec.ts +1 -1
- package/src/cubing/twisty/{dom → old/dom}/controls/buttons.ts +15 -15
- package/src/cubing/twisty/{dom → old/dom}/element/ClassListManager.ts +0 -0
- package/src/cubing/twisty/{dom → old/dom}/element/ElementConfig.ts +1 -1
- package/src/cubing/twisty/{dom → old/dom}/element/ManagedCustomElement.ts +0 -0
- package/src/cubing/twisty/{dom → old/dom}/element/node-custom-element-shims.ts +0 -0
- package/src/cubing/twisty/{dom/stream/TwistyStreamSource.css_.ts → old/dom/stream/TwistyStreamSource.css.ts} +0 -0
- package/src/cubing/twisty/{dom → old/dom}/stream/TwistyStreamSource.ts +8 -8
- package/src/cubing/twisty/{dom → old/dom}/viewers/Twisty2DSVG.ts +7 -9
- package/src/cubing/twisty/{dom/viewers/Twisty2DSVGView.css_.ts → old/dom/viewers/Twisty2DSVGView.css.ts} +0 -0
- package/src/cubing/twisty/{dom/viewers/Twisty3DCanvas.css_.ts → old/dom/viewers/Twisty3DCanvas.css.ts} +0 -0
- package/src/cubing/twisty/{dom → old/dom}/viewers/Twisty3DCanvas.ts +5 -12
- package/src/cubing/twisty/{dom → old/dom}/viewers/TwistyOrbitControls.ts +53 -20
- package/src/cubing/twisty/{dom → old/dom}/viewers/TwistyViewerElement.ts +1 -1
- package/src/cubing/twisty/{dom/viewers/TwistyViewerWrapper.css_.ts → old/dom/viewers/TwistyViewerWrapper.css.ts} +0 -0
- package/src/cubing/twisty/{dom → old/dom}/viewers/TwistyViewerWrapper.ts +1 -1
- package/src/cubing/twisty/old/dom/viewers/canvas.ts +9 -0
- package/src/cubing/twisty/views/.DS_Store +0 -0
- package/src/cubing/twisty/views/2D/Twisty2DPuzzle.ts +150 -0
- package/src/cubing/twisty/views/2D/Twisty2DPuzzleWrapper.ts +52 -0
- package/src/cubing/twisty/views/2D/Twisty2DSceneWrapper.ts +77 -0
- package/src/cubing/twisty/views/3D/RendererPool.ts +53 -0
- package/src/cubing/twisty/{3D → views/3D}/TAU.ts +0 -0
- package/src/cubing/twisty/views/3D/Twisty3DPuzzleWrapper.ts +168 -0
- package/src/cubing/twisty/{3D → views/3D}/Twisty3DRenderTarget.ts +0 -0
- package/src/cubing/twisty/{3D → views/3D}/Twisty3DScene.ts +0 -0
- package/src/cubing/twisty/views/3D/Twisty3DSceneWrapper.ts +144 -0
- package/src/cubing/twisty/views/3D/Twisty3DVantage.ts +244 -0
- package/src/cubing/twisty/views/3D/TwistyOrbitControlsV2.spec.ts +209 -0
- package/src/cubing/twisty/views/3D/TwistyOrbitControlsV2.ts +270 -0
- package/src/cubing/twisty/{3D → views/3D}/puzzles/Cube3D.ts +36 -15
- package/src/cubing/twisty/{3D → views/3D}/puzzles/KPuzzleWrapper.ts +4 -5
- package/src/cubing/twisty/views/3D/puzzles/PG3D.ts +988 -0
- package/src/cubing/twisty/views/3D/puzzles/Twisty3DPuzzle.ts +6 -0
- package/src/cubing/twisty/{3D → views/3D}/puzzles/TwistyTestBox.ts +2 -2
- package/src/cubing/twisty/views/TwistyAlgEditor/LeafTokens.ts +116 -0
- package/src/cubing/twisty/{dom/TwistyAlgEditor.css_.ts → views/TwistyAlgEditor/TwistyAlgEditor.css.ts} +3 -1
- package/src/cubing/twisty/{dom → views/TwistyAlgEditor}/TwistyAlgEditor.spec.ts +7 -6
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.ts +360 -0
- package/src/cubing/twisty/views/TwistyAlgEditor/model.ts +179 -0
- package/src/cubing/twisty/views/TwistyAlgViewer.css.ts +25 -0
- package/src/cubing/twisty/views/TwistyAlgViewer.ts +502 -0
- package/src/cubing/twisty/views/TwistyPlayer.ts +327 -0
- package/src/cubing/twisty/views/TwistyPlayerSettable.ts +111 -0
- package/src/cubing/twisty/views/control-panel/TwistyButtonsV2.ts +159 -0
- package/src/cubing/twisty/views/control-panel/TwistyScrubberV2.ts +145 -0
- package/src/cubing/twisty/views/control-panel/webkit-fullscreen.ts +44 -0
- package/src/cubing/twisty/views/document.ts +4 -0
- package/src/cubing/twisty/views/screenshot.ts +90 -0
- package/src/cubing/vendor/.DS_Store +0 -0
- package/src/cubing/vendor/p-lazy/license +9 -0
- package/src/cubing/vendor/p-lazy/p-lazy.ts +52 -0
- package/src/cubing/vendor/p-lazy/readme.md +54 -0
- package/src/cubing/vendor/three/examples/jsm/libs/stats.modified.module.ts +179 -0
- package/dist/esm/chunk-CWVB5RRW.js.map +0 -7
- package/dist/esm/chunk-KKSDHNLH.js.map +0 -7
- package/dist/esm/chunk-YNB7QLBF.js.map +0 -7
- package/dist/esm/worker-inside-generated-string-LT4NV55Q.js +0 -2826
- package/dist/esm/worker-inside-generated-string-LT4NV55Q.js.map +0 -7
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.json_.d.ts +0 -3
- package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lgarron-additions-for-typescript/shim-lib.d.ts +0 -3
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lgarron-additions-for-typescript/shim-lib.d.ts.map +0 -1
- package/dist/types/twisty/3D/TAU.d.ts.map +0 -1
- package/dist/types/twisty/3D/Twisty3DRenderTarget.d.ts.map +0 -1
- package/dist/types/twisty/3D/Twisty3DScene.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/Cube3D.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/KPuzzleWrapper.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/PG3D.d.ts +0 -51
- package/dist/types/twisty/3D/puzzles/PG3D.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/Twisty3DPuzzle.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/TwistyTestBox.d.ts.map +0 -1
- package/dist/types/twisty/animation/RenderScheduler.d.ts.map +0 -1
- package/dist/types/twisty/animation/Timeline.d.ts.map +0 -1
- package/dist/types/twisty/animation/cursor/AlgCursor.d.ts.map +0 -1
- package/dist/types/twisty/animation/cursor/CursorTypes.d.ts.map +0 -1
- package/dist/types/twisty/animation/easing.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/AlgDuration.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/AlgIndexer.d.ts +0 -15
- package/dist/types/twisty/animation/indexer/AlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/SimpleAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/simultaneous-moves/simul-moves.d.ts +0 -25
- package/dist/types/twisty/animation/indexer/simultaneous-moves/simul-moves.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/tree/AlgWalker.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/tree/TreeAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/tree/chunkAlgs.d.ts +0 -3
- package/dist/types/twisty/animation/indexer/tree/chunkAlgs.d.ts.map +0 -1
- package/dist/types/twisty/animation/stream/timeline-move-calculation-draft.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgEditor.css_.d.ts +0 -3
- package/dist/types/twisty/dom/TwistyAlgEditor.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgEditor.d.ts +0 -27
- package/dist/types/twisty/dom/TwistyAlgEditor.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgEditorStartCharSearch.d.ts +0 -26
- package/dist/types/twisty/dom/TwistyAlgEditorStartCharSearch.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgViewer.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgViewer.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyPlayer.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyPlayer.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyPlayerConfig.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/TwistyControlElement.ts.d.ts +0 -2
- package/dist/types/twisty/dom/controls/TwistyControlElement.ts.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/TwistyScrubber.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/TwistyScrubber.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/buttons.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/buttons.d.ts.map +0 -1
- package/dist/types/twisty/dom/element/ClassListManager.d.ts.map +0 -1
- package/dist/types/twisty/dom/element/ElementConfig.d.ts.map +0 -1
- package/dist/types/twisty/dom/element/ManagedCustomElement.d.ts.map +0 -1
- package/dist/types/twisty/dom/element/node-custom-element-shims.d.ts.map +0 -1
- package/dist/types/twisty/dom/stream/TwistyStreamSource.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/stream/TwistyStreamSource.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/Twisty2DSVG.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/Twisty2DSVGView.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/Twisty3DCanvas.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/Twisty3DCanvas.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/TwistyOrbitControls.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/TwistyViewerElement.d.ts +0 -4
- package/dist/types/twisty/dom/viewers/TwistyViewerElement.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/TwistyViewerWrapper.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/TwistyViewerWrapper.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/canvas.d.ts +0 -2
- package/dist/types/twisty/dom/viewers/canvas.d.ts.map +0 -1
- package/dist/types/vendor/three/examples/jsm/libs/stats.module.d.ts +0 -2
- package/dist/types/vendor/three/examples/jsm/libs/stats.module.d.ts.map +0 -1
- package/dist/types/vendor/three/examples/jsm/libs/stats.module.wrapped.d.ts +0 -21
- package/dist/types/vendor/three/examples/jsm/libs/stats.module.wrapped.d.ts.map +0 -1
- package/src/cubing/protocol/.DS_Store +0 -0
- package/src/cubing/puzzle-geometry/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/puzzles/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/puzzles/3x3x3/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/lgarron-additions-for-typescript/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/lgarron-additions-for-typescript/shim-lib.ts +0 -13
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/lib/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/scramble/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/sgs/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/sgs/src/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/sgs/src/test/.DS_Store +0 -0
- package/src/cubing/search/vendor/comlink-everywhere/.DS_Store +0 -0
- package/src/cubing/twisty/3D/puzzles/PG3D.ts +0 -600
- package/src/cubing/twisty/3D/puzzles/Twisty3DPuzzle.ts +0 -9
- package/src/cubing/twisty/3D/puzzles/mkbhd.svg +0 -5
- package/src/cubing/twisty/animation/indexer/AlgIndexer.ts +0 -25
- package/src/cubing/twisty/animation/indexer/simultaneous-moves/SimultaneousMoveIndexer.ts +0 -168
- package/src/cubing/twisty/dom/TwistyAlgEditor.ts +0 -373
- package/src/cubing/twisty/dom/TwistyAlgEditorStartCharSearch.ts +0 -138
- package/src/cubing/twisty/dom/viewers/canvas.ts +0 -4
- package/src/cubing/twisty/views/3D/.DS_Store +0 -0
- package/src/cubing/vendor/three/.DS_Store +0 -0
- package/src/cubing/vendor/three/examples/jsm/libs/stats.module.ts +0 -2
- package/src/cubing/vendor/three/examples/jsm/libs/stats.module.wrapped.d.ts +0 -24
- package/src/cubing/vendor/three/examples/jsm/libs/stats.module.wrapped.js +0 -178
|
@@ -11,8 +11,6 @@ Compiled to Javascript using GWT.
|
|
|
11
11
|
|
|
12
12
|
import { randomUIntBelowFactory } from "../random-uint-below";
|
|
13
13
|
|
|
14
|
-
function nullMethod() {}
|
|
15
|
-
|
|
16
14
|
function FullCube_copy(obj, c) {
|
|
17
15
|
obj.ul = c.ul;
|
|
18
16
|
obj.ur = c.ur;
|
|
@@ -188,7 +186,6 @@ _.dr = 14536702;
|
|
|
188
186
|
_.ml = 0;
|
|
189
187
|
_.ul = 70195;
|
|
190
188
|
_.ur = 4544119;
|
|
191
|
-
var FullCube_gen;
|
|
192
189
|
function Search_init2(obj) {
|
|
193
190
|
var corner, edge, i, j, ml, prun;
|
|
194
191
|
FullCube_copy(obj.Search_d, obj.Search_c);
|
|
@@ -252,8 +249,7 @@ function Search_move2string(obj, len) {
|
|
|
252
249
|
top = bottom = 0;
|
|
253
250
|
}
|
|
254
251
|
}
|
|
255
|
-
if (top
|
|
256
|
-
} else {
|
|
252
|
+
if (top !== 0 || bottom !== 0) {
|
|
257
253
|
s += "(" + top + ", " + bottom + ")";
|
|
258
254
|
}
|
|
259
255
|
return s; // + " (" + len + "t)";
|
|
@@ -277,7 +273,7 @@ function Search_phase1(obj, shape, prunvalue, maxl, depth, lm) {
|
|
|
277
273
|
shapex = shape;
|
|
278
274
|
if (lm <= 0) {
|
|
279
275
|
m = 0;
|
|
280
|
-
|
|
276
|
+
for (;;) {
|
|
281
277
|
m += Shape_TopMove[shapex];
|
|
282
278
|
shapex = ~~m >> 4;
|
|
283
279
|
m &= 15;
|
|
@@ -298,7 +294,7 @@ function Search_phase1(obj, shape, prunvalue, maxl, depth, lm) {
|
|
|
298
294
|
shapex = shape;
|
|
299
295
|
if (lm <= 1) {
|
|
300
296
|
m = 0;
|
|
301
|
-
|
|
297
|
+
for (;;) {
|
|
302
298
|
m += Shape_BottomMove[shapex];
|
|
303
299
|
shapex = ~~m >> 4;
|
|
304
300
|
m &= 15;
|
|
@@ -472,8 +468,12 @@ _.Search_c = null;
|
|
|
472
468
|
_.Search_length1 = 0;
|
|
473
469
|
_.Search_maxlen2 = 0;
|
|
474
470
|
_.Search_sol_string = null;
|
|
471
|
+
let Shape_$clinit_ran = false;
|
|
475
472
|
function Shape_$clinit() {
|
|
476
|
-
Shape_$
|
|
473
|
+
if (Shape_$clinit_ran) {
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
Shape_$clinit_ran = true;
|
|
477
477
|
Shape_halflayer = [0, 3, 6, 12, 15, 24, 27, 30, 48, 51, 54, 60, 63];
|
|
478
478
|
Shape_ShapeIdx = [];
|
|
479
479
|
ShapePrun = [];
|
|
@@ -644,8 +644,12 @@ var Shape_BottomMove,
|
|
|
644
644
|
Shape_TopMove,
|
|
645
645
|
Shape_TwistMove,
|
|
646
646
|
Shape_halflayer;
|
|
647
|
+
let Square_$clinit_ran = false;
|
|
647
648
|
function Square_$clinit() {
|
|
648
|
-
Square_$
|
|
649
|
+
if (Square_$clinit_ran) {
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
Square_$clinit_ran = true;
|
|
649
653
|
SquarePrun = [];
|
|
650
654
|
Square_TwistMove = [];
|
|
651
655
|
Square_TopMove = [];
|
|
@@ -844,579 +848,6 @@ var square1SolverGetRandomScramble = async function () {
|
|
|
844
848
|
};
|
|
845
849
|
};
|
|
846
850
|
|
|
847
|
-
/*
|
|
848
|
-
* Drawing methods. These are extremely messy and outdated by now, but at least they work.
|
|
849
|
-
*/
|
|
850
|
-
|
|
851
|
-
function colorGet(col) {
|
|
852
|
-
if (col === "r") return "#FF0000";
|
|
853
|
-
if (col === "o") return "#FF8000";
|
|
854
|
-
if (col === "b") return "#0000FF";
|
|
855
|
-
if (col === "g") return "#00FF00";
|
|
856
|
-
if (col === "y") return "#FFFF00";
|
|
857
|
-
if (col === "w") return "#FFFFFF";
|
|
858
|
-
if (col === "x") return "#000000";
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
var scalePoint = function (w, h, ptIn) {
|
|
862
|
-
var defaultWidth = 200;
|
|
863
|
-
var defaultHeight = 110;
|
|
864
|
-
|
|
865
|
-
var scale = Math.min(w / defaultWidth, h / defaultHeight);
|
|
866
|
-
|
|
867
|
-
var x = Math.floor(ptIn[0] * scale + (w - defaultWidth * scale) / 2) + 0.5;
|
|
868
|
-
var y = Math.floor(ptIn[1] * scale + (h - defaultHeight * scale) / 2) + 0.5;
|
|
869
|
-
|
|
870
|
-
return [x, y];
|
|
871
|
-
};
|
|
872
|
-
|
|
873
|
-
function drawPolygon(r, fillColor, w, h, arrx, arry) {
|
|
874
|
-
var pathString = "";
|
|
875
|
-
for (var i = 0; i < arrx.length; i++) {
|
|
876
|
-
var scaledPoint = scalePoint(w, h, [arrx[i], arry[i]]);
|
|
877
|
-
pathString += (i === 0 ? "M" : "L") + scaledPoint[0] + "," + scaledPoint[1];
|
|
878
|
-
}
|
|
879
|
-
pathString += "z";
|
|
880
|
-
|
|
881
|
-
r.path(pathString).attr({ fill: colorGet(fillColor), stroke: "#000" });
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
function drawSq(
|
|
885
|
-
stickers,
|
|
886
|
-
middleIsSolved,
|
|
887
|
-
shapes,
|
|
888
|
-
parentElement,
|
|
889
|
-
width,
|
|
890
|
-
height,
|
|
891
|
-
colorString,
|
|
892
|
-
) {
|
|
893
|
-
var z = 1.366; // sqrt(2) / sqrt(1^2 + tan(15 degrees)^2)
|
|
894
|
-
var r = Raphael(parentElement, width, height);
|
|
895
|
-
|
|
896
|
-
var arrx, arry;
|
|
897
|
-
|
|
898
|
-
var margin = 1;
|
|
899
|
-
var sidewid = (0.15 * 100) / z;
|
|
900
|
-
var cx = 50;
|
|
901
|
-
var cy = 50;
|
|
902
|
-
var radius = (cx - margin - sidewid * z) / z;
|
|
903
|
-
var w = (sidewid + radius) / radius; // ratio btw total piece width and radius
|
|
904
|
-
|
|
905
|
-
var angles = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
906
|
-
var angles2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
907
|
-
|
|
908
|
-
//initialize angles
|
|
909
|
-
for (var foo = 0; foo < 24; foo++) {
|
|
910
|
-
angles[foo] = ((17 - foo * 2) / 12) * Math.PI;
|
|
911
|
-
shapes = shapes.concat("xxxxxxxxxxxxxxxx");
|
|
912
|
-
}
|
|
913
|
-
for (var foo = 0; foo < 24; foo++) {
|
|
914
|
-
angles2[foo] = ((19 - foo * 2) / 12) * Math.PI;
|
|
915
|
-
shapes = shapes.concat("xxxxxxxxxxxxxxxx");
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
function cos1(index) {
|
|
919
|
-
return Math.cos(angles[index]) * radius;
|
|
920
|
-
}
|
|
921
|
-
function sin1(index) {
|
|
922
|
-
return Math.sin(angles[index]) * radius;
|
|
923
|
-
}
|
|
924
|
-
function cos2(index) {
|
|
925
|
-
return Math.cos(angles2[index]) * radius;
|
|
926
|
-
}
|
|
927
|
-
function sin2(index) {
|
|
928
|
-
return Math.sin(angles2[index]) * radius;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
var h = sin1(1) * w * z - sin1(1) * z;
|
|
932
|
-
if (middleIsSolved) {
|
|
933
|
-
arrx = [
|
|
934
|
-
cx + cos1(1) * w * z,
|
|
935
|
-
cx + cos1(4) * w * z,
|
|
936
|
-
cx + cos1(7) * w * z,
|
|
937
|
-
cx + cos1(10) * w * z,
|
|
938
|
-
];
|
|
939
|
-
arry = [
|
|
940
|
-
cy - sin1(1) * w * z,
|
|
941
|
-
cy - sin1(4) * w * z,
|
|
942
|
-
cy - sin1(7) * w * z,
|
|
943
|
-
cy - sin1(10) * w * z,
|
|
944
|
-
];
|
|
945
|
-
drawPolygon(r, "x", width, height, arrx, arry);
|
|
946
|
-
|
|
947
|
-
cy += 10;
|
|
948
|
-
arrx = [
|
|
949
|
-
cx + cos1(0) * w,
|
|
950
|
-
cx + cos1(0) * w,
|
|
951
|
-
cx + cos1(1) * w * z,
|
|
952
|
-
cx + cos1(1) * w * z,
|
|
953
|
-
];
|
|
954
|
-
arry = [
|
|
955
|
-
cy - sin1(1) * w * z,
|
|
956
|
-
cy - sin1(1) * z,
|
|
957
|
-
cy - sin1(1) * z,
|
|
958
|
-
cy - sin1(1) * w * z,
|
|
959
|
-
cy - sin1(1) * w * z,
|
|
960
|
-
];
|
|
961
|
-
drawPolygon(r, colorString[5], width, height, arrx, arry);
|
|
962
|
-
|
|
963
|
-
arrx = [
|
|
964
|
-
cx + cos1(0) * w,
|
|
965
|
-
cx + cos1(0) * w,
|
|
966
|
-
cx + cos1(10) * w * z,
|
|
967
|
-
cx + cos1(10) * w * z,
|
|
968
|
-
];
|
|
969
|
-
arry = [
|
|
970
|
-
cy - sin1(1) * w * z,
|
|
971
|
-
cy - sin1(1) * z,
|
|
972
|
-
cy - sin1(1) * z,
|
|
973
|
-
cy - sin1(1) * w * z,
|
|
974
|
-
cy - sin1(1) * w * z,
|
|
975
|
-
];
|
|
976
|
-
drawPolygon(r, colorString[5], width, height, arrx, arry);
|
|
977
|
-
cy -= 10;
|
|
978
|
-
} else {
|
|
979
|
-
arrx = [
|
|
980
|
-
cx + cos1(1) * w * z,
|
|
981
|
-
cx + cos1(4) * w * z,
|
|
982
|
-
cx + cos1(6) * w,
|
|
983
|
-
cx + cos1(9) * w * z,
|
|
984
|
-
cx + cos1(11) * w * z,
|
|
985
|
-
cx + cos1(0) * w,
|
|
986
|
-
];
|
|
987
|
-
arry = [
|
|
988
|
-
cy - sin1(1) * w * z,
|
|
989
|
-
cy - sin1(4) * w * z,
|
|
990
|
-
cy - sin1(6) * w,
|
|
991
|
-
cy + sin1(9) * w * z,
|
|
992
|
-
cy - sin1(11) * w * z,
|
|
993
|
-
cy - sin1(0) * w,
|
|
994
|
-
];
|
|
995
|
-
drawPolygon(r, "x", width, height, arrx, arry);
|
|
996
|
-
|
|
997
|
-
arrx = [
|
|
998
|
-
cx + cos1(9) * w * z,
|
|
999
|
-
cx + cos1(11) * w * z,
|
|
1000
|
-
cx + cos1(11) * w * z,
|
|
1001
|
-
cx + cos1(9) * w * z,
|
|
1002
|
-
];
|
|
1003
|
-
arry = [
|
|
1004
|
-
cy + sin1(9) * w * z - h,
|
|
1005
|
-
cy - sin1(11) * w * z - h,
|
|
1006
|
-
cy - sin1(11) * w * z,
|
|
1007
|
-
cy + sin1(9) * w * z,
|
|
1008
|
-
];
|
|
1009
|
-
drawPolygon(r, colorString[4], width, height, arrx, arry);
|
|
1010
|
-
|
|
1011
|
-
cy += 10;
|
|
1012
|
-
arrx = [
|
|
1013
|
-
cx + cos1(0) * w,
|
|
1014
|
-
cx + cos1(0) * w,
|
|
1015
|
-
cx + cos1(1) * w * z,
|
|
1016
|
-
cx + cos1(1) * w * z,
|
|
1017
|
-
];
|
|
1018
|
-
arry = [
|
|
1019
|
-
cy - sin1(1) * w * z,
|
|
1020
|
-
cy - sin1(1) * z,
|
|
1021
|
-
cy - sin1(1) * z,
|
|
1022
|
-
cy - sin1(1) * w * z,
|
|
1023
|
-
];
|
|
1024
|
-
drawPolygon(r, colorString[5], width, height, arrx, arry);
|
|
1025
|
-
|
|
1026
|
-
arrx = [
|
|
1027
|
-
cx + cos1(0) * w,
|
|
1028
|
-
cx + cos1(0) * w,
|
|
1029
|
-
cx + cos1(11) * w * z,
|
|
1030
|
-
cx + cos1(11) * w * z,
|
|
1031
|
-
];
|
|
1032
|
-
arry = [
|
|
1033
|
-
cy - sin1(1) * w * z,
|
|
1034
|
-
cy - sin1(1) * z,
|
|
1035
|
-
cy - sin1(11) * w * z + h,
|
|
1036
|
-
cy - sin1(11) * w * z,
|
|
1037
|
-
];
|
|
1038
|
-
drawPolygon(r, colorString[2], width, height, arrx, arry);
|
|
1039
|
-
cy -= 10;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
//fill and outline first layer
|
|
1043
|
-
var sc = 0;
|
|
1044
|
-
for (var foo = 0; sc < 12; foo++) {
|
|
1045
|
-
if (shapes.length <= foo) sc = 12;
|
|
1046
|
-
if (shapes.charAt(foo) === "x") sc++;
|
|
1047
|
-
if (shapes.charAt(foo) === "c") {
|
|
1048
|
-
arrx = [cx, cx + cos1(sc), cx + cos1(sc + 1) * z, cx + cos1(sc + 2)];
|
|
1049
|
-
arry = [cy, cy - sin1(sc), cy - sin1(sc + 1) * z, cy - sin1(sc + 2)];
|
|
1050
|
-
drawPolygon(r, stickers.charAt(foo), width, height, arrx, arry);
|
|
1051
|
-
|
|
1052
|
-
arrx = [
|
|
1053
|
-
cx + cos1(sc),
|
|
1054
|
-
cx + cos1(sc + 1) * z,
|
|
1055
|
-
cx + cos1(sc + 1) * w * z,
|
|
1056
|
-
cx + cos1(sc) * w,
|
|
1057
|
-
];
|
|
1058
|
-
arry = [
|
|
1059
|
-
cy - sin1(sc),
|
|
1060
|
-
cy - sin1(sc + 1) * z,
|
|
1061
|
-
cy - sin1(sc + 1) * w * z,
|
|
1062
|
-
cy - sin1(sc) * w,
|
|
1063
|
-
];
|
|
1064
|
-
drawPolygon(r, stickers.charAt(16 + sc), width, height, arrx, arry);
|
|
1065
|
-
|
|
1066
|
-
arrx = [
|
|
1067
|
-
cx + cos1(sc + 2),
|
|
1068
|
-
cx + cos1(sc + 1) * z,
|
|
1069
|
-
cx + cos1(sc + 1) * w * z,
|
|
1070
|
-
cx + cos1(sc + 2) * w,
|
|
1071
|
-
];
|
|
1072
|
-
arry = [
|
|
1073
|
-
cy - sin1(sc + 2),
|
|
1074
|
-
cy - sin1(sc + 1) * z,
|
|
1075
|
-
cy - sin1(sc + 1) * w * z,
|
|
1076
|
-
cy - sin1(sc + 2) * w,
|
|
1077
|
-
];
|
|
1078
|
-
drawPolygon(r, stickers.charAt(17 + sc), width, height, arrx, arry);
|
|
1079
|
-
|
|
1080
|
-
sc += 2;
|
|
1081
|
-
}
|
|
1082
|
-
if (shapes.charAt(foo) === "e") {
|
|
1083
|
-
arrx = [cx, cx + cos1(sc), cx + cos1(sc + 1)];
|
|
1084
|
-
arry = [cy, cy - sin1(sc), cy - sin1(sc + 1)];
|
|
1085
|
-
drawPolygon(r, stickers.charAt(foo), width, height, arrx, arry);
|
|
1086
|
-
|
|
1087
|
-
arrx = [
|
|
1088
|
-
cx + cos1(sc),
|
|
1089
|
-
cx + cos1(sc + 1),
|
|
1090
|
-
cx + cos1(sc + 1) * w,
|
|
1091
|
-
cx + cos1(sc) * w,
|
|
1092
|
-
];
|
|
1093
|
-
arry = [
|
|
1094
|
-
cy - sin1(sc),
|
|
1095
|
-
cy - sin1(sc + 1),
|
|
1096
|
-
cy - sin1(sc + 1) * w,
|
|
1097
|
-
cy - sin1(sc) * w,
|
|
1098
|
-
];
|
|
1099
|
-
drawPolygon(r, stickers.charAt(16 + sc), width, height, arrx, arry);
|
|
1100
|
-
|
|
1101
|
-
sc += 1;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
//fill and outline second layer
|
|
1106
|
-
cx += 100;
|
|
1107
|
-
cy += 10;
|
|
1108
|
-
|
|
1109
|
-
var h = sin1(1) * w * z - sin1(1) * z;
|
|
1110
|
-
if (middleIsSolved) {
|
|
1111
|
-
arrx = [
|
|
1112
|
-
cx + cos1(1) * w * z,
|
|
1113
|
-
cx + cos1(4) * w * z,
|
|
1114
|
-
cx + cos1(7) * w * z,
|
|
1115
|
-
cx + cos1(10) * w * z,
|
|
1116
|
-
];
|
|
1117
|
-
arry = [
|
|
1118
|
-
cy + sin1(1) * w * z,
|
|
1119
|
-
cy + sin1(4) * w * z,
|
|
1120
|
-
cy + sin1(7) * w * z,
|
|
1121
|
-
cy + sin1(10) * w * z,
|
|
1122
|
-
];
|
|
1123
|
-
drawPolygon(r, "x", width, height, arrx, arry);
|
|
1124
|
-
|
|
1125
|
-
cy -= 10;
|
|
1126
|
-
arrx = [
|
|
1127
|
-
cx + cos1(0) * w,
|
|
1128
|
-
cx + cos1(0) * w,
|
|
1129
|
-
cx + cos1(1) * w * z,
|
|
1130
|
-
cx + cos1(1) * w * z,
|
|
1131
|
-
];
|
|
1132
|
-
arry = [
|
|
1133
|
-
cy + sin1(1) * w * z,
|
|
1134
|
-
cy + sin1(1) * z,
|
|
1135
|
-
cy + sin1(1) * z,
|
|
1136
|
-
cy + sin1(1) * w * z,
|
|
1137
|
-
cy + sin1(1) * w * z,
|
|
1138
|
-
];
|
|
1139
|
-
drawPolygon(r, colorString[5], width, height, arrx, arry);
|
|
1140
|
-
|
|
1141
|
-
arrx = [
|
|
1142
|
-
cx + cos1(0) * w,
|
|
1143
|
-
cx + cos1(0) * w,
|
|
1144
|
-
cx + cos1(10) * w * z,
|
|
1145
|
-
cx + cos1(10) * w * z,
|
|
1146
|
-
];
|
|
1147
|
-
arry = [
|
|
1148
|
-
cy + sin1(1) * w * z,
|
|
1149
|
-
cy + sin1(1) * z,
|
|
1150
|
-
cy + sin1(1) * z,
|
|
1151
|
-
cy + sin1(1) * w * z,
|
|
1152
|
-
cy + sin1(1) * w * z,
|
|
1153
|
-
];
|
|
1154
|
-
drawPolygon(r, colorString[5], width, height, arrx, arry);
|
|
1155
|
-
cy += 10;
|
|
1156
|
-
} else {
|
|
1157
|
-
arrx = [
|
|
1158
|
-
cx + cos1(1) * w * z,
|
|
1159
|
-
cx + cos1(4) * w * z,
|
|
1160
|
-
cx + cos1(6) * w,
|
|
1161
|
-
cx + cos1(9) * w * z,
|
|
1162
|
-
cx + cos1(11) * w * z,
|
|
1163
|
-
cx + cos1(0) * w,
|
|
1164
|
-
];
|
|
1165
|
-
arry = [
|
|
1166
|
-
cy + sin1(1) * w * z,
|
|
1167
|
-
cy + sin1(4) * w * z,
|
|
1168
|
-
cy + sin1(6) * w,
|
|
1169
|
-
cy - sin1(9) * w * z,
|
|
1170
|
-
cy + sin1(11) * w * z,
|
|
1171
|
-
cy + sin1(0) * w,
|
|
1172
|
-
];
|
|
1173
|
-
drawPolygon(r, "x", width, height, arrx, arry);
|
|
1174
|
-
|
|
1175
|
-
arrx = [
|
|
1176
|
-
cx + cos1(9) * w * z,
|
|
1177
|
-
cx + cos1(11) * w * z,
|
|
1178
|
-
cx + cos1(11) * w * z,
|
|
1179
|
-
cx + cos1(9) * w * z,
|
|
1180
|
-
];
|
|
1181
|
-
arry = [
|
|
1182
|
-
cy - sin1(9) * w * z + h,
|
|
1183
|
-
cy + sin1(11) * w * z + h,
|
|
1184
|
-
cy + sin1(11) * w * z,
|
|
1185
|
-
cy - sin1(9) * w * z,
|
|
1186
|
-
];
|
|
1187
|
-
drawPolygon(r, colorString[4], width, height, arrx, arry);
|
|
1188
|
-
|
|
1189
|
-
cy -= 10;
|
|
1190
|
-
arrx = [
|
|
1191
|
-
cx + cos1(0) * w,
|
|
1192
|
-
cx + cos1(0) * w,
|
|
1193
|
-
cx + cos1(1) * w * z,
|
|
1194
|
-
cx + cos1(1) * w * z,
|
|
1195
|
-
];
|
|
1196
|
-
arry = [
|
|
1197
|
-
cy + sin1(1) * w * z,
|
|
1198
|
-
cy + sin1(1) * z,
|
|
1199
|
-
cy + sin1(1) * z,
|
|
1200
|
-
cy + sin1(1) * w * z,
|
|
1201
|
-
];
|
|
1202
|
-
drawPolygon(r, colorString[5], width, height, arrx, arry);
|
|
1203
|
-
|
|
1204
|
-
arrx = [
|
|
1205
|
-
cx + cos1(0) * w,
|
|
1206
|
-
cx + cos1(0) * w,
|
|
1207
|
-
cx + cos1(11) * w * z,
|
|
1208
|
-
cx + cos1(11) * w * z,
|
|
1209
|
-
];
|
|
1210
|
-
arry = [
|
|
1211
|
-
cy + sin1(1) * w * z,
|
|
1212
|
-
cy + sin1(1) * z,
|
|
1213
|
-
cy + sin1(11) * w * z - h,
|
|
1214
|
-
cy + sin1(11) * w * z,
|
|
1215
|
-
];
|
|
1216
|
-
drawPolygon(r, colorString[2], width, height, arrx, arry);
|
|
1217
|
-
cy += 10;
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
var sc = 0;
|
|
1221
|
-
for (sc = 0; sc < 12; foo++) {
|
|
1222
|
-
if (shapes.length <= foo) sc = 12;
|
|
1223
|
-
if (shapes.charAt(foo) === "x") sc++;
|
|
1224
|
-
if (shapes.charAt(foo) === "c") {
|
|
1225
|
-
arrx = [cx, cx + cos2(sc), cx + cos2(sc + 1) * z, cx + cos2(sc + 2)];
|
|
1226
|
-
arry = [cy, cy - sin2(sc), cy - sin2(sc + 1) * z, cy - sin2(sc + 2)];
|
|
1227
|
-
drawPolygon(r, stickers.charAt(foo), width, height, arrx, arry);
|
|
1228
|
-
|
|
1229
|
-
arrx = [
|
|
1230
|
-
cx + cos2(sc),
|
|
1231
|
-
cx + cos2(sc + 1) * z,
|
|
1232
|
-
cx + cos2(sc + 1) * w * z,
|
|
1233
|
-
cx + cos2(sc) * w,
|
|
1234
|
-
];
|
|
1235
|
-
arry = [
|
|
1236
|
-
cy - sin2(sc),
|
|
1237
|
-
cy - sin2(sc + 1) * z,
|
|
1238
|
-
cy - sin2(sc + 1) * w * z,
|
|
1239
|
-
cy - sin2(sc) * w,
|
|
1240
|
-
];
|
|
1241
|
-
drawPolygon(r, stickers.charAt(28 + sc), width, height, arrx, arry);
|
|
1242
|
-
|
|
1243
|
-
arrx = [
|
|
1244
|
-
cx + cos2(sc + 2),
|
|
1245
|
-
cx + cos2(sc + 1) * z,
|
|
1246
|
-
cx + cos2(sc + 1) * w * z,
|
|
1247
|
-
cx + cos2(sc + 2) * w,
|
|
1248
|
-
];
|
|
1249
|
-
arry = [
|
|
1250
|
-
cy - sin2(sc + 2),
|
|
1251
|
-
cy - sin2(sc + 1) * z,
|
|
1252
|
-
cy - sin2(sc + 1) * w * z,
|
|
1253
|
-
cy - sin2(sc + 2) * w,
|
|
1254
|
-
];
|
|
1255
|
-
drawPolygon(r, stickers.charAt(29 + sc), width, height, arrx, arry);
|
|
1256
|
-
|
|
1257
|
-
sc += 2;
|
|
1258
|
-
}
|
|
1259
|
-
if (shapes.charAt(foo) === "e") {
|
|
1260
|
-
arrx = [cx, cx + cos2(sc), cx + cos2(sc + 1)];
|
|
1261
|
-
arry = [cy, cy - sin2(sc), cy - sin2(sc + 1)];
|
|
1262
|
-
drawPolygon(r, stickers.charAt(foo), width, height, arrx, arry);
|
|
1263
|
-
|
|
1264
|
-
arrx = [
|
|
1265
|
-
cx + cos2(sc),
|
|
1266
|
-
cx + cos2(sc + 1),
|
|
1267
|
-
cx + cos2(sc + 1) * w,
|
|
1268
|
-
cx + cos2(sc) * w,
|
|
1269
|
-
];
|
|
1270
|
-
arry = [
|
|
1271
|
-
cy - sin2(sc),
|
|
1272
|
-
cy - sin2(sc + 1),
|
|
1273
|
-
cy - sin2(sc + 1) * w,
|
|
1274
|
-
cy - sin2(sc) * w,
|
|
1275
|
-
];
|
|
1276
|
-
drawPolygon(r, stickers.charAt(28 + sc), width, height, arrx, arry);
|
|
1277
|
-
|
|
1278
|
-
sc += 1;
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
var remove_duplicates = function (arr) {
|
|
1284
|
-
var out = [];
|
|
1285
|
-
var j = 0;
|
|
1286
|
-
for (var i = 0; i < arr.length; i++) {
|
|
1287
|
-
if (i === 0 || arr[i] != arr[i - 1]) out[j++] = arr[i];
|
|
1288
|
-
}
|
|
1289
|
-
return out;
|
|
1290
|
-
};
|
|
1291
|
-
|
|
1292
|
-
var drawScramble = function (parentElement, sq1State, w, h) {
|
|
1293
|
-
// console.log(sq1State);
|
|
1294
|
-
var state = sq1State["arr"];
|
|
1295
|
-
|
|
1296
|
-
var colorString = "yobwrg"; //In dlburf order.
|
|
1297
|
-
|
|
1298
|
-
var posit;
|
|
1299
|
-
var scrambleString;
|
|
1300
|
-
var tb, ty, col, eido;
|
|
1301
|
-
|
|
1302
|
-
var middleIsSolved = sq1State.ml == 0;
|
|
1303
|
-
|
|
1304
|
-
var posit = [];
|
|
1305
|
-
|
|
1306
|
-
var map = [
|
|
1307
|
-
5, 4, 3, 2, 1, 0, 11, 10, 9, 8, 7, 6, 17, 16, 15, 14, 13, 12, 23, 22, 21,
|
|
1308
|
-
20, 19, 18,
|
|
1309
|
-
];
|
|
1310
|
-
// FullCube_doMove(sq1State, 1);
|
|
1311
|
-
// FullCube_doMove(sq1State, 0);
|
|
1312
|
-
for (var j = 0; j < map.length; j++) {
|
|
1313
|
-
posit.push(FullCube_pieceAt(sq1State, map[j]));
|
|
1314
|
-
}
|
|
1315
|
-
// console.log(posit);
|
|
1316
|
-
|
|
1317
|
-
var tb = [
|
|
1318
|
-
"3",
|
|
1319
|
-
"3",
|
|
1320
|
-
"3",
|
|
1321
|
-
"3",
|
|
1322
|
-
"3",
|
|
1323
|
-
"3",
|
|
1324
|
-
"3",
|
|
1325
|
-
"3",
|
|
1326
|
-
"0",
|
|
1327
|
-
"0",
|
|
1328
|
-
"0",
|
|
1329
|
-
"0",
|
|
1330
|
-
"0",
|
|
1331
|
-
"0",
|
|
1332
|
-
"0",
|
|
1333
|
-
"0",
|
|
1334
|
-
];
|
|
1335
|
-
ty = [
|
|
1336
|
-
"e",
|
|
1337
|
-
"c",
|
|
1338
|
-
"e",
|
|
1339
|
-
"c",
|
|
1340
|
-
"e",
|
|
1341
|
-
"c",
|
|
1342
|
-
"e",
|
|
1343
|
-
"c",
|
|
1344
|
-
"e",
|
|
1345
|
-
"c",
|
|
1346
|
-
"e",
|
|
1347
|
-
"c",
|
|
1348
|
-
"e",
|
|
1349
|
-
"c",
|
|
1350
|
-
"e",
|
|
1351
|
-
"c",
|
|
1352
|
-
];
|
|
1353
|
-
col = [
|
|
1354
|
-
"2",
|
|
1355
|
-
"12",
|
|
1356
|
-
"1",
|
|
1357
|
-
"51",
|
|
1358
|
-
"5",
|
|
1359
|
-
"45",
|
|
1360
|
-
"4",
|
|
1361
|
-
"24",
|
|
1362
|
-
"4",
|
|
1363
|
-
"42",
|
|
1364
|
-
"5",
|
|
1365
|
-
"54",
|
|
1366
|
-
"1",
|
|
1367
|
-
"15",
|
|
1368
|
-
"2",
|
|
1369
|
-
"21",
|
|
1370
|
-
];
|
|
1371
|
-
|
|
1372
|
-
var top_side = remove_duplicates(posit.slice(0, 12));
|
|
1373
|
-
var bot_side = remove_duplicates(
|
|
1374
|
-
posit.slice(18, 24).concat(posit.slice(12, 18)),
|
|
1375
|
-
);
|
|
1376
|
-
var eido = top_side.concat(bot_side);
|
|
1377
|
-
|
|
1378
|
-
var a = "";
|
|
1379
|
-
var b = "";
|
|
1380
|
-
var c = "";
|
|
1381
|
-
var eq = "_";
|
|
1382
|
-
for (var j = 0; j < 16; j++) {
|
|
1383
|
-
a += ty[eido[j]];
|
|
1384
|
-
eq = eido[j];
|
|
1385
|
-
b += tb[eido[j]];
|
|
1386
|
-
c += col[eido[j]];
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
var stickers = b
|
|
1390
|
-
.concat(c)
|
|
1391
|
-
.replace(/0/g, colorString[0])
|
|
1392
|
-
.replace(/1/g, colorString[1])
|
|
1393
|
-
.replace(/2/g, colorString[2])
|
|
1394
|
-
.replace(/3/g, colorString[3])
|
|
1395
|
-
.replace(/4/g, colorString[4])
|
|
1396
|
-
.replace(/5/g, colorString[5]);
|
|
1397
|
-
drawSq(stickers, middleIsSolved, a, parentElement, w, h, colorString);
|
|
1398
|
-
};
|
|
1399
|
-
|
|
1400
|
-
// /*
|
|
1401
|
-
// * Export public methods.
|
|
1402
|
-
// */
|
|
1403
|
-
|
|
1404
|
-
// return {
|
|
1405
|
-
// /* mark2 interface */
|
|
1406
|
-
// version: "July 05, 2015",
|
|
1407
|
-
// initialize: square1SolverInitialize,
|
|
1408
|
-
// setRandomSource: function () {
|
|
1409
|
-
// console.log("setRandomSource is deprecated. It has no effect anymore.");
|
|
1410
|
-
// },
|
|
1411
|
-
// getRandomScramble: square1SolverGetRandomScramble,
|
|
1412
|
-
// drawScramble: drawScramble,
|
|
1413
|
-
|
|
1414
|
-
// /* Other methods */
|
|
1415
|
-
// getRandomPosition: square1SolverGetRandomPosition,
|
|
1416
|
-
// //solve: square1SolverSolve,
|
|
1417
|
-
// generate: square1SolverGenerate,
|
|
1418
|
-
// };
|
|
1419
|
-
|
|
1420
851
|
export async function getRandomSquare1ScrambleString() {
|
|
1421
852
|
return (await square1SolverGetRandomScramble()).scramble_string;
|
|
1422
853
|
}
|
|
@@ -9,7 +9,13 @@ import {
|
|
|
9
9
|
import type { esmTestAPIImplementation } from "./esm-test-worker";
|
|
10
10
|
type ESMTestAPI = typeof esmTestAPIImplementation;
|
|
11
11
|
|
|
12
|
+
// Blocked on:
|
|
13
|
+
// - https://github.com/evanw/esbuild/issues/312
|
|
14
|
+
// - https://bugzilla.mozilla.org/show_bug.cgi?id=1558780
|
|
15
|
+
const TEST_RELATIVE_URL_WORKER = false;
|
|
16
|
+
|
|
12
17
|
export async function instantiateRelativeURLWorker(): Promise<void> {
|
|
18
|
+
// eslint-disable-next-line no-async-promise-executor
|
|
13
19
|
return new Promise(async (resolve, reject) => {
|
|
14
20
|
setTimeout(() => {
|
|
15
21
|
reject();
|
|
@@ -41,16 +47,14 @@ export async function relativeURLWorkerTest(): Promise<void> {
|
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
export async function instantiateWorker(): Promise<WorkerInsideAPI> {
|
|
44
|
-
await relativeURLWorkerTest();
|
|
45
|
-
|
|
46
50
|
const { workerSource } = await import("./worker-inside-generated-string.js");
|
|
47
51
|
// console.log({ workerSource });
|
|
48
52
|
|
|
49
53
|
const worker = await constructWorkerFromString(workerSource);
|
|
50
|
-
return wrap(worker);
|
|
51
|
-
}
|
|
52
54
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
if (TEST_RELATIVE_URL_WORKER) {
|
|
56
|
+
relativeURLWorkerTest(); // do not wait for the result
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return wrap(worker);
|
|
56
60
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/** @ts-ignore */
|
|
2
1
|
import { Alg } from "../alg";
|
|
3
2
|
// import { preInitialize222 } from "../implementations/2x2x2";
|
|
4
3
|
import { randomClockScrambleString } from "./inside/solve/puzzles/clock"; // TODO: don't reach into `inside` code.
|
|
5
4
|
import { randomMegaminxScrambleString } from "./inside/solve/puzzles/wca-minx"; // TODO: don't reach into `inside` code.
|
|
6
5
|
import { instantiateWorker } from "./instantiator";
|
|
7
6
|
import type { WorkerInsideAPI } from "./inside/api";
|
|
8
|
-
import type { Transformation } from "../
|
|
7
|
+
import type { Transformation } from "../kpuzzle";
|
|
9
8
|
|
|
10
9
|
let cachedWorkerInstance: Promise<WorkerInsideAPI> | null = null;
|
|
11
10
|
async function getCachedWorkerInstance(): Promise<WorkerInsideAPI> {
|
|
@@ -102,3 +101,10 @@ export async function solveMegaminx(s: Transformation): Promise<Alg> {
|
|
|
102
101
|
const cwi = await getCachedWorkerInstance();
|
|
103
102
|
return Alg.fromString(await cwi.solveMegaminxToString(s));
|
|
104
103
|
}
|
|
104
|
+
|
|
105
|
+
export function setDebug(options: { logPerf?: boolean }): void {
|
|
106
|
+
const { logPerf } = options;
|
|
107
|
+
if (typeof logPerf !== "undefined") {
|
|
108
|
+
getCachedWorkerInstance().then((cwi) => cwi.setDebugMeasurePerf(logPerf));
|
|
109
|
+
}
|
|
110
|
+
}
|