cubing 0.25.13 → 0.26.1
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/esm/.DS_Store +0 -0
- package/dist/esm/{2x2x2.kpuzzle.json-BHTFIME6.js → 2x2x2.kpuzzle.json-RJHNQ246.js} +1 -1
- package/dist/esm/{2x2x2.kpuzzle.json-BHTFIME6.js.map → 2x2x2.kpuzzle.json-RJHNQ246.js.map} +1 -1
- package/dist/esm/{2x2x2.sgs.json-NLV7NA3B.js → 2x2x2.sgs.json-OIAKZDZZ.js} +5 -5
- package/dist/esm/{2x2x2.sgs.json-NLV7NA3B.js.map → 2x2x2.sgs.json-OIAKZDZZ.js.map} +1 -1
- package/dist/esm/{3d-dynamic-ZXCKVS2R.js → 3d-dynamic-OTQHIOVR.js} +5 -5
- package/dist/esm/{3d-dynamic-ZXCKVS2R.js.map → 3d-dynamic-OTQHIOVR.js.map} +1 -1
- package/dist/esm/{3x3x3-min2phase-UBW46KDU.js → 3x3x3-min2phase-GFNNX26U.js} +1 -1
- package/dist/esm/{3x3x3-min2phase-UBW46KDU.js.map → 3x3x3-min2phase-GFNNX26U.js.map} +1 -1
- package/dist/esm/{444-solver-XVU6Q26C.js → 444-solver-2ECPETB3.js} +6 -6
- package/dist/esm/{444-solver-XVU6Q26C.js.map → 444-solver-2ECPETB3.js.map} +1 -1
- package/dist/esm/alg/index.js +1 -1
- package/dist/esm/bluetooth/index.js +6 -8
- package/dist/esm/bluetooth/index.js.map +1 -1
- package/dist/esm/{chunk-FB7SFELN.js → chunk-3CEMUTUD.js} +2 -2
- package/dist/esm/{chunk-FB7SFELN.js.map → chunk-3CEMUTUD.js.map} +1 -1
- package/dist/esm/{chunk-NSLR2SC4.js → chunk-5Q4SJSNY.js} +2 -2
- package/dist/esm/{chunk-NSLR2SC4.js.map → chunk-5Q4SJSNY.js.map} +1 -1
- package/dist/esm/{chunk-ZPAGJE7S.js → chunk-AD6PFNOU.js} +2 -2
- package/dist/esm/{chunk-ZPAGJE7S.js.map → chunk-AD6PFNOU.js.map} +1 -1
- package/dist/esm/{chunk-GBMX6FHY.js → chunk-ALBEW4DJ.js} +1 -1
- package/dist/esm/{chunk-GBMX6FHY.js.map → chunk-ALBEW4DJ.js.map} +1 -1
- package/dist/esm/{chunk-KWHGWTPB.js → chunk-CRU5TVHA.js} +4 -4
- package/dist/esm/{chunk-KWHGWTPB.js.map → chunk-CRU5TVHA.js.map} +1 -1
- package/dist/esm/{chunk-AT7N3AOZ.js → chunk-CYG3DDTX.js} +3 -2
- package/dist/esm/chunk-CYG3DDTX.js.map +7 -0
- package/dist/esm/{chunk-YAOUFM4D.js → chunk-HUCMGBEC.js} +295 -2
- package/dist/esm/chunk-HUCMGBEC.js.map +7 -0
- package/dist/esm/{chunk-RPPJMADS.js → chunk-J7OB2GEM.js} +6 -6
- package/dist/esm/{chunk-RPPJMADS.js.map → chunk-J7OB2GEM.js.map} +1 -1
- package/dist/esm/{chunk-FIUPFE4L.js → chunk-JIBAUV55.js} +7 -7
- package/dist/esm/{chunk-FIUPFE4L.js.map → chunk-JIBAUV55.js.map} +1 -1
- package/dist/esm/{chunk-ASJ4L4HQ.js → chunk-MC2D6L32.js} +3 -3
- package/dist/esm/{chunk-ASJ4L4HQ.js.map → chunk-MC2D6L32.js.map} +1 -1
- package/dist/esm/{chunk-RN5JA7BB.js → chunk-PDVAUAMY.js} +2 -2
- package/dist/esm/{chunk-RN5JA7BB.js.map → chunk-PDVAUAMY.js.map} +1 -1
- package/dist/esm/{chunk-AMOANNTB.js → chunk-PMKVGKT4.js} +4 -4
- package/dist/esm/{chunk-AMOANNTB.js.map → chunk-PMKVGKT4.js.map} +1 -1
- package/dist/esm/{chunk-DO7GZAW4.js → chunk-QZOJPCN5.js} +1 -1
- package/dist/esm/{chunk-DO7GZAW4.js.map → chunk-QZOJPCN5.js.map} +1 -1
- package/dist/esm/{chunk-BEXHMXCT.js → chunk-RHC3DIN3.js} +1 -1
- package/dist/esm/{chunk-BEXHMXCT.js.map → chunk-RHC3DIN3.js.map} +1 -1
- package/dist/esm/{chunk-43SBQEWR.js → chunk-V55YSWJY.js} +3 -3
- package/dist/esm/chunk-V55YSWJY.js.map +7 -0
- package/dist/esm/{chunk-YRNGJPFS.js → chunk-XQKTAWAA.js} +6 -6
- package/dist/esm/{chunk-YRNGJPFS.js.map → chunk-XQKTAWAA.js.map} +1 -1
- package/dist/esm/{clock.kpuzzle.json-PYHONPBY.js → clock.kpuzzle.json-3Q7KDODZ.js} +1 -1
- package/dist/esm/clock.kpuzzle.json-3Q7KDODZ.js.map +7 -0
- package/dist/esm/{fto-solver-TOOJNOZB.js → fto-solver-5EQEC77M.js} +2 -2
- package/dist/esm/{fto-solver-TOOJNOZB.js.map → fto-solver-5EQEC77M.js.map} +1 -1
- package/dist/esm/{fto.dynamic-ZIN22CCJ.js → fto.dynamic-ISSUUAOX.js} +6 -6
- package/dist/esm/{fto.dynamic-ZIN22CCJ.js.map → fto.dynamic-ISSUUAOX.js.map} +1 -1
- package/dist/esm/{kilosolver-A3MNW2DJ.js → kilosolver-RP3POREU.js} +3 -3
- package/dist/esm/{kilosolver-A3MNW2DJ.js.map → kilosolver-RP3POREU.js.map} +1 -1
- package/dist/esm/kpuzzle/index.js +2 -2
- package/dist/esm/{master_tetraminx-solver-QSJNGET5.js → master_tetraminx-solver-RFBUNQMC.js} +2 -2
- package/dist/esm/{master_tetraminx-solver-QSJNGET5.js.map → master_tetraminx-solver-RFBUNQMC.js.map} +1 -1
- package/dist/esm/{megaminx.sgs.json-4RFNTV3K.js → megaminx.sgs.json-NUXKWG2L.js} +6 -6
- package/dist/esm/{megaminx.sgs.json-4RFNTV3K.js.map → megaminx.sgs.json-NUXKWG2L.js.map} +0 -0
- package/dist/esm/notation/index.js +2 -2
- package/dist/esm/protocol/index.js +2 -3
- package/dist/esm/puzzle-geometry/index.js +2 -2
- package/dist/esm/puzzles/index.js +3 -3
- package/dist/esm/pyraminx.sgs.json-2BVIFZAF.js +14 -0
- package/dist/esm/{pyraminx.sgs.json-XWDFTFGD.js.map → pyraminx.sgs.json-2BVIFZAF.js.map} +0 -0
- package/dist/esm/{redi_cube-FYRLEZZH.js → redi_cube-5B6YHJGL.js} +3 -3
- package/dist/esm/{redi_cube-FYRLEZZH.js.map → redi_cube-5B6YHJGL.js.map} +1 -1
- package/dist/esm/{redi_cube.kpuzzle.json-43CP47Z6.js → redi_cube.kpuzzle.json-VGO74GBL.js} +1 -1
- package/dist/esm/{redi_cube.kpuzzle.json-43CP47Z6.js.map → redi_cube.kpuzzle.json-VGO74GBL.js.map} +1 -1
- package/dist/esm/scramble/index.js +8 -8
- package/dist/esm/search/index.js +8 -8
- package/dist/esm/{search-worker-js-entry-MQ5EKNR4.js → search-worker-js-entry-CZHIWNVF.js} +24 -24
- package/dist/esm/{search-worker-js-entry-MQ5EKNR4.js.map → search-worker-js-entry-CZHIWNVF.js.map} +1 -1
- package/dist/esm/{search-worker-ts-entry-AEZHCL75.js → search-worker-ts-entry-4WJDKASM.js} +5 -5
- package/dist/esm/{search-worker-ts-entry-AEZHCL75.js.map → search-worker-ts-entry-4WJDKASM.js.map} +1 -1
- package/dist/esm/skewb.sgs.json-IMR7QJQC.js +16 -0
- package/dist/esm/{skewb.sgs.json-ENZWYZTX.js.map → skewb.sgs.json-IMR7QJQC.js.map} +0 -0
- package/dist/esm/{sq1-hyperorbit.kpuzzle.json-AMXAFQCM.js → sq1-hyperorbit.kpuzzle.json-NHAYS6MD.js} +1 -1
- package/dist/esm/sq1-hyperorbit.kpuzzle.json-NHAYS6MD.js.map +7 -0
- package/dist/esm/{sq1-solver-KMN2GSOU.js → sq1-solver-G73T6FTJ.js} +2 -2
- package/dist/esm/{sq1-solver-KMN2GSOU.js.map → sq1-solver-G73T6FTJ.js.map} +1 -1
- package/dist/esm/stream/index.js +1 -1
- package/dist/esm/stream/index.js.map +1 -1
- package/dist/esm/twisty/index.js +73 -52
- package/dist/esm/twisty/index.js.map +2 -2
- package/dist/esm/{worker-inside-generated-string-HCFERKXI.js → worker-inside-generated-string-4FDHMKDI.js} +27 -27
- package/dist/esm/worker-inside-generated-string-4FDHMKDI.js.map +7 -0
- package/dist/types/Alg-6f3dc52c.d.ts +278 -0
- package/dist/types/KPuzzleDefinition-8531b592.d.ts +349 -0
- package/dist/types/KState-ba36d9a3.d.ts +70 -0
- package/dist/types/PuzzleLoader-a7faf593.d.ts +172 -0
- package/dist/types/alg/index.d.ts +49 -13
- package/dist/types/bluetooth/index.d.ts +147 -11
- package/dist/types/{bluetooth/smart-puzzle/bluetooth-puzzle.d.ts → bluetooth-puzzle-bc1a5264.d.ts} +14 -8
- package/dist/types/kpuzzle/index.d.ts +8 -6
- package/dist/types/notation/index.d.ts +8 -2
- package/dist/types/outside-d6602f71.d.ts +22 -0
- package/dist/types/parse-6d363160.d.ts +9 -0
- package/dist/types/protocol/index.d.ts +26 -4
- package/dist/types/puzzle-geometry/index.d.ts +7 -6
- package/dist/types/puzzles/index.d.ts +29 -12
- package/dist/types/scramble/index.d.ts +4 -1
- package/dist/types/search/index.d.ts +8 -2
- package/dist/types/stream/index.d.ts +57 -3
- package/dist/types/twisty/index.d.ts +1027 -16
- package/package.json +4 -2
- package/dist/esm/chunk-43SBQEWR.js.map +0 -7
- package/dist/esm/chunk-6BUCXDZU.js +0 -274
- package/dist/esm/chunk-6BUCXDZU.js.map +0 -7
- package/dist/esm/chunk-AT7N3AOZ.js.map +0 -7
- package/dist/esm/chunk-YAOUFM4D.js.map +0 -7
- package/dist/esm/clock.kpuzzle.json-PYHONPBY.js.map +0 -7
- package/dist/esm/pyraminx.sgs.json-XWDFTFGD.js +0 -14
- package/dist/esm/skewb.sgs.json-ENZWYZTX.js +0 -16
- package/dist/esm/sq1-hyperorbit.kpuzzle.json-AMXAFQCM.js.map +0 -7
- package/dist/esm/worker-inside-generated-string-HCFERKXI.js.map +0 -7
- package/dist/types/alg/Alg.d.ts +0 -118
- package/dist/types/alg/Alg.spec.d.ts +0 -1
- package/dist/types/alg/AlgBuilder.d.ts +0 -11
- package/dist/types/alg/Serializable.d.ts +0 -0
- package/dist/types/alg/common.d.ts +0 -19
- package/dist/types/alg/debug.d.ts +0 -4
- package/dist/types/alg/example.d.ts +0 -14
- package/dist/types/alg/is.d.ts +0 -4
- package/dist/types/alg/iteration.d.ts +0 -9
- package/dist/types/alg/keyboard.d.ts +0 -2
- package/dist/types/alg/limits.d.ts +0 -4
- package/dist/types/alg/operation.d.ts +0 -6
- package/dist/types/alg/operation.spec.d.ts +0 -1
- package/dist/types/alg/parse.d.ts +0 -12
- package/dist/types/alg/parse.spec.d.ts +0 -1
- package/dist/types/alg/test/alg-comparison.d.ts +0 -10
- package/dist/types/alg/test/alg.spec.d.ts +0 -1
- package/dist/types/alg/traversal.d.ts +0 -39
- package/dist/types/alg/units/QuantumWithAmount.d.ts +0 -11
- package/dist/types/alg/units/Unit.d.ts +0 -9
- package/dist/types/alg/units/containers/Commutator.d.ts +0 -14
- package/dist/types/alg/units/containers/Conjugate.d.ts +0 -14
- package/dist/types/alg/units/containers/Grouping.d.ts +0 -19
- package/dist/types/alg/units/index.d.ts +0 -8
- package/dist/types/alg/units/leaves/LineComment.d.ts +0 -12
- package/dist/types/alg/units/leaves/LineComment.spec.d.ts +0 -1
- package/dist/types/alg/units/leaves/Move.d.ts +0 -50
- package/dist/types/alg/units/leaves/Move.spec.d.ts +0 -1
- package/dist/types/alg/units/leaves/Newline.d.ts +0 -9
- package/dist/types/alg/units/leaves/Pause.d.ts +0 -9
- package/dist/types/alg/url.d.ts +0 -11
- package/dist/types/alg/url.spec.d.ts +0 -1
- package/dist/types/alg/validation.d.ts +0 -19
- package/dist/types/alg/warnOnce.d.ts +0 -1
- package/dist/types/bluetooth/connect/index.d.ts +0 -6
- package/dist/types/bluetooth/debug.d.ts +0 -2
- package/dist/types/bluetooth/keyboard.d.ts +0 -14
- package/dist/types/bluetooth/smart-puzzle/Heykube.d.ts +0 -17
- package/dist/types/bluetooth/smart-puzzle/connect.d.ts +0 -3
- package/dist/types/bluetooth/smart-puzzle/endianness.d.ts +0 -1
- package/dist/types/bluetooth/smart-puzzle/gan.d.ts +0 -34
- package/dist/types/bluetooth/smart-puzzle/giiker.d.ts +0 -21
- package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts +0 -4
- package/dist/types/bluetooth/smart-puzzle/gocube.d.ts +0 -22
- package/dist/types/bluetooth/smart-robot/GanRobot.d.ts +0 -35
- package/dist/types/bluetooth/smart-robot/index.d.ts +0 -4
- package/dist/types/bluetooth/smart-timer/GanTimer.d.ts +0 -19
- package/dist/types/bluetooth/smart-timer/index.d.ts +0 -4
- package/dist/types/bluetooth/transformer.d.ts +0 -9
- package/dist/types/cubing.bundle-global.d.ts +0 -1
- package/dist/types/cubing.bundle-global.exports.d.ts +0 -24
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts +0 -2
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts +0 -1
- package/dist/types/kpuzzle/3x3x3/puzzle-orientation.d.ts +0 -4
- package/dist/types/kpuzzle/KPuzzle.d.ts +0 -30
- package/dist/types/kpuzzle/KPuzzleDefinition.d.ts +0 -21
- package/dist/types/kpuzzle/KState.d.ts +0 -19
- package/dist/types/kpuzzle/KTransformation.d.ts +0 -24
- package/dist/types/kpuzzle/calculate.d.ts +0 -16
- package/dist/types/kpuzzle/combine.d.ts +0 -3
- package/dist/types/kpuzzle/construct.d.ts +0 -5
- package/dist/types/notation/CountAnimatedLeaves.d.ts +0 -2
- package/dist/types/notation/CountMoves.d.ts +0 -3
- package/dist/types/protocol/binary/binary3x3x3.d.ts +0 -19
- package/dist/types/protocol/binary/binary3x3x3.spec.d.ts +0 -1
- package/dist/types/protocol/binary/hex.d.ts +0 -2
- package/dist/types/protocol/binary/hex.spec.d.ts +0 -1
- package/dist/types/protocol/binary/orbit-indexing.d.ts +0 -5
- package/dist/types/protocol/binary/orbit-indexing.spec.d.ts +0 -1
- package/dist/types/protocol/binary/puzzle-orientation.d.ts +0 -4
- package/dist/types/puzzle-geometry/FaceNameSwizzler.d.ts +0 -12
- package/dist/types/puzzle-geometry/Options.d.ts +0 -45
- package/dist/types/puzzle-geometry/PGPuzzles.d.ts +0 -5
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts +0 -4
- package/dist/types/puzzle-geometry/Perm.d.ts +0 -18
- package/dist/types/puzzle-geometry/PermOriSet.d.ts +0 -71
- package/dist/types/puzzle-geometry/PlatonicGenerator.d.ts +0 -10
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts +0 -176
- package/dist/types/puzzle-geometry/Quat.d.ts +0 -43
- package/dist/types/puzzle-geometry/Quat.spec.d.ts +0 -1
- package/dist/types/puzzle-geometry/SchreierSims.d.ts +0 -2
- package/dist/types/puzzle-geometry/notation-mapping/FTONotationMapper.d.ts +0 -10
- package/dist/types/puzzle-geometry/notation-mapping/FaceRenamingMapper.d.ts +0 -12
- package/dist/types/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.d.ts +0 -8
- package/dist/types/puzzle-geometry/notation-mapping/NotationMapper.d.ts +0 -7
- package/dist/types/puzzle-geometry/notation-mapping/NullMapper.d.ts +0 -6
- package/dist/types/puzzle-geometry/notation-mapping/NxNxNCubeMapper.d.ts +0 -8
- package/dist/types/puzzle-geometry/notation-mapping/PyraminxNotationMapper.d.ts +0 -15
- package/dist/types/puzzle-geometry/notation-mapping/SkewbNotationMapper.d.ts +0 -9
- package/dist/types/puzzle-geometry/notation-mapping/index.d.ts +0 -8
- package/dist/types/puzzle-geometry/orientcenters.spec.d.ts +0 -1
- package/dist/types/puzzles/PuzzleLoader.d.ts +0 -18
- package/dist/types/puzzles/async/async-pg3d.d.ts +0 -33
- package/dist/types/puzzles/async/lazy-cached.d.ts +0 -1
- package/dist/types/puzzles/customPGPuzzleLoader.d.ts +0 -11
- package/dist/types/puzzles/events.d.ts +0 -8
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.d.ts +0 -2
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.d.ts +0 -2
- package/dist/types/puzzles/implementations/2x2x2/index.d.ts +0 -2
- package/dist/types/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.d.ts +0 -2
- package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.d.ts +0 -2
- package/dist/types/puzzles/implementations/3x3x3/index.d.ts +0 -2
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json.d.ts +0 -2
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.svg.d.ts +0 -2
- package/dist/types/puzzles/implementations/clock/index.d.ts +0 -2
- package/dist/types/puzzles/implementations/fto/fto.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/fto/index.d.ts +0 -12
- package/dist/types/puzzles/implementations/kilominx/index.d.ts +0 -2
- package/dist/types/puzzles/implementations/kilominx/kilominx.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/megaminx/index.d.ts +0 -11
- package/dist/types/puzzles/implementations/pyraminx/index.d.ts +0 -7
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.d.ts +0 -2
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.d.ts +0 -2
- package/dist/types/puzzles/implementations/redi-cube/index.d.ts +0 -2
- package/dist/types/puzzles/implementations/redi-cube/redi_cube.kpuzzle.json.d.ts +0 -2
- package/dist/types/puzzles/implementations/redi-cube/redi_cube.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/square1/index.d.ts +0 -2
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.d.ts +0 -2
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.d.ts +0 -2
- package/dist/types/puzzles/stickerings/appearance.d.ts +0 -50
- package/dist/types/puzzles/stickerings/cube-stickerings.d.ts +0 -5
- package/dist/types/puzzles/stickerings/fto-stickerings.d.ts +0 -5
- package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts +0 -2
- package/dist/types/puzzles/stickerings/megaminx-stickerings.d.ts +0 -5
- package/dist/types/search/inside/api.d.ts +0 -21
- package/dist/types/search/inside/api.spec.d.ts +0 -1
- package/dist/types/search/inside/inside-worker.d.ts +0 -2
- package/dist/types/search/inside/search-worker-js-entry.d.ts +0 -1
- package/dist/types/search/inside/search-worker-ts-entry-path-getter.d.ts +0 -1
- package/dist/types/search/inside/search-worker-ts-entry.d.ts +0 -1
- package/dist/types/search/inside/solve/addOrientationSuffix.d.ts +0 -2
- package/dist/types/search/inside/solve/parseSGS.d.ts +0 -18
- package/dist/types/search/inside/solve/puzzles/2x2x2.d.ts +0 -6
- package/dist/types/search/inside/solve/puzzles/2x2x2.sgs.json.d.ts +0 -3
- package/dist/types/search/inside/solve/puzzles/3x3x3/convert.d.ts +0 -2
- package/dist/types/search/inside/solve/puzzles/3x3x3/filter.d.ts +0 -4
- package/dist/types/search/inside/solve/puzzles/3x3x3/index.d.ts +0 -8
- package/dist/types/search/inside/solve/puzzles/3x3x3/legacy-sgs.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.d.ts +0 -3
- package/dist/types/search/inside/solve/puzzles/4x4x4.d.ts +0 -4
- package/dist/types/search/inside/solve/puzzles/5x5x5.d.ts +0 -2
- package/dist/types/search/inside/solve/puzzles/big-cubes.d.ts +0 -2
- package/dist/types/search/inside/solve/puzzles/clock.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/fto.d.ts +0 -5
- package/dist/types/search/inside/solve/puzzles/fto.dynamic.d.ts +0 -3
- package/dist/types/search/inside/solve/puzzles/kilominx.d.ts +0 -2
- package/dist/types/search/inside/solve/puzzles/master_tetraminx.d.ts +0 -2
- package/dist/types/search/inside/solve/puzzles/megaminx.d.ts +0 -4
- package/dist/types/search/inside/solve/puzzles/megaminx.sgs.json.d.ts +0 -5
- package/dist/types/search/inside/solve/puzzles/pyraminx.d.ts +0 -6
- package/dist/types/search/inside/solve/puzzles/pyraminx.sgs.json.d.ts +0 -3
- package/dist/types/search/inside/solve/puzzles/redi_cube.d.ts +0 -2
- package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/skewb.d.ts +0 -6
- package/dist/types/search/inside/solve/puzzles/skewb.sgs.json.d.ts +0 -5
- package/dist/types/search/inside/solve/puzzles/sq1.d.ts +0 -2
- package/dist/types/search/inside/solve/puzzles/wca-minx.d.ts +0 -1
- package/dist/types/search/inside/solve/tremble.d.ts +0 -13
- package/dist/types/search/inside/worker-guard.d.ts +0 -3
- package/dist/types/search/instantiator.d.ts +0 -4
- package/dist/types/search/outside.d.ts +0 -17
- package/dist/types/search/worker-inside-generated-string.d.ts +0 -1
- package/dist/types/stream/process/ReorientedStream.d.ts +0 -20
- package/dist/types/stream/proxy-event.d.ts +0 -13
- package/dist/types/stream/twizzle/TwizzleStream.d.ts +0 -18
- package/dist/types/stream/twizzle/stream-types.d.ts +0 -32
- package/dist/types/stream/websocket-proxy.d.ts +0 -21
- package/dist/types/twisty/controllers/AnimationTypes.d.ts +0 -32
- package/dist/types/twisty/controllers/RenderScheduler.d.ts +0 -12
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts +0 -36
- package/dist/types/twisty/controllers/TwistyPlayerController.d.ts +0 -15
- package/dist/types/twisty/controllers/easing.d.ts +0 -1
- package/dist/types/twisty/controllers/indexer/AlgDuration.d.ts +0 -17
- package/dist/types/twisty/controllers/indexer/AlgIndexer.d.ts +0 -36
- package/dist/types/twisty/controllers/indexer/SimpleAlgIndexer.d.ts +0 -19
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts +0 -22
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/simul-moves.d.ts +0 -25
- package/dist/types/twisty/controllers/indexer/tree/AlgWalker.d.ts +0 -63
- package/dist/types/twisty/controllers/indexer/tree/TreeAlgIndexer.d.ts +0 -20
- package/dist/types/twisty/controllers/indexer/tree/chunkAlgs.d.ts +0 -2
- package/dist/types/twisty/controllers/stream/timeline-move-calculation-draft.d.ts +0 -15
- package/dist/types/twisty/heavy-code-imports/3d.d.ts +0 -2
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d-dynamic.d.ts +0 -10
- package/dist/types/twisty/model/PromiseFreshener.d.ts +0 -13
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts +0 -85
- package/dist/types/twisty/model/TwistySceneModel.d.ts +0 -27
- package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts +0 -10
- package/dist/types/twisty/model/helpers.d.ts +0 -4
- package/dist/types/twisty/model/props/TwistyProp.d.ts +0 -59
- package/dist/types/twisty/model/props/TwistyProp.spec.d.ts +0 -4
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts +0 -26
- package/dist/types/twisty/model/props/general/ArbitraryStringProp.d.ts +0 -4
- package/dist/types/twisty/model/props/general/URLProp.d.ts +0 -5
- package/dist/types/twisty/model/props/puzzle/display/FoundationDisplayProp.d.ts +0 -5
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts +0 -10
- package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts +0 -9
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts +0 -50
- package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts +0 -26
- package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts +0 -11
- package/dist/types/twisty/model/props/puzzle/state/AnchorTransformationProp.d.ts +0 -14
- package/dist/types/twisty/model/props/puzzle/state/CatchUpMoveProp.d.ts +0 -10
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts +0 -16
- package/dist/types/twisty/model/props/puzzle/state/CurrentMoveInfoProp.d.ts +0 -13
- package/dist/types/twisty/model/props/puzzle/state/CurrentStateProp.d.ts +0 -14
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts +0 -19
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts +0 -11
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts +0 -14
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts +0 -11
- package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts +0 -10
- package/dist/types/twisty/model/props/puzzle/state/NaiveMoveCountProp.d.ts +0 -9
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts +0 -13
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts +0 -9
- package/dist/types/twisty/model/props/puzzle/state/SetupTransformationProp.d.ts +0 -5
- package/dist/types/twisty/model/props/puzzle/structure/KPuzzleProp.d.ts +0 -10
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts +0 -5
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts +0 -10
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts +0 -25
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts +0 -12
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts +0 -24
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts +0 -21
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts +0 -14
- package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts +0 -5
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts +0 -15
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts +0 -11
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts +0 -10
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts +0 -21
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts +0 -10
- package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts +0 -5
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts +0 -28
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts +0 -14
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts +0 -10
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts +0 -11
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts +0 -12
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts +0 -12
- package/dist/types/twisty/views/2D/KPuzzleSVGWrapper.d.ts +0 -17
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.css.d.ts +0 -2
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts +0 -27
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts +0 -15
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts +0 -19
- package/dist/types/twisty/views/3D/DragTracker.d.ts +0 -27
- package/dist/types/twisty/views/3D/RendererPool.d.ts +0 -3
- package/dist/types/twisty/views/3D/TAU.d.ts +0 -2
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts +0 -21
- package/dist/types/twisty/views/3D/Twisty3DRenderTarget.d.ts +0 -3
- package/dist/types/twisty/views/3D/Twisty3DScene.d.ts +0 -14
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts +0 -33
- package/dist/types/twisty/views/3D/Twisty3DVantage.css.d.ts +0 -2
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts +0 -36
- package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts +0 -23
- package/dist/types/twisty/views/3D/TwistyOrbitControls.spec.d.ts +0 -4
- package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts +0 -58
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts +0 -64
- package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts +0 -5
- package/dist/types/twisty/views/ClassListManager.d.ts +0 -10
- package/dist/types/twisty/views/ManagedCustomElement.d.ts +0 -19
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts +0 -17
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts +0 -2
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts +0 -40
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts +0 -4
- package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts +0 -60
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts +0 -2
- package/dist/types/twisty/views/TwistyAlgViewer.d.ts +0 -51
- package/dist/types/twisty/views/TwistyPlayer.css.d.ts +0 -2
- package/dist/types/twisty/views/TwistyPlayer.d.ts +0 -112
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts +0 -79
- package/dist/types/twisty/views/TwistyViewerWrapper.css.d.ts +0 -2
- package/dist/types/twisty/views/canvas.d.ts +0 -2
- package/dist/types/twisty/views/control-panel/TwistyButtons.css.d.ts +0 -3
- package/dist/types/twisty/views/control-panel/TwistyButtons.d.ts +0 -32
- package/dist/types/twisty/views/control-panel/TwistyScrubber.css.d.ts +0 -2
- package/dist/types/twisty/views/control-panel/TwistyScrubber.d.ts +0 -13
- package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts +0 -14
- package/dist/types/twisty/views/document.d.ts +0 -1
- package/dist/types/twisty/views/node-custom-element-shims.d.ts +0 -4
- package/dist/types/twisty/views/screenshot.d.ts +0 -11
- package/dist/types/twisty/views/stream/TwistyStreamSource.css.d.ts +0 -2
- package/dist/types/twisty/views/stream/TwistyStreamSource.d.ts +0 -12
- package/dist/types/twisty/views/twizzle/TwizzleLink.css.d.ts +0 -2
- package/dist/types/twisty/views/twizzle/TwizzleLink.d.ts +0 -11
- package/dist/types/twisty/views/twizzle/url-params.d.ts +0 -18
- package/dist/types/vendor/comlink-everywhere/inside/index.d.ts +0 -4
- package/dist/types/vendor/comlink-everywhere/node-adapter.d.ts +0 -6
- package/dist/types/vendor/comlink-everywhere/outside/index.d.ts +0 -5
- package/dist/types/vendor/cstimer/src/js/lib/mathlib.d.ts +0 -4
- package/dist/types/vendor/cstimer/src/js/scramble/444-solver.d.ts +0 -3
- package/dist/types/vendor/min2phase/3x3x3-min2phase.d.ts +0 -2
- package/dist/types/vendor/p-lazy/p-lazy.d.ts +0 -9
- package/dist/types/vendor/random-uint-below/get-random-values.d.ts +0 -2
- package/dist/types/vendor/random-uint-below/index.d.ts +0 -3
- package/dist/types/vendor/random-uint-below/random-choice.d.ts +0 -1
- package/dist/types/vendor/random-uint-below/random53BitValue.d.ts +0 -1
- package/dist/types/vendor/sq12phase/sq1-solver.d.ts +0 -1
- package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts +0 -32
- package/dist/types/vendor/unsafe-raw-aes/unsafe-raw-aes.d.ts +0 -3
- package/dist/types/vendor/xyzzy/fto-solver-original.d.ts +0 -148
- package/dist/types/vendor/xyzzy/fto-solver.d.ts +0 -1
- package/dist/types/vendor/xyzzy/kilosolver.d.ts +0 -2
- package/dist/types/vendor/xyzzy/master_tetraminx-solver.d.ts +0 -1
- package/dist/types/vendor/xyzzy/redi_cube.d.ts +0 -2
package/dist/types/alg/Alg.d.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { AlgCommon, Comparable } from "./common";
|
|
2
|
-
import { IterationDirection } from "./iteration";
|
|
3
|
-
import { SimplifyOptions } from "./traversal";
|
|
4
|
-
import { Move } from "./units/leaves/Move";
|
|
5
|
-
import type { LeafUnit, Unit } from "./units/Unit";
|
|
6
|
-
export declare type FlexibleAlgSource = string | Iterable<Unit> | Alg;
|
|
7
|
-
export declare function experimentalEnsureAlg(alg: FlexibleAlgSource): Alg;
|
|
8
|
-
/**
|
|
9
|
-
* Alg is a class that encapsulated a structured alg. To create an alg from a string, use:
|
|
10
|
-
*
|
|
11
|
-
* new Alg("R U R'"); // Convenient
|
|
12
|
-
* Alg.fromString(dynamicString); // Recommended when handling dynamic input.
|
|
13
|
-
*
|
|
14
|
-
* Once you have an Alg, you can call methods to transform it:
|
|
15
|
-
*
|
|
16
|
-
* new Alg("[[R: U], R U R2']").expand().simplify().invert();
|
|
17
|
-
*
|
|
18
|
-
* To convert an Alg to a string, use .toString():
|
|
19
|
-
*
|
|
20
|
-
* new Alg("R U F").invert().toString();
|
|
21
|
-
*
|
|
22
|
-
* If you need to debug, you may also find it convenient to use .log():
|
|
23
|
-
*
|
|
24
|
-
* if (alg.isIdentical(alg.invert())) {
|
|
25
|
-
* alg.log("A self-inverse!")
|
|
26
|
-
* }
|
|
27
|
-
*
|
|
28
|
-
* For more information, see: {@link https://js.cubing.net/cubing/alg/}
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
export declare class Alg extends AlgCommon<Alg> {
|
|
32
|
-
#private;
|
|
33
|
-
constructor(alg?: FlexibleAlgSource);
|
|
34
|
-
/**
|
|
35
|
-
* Checks whether this Alg is structurally identical to another Alg. This
|
|
36
|
-
* essentially means that they are written identically apart from whitespace.
|
|
37
|
-
*
|
|
38
|
-
* const alg1 = new Alg("R U L'");
|
|
39
|
-
* const alg2 = new Alg("L U' R'").invert();
|
|
40
|
-
* // true
|
|
41
|
-
* alg1.isIdentical(alg2);
|
|
42
|
-
*
|
|
43
|
-
* // false
|
|
44
|
-
* new Alg("[R, U]").isIdentical(new Alg("R U R' U'"));
|
|
45
|
-
* // true
|
|
46
|
-
* new Alg("[R, U]").expand().isIdentical(new Alg("R U R' U'"));
|
|
47
|
-
*
|
|
48
|
-
* Note that .isIdentical() efficiently compares algorithms, but mainly exists
|
|
49
|
-
* to help optimize code when the structure of an algorithm hasn't changed.
|
|
50
|
-
* There are many ways to write the "same" alg on most puzzles, but is
|
|
51
|
-
* *highly* recommended to avoid expanding two Alg instances to compare them,
|
|
52
|
-
* since that can easily slow your program to a crawl if someone inputs an alg
|
|
53
|
-
* containing a large repetition. In general, you should use `cubing/kpuzzle`
|
|
54
|
-
* to compare if two algs have the same effect on a puzzle.
|
|
55
|
-
*
|
|
56
|
-
* Also note that parser annotations are not take into account while comparing
|
|
57
|
-
* algs:
|
|
58
|
-
*
|
|
59
|
-
* const alg = new Alg([new Move("R"), new Move("U2")]);
|
|
60
|
-
* // true, even though one of the algs has parser annotations
|
|
61
|
-
* alg.isIdentical(new Alg("R U2"))
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
isIdentical(other: Comparable): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Returns the inverse of the given alg.
|
|
67
|
-
*
|
|
68
|
-
* Note that that this does not make any assumptions about what puzzle the alg
|
|
69
|
-
* is for. For example, U2 is its own inverse on a cube, but U2' has the same
|
|
70
|
-
* effect U3 (and not U2) on Megaminx:
|
|
71
|
-
*
|
|
72
|
-
* // Outputs: R U2' L'
|
|
73
|
-
* new Alg("L U2 R'").invert().log();
|
|
74
|
-
*/
|
|
75
|
-
invert(): Alg;
|
|
76
|
-
/** @deprecated Use {@link Alg.expand} instead. */
|
|
77
|
-
experimentalExpand(iterDir?: IterationDirection, depth?: number): Generator<LeafUnit>;
|
|
78
|
-
/**
|
|
79
|
-
* Expands all Grouping, Commutator, and Conjugate parts nested inside the
|
|
80
|
-
* alg.
|
|
81
|
-
*
|
|
82
|
-
* // F R U R' U' F'
|
|
83
|
-
* new Alg("[F: [R, U]]").expand().log();
|
|
84
|
-
*
|
|
85
|
-
* // F [R, U] F'
|
|
86
|
-
* new Alg("[F: [R, U]]").expand(({ depth: 1 }).log();
|
|
87
|
-
*
|
|
88
|
-
* Avoid calling this on a user-provided alg unless the user explicitly asks
|
|
89
|
-
* to see the expanded alg. Otherwise, it's easy to make your program freeze
|
|
90
|
-
* when someone passes in an alg like: (R U)10000000
|
|
91
|
-
*
|
|
92
|
-
* Generally, if you want to perform an operation on an entire alg, you'll
|
|
93
|
-
* want to use something based on the `Traversal` mechanism, like countMoves()
|
|
94
|
-
* from `cubing/notation`.
|
|
95
|
-
*/
|
|
96
|
-
expand(options?: {
|
|
97
|
-
depth?: number;
|
|
98
|
-
}): Alg;
|
|
99
|
-
/** @deprecated */
|
|
100
|
-
experimentalLeafMoves(): Generator<Move>;
|
|
101
|
-
concat(input: FlexibleAlgSource): Alg;
|
|
102
|
-
/** @deprecated */
|
|
103
|
-
experimentalIsEmpty(): boolean;
|
|
104
|
-
static fromString(s: string): Alg;
|
|
105
|
-
units(): Generator<Unit>;
|
|
106
|
-
experimentalNumUnits(): number;
|
|
107
|
-
/** @deprecated */
|
|
108
|
-
get type(): string;
|
|
109
|
-
/**
|
|
110
|
-
* Converts the Alg to a string:
|
|
111
|
-
*
|
|
112
|
-
* const alg = new Alg([new Move("R"), new Move("U2"), new Move("L")])
|
|
113
|
-
* // R U2 L
|
|
114
|
-
* console.log(alg.toString())
|
|
115
|
-
*/
|
|
116
|
-
toString(): string;
|
|
117
|
-
simplify(options?: SimplifyOptions): Alg;
|
|
118
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./test/alg-comparison";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Alg } from "./Alg";
|
|
2
|
-
import type { Unit } from "./units/Unit";
|
|
3
|
-
export declare class AlgBuilder {
|
|
4
|
-
#private;
|
|
5
|
-
push(u: Unit): void;
|
|
6
|
-
/** @deprecated */
|
|
7
|
-
experimentalPushAlg(alg: Alg): void;
|
|
8
|
-
experimentalNumUnits(): number;
|
|
9
|
-
toAlg(): Alg;
|
|
10
|
-
reset(): void;
|
|
11
|
-
}
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Alg } from "./Alg";
|
|
2
|
-
import type { IterationDirection } from "./iteration";
|
|
3
|
-
import type { LeafUnit, Unit } from "./units/Unit";
|
|
4
|
-
export declare function setAlgDebugField(debug: boolean): void;
|
|
5
|
-
export declare abstract class Comparable {
|
|
6
|
-
is(c: any): boolean;
|
|
7
|
-
as<T>(c: new (...args: any) => T): T | null;
|
|
8
|
-
abstract isIdentical(other: Comparable): boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface Repeatable extends Comparable {
|
|
11
|
-
experimentalExpand(iterDir?: IterationDirection, depth?: number): Generator<LeafUnit>;
|
|
12
|
-
}
|
|
13
|
-
export declare abstract class AlgCommon<T extends Alg | Unit> extends Comparable implements Repeatable {
|
|
14
|
-
constructor();
|
|
15
|
-
get log(): (message?: any) => void;
|
|
16
|
-
abstract toString(): string;
|
|
17
|
-
abstract invert(): T;
|
|
18
|
-
abstract experimentalExpand(iterDir: IterationDirection): Generator<LeafUnit>;
|
|
19
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Alg } from "./Alg";
|
|
2
|
-
export declare const Example: {
|
|
3
|
-
Sune: Alg;
|
|
4
|
-
AntiSune: Alg;
|
|
5
|
-
SuneCommutator: Alg;
|
|
6
|
-
Niklas: Alg;
|
|
7
|
-
EPerm: Alg;
|
|
8
|
-
FURURFCompact: Alg;
|
|
9
|
-
APermCompact: Alg;
|
|
10
|
-
FURURFMoves: Alg;
|
|
11
|
-
TPerm: Alg;
|
|
12
|
-
HeadlightSwaps: Alg;
|
|
13
|
-
TriplePause: Alg;
|
|
14
|
-
};
|
package/dist/types/alg/is.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Alg } from "./Alg";
|
|
2
|
-
import { Commutator, Conjugate, Grouping, LineComment, Move, Newline, Pause } from "./units";
|
|
3
|
-
export declare function experimentalIs(v: any, c: typeof Alg | typeof Grouping | typeof LineComment | typeof Commutator | typeof Conjugate | typeof Move | typeof Newline | typeof Pause): boolean;
|
|
4
|
-
export declare function experimentalIsUnit(v: any): boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare enum IterationDirection {
|
|
2
|
-
Forwards = 1,
|
|
3
|
-
Backwards = -1
|
|
4
|
-
}
|
|
5
|
-
export declare function toggleDirection(iterationDirection: IterationDirection, flip?: boolean): IterationDirection;
|
|
6
|
-
export declare function direct<T>(g: Iterable<T>, iterDir: IterationDirection): Iterable<T>;
|
|
7
|
-
export declare function reverse<T>(g: Iterable<T>): Iterable<T>;
|
|
8
|
-
export declare function directedGenerator<T>(g: Generator<T>, direction: IterationDirection): Generator<T>;
|
|
9
|
-
export declare function reverseGenerator<T>(g: Generator<T>): Generator<T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./test/alg-comparison";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Alg } from "./Alg";
|
|
2
|
-
import type { Unit } from "./units";
|
|
3
|
-
import { Move, QuantumMove } from "./units/leaves/Move";
|
|
4
|
-
export declare function parseAlg(s: string): Alg;
|
|
5
|
-
export declare function parseMove(s: string): Move;
|
|
6
|
-
export declare function parseQuantumMove(s: string): QuantumMove;
|
|
7
|
-
export interface ParserIndexed {
|
|
8
|
-
startCharIndex: number;
|
|
9
|
-
endCharIndex: number;
|
|
10
|
-
}
|
|
11
|
-
export declare type Parsed<T extends Alg | Unit> = T & ParserIndexed;
|
|
12
|
-
export declare function transferCharIndex<T extends Alg | Unit>(from: T, to: T): T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./test/alg-comparison";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./alg-comparison";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Alg } from "./Alg";
|
|
2
|
-
import { Grouping } from "./units/containers/Grouping";
|
|
3
|
-
import { Commutator } from "./units/containers/Commutator";
|
|
4
|
-
import { Move, QuantumMove } from "./units/leaves/Move";
|
|
5
|
-
import { Newline } from "./units/leaves/Newline";
|
|
6
|
-
import { Pause } from "./units/leaves/Pause";
|
|
7
|
-
import { Conjugate } from "./units/containers/Conjugate";
|
|
8
|
-
import { LineComment } from "./units/leaves/LineComment";
|
|
9
|
-
import type { Unit } from "./units/Unit";
|
|
10
|
-
export declare abstract class TraversalDownUp<DataDown, DataAlgUp, DataUnitUp = DataAlgUp> {
|
|
11
|
-
traverseUnit(unit: Unit, dataDown: DataDown): DataUnitUp;
|
|
12
|
-
traverseIntoUnit(unit: Unit, dataDown: DataDown): Unit;
|
|
13
|
-
abstract traverseAlg(alg: Alg, dataDown: DataDown): DataAlgUp;
|
|
14
|
-
abstract traverseGrouping(grouping: Grouping, dataDown: DataDown): DataUnitUp;
|
|
15
|
-
abstract traverseMove(move: Move, dataDown: DataDown): DataUnitUp;
|
|
16
|
-
abstract traverseCommutator(commutator: Commutator, dataDown: DataDown): DataUnitUp;
|
|
17
|
-
abstract traverseConjugate(conjugate: Conjugate, dataDown: DataDown): DataUnitUp;
|
|
18
|
-
abstract traversePause(pause: Pause, dataDown: DataDown): DataUnitUp;
|
|
19
|
-
abstract traverseNewline(newline: Newline, dataDown: DataDown): DataUnitUp;
|
|
20
|
-
abstract traverseLineComment(comment: LineComment, dataDown: DataDown): DataUnitUp;
|
|
21
|
-
}
|
|
22
|
-
export declare abstract class TraversalUp<DataAlgUp, DataUnitUp = DataAlgUp> extends TraversalDownUp<undefined, DataAlgUp, DataUnitUp> {
|
|
23
|
-
traverseUnit(unit: Unit): DataUnitUp;
|
|
24
|
-
traverseIntoUnit(unit: Unit): Unit;
|
|
25
|
-
abstract traverseAlg(alg: Alg): DataAlgUp;
|
|
26
|
-
abstract traverseGrouping(grouping: Grouping): DataUnitUp;
|
|
27
|
-
abstract traverseMove(move: Move): DataUnitUp;
|
|
28
|
-
abstract traverseCommutator(commutator: Commutator): DataUnitUp;
|
|
29
|
-
abstract traverseConjugate(conjugate: Conjugate): DataUnitUp;
|
|
30
|
-
abstract traversePause(pause: Pause): DataUnitUp;
|
|
31
|
-
abstract traverseNewline(newline: Newline): DataUnitUp;
|
|
32
|
-
abstract traverseLineComment(comment: LineComment): DataUnitUp;
|
|
33
|
-
}
|
|
34
|
-
export interface SimplifyOptions {
|
|
35
|
-
collapseMoves?: boolean;
|
|
36
|
-
quantumMoveOrder?: (quantumMove: QuantumMove) => number;
|
|
37
|
-
depth?: number | null;
|
|
38
|
-
}
|
|
39
|
-
export declare const simplify: (alg: Alg, options: SimplifyOptions) => Generator<Unit>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Repeatable } from "../common";
|
|
2
|
-
import { IterationDirection } from "../iteration";
|
|
3
|
-
import type { LeafUnit } from "./Unit";
|
|
4
|
-
export declare class QuantumWithAmount<Q extends Repeatable> {
|
|
5
|
-
readonly quantum: Q;
|
|
6
|
-
readonly amount: number;
|
|
7
|
-
constructor(quantum: Q, amount?: number);
|
|
8
|
-
suffix(): string;
|
|
9
|
-
isIdentical(other: QuantumWithAmount<Q>): boolean;
|
|
10
|
-
experimentalExpand(iterDir: IterationDirection, depth: number): Generator<LeafUnit>;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Grouping } from "./containers/Grouping";
|
|
2
|
-
import type { LineComment } from "./leaves/LineComment";
|
|
3
|
-
import type { Commutator } from "./containers/Commutator";
|
|
4
|
-
import type { Conjugate } from "./containers/Conjugate";
|
|
5
|
-
import type { Move } from "./leaves/Move";
|
|
6
|
-
import type { Newline } from "./leaves/Newline";
|
|
7
|
-
import type { Pause } from "./leaves/Pause";
|
|
8
|
-
export declare type LeafUnit = Move | LineComment | Newline | Pause;
|
|
9
|
-
export declare type Unit = LeafUnit | Grouping | Conjugate | Commutator;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Alg, FlexibleAlgSource } from "../../Alg";
|
|
2
|
-
import { AlgCommon, Comparable } from "../../common";
|
|
3
|
-
import { IterationDirection } from "../../iteration";
|
|
4
|
-
import type { LeafUnit } from "../Unit";
|
|
5
|
-
export declare class Commutator extends AlgCommon<Commutator> {
|
|
6
|
-
#private;
|
|
7
|
-
constructor(aSource: FlexibleAlgSource, bSource: FlexibleAlgSource);
|
|
8
|
-
get A(): Alg;
|
|
9
|
-
get B(): Alg;
|
|
10
|
-
isIdentical(other: Comparable): boolean;
|
|
11
|
-
invert(): Commutator;
|
|
12
|
-
experimentalExpand(iterDir?: IterationDirection, depth?: number): Generator<LeafUnit>;
|
|
13
|
-
toString(): string;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Alg, FlexibleAlgSource } from "../../Alg";
|
|
2
|
-
import { AlgCommon, Comparable } from "../../common";
|
|
3
|
-
import { IterationDirection } from "../../iteration";
|
|
4
|
-
import type { LeafUnit } from "../Unit";
|
|
5
|
-
export declare class Conjugate extends AlgCommon<Conjugate> {
|
|
6
|
-
#private;
|
|
7
|
-
constructor(aSource: FlexibleAlgSource, bSource: FlexibleAlgSource);
|
|
8
|
-
get A(): Alg;
|
|
9
|
-
get B(): Alg;
|
|
10
|
-
isIdentical(other: Comparable): boolean;
|
|
11
|
-
invert(): Conjugate;
|
|
12
|
-
experimentalExpand(iterDir: IterationDirection, depth?: number): Generator<LeafUnit>;
|
|
13
|
-
toString(): string;
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Alg, FlexibleAlgSource } from "../../Alg";
|
|
2
|
-
import { AlgCommon, Comparable } from "../../common";
|
|
3
|
-
import { IterationDirection } from "../../iteration";
|
|
4
|
-
import { Move } from "../leaves/Move";
|
|
5
|
-
import type { LeafUnit } from "../Unit";
|
|
6
|
-
export declare class Grouping extends AlgCommon<Grouping> {
|
|
7
|
-
#private;
|
|
8
|
-
constructor(algSource: FlexibleAlgSource, amount?: number);
|
|
9
|
-
isIdentical(other: Comparable): boolean;
|
|
10
|
-
get alg(): Alg;
|
|
11
|
-
get amount(): number;
|
|
12
|
-
/** @deprecated */
|
|
13
|
-
get experimentalRepetitionSuffix(): string;
|
|
14
|
-
invert(): Grouping;
|
|
15
|
-
experimentalExpand(iterDir?: IterationDirection, depth?: number): Generator<LeafUnit>;
|
|
16
|
-
static fromString(): Grouping;
|
|
17
|
-
toString(): string;
|
|
18
|
-
experimentalAsSquare1Tuple(): [moveU: Move, moveD: Move] | null;
|
|
19
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { Grouping } from "./containers/Grouping";
|
|
2
|
-
export { LineComment } from "./leaves/LineComment";
|
|
3
|
-
export { Commutator } from "./containers/Commutator";
|
|
4
|
-
export { Conjugate } from "./containers/Conjugate";
|
|
5
|
-
export { Move, QuantumMove } from "./leaves/Move";
|
|
6
|
-
export { Newline } from "./leaves/Newline";
|
|
7
|
-
export { Pause } from "./leaves/Pause";
|
|
8
|
-
export type { Unit } from "./Unit";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AlgCommon, Comparable } from "../../common";
|
|
2
|
-
import { IterationDirection } from "../../iteration";
|
|
3
|
-
import type { LeafUnit } from "../Unit";
|
|
4
|
-
export declare class LineComment extends AlgCommon<LineComment> {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(commentText: string);
|
|
7
|
-
get text(): string;
|
|
8
|
-
isIdentical(other: Comparable): boolean;
|
|
9
|
-
invert(): LineComment;
|
|
10
|
-
experimentalExpand(_iterDir?: IterationDirection, _depth?: number): Generator<LeafUnit>;
|
|
11
|
-
toString(): string;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { AlgCommon, Comparable } from "../../common";
|
|
2
|
-
import { IterationDirection } from "../../iteration";
|
|
3
|
-
import type { LeafUnit } from "../Unit";
|
|
4
|
-
interface QuantumMoveModifications {
|
|
5
|
-
outerLayer?: number;
|
|
6
|
-
innerLayer?: number;
|
|
7
|
-
family?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class QuantumMove extends Comparable {
|
|
10
|
-
#private;
|
|
11
|
-
constructor(family: string, innerLayer?: number | null, outerLayer?: number | null);
|
|
12
|
-
static fromString(s: string): QuantumMove;
|
|
13
|
-
modified(modifications: QuantumMoveModifications): QuantumMove;
|
|
14
|
-
isIdentical(other: QuantumMove): boolean;
|
|
15
|
-
/** @deprecated */
|
|
16
|
-
get family(): string;
|
|
17
|
-
/** @deprecated */
|
|
18
|
-
get outerLayer(): number | null;
|
|
19
|
-
/** @deprecated */
|
|
20
|
-
get innerLayer(): number | null;
|
|
21
|
-
experimentalExpand(): Generator<LeafUnit>;
|
|
22
|
-
toString(): string;
|
|
23
|
-
}
|
|
24
|
-
export interface MoveModifications {
|
|
25
|
-
outerLayer?: number;
|
|
26
|
-
innerLayer?: number;
|
|
27
|
-
family?: string;
|
|
28
|
-
amount?: number;
|
|
29
|
-
}
|
|
30
|
-
export declare class Move extends AlgCommon<Move> {
|
|
31
|
-
#private;
|
|
32
|
-
constructor(...args: [QuantumMove] | [QuantumMove, number] | [string] | [string, number]);
|
|
33
|
-
isIdentical(other: Comparable): boolean;
|
|
34
|
-
invert(): Move;
|
|
35
|
-
experimentalExpand(iterDir?: IterationDirection): Generator<LeafUnit>;
|
|
36
|
-
get quantum(): QuantumMove;
|
|
37
|
-
modified(modifications: MoveModifications): Move;
|
|
38
|
-
static fromString(s: string): Move;
|
|
39
|
-
get amount(): number;
|
|
40
|
-
/** @deprecated */
|
|
41
|
-
get type(): string;
|
|
42
|
-
/** @deprecated */
|
|
43
|
-
get family(): string;
|
|
44
|
-
/** @deprecated */
|
|
45
|
-
get outerLayer(): number | undefined;
|
|
46
|
-
/** @deprecated */
|
|
47
|
-
get innerLayer(): number | undefined;
|
|
48
|
-
toString(): string;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AlgCommon, Comparable } from "../../common";
|
|
2
|
-
import { IterationDirection } from "../../iteration";
|
|
3
|
-
import type { LeafUnit } from "../Unit";
|
|
4
|
-
export declare class Newline extends AlgCommon<Newline> {
|
|
5
|
-
toString(): string;
|
|
6
|
-
isIdentical(other: Comparable): boolean;
|
|
7
|
-
invert(): Newline;
|
|
8
|
-
experimentalExpand(_iterDir?: IterationDirection, _depth?: number): Generator<LeafUnit>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AlgCommon, Comparable } from "../../common";
|
|
2
|
-
import { IterationDirection } from "../../iteration";
|
|
3
|
-
import type { LeafUnit } from "../Unit";
|
|
4
|
-
export declare class Pause extends AlgCommon<Pause> {
|
|
5
|
-
toString(): string;
|
|
6
|
-
isIdentical(other: Comparable): boolean;
|
|
7
|
-
invert(): Pause;
|
|
8
|
-
experimentalExpand(_iterDir?: IterationDirection, _depth?: number): Generator<LeafUnit>;
|
|
9
|
-
}
|
package/dist/types/alg/url.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Alg } from "./Alg";
|
|
2
|
-
export interface AlgCubingNetOptions {
|
|
3
|
-
alg?: Alg;
|
|
4
|
-
setup?: Alg;
|
|
5
|
-
title?: string;
|
|
6
|
-
puzzle?: "1x1x1" | "2x2x2" | "3x3x3" | "4x4x4" | "5x5x5" | "6x6x6" | "7x7x7" | "8x8x8" | "9x9x9" | "10x10x10" | "11x11x11" | "12x12x12" | "13x13x13" | "14x14x14" | "16x16x16" | "17x17x17";
|
|
7
|
-
stage?: "full" | "cross" | "F2L" | "LL" | "OLL" | "PLL" | "CLS" | "ELS" | "L6E" | "CMLL" | "WV" | "ZBLL" | "void";
|
|
8
|
-
view?: "editor" | "playback" | "fullscreen";
|
|
9
|
-
type?: "moves" | "reconstruction" | "alg" | "reconstruction-end-with-setup";
|
|
10
|
-
}
|
|
11
|
-
export declare function algCubingNetLink(options: AlgCubingNetOptions): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Alg } from "./Alg";
|
|
2
|
-
import { TraversalUp } from "./traversal";
|
|
3
|
-
import type { Commutator, Conjugate, Grouping, LineComment, Move, Newline, Pause } from "./units";
|
|
4
|
-
export declare class ValidationError extends Error {
|
|
5
|
-
}
|
|
6
|
-
export declare abstract class ValidatorTraversal extends TraversalUp<void> {
|
|
7
|
-
}
|
|
8
|
-
export declare class FlatAlgValidator extends ValidatorTraversal {
|
|
9
|
-
traverseAlg(alg: Alg): void;
|
|
10
|
-
traverseGrouping(_grouping: Grouping): void;
|
|
11
|
-
traverseMove(_move: Move): void;
|
|
12
|
-
traverseCommutator(_commutator: Commutator): void;
|
|
13
|
-
traverseConjugate(_conjugate: Conjugate): void;
|
|
14
|
-
traversePause(_pause: Pause): void;
|
|
15
|
-
traverseNewline(_newline: Newline): void;
|
|
16
|
-
traverseLineComment(_comment: LineComment): void;
|
|
17
|
-
}
|
|
18
|
-
export declare type Validator = (a: Alg) => void;
|
|
19
|
-
export declare const validateFlatAlg: Validator;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function warnOnce(s: string): void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BluetoothConfig } from "../smart-puzzle/bluetooth-puzzle";
|
|
2
|
-
/******** connect() ********/
|
|
3
|
-
export interface BluetoothConnectOptions {
|
|
4
|
-
acceptAllDevices?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function bluetoothConnect<T>(configs: BluetoothConfig<T>[], options?: BluetoothConnectOptions): Promise<T>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { KState } from "../kpuzzle/KState";
|
|
2
|
-
import { BluetoothPuzzle } from "./smart-puzzle/bluetooth-puzzle";
|
|
3
|
-
export declare class KeyboardPuzzle extends BluetoothPuzzle {
|
|
4
|
-
private target;
|
|
5
|
-
private puzzle;
|
|
6
|
-
private state;
|
|
7
|
-
listener: (e: KeyboardEvent) => Promise<void>;
|
|
8
|
-
constructor(target: Element);
|
|
9
|
-
name(): string | undefined;
|
|
10
|
-
disconnect(): void;
|
|
11
|
-
getState(): Promise<KState>;
|
|
12
|
-
private onKeyDown;
|
|
13
|
-
}
|
|
14
|
-
export declare function debugKeyboardConnect(target?: any): Promise<KeyboardPuzzle>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="web-bluetooth" />
|
|
2
|
-
import type { KState } from "../../kpuzzle/KState";
|
|
3
|
-
import { BluetoothConfig, BluetoothPuzzle } from "./bluetooth-puzzle";
|
|
4
|
-
export declare class HeykubeCube extends BluetoothPuzzle {
|
|
5
|
-
private server;
|
|
6
|
-
private stateCharacteristic;
|
|
7
|
-
static connect(server: BluetoothRemoteGATTServer, device: BluetoothDevice): Promise<HeykubeCube>;
|
|
8
|
-
private constructor();
|
|
9
|
-
name(): string | undefined;
|
|
10
|
-
disconnect(): void;
|
|
11
|
-
onDisconnect(): void;
|
|
12
|
-
startTrackingMoves(): void;
|
|
13
|
-
private onStateCharacteristic;
|
|
14
|
-
private decodeState;
|
|
15
|
-
getState(): Promise<KState>;
|
|
16
|
-
}
|
|
17
|
-
export declare const heykubeConfig: BluetoothConfig<BluetoothPuzzle>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function flipBitOrder(v: number, numBits: number): number;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="web-bluetooth" />
|
|
2
|
-
import { KState } from "../../kpuzzle";
|
|
3
|
-
import { BluetoothConfig, BluetoothPuzzle } from "./bluetooth-puzzle";
|
|
4
|
-
export declare class GanCube extends BluetoothPuzzle {
|
|
5
|
-
private kpuzzle;
|
|
6
|
-
private service;
|
|
7
|
-
private server;
|
|
8
|
-
private physicalStateCharacteristic;
|
|
9
|
-
private lastMoveCounter;
|
|
10
|
-
private aesKey;
|
|
11
|
-
static connect(server: BluetoothRemoteGATTServer): Promise<GanCube>;
|
|
12
|
-
INTERVAL_MS: number;
|
|
13
|
-
private intervalHandle;
|
|
14
|
-
private state;
|
|
15
|
-
private cachedFaceletStatus1Characteristic;
|
|
16
|
-
private cachedFaceletStatus2Characteristic;
|
|
17
|
-
private cachedActualAngleAndBatteryCharacteristic;
|
|
18
|
-
private constructor();
|
|
19
|
-
name(): string | undefined;
|
|
20
|
-
disconnect(): void;
|
|
21
|
-
startTrackingMoves(): void;
|
|
22
|
-
stopTrackingMoves(): void;
|
|
23
|
-
intervalHandler(): Promise<void>;
|
|
24
|
-
getBattery(): Promise<number>;
|
|
25
|
-
getState(): Promise<KState>;
|
|
26
|
-
faceletStatus1Characteristic(): Promise<BluetoothRemoteGATTCharacteristic>;
|
|
27
|
-
faceletStatus2Characteristic(): Promise<BluetoothRemoteGATTCharacteristic>;
|
|
28
|
-
actualAngleAndBatteryCharacteristic(): Promise<BluetoothRemoteGATTCharacteristic>;
|
|
29
|
-
reset(): Promise<void>;
|
|
30
|
-
readFaceletStatus1Characteristic(): Promise<ArrayBuffer>;
|
|
31
|
-
readFaceletStatus2Characteristic(): Promise<string>;
|
|
32
|
-
readActualAngleAndBatteryCharacteristic(): Promise<ArrayBuffer>;
|
|
33
|
-
}
|
|
34
|
-
export declare const ganConfig: BluetoothConfig<BluetoothPuzzle>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="web-bluetooth" />
|
|
2
|
-
import { Move } from "../../alg";
|
|
3
|
-
import { KState } from "../../kpuzzle";
|
|
4
|
-
import { BluetoothConfig, BluetoothPuzzle } from "./bluetooth-puzzle";
|
|
5
|
-
declare function giikerMoveToAlgMove(face: number, amount: number): Move;
|
|
6
|
-
export { giikerMoveToAlgMove as giikerMoveToAlgMoveForTesting };
|
|
7
|
-
export declare class GiiKERCube extends BluetoothPuzzle {
|
|
8
|
-
private server;
|
|
9
|
-
private cubeCharacteristic;
|
|
10
|
-
private originalValue?;
|
|
11
|
-
static connect(server: BluetoothRemoteGATTServer): Promise<GiiKERCube>;
|
|
12
|
-
private constructor();
|
|
13
|
-
name(): string | undefined;
|
|
14
|
-
disconnect(): void;
|
|
15
|
-
getState(): Promise<KState>;
|
|
16
|
-
private getBit;
|
|
17
|
-
private toReid333;
|
|
18
|
-
private onCubeCharacteristicChanged;
|
|
19
|
-
private isRepeatedInitialValue;
|
|
20
|
-
}
|
|
21
|
-
export declare const giiKERConfig: BluetoothConfig<BluetoothPuzzle>;
|