cubing 0.22.0 → 0.22.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/README.md +4 -7
- package/dist/.DS_Store +0 -0
- package/dist/bin/order.js +16675 -0
- package/dist/bin/order.js.map +7 -0
- package/dist/bin/puzzle-geometry-bin.js +4 -4
- package/dist/bin/puzzle-geometry-bin.js.map +2 -2
- package/dist/bundle-global/cubing.bundle-global.js +469 -193
- package/dist/esm/{3d-3WQVOHX5.js → 3d-M7GBIT3X.js} +3 -3
- package/dist/esm/{3d-3WQVOHX5.js.map → 3d-M7GBIT3X.js.map} +0 -0
- package/dist/esm/bluetooth/index.js +8 -6
- package/dist/esm/bluetooth/index.js.map +3 -3
- package/dist/esm/{chunk-7KI3I3Y7.js → chunk-6BZSKSG7.js} +722 -733
- package/dist/esm/chunk-6BZSKSG7.js.map +7 -0
- package/dist/esm/{chunk-DLN5QS4V.js → chunk-GF76PWEV.js} +4 -2
- package/dist/esm/chunk-GF76PWEV.js.map +7 -0
- package/dist/esm/{chunk-HXKINJ7U.js → chunk-R3HRHYIW.js} +14 -2
- package/dist/esm/chunk-R3HRHYIW.js.map +7 -0
- package/dist/esm/esm-test-worker.js +2 -2
- package/dist/esm/esm-test-worker.js.map +2 -2
- package/dist/esm/{node-WEHVBEKP.js → node-HFBX5WHK.js} +2 -2
- package/dist/esm/{node-WEHVBEKP.js.map → node-HFBX5WHK.js.map} +1 -1
- package/dist/esm/{node-BSAQKO3G.js → node-SP4L2AKI.js} +2 -2
- package/dist/esm/{node-BSAQKO3G.js.map → node-SP4L2AKI.js.map} +1 -1
- package/dist/esm/puzzle-geometry/index.js +4 -4
- package/dist/esm/puzzle-geometry/index.js.map +2 -2
- package/dist/esm/puzzles/index.js +1 -1
- package/dist/esm/scramble/index.js +2 -2
- package/dist/esm/search/index.js +2 -2
- package/dist/esm/twisty/index.js +11 -7
- package/dist/esm/twisty/index.js.map +2 -2
- package/dist/esm/worker-inside-generated-string-RQYYANYQ.js +3107 -0
- package/dist/esm/worker-inside-generated-string-RQYYANYQ.js.map +7 -0
- package/dist/types/bluetooth/smart-puzzle/gan.d.ts.map +1 -1
- package/dist/types/cubing.bundle-global.exports.d.ts +25 -0
- package/dist/types/cubing.bundle-global.exports.d.ts.map +1 -0
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts +2 -2
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/index.d.ts +1 -1
- package/dist/types/puzzle-geometry/index.d.ts.map +1 -1
- package/dist/types/puzzles/stickerings/cube-stickerings.d.ts.map +1 -1
- package/dist/types/search/inside/api.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/4x4x4.d.ts +1 -1
- package/dist/types/search/inside/solve/puzzles/4x4x4.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/fto.d.ts +6 -0
- package/dist/types/search/inside/solve/puzzles/fto.d.ts.map +1 -0
- package/dist/types/search/inside/solve/puzzles/fto.sgs.json.d.ts +5 -0
- package/dist/types/search/inside/solve/puzzles/fto.sgs.json.d.ts.map +1 -0
- package/dist/types/search/inside/solve/tremble.d.ts.map +1 -1
- package/dist/types/search/worker-inside-generated-string.d.ts +1 -1
- package/dist/types/search/worker-inside-generated-string.d.ts.map +1 -1
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts +2 -0
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts.map +1 -1
- package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts +6 -1
- package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts.map +1 -1
- package/dist/types/{search/vendor → vendor}/comlink-everywhere/inside/index.d.ts +0 -0
- package/dist/types/vendor/comlink-everywhere/inside/index.d.ts.map +1 -0
- package/dist/types/{search/vendor → vendor}/comlink-everywhere/inside/node.d.ts +0 -0
- package/dist/types/vendor/comlink-everywhere/inside/node.d.ts.map +1 -0
- package/dist/types/{search/vendor → vendor}/comlink-everywhere/outside/index.d.ts +0 -0
- package/dist/types/vendor/comlink-everywhere/outside/index.d.ts.map +1 -0
- package/dist/types/{search/vendor → vendor}/comlink-everywhere/outside/node.d.ts +0 -0
- package/dist/types/vendor/comlink-everywhere/outside/node.d.ts.map +1 -0
- package/dist/types/{search/inside/solve/vendor → vendor}/cstimer/src/js/lib/mathlib.d.ts +0 -0
- package/dist/types/vendor/cstimer/src/js/lib/mathlib.d.ts.map +1 -0
- package/dist/types/{search/inside/solve/vendor → vendor}/cstimer/src/js/scramble/scramble_444.d.ts +1 -1
- package/dist/types/vendor/cstimer/src/js/scramble/scramble_444.d.ts.map +1 -0
- package/dist/types/{search/inside/solve/vendor → vendor}/min2phase/gwt.d.ts +0 -0
- package/dist/types/vendor/min2phase/gwt.d.ts.map +1 -0
- package/dist/types/{search/inside/solve/vendor → vendor}/random-uint-below/get-random-values.d.ts +0 -0
- package/dist/types/vendor/random-uint-below/get-random-values.d.ts.map +1 -0
- package/dist/types/{search/inside/solve/vendor → vendor}/random-uint-below/index.d.ts +1 -1
- package/dist/types/vendor/random-uint-below/index.d.ts.map +1 -0
- package/dist/types/{search/inside/solve/vendor → vendor}/random-uint-below/random-choice.d.ts +0 -0
- package/dist/types/vendor/random-uint-below/random-choice.d.ts.map +1 -0
- package/dist/types/{search/inside/solve/vendor/random-uint-below/random-int.d.ts → vendor/random-uint-below/random53BitValue.d.ts} +1 -1
- package/dist/types/vendor/random-uint-below/random53BitValue.d.ts.map +1 -0
- package/dist/types/{search/inside/solve/vendor → vendor}/sq12phase/scramble_sq1.d.ts +0 -0
- package/dist/types/vendor/sq12phase/scramble_sq1.d.ts.map +1 -0
- package/dist/types/{bluetooth/smart-puzzle → vendor/unsafe-raw-aes}/unsafe-raw-aes.d.ts +0 -0
- package/dist/types/vendor/unsafe-raw-aes/unsafe-raw-aes.d.ts.map +1 -0
- package/docs/.DS_Store +0 -0
- package/docs/cubing/.DS_Store +0 -0
- package/docs/cubing/index.html +67 -27
- package/docs/main.css +7 -6
- package/package.json +8 -9
- package/src/cubing/.DS_Store +0 -0
- package/src/cubing/bluetooth/smart-puzzle/gan.ts +4 -1
- package/src/cubing/cubing.bundle-global.exports.ts +25 -0
- package/src/cubing/cubing.bundle-global.ts +2 -26
- package/src/cubing/puzzle-geometry/PuzzleGeometry.ts +6 -2
- package/src/cubing/puzzle-geometry/index.ts +2 -2
- package/src/cubing/puzzles/.DS_Store +0 -0
- package/{dist/esm → src/cubing/puzzles/implementations}/.DS_Store +0 -0
- package/src/cubing/puzzles/stickerings/cube-stickerings.ts +18 -0
- package/src/cubing/puzzles/stickerings/global-custom-stickering-hack.ts +1 -1
- package/src/cubing/search/.DS_Store +0 -0
- package/src/cubing/search/esm-test-worker.js +1 -1
- package/src/cubing/search/inside/.DS_Store +0 -0
- package/src/cubing/search/inside/api.ts +3 -0
- package/src/cubing/search/inside/entry.js +1 -1
- package/src/cubing/search/inside/inside-worker.ts +1 -1
- package/src/cubing/search/inside/solve/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/addOrientationSuffix.ts +1 -1
- package/src/cubing/search/inside/solve/puzzles/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/puzzles/2x2x2.ts +1 -1
- package/src/cubing/search/inside/solve/puzzles/3x3x3/index.ts +2 -2
- package/src/cubing/search/inside/solve/puzzles/4x4x4.ts +2 -2
- package/src/cubing/search/inside/solve/puzzles/big-cubes.ts +1 -1
- package/src/cubing/search/inside/solve/puzzles/clock.ts +1 -1
- package/src/cubing/search/inside/solve/puzzles/{FTO.sgs → fto.sgs.json.ts} +116 -80
- package/src/cubing/search/inside/solve/puzzles/fto.ts +58 -0
- package/src/cubing/search/inside/solve/puzzles/sq1.ts +1 -1
- package/src/cubing/search/inside/solve/puzzles/wca-minx.ts +1 -1
- package/src/cubing/search/inside/solve/tremble.ts +2 -1
- package/src/cubing/search/inside/solve/vendor/.DS_Store +0 -0
- package/src/cubing/search/instantiator.ts +1 -1
- package/src/cubing/search/worker-inside-generated-string.js +1 -1
- package/src/cubing/twisty/.DS_Store +0 -0
- package/src/cubing/twisty/controllers/.DS_Store +0 -0
- package/src/cubing/twisty/heavy-code-imports/.DS_Store +0 -0
- package/src/cubing/twisty/model/.DS_Store +0 -0
- package/src/cubing/twisty/model/TwistyPlayerModel.ts +8 -6
- package/src/cubing/twisty/model/props/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/puzzle/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/puzzle/display/StickeringProp.ts +2 -0
- package/src/cubing/twisty/model/props/puzzle/state/MovePressInputProp.ts +6 -1
- package/src/cubing/twisty/old/.DS_Store +0 -0
- package/src/cubing/twisty/views/.DS_Store +0 -0
- package/src/cubing/twisty/views/3D/.DS_Store +0 -0
- package/src/cubing/twisty/views/node-custom-element-shims.ts +2 -2
- package/src/cubing/vendor/.DS_Store +0 -0
- package/src/cubing/vendor/comlink-everywhere/.DS_Store +0 -0
- package/src/cubing/{search/vendor → vendor}/comlink-everywhere/comlink-everywhere.webloc +0 -0
- package/src/cubing/{search/vendor → vendor}/comlink-everywhere/inside/index.d.ts +0 -0
- package/src/cubing/{search/vendor → vendor}/comlink-everywhere/inside/index.js +0 -0
- package/src/cubing/{search/vendor → vendor}/comlink-everywhere/inside/node.js +0 -0
- package/src/cubing/{search/vendor → vendor}/comlink-everywhere/outside/index.d.ts +0 -0
- package/src/cubing/{search/vendor → vendor}/comlink-everywhere/outside/index.js +0 -0
- package/src/cubing/{search/vendor → vendor}/comlink-everywhere/outside/node.js +0 -0
- package/src/cubing/vendor/cstimer/.DS_Store +0 -0
- package/src/cubing/{search/inside/solve/vendor → vendor}/cstimer/LICENSE +0 -0
- package/src/cubing/{search/inside/solve/vendor → vendor}/cstimer/src/js/lib/mathlib.ts +0 -0
- package/src/cubing/{search/inside/solve/vendor → vendor}/cstimer/src/js/scramble/scramble_444.ts +3 -3
- package/src/cubing/{search/inside/solve/vendor → vendor}/min2phase/gwt.d.ts +0 -0
- package/src/cubing/{search/inside/solve/vendor → vendor}/min2phase/gwt.js +0 -0
- package/src/cubing/vendor/random-uint-below/get-random-values.ts +23 -0
- package/src/cubing/{search/inside/solve/vendor → vendor}/random-uint-below/index.ts +2 -2
- package/src/cubing/{search/inside/solve/vendor → vendor}/random-uint-below/random-choice.ts +1 -1
- package/src/cubing/{search/inside/solve/vendor/random-uint-below/random-int.ts → vendor/random-uint-below/random53BitValue.ts} +0 -0
- package/src/cubing/{search/inside/solve/vendor → vendor}/sq12phase/scramble_sq1.js +0 -0
- package/src/cubing/{bluetooth/smart-puzzle → vendor/unsafe-raw-aes}/unsafe-raw-aes.ts +18 -20
- package/dist/esm/chunk-7KI3I3Y7.js.map +0 -7
- package/dist/esm/chunk-DLN5QS4V.js.map +0 -7
- package/dist/esm/chunk-HXKINJ7U.js.map +0 -7
- package/dist/esm/worker-inside-generated-string-ZA6E6672.js +0 -2831
- package/dist/esm/worker-inside-generated-string-ZA6E6672.js.map +0 -7
- package/dist/types/bluetooth/smart-puzzle/unsafe-raw-aes.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lib/mathlib.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/scramble/scramble_444.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/min2phase/gwt.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/get-random-values.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/index.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/random-choice.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/random-int.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/sq12phase/scramble_sq1.d.ts.map +0 -1
- package/dist/types/search/vendor/comlink-everywhere/inside/index.d.ts.map +0 -1
- package/dist/types/search/vendor/comlink-everywhere/inside/node.d.ts.map +0 -1
- package/dist/types/search/vendor/comlink-everywhere/outside/index.d.ts.map +0 -1
- package/dist/types/search/vendor/comlink-everywhere/outside/node.d.ts.map +0 -1
- package/src/cubing/search/inside/solve/vendor/random-uint-below/get-random-values.ts +0 -38
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-inside-generated-string.d.ts","sourceRoot":"","sources":["../../../src/cubing/search/worker-inside-generated-string.js"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"worker-inside-generated-string.d.ts","sourceRoot":"","sources":["../../../src/cubing/search/worker-inside-generated-string.js"],"names":[],"mappings":"AAAA,uipUAAwipU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwistyPlayerModel.d.ts","sourceRoot":"","sources":["../../../../src/cubing/twisty/model/TwistyPlayerModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,cAAc,E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AE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAO,GACjD,IAAI;CAiBR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickeringProp.d.ts","sourceRoot":"","sources":["../../../../../../../src/cubing/twisty/model/props/puzzle/display/StickeringProp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI1D,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"StickeringProp.d.ts","sourceRoot":"","sources":["../../../../../../../src/cubing/twisty/model/props/puzzle/display/StickeringProp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI1D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CnC,CAAC;AACF,oBAAY,sBAAsB,GAAG,MAAM,OAAO,uBAAuB,CAAC;AAE1E,qBAAa,cAAe,SAAQ,sBAAsB,CAAC,sBAAsB,CAAC;IAChF,eAAe,IAAI,sBAAsB;CAG1C"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { SimpleTwistyPropSource } from "../../TwistyProp";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const movePressInputNames: {
|
|
3
|
+
auto: boolean;
|
|
4
|
+
none: boolean;
|
|
5
|
+
basic: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare type MovePressInput = keyof typeof movePressInputNames;
|
|
3
8
|
export declare class MovePressInputProp extends SimpleTwistyPropSource<MovePressInput> {
|
|
4
9
|
getDefaultValue(): MovePressInput;
|
|
5
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MovePressInputProp.d.ts","sourceRoot":"","sources":["../../../../../../../src/cubing/twisty/model/props/puzzle/state/MovePressInputProp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,oBAAY,cAAc,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"MovePressInputProp.d.ts","sourceRoot":"","sources":["../../../../../../../src/cubing/twisty/model/props/puzzle/state/MovePressInputProp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AACF,oBAAY,cAAc,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAE9D,qBAAa,kBAAmB,SAAQ,sBAAsB,CAAC,cAAc,CAAC;IAC5E,eAAe,IAAI,cAAc;CAGlC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cubing/vendor/comlink-everywhere/inside/index.js"],"names":[],"mappings":"AAMA,uCASC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../../src/cubing/vendor/comlink-everywhere/inside/node.js"],"names":[],"mappings":"AAAA,qCAKC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cubing/vendor/comlink-everywhere/outside/index.js"],"names":[],"mappings":"AAMA,sDAMC;AAED,yFAgBC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../../src/cubing/vendor/comlink-everywhere/outside/node.js"],"names":[],"mappings":"AAiBA,kDAUC;AAGD,wDAUC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mathlib.d.ts","sourceRoot":"","sources":["../../../../../../../src/cubing/vendor/cstimer/src/js/lib/mathlib.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,GAAG,EAAE,MAAM,EAAE,EACP,CAAC;AAeb,iBAAS,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,GAAG,QAAQ,EAAE,MAAM,EAAE,iBAQnD;AAED,iBAAS,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,YAyBtE;AAED,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scramble_444.d.ts","sourceRoot":"","sources":["../../../../../../../src/cubing/vendor/cstimer/src/js/scramble/scramble_444.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAqtFzC,wBAAgB,UAAU,IAAI,IAAI,CAGjC;AAED,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,CAOtD"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gwt.d.ts","sourceRoot":"","sources":["../../../../src/cubing/vendor/min2phase/gwt.js"],"names":[],"mappings":"AAqoFO,mCAEN;AACM,wCAEN"}
|
package/dist/types/{search/inside/solve/vendor → vendor}/random-uint-below/get-random-values.d.ts
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-random-values.d.ts","sourceRoot":"","sources":["../../../../src/cubing/vendor/random-uint-below/get-random-values.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;AAcjE,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAQ/E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { randomChoiceFactory } from "./random-choice";
|
|
2
|
-
export { randomUIntBelowFactory } from "./
|
|
2
|
+
export { randomUIntBelowFactory } from "./random53BitValue";
|
|
3
3
|
export declare function randomPermute<T>(list: T[]): Promise<void>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cubing/vendor/random-uint-below/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAK5D,wBAAsB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAK/D"}
|
package/dist/types/{search/inside/solve/vendor → vendor}/random-uint-below/random-choice.d.ts
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"random-choice.d.ts","sourceRoot":"","sources":["../../../../src/cubing/vendor/random-uint-below/random-choice.ts"],"names":[],"mappings":"AAKA,wBAAsB,mBAAmB,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAG5E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function randomUIntBelowFactory(): Promise<(max: number) => number>;
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=random53BitValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"random53BitValue.d.ts","sourceRoot":"","sources":["../../../../src/cubing/vendor/random-uint-below/random53BitValue.ts"],"names":[],"mappings":"AAyCA,wBAAsB,sBAAsB,IAAI,OAAO,CACrD,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CACxB,CAoBA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scramble_sq1.d.ts","sourceRoot":"","sources":["../../../../src/cubing/vendor/sq12phase/scramble_sq1.js"],"names":[],"mappings":"AAk1BA,+DAEC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unsafe-raw-aes.d.ts","sourceRoot":"","sources":["../../../../src/cubing/vendor/unsafe-raw-aes/unsafe-raw-aes.ts"],"names":[],"mappings":"AAOA,wBAAsB,SAAS,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,CAKzE;AAkBD,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,SAAS,EACd,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,WAAW,CAAC,CAKtB;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,SAAS,EACd,eAAe,EAAE,WAAW,GAC3B,OAAO,CAAC,WAAW,CAAC,CAoBtB"}
|
package/docs/.DS_Store
CHANGED
|
Binary file
|
package/docs/cubing/.DS_Store
CHANGED
|
Binary file
|
package/docs/cubing/index.html
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
|
+
|
|
3
4
|
<head>
|
|
4
5
|
<meta charset="utf8">
|
|
5
6
|
<title>cubing.js</title>
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
experimentalSetShareAllNewRenderers(true);
|
|
13
14
|
</script>
|
|
14
15
|
</head>
|
|
16
|
+
|
|
15
17
|
<body>
|
|
16
18
|
<content>
|
|
17
19
|
<!-- Tip: Avoid using specialized terminology (e.g. "element", "attribute") where possible. -->
|
|
@@ -29,13 +31,14 @@
|
|
|
29
31
|
puzzles.
|
|
30
32
|
</p>
|
|
31
33
|
<p>You may use it for free in any website or app, for any personal use or if you <a
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
href="https://github.com/cubing/cubing.js/blob/main/LICENSE.md">publicly
|
|
35
|
+
share any code that uses it</a>.</p>
|
|
34
36
|
</section>
|
|
35
37
|
|
|
36
38
|
<section id="twisty">
|
|
37
39
|
<h1><a href="./twisty/">cubing/twisty</a></h1>
|
|
38
|
-
<p>The main feature of <code>cubing.js</code> is the <code><twisty-player></code> element that can be used
|
|
40
|
+
<p>The main feature of <code>cubing.js</code> is the <code><twisty-player></code> element that can be used
|
|
41
|
+
on any website:</p>
|
|
39
42
|
|
|
40
43
|
<div class="code-demo">
|
|
41
44
|
<div>
|
|
@@ -57,17 +60,18 @@
|
|
|
57
60
|
|
|
58
61
|
<section id="alg">
|
|
59
62
|
<h1><a href="./alg/">cubing/alg</a></h1>
|
|
60
|
-
<p>At the core of <code>cubing.js</code> is a powerful <code>Alg</code> class that is compatible with all SiGN and
|
|
63
|
+
<p>At the core of <code>cubing.js</code> is a powerful <code>Alg</code> class that is compatible with all SiGN and
|
|
64
|
+
WCA notation.</p>
|
|
61
65
|
|
|
62
66
|
<div class="code-demo">
|
|
63
67
|
<div>
|
|
64
68
|
<code class="sample">
|
|
65
69
|
<code class="boilerplate"><script type="module"></code><br>
|
|
66
|
-
import { Alg } from "https://cdn.cubing.net/js/cubing/alg";<br>
|
|
67
|
-
<br>
|
|
68
|
-
const commutator = new Alg("[R, [U': L']]");<br>
|
|
69
|
-
commutator.invert().expand().log();<br>
|
|
70
|
-
<code class="boilerplate"></script></code>
|
|
70
|
+
import { Alg } from "https://cdn.cubing.net/js/cubing/alg";<br>
|
|
71
|
+
<br>
|
|
72
|
+
const commutator = new Alg("[R, [U': L']]");<br>
|
|
73
|
+
commutator.invert().expand().log();<br>
|
|
74
|
+
<code class="boilerplate"></script></code>
|
|
71
75
|
</code>
|
|
72
76
|
</div>
|
|
73
77
|
<code class="sample output">
|
|
@@ -87,11 +91,11 @@ commutator.invert().expand().log();<br>
|
|
|
87
91
|
<div>
|
|
88
92
|
<code class="sample">
|
|
89
93
|
<code class="boilerplate"><script type="module"><br></code>
|
|
90
|
-
import { randomScrambleForEvent } from "https://cdn.cubing.net/js/cubing/scramble";<br>
|
|
91
|
-
<br>
|
|
92
|
-
const scramble = await randomScrambleForEvent("333");<br>
|
|
93
|
-
scramble.log();<br>
|
|
94
|
-
<code class="boilerplate"></script></code>
|
|
94
|
+
import { randomScrambleForEvent } from "https://cdn.cubing.net/js/cubing/scramble";<br>
|
|
95
|
+
<br>
|
|
96
|
+
const scramble = await randomScrambleForEvent("333");<br>
|
|
97
|
+
scramble.log();<br>
|
|
98
|
+
<code class="boilerplate"></script></code>
|
|
95
99
|
</code>
|
|
96
100
|
</div>
|
|
97
101
|
<code class="sample output">
|
|
@@ -106,7 +110,8 @@ scramble.log();<br>
|
|
|
106
110
|
<section id="javascript">
|
|
107
111
|
<h1><a href="#javascript"><code>npm</code> package</a></h1>
|
|
108
112
|
<p>
|
|
109
|
-
<code>cubing.js</code> is published <a href="https://www.npmjs.com/package/cubing">as
|
|
113
|
+
<code>cubing.js</code> is published <a href="https://www.npmjs.com/package/cubing">as
|
|
114
|
+
<code>cubing</code>on <code>npm</code></a>.
|
|
110
115
|
If you are familiar with tools like JavaScript bundlers, you can use this for development.
|
|
111
116
|
Install the package:
|
|
112
117
|
</p>
|
|
@@ -120,32 +125,67 @@ import { Alg } from "cubing/alg";<br>
|
|
|
120
125
|
import { TwistyPlayer } from "cubing/twisty";
|
|
121
126
|
</span>
|
|
122
127
|
</code>
|
|
123
|
-
<p>This should work with most tools. We recommend using <a
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
<p>
|
|
127
|
-
If you aren't using <code>npm</code>, you can use our CDN directly, by adding <code>https://cdn.cubing.net/js/</code> before every imported package (like in the examples above):
|
|
128
|
+
<p>This should work with most tools. We recommend using <a href="https://parceljs.org/">Parcel</a> to build your
|
|
129
|
+
web apps, if you
|
|
130
|
+
haven't picked a tool yet.</p>
|
|
128
131
|
</p>
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
<div id="translating-cdn-paths">
|
|
133
|
+
<h2><a href="#translating-cdn-paths">Translating package paths to the CDN</a></h2>
|
|
134
|
+
<p>
|
|
135
|
+
If you aren't using <code>npm</code>, you can use our CDN directly, by adding
|
|
136
|
+
<code>https://cdn.cubing.net/js/</code> before every imported package (like in the examples above):
|
|
137
|
+
</p>
|
|
138
|
+
<p>
|
|
139
|
+
<code class="sample">
|
|
140
|
+
import { Alg } from "<b><u>https://cdn.cubing.net/js/</u></b>cubing/alg";<br>
|
|
141
|
+
import { TwistyPlayer } from "<b><u>https://cdn.cubing.net/js/</u></b>cubing/twisty";
|
|
132
142
|
</code>
|
|
143
|
+
</p>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
<div id="npm-package-troubleshooting">
|
|
147
|
+
<h2><a href="#npm-package-troubleshooting">Troubleshooting</a></h2>
|
|
148
|
+
|
|
149
|
+
<div id="ignoring-built-in-node-modules">
|
|
150
|
+
<h3><a href="#ignoring-built-in-node-modules">Ignoring built-in <code>node</code> modules</a></h3>
|
|
151
|
+
The <code>cubing.js</code> library on <code>npm</code> has several dependencies, which are listed
|
|
152
|
+
in its <code>package.json</code>. In addition, it contains dynamic imports that are used when the code is
|
|
153
|
+
running
|
|
154
|
+
in <code>node</code>, currently:
|
|
155
|
+
<ul>
|
|
156
|
+
<li><code>crypto</code></li>
|
|
157
|
+
<li><code>worker_threads</code></li>
|
|
158
|
+
</ul>
|
|
159
|
+
|
|
160
|
+
<p>
|
|
161
|
+
You may need to tell your tools to ignore (e.g. "exclude" or mark as
|
|
162
|
+
"external") these imports for the browser. For example, when using <a
|
|
163
|
+
href="https://esbuild.github.io/api/#external"><code>esbuild</code></a>:
|
|
164
|
+
|
|
165
|
+
<code class="sample">
|
|
166
|
+
esbuild <b><u>--external:crypto</u></b> <b><u>--external:worker_threads</u></b> [other arguments]
|
|
167
|
+
</code>
|
|
168
|
+
</p>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
133
172
|
</section>
|
|
134
173
|
|
|
135
174
|
<section id="code-experiments">
|
|
136
175
|
<h1><a href="#code-experiments">Code Experiments</a></h1>
|
|
137
|
-
<p>For a taste of upcoming features, check out the <a href="https://experiments.cubing.net/cubing.js/">development
|
|
176
|
+
<p>For a taste of upcoming features, check out the <a href="https://experiments.cubing.net/cubing.js/">development
|
|
177
|
+
experiments</a> site.</p>
|
|
138
178
|
</section>
|
|
139
179
|
|
|
140
180
|
<section id="contribute">
|
|
141
181
|
<h1><a href="#contribute">Contribute</a></h1>
|
|
142
182
|
<p>If you have any questions or ideas, please visit the
|
|
143
|
-
|
|
183
|
+
project source on GitHub:</p>
|
|
144
184
|
<div style="font-size: 1.25em; word-break: break-all;">
|
|
145
|
-
<a
|
|
146
|
-
href="https://github.com/cubing/cubing.js">https://github.com/cubing/cubing.js</a>
|
|
185
|
+
<a href="https://github.com/cubing/cubing.js">https://github.com/cubing/cubing.js</a>
|
|
147
186
|
</div>
|
|
148
187
|
</section>
|
|
149
188
|
</content>
|
|
150
189
|
</body>
|
|
190
|
+
|
|
151
191
|
</html>
|
package/docs/main.css
CHANGED
|
@@ -82,26 +82,27 @@ section:not(:first-child) {
|
|
|
82
82
|
border-top: 1px solid #4285f466;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
section:target
|
|
85
|
+
section:target,
|
|
86
|
+
div:target {
|
|
86
87
|
background: #00448811;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
section h1 {
|
|
90
|
+
section :is(h1, h2, h3) {
|
|
90
91
|
margin-top: 0;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
section h1 a:hover::before {
|
|
94
|
+
section :is(h1, h2, h3) a:hover::before {
|
|
94
95
|
position: absolute;
|
|
95
96
|
transform: translateX(-1.25em);
|
|
96
97
|
font-size: 0.75em;
|
|
97
98
|
content: "🔗";
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
section h1 a {
|
|
101
|
+
section :is(h1, h2, h3) a {
|
|
101
102
|
color: inherit;
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
section h1 a:not(:hover) {
|
|
105
|
+
section :is(h1, h2, h3) a:not(:hover) {
|
|
105
106
|
text-decoration: none;
|
|
106
107
|
}
|
|
107
108
|
|
|
@@ -188,5 +189,5 @@ code.sample span.js-object {
|
|
|
188
189
|
}
|
|
189
190
|
|
|
190
191
|
.boilerplate {
|
|
191
|
-
color: #
|
|
192
|
+
color: #559bd4;
|
|
192
193
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cubing",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "A collection of Javascript cubing libraries.",
|
|
5
5
|
"author": "The js.cubing.net team",
|
|
6
6
|
"type": "module",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"@babel/eslint-parser": "^7.15.8",
|
|
18
18
|
"@babel/preset-env": "^7.15.8",
|
|
19
19
|
"@babel/preset-typescript": "^7.13.0",
|
|
20
|
-
"@babylonjs/core": "^5.0.0-alpha.24",
|
|
21
20
|
"@types/jest": "^26.0.23",
|
|
21
|
+
"@types/node": "^17.0.6",
|
|
22
22
|
"@typescript-eslint/eslint-plugin": "^5.1.0",
|
|
23
23
|
"@typescript-eslint/parser": "^5.1.0",
|
|
24
24
|
"babel-jest": "^27.2.4",
|
|
25
|
-
"barely-a-dev-server": "^0.2.
|
|
25
|
+
"barely-a-dev-server": "^0.2.6",
|
|
26
26
|
"esbuild": "^0.12.29",
|
|
27
27
|
"eslint": "^8.0.1",
|
|
28
28
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -33,12 +33,10 @@
|
|
|
33
33
|
"peggy": "^1.1.0",
|
|
34
34
|
"prettier": "^2.2.1",
|
|
35
35
|
"puppeteer": "^8.0.0",
|
|
36
|
-
"
|
|
37
|
-
"typescript": "^4.3.2",
|
|
36
|
+
"typescript": "^4.5.4",
|
|
38
37
|
"yargs": "^16.2.0"
|
|
39
38
|
},
|
|
40
|
-
"
|
|
41
|
-
"@babylonjs/core",
|
|
39
|
+
"minimalDevDependencies": [
|
|
42
40
|
"barely-a-dev-server",
|
|
43
41
|
"esbuild",
|
|
44
42
|
"jszip"
|
|
@@ -63,9 +61,10 @@
|
|
|
63
61
|
"test-dist-esm-parcel": "node ./script/test/dist/esm/parcel/main.js",
|
|
64
62
|
"test-dist-esm-perf": "node script/test/dist/esm/perf/*.mjs",
|
|
65
63
|
"test-dist-experiments": "node ./script/test/dist/experiments/main.js",
|
|
64
|
+
"test-dist-not-imported-from-src": "node ./script/test/dist/not-imported-from-src/main.js",
|
|
66
65
|
"test-import-restrictions": "node ./script/test/import-restrictions/main.js",
|
|
67
66
|
"test-jest": "npx jest --collectCoverage",
|
|
68
|
-
"test-tsc": "npm run build-types && npx tsc --
|
|
67
|
+
"test-tsc": "npm run build-types && npx tsc --project ./tsconfig.json",
|
|
69
68
|
"format": "npx eslint --fix --ext=js,ts src script; npx prettier --write src script",
|
|
70
69
|
"setup": "npm install",
|
|
71
70
|
"initial-setup-checked": "[ -d \"node_modules\" ] || npm run initial-setup",
|
|
@@ -91,7 +90,7 @@
|
|
|
91
90
|
"eslintConfig": {
|
|
92
91
|
"parser": "@babel/eslint-parser",
|
|
93
92
|
"parserOptions": {
|
|
94
|
-
"project": "./tsconfig
|
|
93
|
+
"project": "./tsconfig.json"
|
|
95
94
|
},
|
|
96
95
|
"overrides": [
|
|
97
96
|
{
|
package/src/cubing/.DS_Store
CHANGED
|
Binary file
|
|
@@ -10,7 +10,10 @@ import {
|
|
|
10
10
|
BluetoothPuzzle,
|
|
11
11
|
PuzzleState,
|
|
12
12
|
} from "./bluetooth-puzzle";
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
importKey,
|
|
15
|
+
unsafeDecryptBlock,
|
|
16
|
+
} from "../../vendor/unsafe-raw-aes/unsafe-raw-aes";
|
|
14
17
|
|
|
15
18
|
// This needs to be short enough to capture 6 moves (OBQTM).
|
|
16
19
|
const DEFAULT_INTERVAL_MS = 150;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as alg from "./alg";
|
|
2
|
+
import * as bluetooth from "./bluetooth";
|
|
3
|
+
import * as kpuzzle from "./kpuzzle";
|
|
4
|
+
import * as notation from "./notation";
|
|
5
|
+
import * as protocol from "./protocol";
|
|
6
|
+
import * as puzzleGeometry from "./puzzle-geometry";
|
|
7
|
+
import * as puzzles from "./puzzles";
|
|
8
|
+
import * as scramble from "./scramble";
|
|
9
|
+
import * as stream from "./stream";
|
|
10
|
+
import * as search from "./search";
|
|
11
|
+
import * as twisty from "./twisty";
|
|
12
|
+
|
|
13
|
+
export const cubingBundleGlobalExports = {
|
|
14
|
+
alg,
|
|
15
|
+
bluetooth,
|
|
16
|
+
kpuzzle,
|
|
17
|
+
notation,
|
|
18
|
+
protocol,
|
|
19
|
+
puzzleGeometry,
|
|
20
|
+
puzzles,
|
|
21
|
+
scramble,
|
|
22
|
+
stream,
|
|
23
|
+
search,
|
|
24
|
+
twisty,
|
|
25
|
+
};
|
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as bluetooth from "./bluetooth";
|
|
3
|
-
import * as kpuzzle from "./kpuzzle";
|
|
4
|
-
import * as notation from "./notation";
|
|
5
|
-
import * as protocol from "./protocol";
|
|
6
|
-
import * as puzzleGeometry from "./puzzle-geometry";
|
|
7
|
-
import * as puzzles from "./puzzles";
|
|
8
|
-
import * as scramble from "./scramble";
|
|
9
|
-
import * as stream from "./stream";
|
|
10
|
-
import * as search from "./search";
|
|
11
|
-
import * as twisty from "./twisty";
|
|
12
|
-
|
|
13
|
-
const cubing = {
|
|
14
|
-
alg,
|
|
15
|
-
bluetooth,
|
|
16
|
-
kpuzzle,
|
|
17
|
-
notation,
|
|
18
|
-
protocol,
|
|
19
|
-
puzzleGeometry,
|
|
20
|
-
puzzles,
|
|
21
|
-
scramble,
|
|
22
|
-
stream,
|
|
23
|
-
search,
|
|
24
|
-
twisty,
|
|
25
|
-
};
|
|
1
|
+
import { cubingBundleGlobalExports } from "./cubing.bundle-global.exports";
|
|
26
2
|
|
|
27
3
|
try {
|
|
28
|
-
(globalThis as any).cubing =
|
|
4
|
+
(globalThis as any).cubing = cubingBundleGlobalExports;
|
|
29
5
|
} catch (e) {
|
|
30
6
|
console.error("Unable to set `cubing` on the global object.");
|
|
31
7
|
}
|
|
@@ -411,12 +411,16 @@ function findelement(a: Quat[][], p: Quat): number {
|
|
|
411
411
|
throw new Error("Element not found");
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
export function
|
|
414
|
+
export function getPG3DNamedPuzzles(): {
|
|
415
|
+
[s: string]: PuzzleDescriptionString;
|
|
416
|
+
} {
|
|
415
417
|
// get some simple definitions of basic puzzles
|
|
416
418
|
return PGPuzzles;
|
|
417
419
|
}
|
|
418
420
|
|
|
419
|
-
export function
|
|
421
|
+
export function getPuzzleDescriptionString(
|
|
422
|
+
puzzleName: PuzzleName,
|
|
423
|
+
): PuzzleDescriptionString {
|
|
420
424
|
// get some simple definitions of basic puzzles
|
|
421
425
|
return PGPuzzles[puzzleName];
|
|
422
426
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -158,6 +158,22 @@ export async function cubeAppearance(
|
|
|
158
158
|
PieceStickering.OrientationWithoutPermutation,
|
|
159
159
|
);
|
|
160
160
|
break;
|
|
161
|
+
case "EOline":
|
|
162
|
+
puzzleStickering.set(CORNERS(), PieceStickering.Ignored);
|
|
163
|
+
puzzleStickering.set(
|
|
164
|
+
EDGES(),
|
|
165
|
+
PieceStickering.OrientationWithoutPermutation,
|
|
166
|
+
);
|
|
167
|
+
puzzleStickering.set(m.and(m.moves(["D", "M"])), PieceStickering.Regular);
|
|
168
|
+
break;
|
|
169
|
+
case "EOcross":
|
|
170
|
+
puzzleStickering.set(
|
|
171
|
+
EDGES(),
|
|
172
|
+
PieceStickering.OrientationWithoutPermutation,
|
|
173
|
+
);
|
|
174
|
+
puzzleStickering.set(m.move("D"), PieceStickering.Regular);
|
|
175
|
+
puzzleStickering.set(CORNERS(), PieceStickering.Ignored);
|
|
176
|
+
break;
|
|
161
177
|
case "CMLL":
|
|
162
178
|
puzzleStickering.set(F2L(), PieceStickering.Dim);
|
|
163
179
|
puzzleStickering.set(L6E(), PieceStickering.Ignored);
|
|
@@ -269,6 +285,8 @@ export async function cubeStickerings(): Promise<ExperimentalStickering[]> {
|
|
|
269
285
|
"VLS",
|
|
270
286
|
"LS",
|
|
271
287
|
"EO",
|
|
288
|
+
"EOline",
|
|
289
|
+
"EOcross",
|
|
272
290
|
"CMLL",
|
|
273
291
|
"L6E",
|
|
274
292
|
"L6EO",
|
|
@@ -46,7 +46,7 @@ export function useGlobalCustomStickerer(
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
if (
|
|
49
|
-
|
|
49
|
+
globalThis.location &&
|
|
50
50
|
new URL(location.href).searchParams.get("global-custom-stickerer") === "true"
|
|
51
51
|
) {
|
|
52
52
|
(window as any).setGlobalCustomStickerer = setGlobalCustomStickerer;
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// We need to use a static `import` statement instead of dynamic `import()` to
|
|
2
2
|
// test true compatibility (Snowpack behaves differently for those two, for
|
|
3
3
|
// example). This may result in an unpreventable extra error in the console.
|
|
4
|
-
import { expose } from "
|
|
4
|
+
import { expose } from "../vendor/comlink-everywhere/inside";
|
|
5
5
|
|
|
6
6
|
export const esmTestAPIImplementation = {
|
|
7
7
|
test: (s) => {
|
|
Binary file
|
|
@@ -30,6 +30,7 @@ import { bigCubeRandomMoves } from "./solve/puzzles/big-cubes";
|
|
|
30
30
|
import { oriented555RandomMoves } from "./solve/puzzles/5x5x5";
|
|
31
31
|
import { getRandomSquare1Scramble } from "./solve/puzzles/sq1";
|
|
32
32
|
import type { Transformation } from "../../kpuzzle";
|
|
33
|
+
import { randomFTOScramble } from "./solve/puzzles/fto";
|
|
33
34
|
|
|
34
35
|
setIsInsideWorker(true);
|
|
35
36
|
|
|
@@ -134,6 +135,8 @@ export const insideAPI = {
|
|
|
134
135
|
"getRandomSquare1Scramble",
|
|
135
136
|
getRandomSquare1Scramble,
|
|
136
137
|
);
|
|
138
|
+
case "fto":
|
|
139
|
+
return measurePerf("randomFTOScramble", randomFTOScramble);
|
|
137
140
|
default:
|
|
138
141
|
throw new Error(`unsupported event: ${eventID}`);
|
|
139
142
|
}
|
|
@@ -7,7 +7,7 @@ export function setIsInsideWorker(inside: boolean) {
|
|
|
7
7
|
export function mustBeInsideWorker(): void {
|
|
8
8
|
if (!isInsideWorker) {
|
|
9
9
|
throw new Error(
|
|
10
|
-
"Must be called from inside a worker, to avoid
|
|
10
|
+
"Must be called from inside a worker, to avoid impact on page performance. Try importing from the top level of `cubing/solve`?",
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
}
|