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
|
@@ -1,16 +1,1027 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { M as Move, A as Alg, P as Pause, U as Unit, I as IterationDirection } from '../Alg-6f3dc52c';
|
|
2
|
+
import { m as PuzzleDescriptionString, S as StickerDat } from '../KPuzzleDefinition-8531b592';
|
|
3
|
+
import { K as KState, b as KTransformation, a as KPuzzle } from '../KState-ba36d9a3';
|
|
4
|
+
import { T as TwistyPropSource, S as SimpleTwistyPropSource, c as TwistyPropDerived, a as PuzzleID, P as PuzzleLoader, N as NoValueType, d as StickeringProp, U as UserVisibleErrorTracker, e as PuzzleIDRequestProp, b as PuzzleAppearance, E as ExperimentalStickering } from '../PuzzleLoader-a7faf593';
|
|
5
|
+
export { f as EXPERIMENTAL_PROP_NO_VALUE, E as ExperimentalStickering, a as PuzzleID } from '../PuzzleLoader-a7faf593';
|
|
6
|
+
import { Texture, Object3D, Vector3 } from 'three';
|
|
7
|
+
import { P as Parsed } from '../parse-6d363160';
|
|
8
|
+
|
|
9
|
+
declare type MillisecondTimestamp = number;
|
|
10
|
+
declare type Duration = MillisecondTimestamp;
|
|
11
|
+
declare type Timestamp = MillisecondTimestamp;
|
|
12
|
+
declare enum Direction {
|
|
13
|
+
Forwards = 1,
|
|
14
|
+
Paused = 0,
|
|
15
|
+
Backwards = -1
|
|
16
|
+
}
|
|
17
|
+
interface MoveInProgress {
|
|
18
|
+
move: Move;
|
|
19
|
+
direction: Direction;
|
|
20
|
+
fraction: number;
|
|
21
|
+
}
|
|
22
|
+
declare type PuzzlePosition = {
|
|
23
|
+
state: KState;
|
|
24
|
+
movesInProgress: MoveInProgress[];
|
|
25
|
+
};
|
|
26
|
+
declare enum BoundaryType {
|
|
27
|
+
Move = "move",
|
|
28
|
+
EntireTimeline = "entire-timeline"
|
|
29
|
+
}
|
|
30
|
+
interface TimeRange {
|
|
31
|
+
start: MillisecondTimestamp;
|
|
32
|
+
end: MillisecondTimestamp;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare type SimpleDirection = Direction.Forwards | Direction.Backwards;
|
|
36
|
+
interface PlayingInfo {
|
|
37
|
+
playing: boolean;
|
|
38
|
+
direction: SimpleDirection;
|
|
39
|
+
untilBoundary: BoundaryType;
|
|
40
|
+
loop: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare class PlayingInfoProp extends TwistyPropSource<PlayingInfo, Partial<PlayingInfo>> {
|
|
43
|
+
getDefaultValue(): Promise<PlayingInfo>;
|
|
44
|
+
derive(newInfo: Partial<PlayingInfo>, oldValuePromise: Promise<PlayingInfo>): Promise<PlayingInfo>;
|
|
45
|
+
canReuseValue(v1: PlayingInfo, v2: PlayingInfo): boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class ArbitraryStringProp extends SimpleTwistyPropSource<string | null> {
|
|
49
|
+
getDefaultValue(): string | null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class URLProp extends TwistyPropSource<URL | null, URL | string | null> {
|
|
53
|
+
getDefaultValue(): URL | null;
|
|
54
|
+
derive(input: URL | string | null): URL | null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare class AlgIssues {
|
|
58
|
+
readonly warnings: readonly string[];
|
|
59
|
+
readonly errors: readonly string[];
|
|
60
|
+
constructor(issues?: {
|
|
61
|
+
warnings?: string[];
|
|
62
|
+
errors?: string[];
|
|
63
|
+
});
|
|
64
|
+
add(issues?: {
|
|
65
|
+
warnings?: string[];
|
|
66
|
+
errors?: string[];
|
|
67
|
+
}): AlgIssues;
|
|
68
|
+
/** @deprecated */
|
|
69
|
+
log(): void;
|
|
70
|
+
}
|
|
71
|
+
interface AlgWithIssues {
|
|
72
|
+
alg: Alg;
|
|
73
|
+
issues: AlgIssues;
|
|
74
|
+
}
|
|
75
|
+
declare class AlgProp extends TwistyPropSource<AlgWithIssues, Alg | string> {
|
|
76
|
+
getDefaultValue(): AlgWithIssues;
|
|
77
|
+
canReuseValue(v1: AlgWithIssues, v2: AlgWithIssues): boolean;
|
|
78
|
+
derive(newAlg: Alg | string): Promise<AlgWithIssues>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare type AlgTransformationPropInputs = {
|
|
82
|
+
setupAlg: AlgWithIssues;
|
|
83
|
+
kpuzzle: KPuzzle;
|
|
84
|
+
};
|
|
85
|
+
declare class AlgTransformationProp extends TwistyPropDerived<AlgTransformationPropInputs, KTransformation> {
|
|
86
|
+
derive(input: AlgTransformationPropInputs): KTransformation;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare type AnimatedLeafUnit = Move | Pause;
|
|
90
|
+
|
|
91
|
+
interface CurrentMove {
|
|
92
|
+
move: Move;
|
|
93
|
+
direction: Direction;
|
|
94
|
+
fraction: number;
|
|
95
|
+
startTimestamp: MillisecondTimestamp;
|
|
96
|
+
endTimestamp: MillisecondTimestamp;
|
|
97
|
+
}
|
|
98
|
+
interface CurrentMoveInfo {
|
|
99
|
+
stateIndex: number;
|
|
100
|
+
currentMoves: CurrentMove[];
|
|
101
|
+
movesFinishing: CurrentMove[];
|
|
102
|
+
movesFinished: CurrentMove[];
|
|
103
|
+
movesStarting: CurrentMove[];
|
|
104
|
+
latestStart: number;
|
|
105
|
+
earliestEnd: number;
|
|
106
|
+
}
|
|
107
|
+
interface AlgIndexer {
|
|
108
|
+
getAnimLeaf(index: number): AnimatedLeafUnit | null;
|
|
109
|
+
indexToMoveStartTimestamp(index: number): Timestamp;
|
|
110
|
+
stateAtIndex(index: number, startSTate?: KState): KState;
|
|
111
|
+
transformationAtIndex(index: number): KTransformation;
|
|
112
|
+
numAnimatedLeaves(): number;
|
|
113
|
+
timestampToIndex(timestamp: Timestamp): number;
|
|
114
|
+
algDuration(): Duration;
|
|
115
|
+
moveDuration(index: number): number;
|
|
116
|
+
timestampToPosition?: (timestamp: Timestamp, startState?: KState) => PuzzlePosition;
|
|
117
|
+
currentMoveInfo?: (timestamp: Timestamp) => CurrentMoveInfo;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare const setupToLocations: {
|
|
121
|
+
start: boolean;
|
|
122
|
+
end: boolean;
|
|
123
|
+
};
|
|
124
|
+
declare type SetupToLocation = keyof typeof setupToLocations;
|
|
125
|
+
declare class SetupAnchorProp extends SimpleTwistyPropSource<SetupToLocation> {
|
|
126
|
+
getDefaultValue(): SetupToLocation;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface AnchorTransformationPropInputs {
|
|
130
|
+
setupTransformation: KTransformation | null;
|
|
131
|
+
setupAnchor: SetupToLocation;
|
|
132
|
+
setupAlgTransformation: KTransformation;
|
|
133
|
+
indexer: AlgIndexer;
|
|
134
|
+
}
|
|
135
|
+
declare class AnchorTransformationProp extends TwistyPropDerived<AnchorTransformationPropInputs, KTransformation> {
|
|
136
|
+
derive(inputs: AnchorTransformationPropInputs): KTransformation;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface CatchUpMove {
|
|
140
|
+
move: Move | null;
|
|
141
|
+
amount: number;
|
|
142
|
+
}
|
|
143
|
+
declare class CatchUpMoveProp extends SimpleTwistyPropSource<CatchUpMove> {
|
|
144
|
+
getDefaultValue(): CatchUpMove;
|
|
145
|
+
canReuseValue(v1: CatchUpMove, v2: CatchUpMove): boolean;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
interface CurrentLeavesSimplifiedPropInputs {
|
|
149
|
+
currentMoveInfo: CurrentMoveInfo;
|
|
150
|
+
}
|
|
151
|
+
interface CurrentLeavesSimplified {
|
|
152
|
+
stateIndex: number;
|
|
153
|
+
movesFinishing: Move[];
|
|
154
|
+
movesFinished: Move[];
|
|
155
|
+
}
|
|
156
|
+
declare class CurrentLeavesSimplifiedProp extends TwistyPropDerived<CurrentLeavesSimplifiedPropInputs, CurrentLeavesSimplified> {
|
|
157
|
+
derive(inputs: CurrentLeavesSimplifiedPropInputs): CurrentLeavesSimplified;
|
|
158
|
+
canReuse(v1: CurrentLeavesSimplified, v2: CurrentLeavesSimplified): boolean;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare const smartTimestamps: {
|
|
162
|
+
start: boolean;
|
|
163
|
+
end: boolean;
|
|
164
|
+
anchor: boolean;
|
|
165
|
+
"opposite-anchor": boolean;
|
|
166
|
+
};
|
|
167
|
+
declare type TimestampRequest = MillisecondTimestamp | keyof typeof smartTimestamps;
|
|
168
|
+
declare class TimestampRequestProp extends SimpleTwistyPropSource<TimestampRequest> {
|
|
169
|
+
getDefaultValue(): TimestampRequest;
|
|
170
|
+
set(v: TimestampRequest): void;
|
|
171
|
+
validInput(v: TimestampRequest): boolean;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
interface DetailedTimelineInfoInputs {
|
|
175
|
+
timestampRequest: TimestampRequest;
|
|
176
|
+
timeRange: TimeRange;
|
|
177
|
+
setupAnchor: SetupToLocation;
|
|
178
|
+
}
|
|
179
|
+
interface DetailedTimelineInfo {
|
|
180
|
+
timestamp: MillisecondTimestamp;
|
|
181
|
+
timeRange: TimeRange;
|
|
182
|
+
atStart: boolean;
|
|
183
|
+
atEnd: boolean;
|
|
184
|
+
}
|
|
185
|
+
declare class DetailedTimelineInfoProp extends TwistyPropDerived<DetailedTimelineInfoInputs, DetailedTimelineInfo> {
|
|
186
|
+
#private;
|
|
187
|
+
derive(inputs: DetailedTimelineInfoInputs): DetailedTimelineInfo;
|
|
188
|
+
canReuse(v1: DetailedTimelineInfo, v2: DetailedTimelineInfo): boolean;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface PositionPropInputs {
|
|
192
|
+
indexer: AlgIndexer;
|
|
193
|
+
detailedTimelineInfo: DetailedTimelineInfo;
|
|
194
|
+
catchUpMove: CatchUpMove;
|
|
195
|
+
}
|
|
196
|
+
declare class CurrentMoveInfoProp extends TwistyPropDerived<PositionPropInputs, CurrentMoveInfo> {
|
|
197
|
+
derive(inputs: PositionPropInputs): CurrentMoveInfo;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
interface CurrentTransformationPropInputs {
|
|
201
|
+
anchoredStart: KTransformation;
|
|
202
|
+
currentLeavesSimplified: CurrentLeavesSimplified;
|
|
203
|
+
indexer: AlgIndexer;
|
|
204
|
+
}
|
|
205
|
+
declare class CurrentStateProp extends TwistyPropDerived<CurrentTransformationPropInputs, KState> {
|
|
206
|
+
derive(inputs: CurrentTransformationPropInputs): KState;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
declare const visualizationFormats: {
|
|
210
|
+
"3D": boolean;
|
|
211
|
+
"2D": boolean;
|
|
212
|
+
"experimental-2D-LL": boolean;
|
|
213
|
+
PG3D: boolean;
|
|
214
|
+
};
|
|
215
|
+
declare type VisualizationFormat = keyof typeof visualizationFormats;
|
|
216
|
+
declare type VisualizationFormatWithAuto = VisualizationFormat | "auto";
|
|
217
|
+
declare class VisualizationFormatProp extends SimpleTwistyPropSource<VisualizationFormatWithAuto> {
|
|
218
|
+
getDefaultValue(): VisualizationFormatWithAuto;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare type VisualizationStrategyPropInputs = {
|
|
222
|
+
visualizationRequest: VisualizationFormatWithAuto;
|
|
223
|
+
puzzleID: PuzzleID;
|
|
224
|
+
};
|
|
225
|
+
declare type VisualizationStrategy = "Cube3D" | "2D" | "experimental-2D-LL" | "PG3D";
|
|
226
|
+
declare class VisualizationStrategyProp extends TwistyPropDerived<VisualizationStrategyPropInputs, VisualizationStrategy> {
|
|
227
|
+
derive(inputs: VisualizationStrategyPropInputs): VisualizationStrategy;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare const indexerStrategyNames: {
|
|
231
|
+
auto: boolean;
|
|
232
|
+
simple: boolean;
|
|
233
|
+
tree: boolean;
|
|
234
|
+
simultaneous: boolean;
|
|
235
|
+
};
|
|
236
|
+
declare type IndexerStrategyName = keyof typeof indexerStrategyNames;
|
|
237
|
+
declare class IndexerConstructorRequestProp extends SimpleTwistyPropSource<IndexerStrategyName> {
|
|
238
|
+
getDefaultValue(): IndexerStrategyName;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
declare type IndexerConstructor = new (kpuzzle: KPuzzle, alg: Alg) => AlgIndexer;
|
|
242
|
+
interface IndexerConstructorPropInputs {
|
|
243
|
+
puzzle: PuzzleID;
|
|
244
|
+
alg: AlgWithIssues;
|
|
245
|
+
visualizationStrategy: VisualizationStrategy;
|
|
246
|
+
indexerConstructorRequest: IndexerStrategyName;
|
|
247
|
+
}
|
|
248
|
+
declare class IndexerConstructorProp extends TwistyPropDerived<IndexerConstructorPropInputs, IndexerConstructor> {
|
|
249
|
+
derive(inputs: IndexerConstructorPropInputs): IndexerConstructor;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
declare type IndexerPropInputs = {
|
|
253
|
+
indexerConstructor: IndexerConstructor;
|
|
254
|
+
algWithIssues: AlgWithIssues;
|
|
255
|
+
kpuzzle: KPuzzle;
|
|
256
|
+
};
|
|
257
|
+
declare class IndexerProp extends TwistyPropDerived<IndexerPropInputs, AlgIndexer> {
|
|
258
|
+
derive(input: IndexerPropInputs): AlgIndexer;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
interface LegacyPositionPropInputs {
|
|
262
|
+
currentMoveInfo: CurrentMoveInfo;
|
|
263
|
+
state: KState;
|
|
264
|
+
}
|
|
265
|
+
declare class LegacyPositionProp extends TwistyPropDerived<LegacyPositionPropInputs, PuzzlePosition> {
|
|
266
|
+
derive(inputs: LegacyPositionPropInputs): PuzzlePosition;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
interface NaiveMoveCountPropInputs {
|
|
270
|
+
alg: AlgWithIssues;
|
|
271
|
+
}
|
|
272
|
+
declare class NaiveMoveCountProp extends TwistyPropDerived<NaiveMoveCountPropInputs, number | null> {
|
|
273
|
+
derive(inputs: NaiveMoveCountPropInputs): number | null;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare class PuzzleAlgProp extends TwistyPropDerived<{
|
|
277
|
+
algWithIssues: AlgWithIssues;
|
|
278
|
+
kpuzzle: KPuzzle;
|
|
279
|
+
}, AlgWithIssues> {
|
|
280
|
+
derive(inputs: {
|
|
281
|
+
algWithIssues: AlgWithIssues;
|
|
282
|
+
kpuzzle: KPuzzle;
|
|
283
|
+
}): Promise<AlgWithIssues>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
declare class SetupTransformationProp extends SimpleTwistyPropSource<KTransformation | null> {
|
|
287
|
+
getDefaultValue(): KTransformation | null;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
declare class KPuzzleProp extends TwistyPropDerived<{
|
|
291
|
+
puzzleLoader: PuzzleLoader;
|
|
292
|
+
}, KPuzzle> {
|
|
293
|
+
derive(inputs: {
|
|
294
|
+
puzzleLoader: PuzzleLoader;
|
|
295
|
+
}): Promise<KPuzzle>;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare class PGPuzzleDescriptionStringProp extends SimpleTwistyPropSource<PuzzleDescriptionString | NoValueType> {
|
|
299
|
+
getDefaultValue(): PuzzleDescriptionString | NoValueType;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
declare class PuzzleIDProp extends TwistyPropDerived<{
|
|
303
|
+
puzzleLoader: PuzzleLoader;
|
|
304
|
+
}, PuzzleID> {
|
|
305
|
+
derive(inputs: {
|
|
306
|
+
puzzleLoader: PuzzleLoader;
|
|
307
|
+
}): Promise<PuzzleID>;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
interface PuzzleLoaderPropInputs {
|
|
311
|
+
puzzleIDRequest: PuzzleID | NoValueType;
|
|
312
|
+
puzzleDescriptionRequest: PuzzleDescriptionString | NoValueType;
|
|
313
|
+
}
|
|
314
|
+
declare class PuzzleLoaderProp extends TwistyPropDerived<PuzzleLoaderPropInputs, PuzzleLoader> {
|
|
315
|
+
derive(inputs: PuzzleLoaderPropInputs): PuzzleLoader;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
declare let HTMLElementShim: typeof HTMLElement;
|
|
319
|
+
|
|
320
|
+
declare class CSSSource {
|
|
321
|
+
private sourceText;
|
|
322
|
+
constructor(sourceText: string);
|
|
323
|
+
getAsString(): string;
|
|
324
|
+
}
|
|
325
|
+
declare class ManagedCustomElement extends HTMLElementShim {
|
|
326
|
+
#private;
|
|
327
|
+
readonly shadow: ShadowRoot;
|
|
328
|
+
readonly contentWrapper: HTMLDivElement;
|
|
329
|
+
constructor(options?: {
|
|
330
|
+
mode: "open" | "closed";
|
|
331
|
+
});
|
|
332
|
+
addCSS(cssSource: CSSSource): HTMLStyleElement;
|
|
333
|
+
removeCSS(cssSource: CSSSource): void;
|
|
334
|
+
addElement<T extends Node>(element: T): T;
|
|
335
|
+
prependElement<T extends Node>(element: T): void;
|
|
336
|
+
removeElement<T extends Node>(element: T): T;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
declare const viewerLinkPages: {
|
|
340
|
+
twizzle: boolean;
|
|
341
|
+
"experimental-twizzle-explorer": boolean;
|
|
342
|
+
none: boolean;
|
|
343
|
+
};
|
|
344
|
+
declare type ViewerLinkPage = keyof typeof viewerLinkPages;
|
|
345
|
+
declare type ViewerLinkPageWithAuto = ViewerLinkPage | "auto";
|
|
346
|
+
declare class ViewerLinkProp extends SimpleTwistyPropSource<ViewerLinkPageWithAuto> {
|
|
347
|
+
getDefaultValue(): ViewerLinkPageWithAuto;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
declare const buttonIcons: string[];
|
|
351
|
+
declare type ButtonIcon = typeof buttonIcons[number];
|
|
352
|
+
interface ButtonAppearance {
|
|
353
|
+
enabled: boolean;
|
|
354
|
+
icon: ButtonIcon;
|
|
355
|
+
title: string;
|
|
356
|
+
hidden?: boolean;
|
|
357
|
+
}
|
|
358
|
+
declare type ButtonAppearances = Record<ButtonCommand, ButtonAppearance>;
|
|
359
|
+
interface ButtonAppearancePropInputs {
|
|
360
|
+
coarseTimelineInfo: CoarseTimelineInfo;
|
|
361
|
+
viewerLink: ViewerLinkPageWithAuto;
|
|
362
|
+
}
|
|
363
|
+
declare class ButtonAppearanceProp extends TwistyPropDerived<ButtonAppearancePropInputs, ButtonAppearances> {
|
|
364
|
+
derive(inputs: ButtonAppearancePropInputs): ButtonAppearances;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
declare class TwistyPlayerController {
|
|
368
|
+
private model;
|
|
369
|
+
animationController: TwistyAnimationController;
|
|
370
|
+
constructor(model: TwistyPlayerModel, delegate: TwistyAnimationControllerDelegate);
|
|
371
|
+
jumpToStart(options?: {
|
|
372
|
+
flash: boolean;
|
|
373
|
+
}): void;
|
|
374
|
+
jumpToEnd(options?: {
|
|
375
|
+
flash: boolean;
|
|
376
|
+
}): void;
|
|
377
|
+
togglePlay(play?: boolean): void;
|
|
378
|
+
visitTwizzleLink(): Promise<void>;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
declare const buttonCommands: {
|
|
382
|
+
fullscreen: boolean;
|
|
383
|
+
"jump-to-start": boolean;
|
|
384
|
+
"play-step-backwards": boolean;
|
|
385
|
+
"play-pause": boolean;
|
|
386
|
+
"play-step": boolean;
|
|
387
|
+
"jump-to-end": boolean;
|
|
388
|
+
"twizzle-link": boolean;
|
|
389
|
+
};
|
|
390
|
+
declare type ButtonCommand = keyof typeof buttonCommands;
|
|
391
|
+
declare class TwistyButtons extends ManagedCustomElement {
|
|
392
|
+
#private;
|
|
393
|
+
model?: TwistyPlayerModel | undefined;
|
|
394
|
+
controller?: TwistyPlayerController | undefined;
|
|
395
|
+
private fullscreenElement?;
|
|
396
|
+
buttons: Record<ButtonCommand, TwistyButton> | null;
|
|
397
|
+
constructor(model?: TwistyPlayerModel | undefined, controller?: TwistyPlayerController | undefined, fullscreenElement?: HTMLElement | undefined);
|
|
398
|
+
connectedCallback(): void;
|
|
399
|
+
onFullscreenButton(): Promise<void>;
|
|
400
|
+
update(buttonAppearances: ButtonAppearances): Promise<void>;
|
|
401
|
+
}
|
|
402
|
+
declare class TwistyButton extends ManagedCustomElement {
|
|
403
|
+
#private;
|
|
404
|
+
button: HTMLButtonElement;
|
|
405
|
+
connectedCallback(): void;
|
|
406
|
+
setIcon(iconName: ButtonIcon): void;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
interface CoarseTimelineInfoInputs {
|
|
410
|
+
playingInfo: PlayingInfo;
|
|
411
|
+
detailedTimelineInfo: DetailedTimelineInfo;
|
|
412
|
+
}
|
|
413
|
+
interface CoarseTimelineInfo {
|
|
414
|
+
playing: boolean;
|
|
415
|
+
atStart: boolean;
|
|
416
|
+
atEnd: boolean;
|
|
417
|
+
}
|
|
418
|
+
declare class CoarseTimelineInfoProp extends TwistyPropDerived<CoarseTimelineInfoInputs, CoarseTimelineInfo> {
|
|
419
|
+
derive(inputs: CoarseTimelineInfoInputs): CoarseTimelineInfo;
|
|
420
|
+
canReuseValue(v1: CoarseTimelineInfo, v2: CoarseTimelineInfo): boolean;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
declare class TempoScaleProp extends TwistyPropSource<number, number> {
|
|
424
|
+
getDefaultValue(): number;
|
|
425
|
+
derive(v: number): number;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
declare const backViewLayouts: {
|
|
429
|
+
none: boolean;
|
|
430
|
+
"side-by-side": boolean;
|
|
431
|
+
"top-right": boolean;
|
|
432
|
+
};
|
|
433
|
+
declare type BackViewLayout = keyof typeof backViewLayouts;
|
|
434
|
+
declare type BackViewLayoutWithAuto = BackViewLayout | "auto";
|
|
435
|
+
declare class BackViewProp extends SimpleTwistyPropSource<BackViewLayoutWithAuto> {
|
|
436
|
+
getDefaultValue(): BackViewLayoutWithAuto;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
declare const controlsLocations: {
|
|
440
|
+
"bottom-row": boolean;
|
|
441
|
+
none: boolean;
|
|
442
|
+
};
|
|
443
|
+
declare type ControlsLocation = keyof typeof controlsLocations;
|
|
444
|
+
declare type ControlPanelThemeWithAuto = ControlsLocation | "auto";
|
|
445
|
+
declare class ControlPanelProp extends SimpleTwistyPropSource<ControlPanelThemeWithAuto> {
|
|
446
|
+
getDefaultValue(): ControlPanelThemeWithAuto;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
declare class TimeRangeProp extends TwistyPropDerived<{
|
|
450
|
+
indexer: AlgIndexer;
|
|
451
|
+
}, TimeRange> {
|
|
452
|
+
derive(inputs: {
|
|
453
|
+
indexer: AlgIndexer;
|
|
454
|
+
}): TimeRange;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
declare type FoundationDisplay = "auto" | "opaque" | "none";
|
|
458
|
+
declare class FoundationDisplayProp extends SimpleTwistyPropSource<FoundationDisplay> {
|
|
459
|
+
getDefaultValue(): FoundationDisplay;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
declare const hintFaceletStyles: {
|
|
463
|
+
floating: boolean;
|
|
464
|
+
none: boolean;
|
|
465
|
+
};
|
|
466
|
+
declare type HintFaceletStyle = keyof typeof hintFaceletStyles;
|
|
467
|
+
declare type HintFaceletStyleWithAuto = HintFaceletStyle | "auto";
|
|
468
|
+
declare class HintFaceletProp extends SimpleTwistyPropSource<HintFaceletStyleWithAuto> {
|
|
469
|
+
getDefaultValue(): HintFaceletStyleWithAuto;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
declare type SpritePropInputs = {
|
|
473
|
+
spriteURL: URL | null;
|
|
474
|
+
};
|
|
475
|
+
declare class SpriteProp extends TwistyPropDerived<SpritePropInputs, Texture | null> {
|
|
476
|
+
derive(inputs: SpritePropInputs): Promise<Texture | null>;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
declare const movePressInputNames: {
|
|
480
|
+
auto: boolean;
|
|
481
|
+
none: boolean;
|
|
482
|
+
basic: boolean;
|
|
483
|
+
};
|
|
484
|
+
declare type MovePressInput = keyof typeof movePressInputNames;
|
|
485
|
+
declare class MovePressInputProp extends SimpleTwistyPropSource<MovePressInput> {
|
|
486
|
+
getDefaultValue(): MovePressInput;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
declare const backgroundThemes: {
|
|
490
|
+
checkered: boolean;
|
|
491
|
+
none: boolean;
|
|
492
|
+
};
|
|
493
|
+
declare type BackgroundTheme = keyof typeof backgroundThemes;
|
|
494
|
+
declare type BackgroundThemeWithAuto = BackgroundTheme | "auto";
|
|
495
|
+
declare class BackgroundProp extends SimpleTwistyPropSource<BackgroundThemeWithAuto> {
|
|
496
|
+
getDefaultValue(): BackgroundThemeWithAuto;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
declare type CoordinateDegrees = number;
|
|
500
|
+
interface OrbitCoordinates {
|
|
501
|
+
latitude: CoordinateDegrees;
|
|
502
|
+
longitude: CoordinateDegrees;
|
|
503
|
+
distance: number;
|
|
504
|
+
}
|
|
505
|
+
declare type OrbitCoordinatesRequest = Partial<OrbitCoordinates> | "auto";
|
|
506
|
+
declare class OrbitCoordinatesRequestProp extends TwistyPropSource<OrbitCoordinatesRequest, Partial<OrbitCoordinates> | "auto"> {
|
|
507
|
+
getDefaultValue(): OrbitCoordinatesRequest;
|
|
508
|
+
canReuseValue(v1: OrbitCoordinates, v2: OrbitCoordinates): boolean;
|
|
509
|
+
derive(newCoordinates: Partial<OrbitCoordinates> | "auto", oldValuePromise: Promise<OrbitCoordinatesRequest>): Promise<OrbitCoordinatesRequest>;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
declare class LatitudeLimitProp extends SimpleTwistyPropSource<CoordinateDegrees> {
|
|
513
|
+
getDefaultValue(): CoordinateDegrees;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
interface OrbitCoordinatesPropInputs {
|
|
517
|
+
orbitCoordinatesRequest: OrbitCoordinatesRequest;
|
|
518
|
+
latitudeLimit: CoordinateDegrees;
|
|
519
|
+
puzzleID: PuzzleID;
|
|
520
|
+
strategy: VisualizationStrategy;
|
|
521
|
+
}
|
|
522
|
+
declare class OrbitCoordinatesProp extends TwistyPropDerived<OrbitCoordinatesPropInputs, OrbitCoordinates> {
|
|
523
|
+
canReuseValue(v1: OrbitCoordinates, v2: OrbitCoordinates): boolean;
|
|
524
|
+
derive(inputs: OrbitCoordinatesPropInputs): Promise<OrbitCoordinates>;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
declare class TwistySceneModel {
|
|
528
|
+
twistyPlayerModel: TwistyPlayerModel;
|
|
529
|
+
background: BackgroundProp;
|
|
530
|
+
foundationDisplay: FoundationDisplayProp;
|
|
531
|
+
foundationStickerSpriteURL: URLProp;
|
|
532
|
+
hintFacelet: HintFaceletProp;
|
|
533
|
+
hintStickerSpriteURL: URLProp;
|
|
534
|
+
latitudeLimit: LatitudeLimitProp;
|
|
535
|
+
movePressInput: MovePressInputProp;
|
|
536
|
+
orbitCoordinatesRequest: OrbitCoordinatesRequestProp;
|
|
537
|
+
stickering: StickeringProp;
|
|
538
|
+
foundationStickerSprite: SpriteProp;
|
|
539
|
+
hintStickerSprite: SpriteProp;
|
|
540
|
+
orbitCoordinates: OrbitCoordinatesProp;
|
|
541
|
+
constructor(twistyPlayerModel: TwistyPlayerModel);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
declare class TwistyPlayerModel {
|
|
545
|
+
userVisibleErrorTracker: UserVisibleErrorTracker;
|
|
546
|
+
alg: AlgProp;
|
|
547
|
+
backView: BackViewProp;
|
|
548
|
+
controlPanel: ControlPanelProp;
|
|
549
|
+
catchUpMove: CatchUpMoveProp;
|
|
550
|
+
indexerConstructorRequest: IndexerConstructorRequestProp;
|
|
551
|
+
playingInfo: PlayingInfoProp;
|
|
552
|
+
puzzleDescriptionRequest: PGPuzzleDescriptionStringProp;
|
|
553
|
+
puzzleIDRequest: PuzzleIDRequestProp;
|
|
554
|
+
setupAnchor: SetupAnchorProp;
|
|
555
|
+
setupAlg: AlgProp;
|
|
556
|
+
setupTransformation: SetupTransformationProp;
|
|
557
|
+
tempoScale: TempoScaleProp;
|
|
558
|
+
timestampRequest: TimestampRequestProp;
|
|
559
|
+
viewerLink: ViewerLinkProp;
|
|
560
|
+
visualizationFormat: VisualizationFormatProp;
|
|
561
|
+
title: ArbitraryStringProp;
|
|
562
|
+
videoURL: URLProp;
|
|
563
|
+
competitionID: ArbitraryStringProp;
|
|
564
|
+
puzzleLoader: PuzzleLoaderProp;
|
|
565
|
+
kpuzzle: KPuzzleProp;
|
|
566
|
+
puzzleID: PuzzleIDProp;
|
|
567
|
+
puzzleAlg: PuzzleAlgProp;
|
|
568
|
+
puzzleSetupAlg: PuzzleAlgProp;
|
|
569
|
+
visualizationStrategy: VisualizationStrategyProp;
|
|
570
|
+
indexerConstructor: IndexerConstructorProp;
|
|
571
|
+
moveCount: NaiveMoveCountProp;
|
|
572
|
+
setupAlgTransformation: AlgTransformationProp;
|
|
573
|
+
indexer: IndexerProp;
|
|
574
|
+
anchorTransformation: AnchorTransformationProp;
|
|
575
|
+
timeRange: TimeRangeProp;
|
|
576
|
+
detailedTimelineInfo: DetailedTimelineInfoProp;
|
|
577
|
+
coarseTimelineInfo: CoarseTimelineInfoProp;
|
|
578
|
+
currentMoveInfo: CurrentMoveInfoProp;
|
|
579
|
+
buttonAppearance: ButtonAppearanceProp;
|
|
580
|
+
currentLeavesSimplified: CurrentLeavesSimplifiedProp;
|
|
581
|
+
currentState: CurrentStateProp;
|
|
582
|
+
legacyPosition: LegacyPositionProp;
|
|
583
|
+
twistySceneModel: TwistySceneModel;
|
|
584
|
+
twizzleLink(): Promise<string>;
|
|
585
|
+
experimentalAddMove(flexibleMove: Move | string, options?: {
|
|
586
|
+
coalesce?: boolean;
|
|
587
|
+
mod?: number;
|
|
588
|
+
}): void;
|
|
589
|
+
/** @deprecated */
|
|
590
|
+
get playingInfoProp(): PlayingInfoProp;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
interface TwistyAnimationControllerDelegate {
|
|
594
|
+
flash(): void;
|
|
595
|
+
}
|
|
596
|
+
declare class TwistyAnimationController {
|
|
597
|
+
#private;
|
|
598
|
+
private delegate;
|
|
599
|
+
private playing;
|
|
600
|
+
private direction;
|
|
601
|
+
private catchUpHelper;
|
|
602
|
+
private model;
|
|
603
|
+
private lastDatestamp;
|
|
604
|
+
private lastTimestampPromise;
|
|
605
|
+
private scheduler;
|
|
606
|
+
constructor(model: TwistyPlayerModel, delegate: TwistyAnimationControllerDelegate);
|
|
607
|
+
onPlayingProp(playingInfo: PlayingInfo): Promise<void>;
|
|
608
|
+
onCatchUpMoveProp(catchUpMove: CatchUpMove): Promise<void>;
|
|
609
|
+
jumpToStart(options?: {
|
|
610
|
+
flash: boolean;
|
|
611
|
+
}): void;
|
|
612
|
+
jumpToEnd(options?: {
|
|
613
|
+
flash: boolean;
|
|
614
|
+
}): void;
|
|
615
|
+
playPause(): void;
|
|
616
|
+
play(options?: {
|
|
617
|
+
direction?: SimpleDirection;
|
|
618
|
+
untilBoundary?: BoundaryType;
|
|
619
|
+
autoSkipToOtherEndIfStartingAtBoundary?: boolean;
|
|
620
|
+
loop?: boolean;
|
|
621
|
+
}): Promise<void>;
|
|
622
|
+
pause(): void;
|
|
623
|
+
animFrame(frameDatestamp: MillisecondTimestamp): Promise<void>;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
interface Twisty3DPuzzle extends Object3D {
|
|
627
|
+
onPositionChange(position: PuzzlePosition): void;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
interface PG3DOptions {
|
|
631
|
+
appearance?: PuzzleAppearance;
|
|
632
|
+
}
|
|
633
|
+
declare class PG3D extends Object3D implements Twisty3DPuzzle {
|
|
634
|
+
#private;
|
|
635
|
+
private scheduleRenderCallback;
|
|
636
|
+
private kpuzzle;
|
|
637
|
+
private stickerDat;
|
|
638
|
+
private params;
|
|
639
|
+
private stickers;
|
|
640
|
+
private axesInfo;
|
|
641
|
+
private stickerTargets;
|
|
642
|
+
private controlTargets;
|
|
643
|
+
private movingObj;
|
|
644
|
+
private filler;
|
|
645
|
+
private foundationBound;
|
|
646
|
+
private fixedGeo;
|
|
647
|
+
private lastPos;
|
|
648
|
+
private lastMoveTransformation;
|
|
649
|
+
private hintMaterial;
|
|
650
|
+
private stickerMaterial;
|
|
651
|
+
private materialArray1;
|
|
652
|
+
private materialArray2;
|
|
653
|
+
private textured;
|
|
654
|
+
private showHintStickers;
|
|
655
|
+
private showFoundations;
|
|
656
|
+
private hintMaterialDisposable;
|
|
657
|
+
private stickerMaterialDisposable;
|
|
658
|
+
isPG3DForTwisty3DPuzzleWrapper: true;
|
|
659
|
+
constructor(scheduleRenderCallback: () => void, kpuzzle: KPuzzle, stickerDat: StickerDat, enableFoundationOpt?: boolean, enableHintStickersOpt?: boolean, hintStickerHeightScale?: number, params?: PG3DOptions);
|
|
660
|
+
dispose(): void;
|
|
661
|
+
experimentalGetStickerTargets(): Object3D[];
|
|
662
|
+
experimentalGetControlTargets(): Object3D[];
|
|
663
|
+
getClosestMoveToAxis(point: Vector3, transformations: {
|
|
664
|
+
invert: boolean;
|
|
665
|
+
depth?: "secondSlice" | "rotation" | "none";
|
|
666
|
+
}): {
|
|
667
|
+
move: Move;
|
|
668
|
+
order: number;
|
|
669
|
+
} | null;
|
|
670
|
+
experimentalSetAppearance(appearance: PuzzleAppearance): void;
|
|
671
|
+
onPositionChange(p: PuzzlePosition): void;
|
|
672
|
+
private ease;
|
|
673
|
+
private showHintFacelets;
|
|
674
|
+
private updateMaterialArrays;
|
|
675
|
+
private showFoundation;
|
|
676
|
+
private setHintStickerOpacity;
|
|
677
|
+
experimentalUpdateOptions(options: {
|
|
678
|
+
showMainStickers?: boolean;
|
|
679
|
+
hintFacelets?: HintFaceletStyle;
|
|
680
|
+
showFoundation?: boolean;
|
|
681
|
+
hintStickerOpacity?: number;
|
|
682
|
+
}): void;
|
|
683
|
+
private adduvs;
|
|
684
|
+
experimentalUpdateTexture(enabled: boolean, stickerTexture?: Texture | null, hintTexture?: Texture | null): void;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
declare abstract class TwistyPlayerSettable extends ManagedCustomElement {
|
|
688
|
+
experimentalModel: TwistyPlayerModel;
|
|
689
|
+
set alg(newAlg: Alg | string);
|
|
690
|
+
get alg(): never;
|
|
691
|
+
set experimentalSetupAlg(newSetup: Alg | string);
|
|
692
|
+
get experimentalSetupAlg(): never;
|
|
693
|
+
set experimentalSetupAnchor(anchor: SetupToLocation);
|
|
694
|
+
get experimentalSetupAnchor(): never;
|
|
695
|
+
set puzzle(puzzleID: PuzzleID);
|
|
696
|
+
get puzzle(): never;
|
|
697
|
+
set experimentalPuzzleDescription(puzzleDescription: PuzzleDescriptionString);
|
|
698
|
+
get experimentalPuzzleDescription(): never;
|
|
699
|
+
set timestamp(timestamp: TimestampRequest);
|
|
700
|
+
get timestamp(): never;
|
|
701
|
+
set hintFacelets(hintFaceletStyle: HintFaceletStyleWithAuto);
|
|
702
|
+
get hintFacelets(): never;
|
|
703
|
+
set experimentalStickering(stickering: ExperimentalStickering);
|
|
704
|
+
get experimentalStickering(): never;
|
|
705
|
+
set backView(backView: BackViewLayoutWithAuto);
|
|
706
|
+
get backView(): never;
|
|
707
|
+
set background(backgroundTheme: BackgroundThemeWithAuto);
|
|
708
|
+
get background(): never;
|
|
709
|
+
set controlPanel(newControlPanel: ControlPanelThemeWithAuto);
|
|
710
|
+
get controlPanel(): never;
|
|
711
|
+
set visualization(visualizationFormat: VisualizationFormatWithAuto);
|
|
712
|
+
get visualization(): never;
|
|
713
|
+
set experimentalTitle(title: string | null);
|
|
714
|
+
get experimentalTitle(): never;
|
|
715
|
+
set experimentalVideoURL(videoURL: string | null);
|
|
716
|
+
get experimentalVideoURL(): never;
|
|
717
|
+
set experimentalCompetitionID(competitionID: string | null);
|
|
718
|
+
get experimentalCompetitionID(): never;
|
|
719
|
+
set viewerLink(viewerLinkPage: ViewerLinkPageWithAuto);
|
|
720
|
+
get viewerLink(): never;
|
|
721
|
+
set experimentalMovePressInput(movePressInput: MovePressInput);
|
|
722
|
+
get experimentalMovePressInput(): never;
|
|
723
|
+
set cameraLatitude(latitude: number);
|
|
724
|
+
get cameraLatitude(): never;
|
|
725
|
+
set cameraLongitude(longitude: number);
|
|
726
|
+
get cameraLongitude(): never;
|
|
727
|
+
set cameraDistance(distance: number);
|
|
728
|
+
get cameraDistance(): never;
|
|
729
|
+
set cameraLatitudeLimit(latitudeLimit: number);
|
|
730
|
+
get cameraLatitudeLimit(): never;
|
|
731
|
+
set indexer(indexer: IndexerStrategyName);
|
|
732
|
+
get indexer(): never;
|
|
733
|
+
set tempoScale(newTempoScale: number);
|
|
734
|
+
get tempoScale(): never;
|
|
735
|
+
set experimentalSprite(url: string | URL);
|
|
736
|
+
get experimentalSprite(): never;
|
|
737
|
+
set experimentalHintSprite(url: string | URL);
|
|
738
|
+
get experimentalHintSprite(): never;
|
|
739
|
+
experimentalGet: ExperimentalGetters;
|
|
740
|
+
}
|
|
741
|
+
declare class ExperimentalGetters {
|
|
742
|
+
private model;
|
|
743
|
+
constructor(model: TwistyPlayerModel);
|
|
744
|
+
alg(): Promise<Alg>;
|
|
745
|
+
setupAlg(): Promise<Alg>;
|
|
746
|
+
puzzleID(): Promise<PuzzleID>;
|
|
747
|
+
timestamp(): Promise<MillisecondTimestamp>;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
interface TwistyPlayerConfig {
|
|
751
|
+
alg?: Alg | string;
|
|
752
|
+
experimentalSetupAlg?: Alg | string;
|
|
753
|
+
experimentalSetupAnchor?: SetupToLocation;
|
|
754
|
+
puzzle?: PuzzleID;
|
|
755
|
+
experimentalPuzzleDescription?: PuzzleDescriptionString;
|
|
756
|
+
visualization?: VisualizationFormatWithAuto;
|
|
757
|
+
hintFacelets?: HintFaceletStyleWithAuto;
|
|
758
|
+
experimentalStickering?: ExperimentalStickering;
|
|
759
|
+
background?: BackViewLayoutWithAuto;
|
|
760
|
+
controlPanel?: ControlPanelThemeWithAuto;
|
|
761
|
+
backView?: BackViewLayoutWithAuto;
|
|
762
|
+
viewerLink?: ViewerLinkPageWithAuto;
|
|
763
|
+
experimentalMovePressInput?: MovePressInput;
|
|
764
|
+
experimentalTitle?: string;
|
|
765
|
+
experimentalVideoURL?: string;
|
|
766
|
+
experimentalCompetitionID?: string;
|
|
767
|
+
cameraLatitude?: number;
|
|
768
|
+
cameraLongitude?: number;
|
|
769
|
+
cameraDistance?: number;
|
|
770
|
+
cameraLatitudeLimit?: number;
|
|
771
|
+
tempoScale?: number;
|
|
772
|
+
experimentalSprite?: string | null;
|
|
773
|
+
experimentalHintSprite?: string | null;
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* TwistyPlayer is the heart of `cubing.js`. It can be used to display a puzzle on a web page like this:
|
|
777
|
+
*
|
|
778
|
+
* <script src="path/to/cubing/twisty" type="module"></script>
|
|
779
|
+
* <twisty-player alg="R U R'"></twisty-player>
|
|
780
|
+
*
|
|
781
|
+
* You can also construct it directly in JavaScript:
|
|
782
|
+
*
|
|
783
|
+
* import { TwistyPlayer } from "cubing/twisty";
|
|
784
|
+
* const twistyPlayer = new TwistyPlayer({alg: "R U R'"});
|
|
785
|
+
* // Once the page has loaded, you can do this:
|
|
786
|
+
* document.body.appendChild(twistyPlayer);
|
|
787
|
+
*
|
|
788
|
+
* See {@link https://js.cubing.net/cubing/} for more examples.
|
|
789
|
+
*/
|
|
790
|
+
declare class TwistyPlayer extends TwistyPlayerSettable implements TwistyAnimationControllerDelegate {
|
|
791
|
+
#private;
|
|
792
|
+
controller: TwistyPlayerController;
|
|
793
|
+
buttons: TwistyButtons;
|
|
794
|
+
experimentalCanvasClickCallback: (...args: any) => void;
|
|
795
|
+
constructor(config?: TwistyPlayerConfig);
|
|
796
|
+
connectedCallback(): Promise<void>;
|
|
797
|
+
/** @deprecated */
|
|
798
|
+
experimentalSetFlashLevel(newLevel: "auto" | "none"): void;
|
|
799
|
+
flash(): void;
|
|
800
|
+
experimentalCurrentCanvases(): Promise<HTMLCanvasElement[]>;
|
|
801
|
+
experimentalPG3D(): Promise<PG3D | null>;
|
|
802
|
+
jumpToStart(options?: {
|
|
803
|
+
flash: boolean;
|
|
804
|
+
}): void;
|
|
805
|
+
jumpToEnd(options?: {
|
|
806
|
+
flash: boolean;
|
|
807
|
+
}): void;
|
|
808
|
+
play(): void;
|
|
809
|
+
pause(): void;
|
|
810
|
+
togglePlay(play?: boolean): void;
|
|
811
|
+
experimentalAddMove(flexibleMove: Move | string, options?: {
|
|
812
|
+
coalesce?: boolean;
|
|
813
|
+
}): void;
|
|
814
|
+
static get observedAttributes(): string[];
|
|
815
|
+
attributeChangedCallback(attributeName: string, _oldValue: string, newValue: string): void;
|
|
816
|
+
experimentalScreenshot(options?: {
|
|
817
|
+
width: number;
|
|
818
|
+
height: number;
|
|
819
|
+
}): Promise<string>;
|
|
820
|
+
experimentalDownloadScreenshot(filename?: string): Promise<void>;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
declare class DataDown {
|
|
824
|
+
earliestMoveIndex: number;
|
|
825
|
+
twistyAlgViewer: TwistyAlgViewer;
|
|
826
|
+
direction: IterationDirection;
|
|
827
|
+
}
|
|
828
|
+
declare class DataUp {
|
|
829
|
+
moveCount: number;
|
|
830
|
+
element: TwistyAlgWrapperElem | TwistyAlgLeafElem;
|
|
831
|
+
}
|
|
832
|
+
declare class TwistyAlgLeafElem extends ManagedCustomElement {
|
|
833
|
+
algOrUnit: Alg | Unit;
|
|
834
|
+
constructor(className: string, text: string, dataDown: DataDown, algOrUnit: Alg | Unit, offsetIntoMove: boolean, clickable: boolean);
|
|
835
|
+
pathToIndex(_index: number): (TwistyAlgWrapperElem | TwistyAlgLeafElem)[];
|
|
836
|
+
setCurrentMove(current: boolean): void;
|
|
837
|
+
}
|
|
838
|
+
declare class TwistyAlgWrapperElem extends HTMLElementShim {
|
|
839
|
+
algOrUnit: Alg | Unit;
|
|
840
|
+
private queue;
|
|
841
|
+
constructor(className: string, algOrUnit: Alg | Unit);
|
|
842
|
+
addString(str: string): void;
|
|
843
|
+
addElem(dataUp: DataUp): number;
|
|
844
|
+
flushQueue(direction?: IterationDirection): void;
|
|
845
|
+
pathToIndex(_index: number): (TwistyAlgWrapperElem | TwistyAlgLeafElem)[];
|
|
846
|
+
}
|
|
847
|
+
declare class MoveHighlighter {
|
|
848
|
+
moveCharIndexMap: Map<number, TwistyAlgLeafElem>;
|
|
849
|
+
currentElem: TwistyAlgLeafElem | null;
|
|
850
|
+
addMove(charIndex: number, elem: TwistyAlgLeafElem): void;
|
|
851
|
+
set(move: Parsed<Move> | null): void;
|
|
852
|
+
}
|
|
853
|
+
declare class TwistyAlgViewer extends HTMLElementShim {
|
|
854
|
+
#private;
|
|
855
|
+
highlighter: MoveHighlighter;
|
|
856
|
+
lastClickTimestamp: number | null;
|
|
857
|
+
constructor(options?: {
|
|
858
|
+
twistyPlayer?: TwistyPlayer;
|
|
859
|
+
});
|
|
860
|
+
protected connectedCallback(): void;
|
|
861
|
+
private setAlg;
|
|
862
|
+
get twistyPlayer(): TwistyPlayer | null;
|
|
863
|
+
set twistyPlayer(twistyPlayer: TwistyPlayer | null);
|
|
864
|
+
jumpToIndex(index: number, offsetIntoMove: boolean): Promise<void>;
|
|
865
|
+
protected attributeChangedCallback(attributeName: string, _oldValue: string, newValue: string): Promise<void>;
|
|
866
|
+
static get observedAttributes(): string[];
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
declare type AnimatedLeafUnitInfo = {
|
|
870
|
+
leaf: Parsed<AnimatedLeafUnit>;
|
|
871
|
+
idx: number;
|
|
872
|
+
};
|
|
873
|
+
declare type OrderedLeafTokens = AnimatedLeafUnitInfo[];
|
|
874
|
+
|
|
875
|
+
declare class TwistyAlgEditorValueProp extends SimpleTwistyPropSource<string> {
|
|
876
|
+
getDefaultValue(): string;
|
|
877
|
+
}
|
|
878
|
+
interface AlgEditorAlgWithIssuesPropInput {
|
|
879
|
+
value: string;
|
|
880
|
+
}
|
|
881
|
+
declare class AlgEditorAlgWithIssuesProp extends TwistyPropDerived<AlgEditorAlgWithIssuesPropInput, AlgWithIssues> {
|
|
882
|
+
derive(input: AlgEditorAlgWithIssuesPropInput): AlgWithIssues;
|
|
883
|
+
}
|
|
884
|
+
interface SelectionInfoPropInput {
|
|
885
|
+
selectionStart: number;
|
|
886
|
+
selectionEnd: number;
|
|
887
|
+
}
|
|
888
|
+
interface SelectionInfo extends SelectionInfoPropInput {
|
|
889
|
+
endChangedMostRecently: boolean;
|
|
890
|
+
}
|
|
891
|
+
declare class TwistyAlgEditorSelectionProp extends TwistyPropSource<SelectionInfo, SelectionInfoPropInput> {
|
|
892
|
+
getDefaultValue(): {
|
|
893
|
+
selectionStart: number;
|
|
894
|
+
selectionEnd: number;
|
|
895
|
+
endChangedMostRecently: boolean;
|
|
896
|
+
};
|
|
897
|
+
derive(input: SelectionInfoPropInput, oldValue: Promise<SelectionInfo>): Promise<SelectionInfo>;
|
|
898
|
+
}
|
|
899
|
+
interface TargetCharPropInputs {
|
|
900
|
+
selectionInfo: SelectionInfo;
|
|
901
|
+
}
|
|
902
|
+
declare class TargetCharProp extends TwistyPropDerived<TargetCharPropInputs, number> {
|
|
903
|
+
derive(inputs: TargetCharPropInputs): number;
|
|
904
|
+
}
|
|
905
|
+
interface LeafTokensPropInputs {
|
|
906
|
+
algWithIssues: AlgWithIssues;
|
|
907
|
+
}
|
|
908
|
+
declare class LeafTokensProp extends TwistyPropDerived<LeafTokensPropInputs, OrderedLeafTokens> {
|
|
909
|
+
derive(inputs: LeafTokensPropInputs): OrderedLeafTokens;
|
|
910
|
+
}
|
|
911
|
+
interface LeafToHighlightPropInputs {
|
|
912
|
+
targetChar: number;
|
|
913
|
+
leafTokens: OrderedLeafTokens;
|
|
914
|
+
}
|
|
915
|
+
declare type HighlightWhere = "before" | "start" | "inside" | "end" | "after";
|
|
916
|
+
interface HighlightInfo {
|
|
917
|
+
leafInfo: AnimatedLeafUnitInfo;
|
|
918
|
+
where: HighlightWhere;
|
|
919
|
+
}
|
|
920
|
+
declare class LeafToHighlightProp extends TwistyPropDerived<LeafToHighlightPropInputs, HighlightInfo | null> {
|
|
921
|
+
derive(inputs: LeafToHighlightPropInputs): HighlightInfo | null;
|
|
922
|
+
}
|
|
923
|
+
declare class TwistyAlgEditorModel {
|
|
924
|
+
valueProp: TwistyAlgEditorValueProp;
|
|
925
|
+
selectionProp: TwistyAlgEditorSelectionProp;
|
|
926
|
+
targetCharProp: TargetCharProp;
|
|
927
|
+
algEditorAlgWithIssues: AlgEditorAlgWithIssuesProp;
|
|
928
|
+
leafTokensProp: LeafTokensProp;
|
|
929
|
+
leafToHighlight: LeafToHighlightProp;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Warning: the current implementation of <twisty-alg-editor> is *not good*,
|
|
934
|
+
* but it is *good enough*. The important parts is that:
|
|
935
|
+
*
|
|
936
|
+
* - The editor can be used in apps without much effort.
|
|
937
|
+
* - The editor handles alg validation and move highlighting *okay* when not
|
|
938
|
+
* connected to a `<twisty-player>`.
|
|
939
|
+
* - The editor stays in sync if it's connected to a `<twisty-player>`.
|
|
940
|
+
*
|
|
941
|
+
* The current implementation still has some race conditions and edge cases. A
|
|
942
|
+
* proper rewrite with a better model would be very welcome.
|
|
943
|
+
*/
|
|
944
|
+
|
|
945
|
+
declare type TwistyPlayerAlgProp = "alg" | "setupAlg";
|
|
946
|
+
declare class TwistyAlgEditor extends ManagedCustomElement {
|
|
947
|
+
#private;
|
|
948
|
+
model: TwistyAlgEditorModel;
|
|
949
|
+
debugNeverRequestTimestamp: boolean;
|
|
950
|
+
constructor(options?: {
|
|
951
|
+
twistyPlayer?: TwistyPlayer;
|
|
952
|
+
twistyPlayerProp?: TwistyPlayerAlgProp;
|
|
953
|
+
});
|
|
954
|
+
set algString(s: string);
|
|
955
|
+
get algString(): string;
|
|
956
|
+
set placeholder(placeholderText: string);
|
|
957
|
+
onInput(): void;
|
|
958
|
+
onSelectionChange(): Promise<void>;
|
|
959
|
+
onBlur(): Promise<void>;
|
|
960
|
+
setAlgIssueClassForPuzzle(issues: "none" | "warning" | "error"): void;
|
|
961
|
+
highlightLeaf(leaf: Parsed<Move | Pause> | null): void;
|
|
962
|
+
get twistyPlayer(): TwistyPlayer | null;
|
|
963
|
+
set twistyPlayer(twistyPlayer: TwistyPlayer | null);
|
|
964
|
+
protected attributeChangedCallback(attributeName: string, _oldValue: string, newValue: string): void;
|
|
965
|
+
static get observedAttributes(): string[];
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
declare function debugShowRenderStats(enable: boolean): void;
|
|
969
|
+
declare function experimentalForceNewRendererSharing(share: boolean | null): void;
|
|
970
|
+
|
|
971
|
+
declare class TwizzleLink extends ManagedCustomElement {
|
|
972
|
+
#private;
|
|
973
|
+
twistyPlayer: TwistyPlayer | null;
|
|
974
|
+
a: HTMLAnchorElement | null;
|
|
975
|
+
constructor();
|
|
976
|
+
fallback(): void;
|
|
977
|
+
connectedCallback(): Promise<void>;
|
|
978
|
+
addHeading(text: string): HTMLElement;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
declare class SimpleAlgIndexer implements AlgIndexer {
|
|
982
|
+
private kpuzzle;
|
|
983
|
+
private moves;
|
|
984
|
+
private durationFn;
|
|
985
|
+
constructor(kpuzzle: KPuzzle, alg: Alg);
|
|
986
|
+
getAnimLeaf(index: number): Move;
|
|
987
|
+
indexToMoveStartTimestamp(index: number): Timestamp;
|
|
988
|
+
timestampToIndex(timestamp: Timestamp): number;
|
|
989
|
+
stateAtIndex(index: number): KState;
|
|
990
|
+
transformationAtIndex(index: number): KTransformation;
|
|
991
|
+
algDuration(): Duration;
|
|
992
|
+
numAnimatedLeaves(): number;
|
|
993
|
+
moveDuration(index: number): number;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
declare class TreeAlgIndexer implements AlgIndexer {
|
|
997
|
+
private kpuzzle;
|
|
998
|
+
private decoration;
|
|
999
|
+
private walker;
|
|
1000
|
+
constructor(kpuzzle: KPuzzle, alg: Alg);
|
|
1001
|
+
getAnimLeaf(index: number): Move | null;
|
|
1002
|
+
indexToMoveStartTimestamp(index: number): Timestamp;
|
|
1003
|
+
indexToMovesInProgress(index: number): Timestamp;
|
|
1004
|
+
stateAtIndex(index: number, startState?: KState): KState;
|
|
1005
|
+
transformationAtIndex(index: number): KTransformation;
|
|
1006
|
+
numAnimatedLeaves(): number;
|
|
1007
|
+
timestampToIndex(timestamp: Timestamp): number;
|
|
1008
|
+
algDuration(): Duration;
|
|
1009
|
+
moveDuration(index: number): number;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
declare class KPuzzleSVGWrapper {
|
|
1013
|
+
kpuzzle: KPuzzle;
|
|
1014
|
+
element: HTMLElement;
|
|
1015
|
+
gradientDefs: SVGDefsElement;
|
|
1016
|
+
private originalColors;
|
|
1017
|
+
private gradients;
|
|
1018
|
+
private svgID;
|
|
1019
|
+
constructor(kpuzzle: KPuzzle, svgSource: string, experimentalAppearance?: PuzzleAppearance);
|
|
1020
|
+
drawState(state: KState, nextState?: KState, fraction?: number): void;
|
|
1021
|
+
draw(state: KState, nextState?: KState, fraction?: number): void;
|
|
1022
|
+
private newGradient;
|
|
1023
|
+
private elementID;
|
|
1024
|
+
private elementByID;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
export { AlgIndexer, BackViewLayout, KPuzzleSVGWrapper as ExperimentalKPuzzleSVGWrapper, SimpleAlgIndexer, TreeAlgIndexer, TwistyAlgEditor, TwistyAlgViewer, TwistyPlayer, TwistyPlayerConfig, TwizzleLink, VisualizationFormat, backViewLayouts, debugShowRenderStats as experimentalDebugShowRenderStats, experimentalForceNewRendererSharing };
|