cubing 0.63.3 → 0.63.4
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 +15 -1
- package/alg/index.d.ts +1 -1
- package/bluetooth/index.d.ts +1 -1
- package/dist/bin/chunks/{chunk-OI3YIXMQ.js → chunk-E6RYEKYL.js} +2 -2
- package/dist/bin/order.js +8 -4
- package/dist/bin/order.js.map +2 -2
- package/dist/bin/puzzle-geometry-bin.js +8 -4
- package/dist/bin/puzzle-geometry-bin.js.map +2 -2
- package/dist/bin/scramble.js +8 -4
- package/dist/bin/scramble.js.map +2 -2
- package/dist/bin/svg.js +56 -0
- package/dist/bin/svg.js.map +7 -0
- package/dist/lib/cubing/alg/index.d.ts +2 -84
- package/dist/lib/cubing/alg/index.js +1 -1
- package/dist/lib/cubing/bluetooth/index.d.ts +147 -134
- package/dist/lib/cubing/bluetooth/index.js +29 -5
- package/dist/lib/cubing/bluetooth/index.js.map +2 -2
- package/dist/lib/cubing/chunks/{big-puzzle-orientation-ZVZQJEF5.js → big-puzzle-orientation-ADWIOX6S.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-44CFF24P.js → chunk-53SI7XS4.js} +14 -4
- package/dist/lib/cubing/chunks/chunk-53SI7XS4.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-RINY3U6G.js → chunk-5ONX3JVC.js} +7 -2
- package/dist/lib/cubing/chunks/{chunk-RINY3U6G.js.map → chunk-5ONX3JVC.js.map} +1 -1
- package/dist/lib/cubing/chunks/{chunk-ROB5TROI.js → chunk-7LXHWXCO.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-E3YLQC45.js → chunk-GHFBZYSV.js} +2 -2
- package/dist/lib/cubing/chunks/chunk-GHFBZYSV.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-ZU7PSGX4.js → chunk-JCCXEYXU.js} +4 -3
- package/dist/lib/cubing/chunks/{chunk-ZU7PSGX4.js.map → chunk-JCCXEYXU.js.map} +1 -1
- package/dist/lib/cubing/chunks/{chunk-DQGYYYHZ.js → chunk-LD4XJTCU.js} +28 -13
- package/dist/lib/cubing/chunks/chunk-LD4XJTCU.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-O6HEZXGY.js → chunk-N5FJ5YIA.js} +4 -3
- package/dist/lib/cubing/chunks/{chunk-O6HEZXGY.js.map → chunk-N5FJ5YIA.js.map} +1 -1
- package/dist/lib/cubing/chunks/{chunk-NGW52SHR.js → chunk-S74APGTK.js} +3 -3
- package/dist/lib/cubing/chunks/{chunk-FLK6AZKB.js → chunk-VYAO5FCM.js} +7 -7
- package/dist/lib/cubing/chunks/{chunk-FLK6AZKB.js.map → chunk-VYAO5FCM.js.map} +2 -2
- package/dist/lib/cubing/chunks/{chunk-FUHYAW74.js → chunk-WBMKMQAL.js} +49 -63
- package/dist/lib/cubing/chunks/chunk-WBMKMQAL.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-FTE3QI5X.js → chunk-XVZLWT3A.js} +42 -47
- package/dist/lib/cubing/chunks/chunk-XVZLWT3A.js.map +7 -0
- package/dist/lib/cubing/chunks/{inside-L2JI2BEY.js → inside-VUJSPBRA.js} +53 -25
- package/dist/lib/cubing/chunks/inside-VUJSPBRA.js.map +7 -0
- package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-AIGABOAR.js +132 -0
- package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-AIGABOAR.js.map +7 -0
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-GB4WAJ7I.js → search-dynamic-sgs-side-events-LHAMZP5J.js} +6 -6
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-CM33KT7L.js → search-dynamic-sgs-unofficial-GXKMVR4W.js} +6 -5
- package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-NANDMURR.js → search-dynamic-solve-4x4x4-N2X3RMYU.js} +7 -6
- package/dist/lib/cubing/chunks/{search-dynamic-solve-fto-UZMNOI6U.js → search-dynamic-solve-fto-I5ID5LXD.js} +2 -2
- package/dist/lib/cubing/chunks/search-dynamic-solve-kilominx-Y2D3C74Y.js +771 -0
- package/dist/lib/cubing/chunks/search-dynamic-solve-kilominx-Y2D3C74Y.js.map +7 -0
- package/dist/lib/cubing/chunks/search-worker-entry.js +7 -6
- package/dist/lib/cubing/chunks/search-worker-entry.js.map +2 -2
- package/dist/lib/cubing/chunks/{twips-YHXBF55O.js → twips-ZNMKGC5U.js} +4 -4
- package/dist/lib/cubing/chunks/twips_wasm_bg-TJNYGA2C-AP2O4LGG.js +10 -0
- package/dist/lib/cubing/chunks/twips_wasm_bg-TJNYGA2C-AP2O4LGG.js.map +7 -0
- package/dist/lib/cubing/chunks/{twisty-dynamic-3d-VGZIQ64W.js → twisty-dynamic-3d-LSRGWTXG.js} +22 -7
- package/dist/lib/cubing/chunks/{twisty-dynamic-3d-VGZIQ64W.js.map → twisty-dynamic-3d-LSRGWTXG.js.map} +2 -2
- package/dist/lib/cubing/index-BXHm_6gm.d.ts +2626 -0
- package/dist/lib/cubing/index-Cvk652Bd.d.ts +76 -0
- package/dist/lib/cubing/kpuzzle/index.d.ts +2 -3
- package/dist/lib/cubing/kpuzzle/index.js +2 -2
- package/dist/lib/cubing/notation/index.d.ts +18 -17
- package/dist/lib/cubing/notation/index.js +4 -4
- package/dist/lib/cubing/outside-CwNOEuJJ.d.ts +38 -0
- package/dist/lib/cubing/protocol/index.d.ts +14 -14
- package/dist/lib/cubing/protocol/index.js +4 -4
- package/dist/lib/cubing/puzzle-geometry/index.d.ts +2 -8
- package/dist/lib/cubing/puzzle-geometry/index.js +33 -1
- package/dist/lib/cubing/puzzle-geometry/index.js.map +1 -1
- package/dist/lib/cubing/puzzles/index.d.ts +2 -45
- package/dist/lib/cubing/puzzles/index.js +4 -4
- package/dist/lib/cubing/scramble/index.d.ts +2 -4
- package/dist/lib/cubing/scramble/index.js +6 -6
- package/dist/lib/cubing/search/index.d.ts +4 -9
- package/dist/lib/cubing/search/index.js +6 -6
- package/dist/lib/cubing/stream/index.d.ts +2 -45
- package/dist/lib/cubing/stream/index.js +1 -1
- package/dist/lib/cubing/twisty/index.d.ts +2 -60
- package/dist/lib/cubing/twisty/index.js +65 -17
- package/dist/lib/cubing/twisty/index.js.map +2 -2
- package/kpuzzle/index.d.ts +1 -1
- package/notation/index.d.ts +1 -1
- package/package.json +19 -20
- package/protocol/index.d.ts +1 -1
- package/puzzle-geometry/index.d.ts +1 -1
- package/puzzles/index.d.ts +1 -1
- package/scramble/index.d.ts +1 -1
- package/search/index.d.ts +1 -1
- package/stream/index.d.ts +1 -1
- package/twisty/index.d.ts +1 -1
- package/dist/lib/cubing/PuzzleLoader-Bp8zngUn.d.ts +0 -2362
- package/dist/lib/cubing/chunks/chunk-44CFF24P.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-DQGYYYHZ.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-E3YLQC45.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-FTE3QI5X.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-FUHYAW74.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-FZBKZ5ZB.js +0 -265
- package/dist/lib/cubing/chunks/chunk-LWCBAAHO.js +0 -1180
- package/dist/lib/cubing/chunks/chunk-LWCBAAHO.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-M7YKTETT.js +0 -239
- package/dist/lib/cubing/chunks/chunk-M7YKTETT.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-NGW52SHR.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-OUM32GEA.js +0 -239
- package/dist/lib/cubing/chunks/chunk-OUM32GEA.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-SGJ5WPE4.js +0 -1074
- package/dist/lib/cubing/chunks/chunk-SGJ5WPE4.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-TAVR35KU.js +0 -265
- package/dist/lib/cubing/chunks/chunk-TAVR35KU.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-V27EM5TJ.js +0 -1074
- package/dist/lib/cubing/chunks/chunk-V27EM5TJ.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-VRTKWZPL.js +0 -10084
- package/dist/lib/cubing/chunks/chunk-VRTKWZPL.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-VSMFYTG6.js +0 -10086
- package/dist/lib/cubing/chunks/chunk-VSMFYTG6.js.map +0 -7
- package/dist/lib/cubing/chunks/inside-IHWQVDVU.js +0 -564
- package/dist/lib/cubing/chunks/inside-IHWQVDVU.js.map +0 -7
- package/dist/lib/cubing/chunks/inside-L2JI2BEY.js.map +0 -7
- package/dist/lib/cubing/chunks/inside-Q56GLXG4.js +0 -556
- package/dist/lib/cubing/chunks/inside-Q56GLXG4.js.map +0 -7
- package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-REUXFQJ4.js +0 -124
- package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-REUXFQJ4.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-sgs-side-events-MXHP7O4R.js +0 -1890
- package/dist/lib/cubing/chunks/search-dynamic-sgs-side-events-MXHP7O4R.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-sgs-side-events-XFECDWOF.js +0 -1890
- package/dist/lib/cubing/chunks/search-dynamic-sgs-side-events-XFECDWOF.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-2CECFBP3.js +0 -1268
- package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-CM33KT7L.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-Q4LLHL2O.js +0 -1267
- package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-Q4LLHL2O.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-COSEVJBV.js +0 -2922
- package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-COSEVJBV.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-E576AITS.js +0 -2923
- package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-NANDMURR.js.map +0 -7
- package/dist/lib/cubing/chunks/twips_wasm_bg-RWVQBVBA-5YCKA6O5.js +0 -10
- package/dist/lib/cubing/chunks/twips_wasm_bg-RWVQBVBA-5YCKA6O5.js.map +0 -7
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-5NZRNZ7C.js +0 -1881
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-5NZRNZ7C.js.map +0 -7
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-IKE4BUQG.js +0 -1883
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-IKE4BUQG.js.map +0 -7
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-XLUOPCLN.js +0 -1881
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-XLUOPCLN.js.map +0 -7
- package/dist/lib/cubing/events-CewDA1aS.d.ts +0 -35
- package/dist/lib/cubing/index-DabjED-w.d.ts +0 -33
- /package/dist/bin/chunks/{chunk-OI3YIXMQ.js.map → chunk-E6RYEKYL.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{big-puzzle-orientation-ZVZQJEF5.js.map → big-puzzle-orientation-ADWIOX6S.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-ROB5TROI.js.map → chunk-7LXHWXCO.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-FZBKZ5ZB.js.map → chunk-S74APGTK.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-GB4WAJ7I.js.map → search-dynamic-sgs-side-events-LHAMZP5J.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-2CECFBP3.js.map → search-dynamic-sgs-unofficial-GXKMVR4W.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-E576AITS.js.map → search-dynamic-solve-4x4x4-N2X3RMYU.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-solve-fto-UZMNOI6U.js.map → search-dynamic-solve-fto-I5ID5LXD.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{twips-YHXBF55O.js.map → twips-ZNMKGC5U.js.map} +0 -0
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import 'three/src/Three.js';
|
|
4
|
-
|
|
5
|
-
interface EventInfo {
|
|
6
|
-
puzzleID: PuzzleID;
|
|
7
|
-
eventName: string;
|
|
8
|
-
/** Whether/how scrambles are implemented in `randomScrambleForEvent(…)` in this version of `cubing.js` */
|
|
9
|
-
scramblesImplemented: null | "random-state" | "random-moves";
|
|
10
|
-
}
|
|
11
|
-
declare const wcaEvents: Record<string, EventInfo>;
|
|
12
|
-
/** @category Event Info */
|
|
13
|
-
declare function wcaEventInfo(event: string): EventInfo | null;
|
|
14
|
-
declare const twizzleEvents: Record<string, EventInfo>;
|
|
15
|
-
/** @category Event Info */
|
|
16
|
-
declare function eventInfo(event: string): EventInfo | null;
|
|
17
|
-
|
|
18
|
-
/** @category Specific Puzzles */
|
|
19
|
-
declare const cube2x2x2: PuzzleLoader;
|
|
20
|
-
|
|
21
|
-
/** @category Specific Puzzles */
|
|
22
|
-
declare const cube3x3x3: {
|
|
23
|
-
id: string;
|
|
24
|
-
fullName: string;
|
|
25
|
-
inventedBy: string[];
|
|
26
|
-
inventionYear: number;
|
|
27
|
-
kpuzzle: () => Promise<KPuzzle>;
|
|
28
|
-
svg: () => Promise<string>;
|
|
29
|
-
llSVG: () => Promise<string>;
|
|
30
|
-
llFaceSVG: () => Promise<string>;
|
|
31
|
-
pg: () => Promise<PuzzleGeometry>;
|
|
32
|
-
stickeringMask: (stickering: ExperimentalStickering) => Promise<StickeringMask>;
|
|
33
|
-
stickerings: () => Promise<string[]>;
|
|
34
|
-
puzzleSpecificSimplifyOptions: PuzzleSpecificSimplifyOptions;
|
|
35
|
-
keyMapping: () => Promise<{
|
|
36
|
-
[key: string]: AlgLeaf;
|
|
37
|
-
[key: number]: AlgLeaf;
|
|
38
|
-
}>;
|
|
39
|
-
algTransformData: AlgTransformData;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @category All Puzzles */
|
|
43
|
-
declare const puzzles: Record<string, PuzzleLoader>;
|
|
44
|
-
|
|
45
|
-
export { PuzzleLoader, cube2x2x2, cube3x3x3, eventInfo, puzzles, twizzleEvents, wcaEventInfo, wcaEvents };
|
|
1
|
+
import { _ as cube2x2x2, b as wcaEventInfo, c as PuzzleLoader, g as cube3x3x3, h as puzzles, v as eventInfo, x as wcaEvents, y as twizzleEvents } from "../index-BXHm_6gm.js";
|
|
2
|
+
export { PuzzleLoader, cube2x2x2, cube3x3x3, eventInfo, puzzles, twizzleEvents, wcaEventInfo, wcaEvents };
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
twizzleEvents,
|
|
6
6
|
wcaEventInfo,
|
|
7
7
|
wcaEvents
|
|
8
|
-
} from "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-VYAO5FCM.js";
|
|
9
9
|
import {
|
|
10
10
|
cube3x3x3
|
|
11
|
-
} from "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
11
|
+
} from "../chunks/chunk-WBMKMQAL.js";
|
|
12
|
+
import "../chunks/chunk-5ONX3JVC.js";
|
|
13
|
+
import "../chunks/chunk-N5FJ5YIA.js";
|
|
14
14
|
export {
|
|
15
15
|
cube2x2x2,
|
|
16
16
|
cube3x3x3,
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export {
|
|
3
|
-
import 'type-fest';
|
|
4
|
-
import 'three/src/Three.js';
|
|
1
|
+
import { i as randomScrambleForEvent, t as deriveScrambleForEvent } from "../outside-CwNOEuJJ.js";
|
|
2
|
+
export { deriveScrambleForEvent as experimentalDeriveScrambleForEvent, randomScrambleForEvent };
|
|
@@ -2,13 +2,13 @@ import "../chunks/chunk-NAPITA3L.js";
|
|
|
2
2
|
import {
|
|
3
3
|
deriveScrambleForEvent,
|
|
4
4
|
randomScrambleForEvent
|
|
5
|
-
} from "../chunks/chunk-
|
|
6
|
-
import "../chunks/chunk-
|
|
5
|
+
} from "../chunks/chunk-53SI7XS4.js";
|
|
6
|
+
import "../chunks/chunk-XVZLWT3A.js";
|
|
7
7
|
import "../chunks/chunk-7GUL3OBQ.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-
|
|
11
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-VYAO5FCM.js";
|
|
9
|
+
import "../chunks/chunk-WBMKMQAL.js";
|
|
10
|
+
import "../chunks/chunk-5ONX3JVC.js";
|
|
11
|
+
import "../chunks/chunk-N5FJ5YIA.js";
|
|
12
12
|
export {
|
|
13
13
|
deriveScrambleForEvent as experimentalDeriveScrambleForEvent,
|
|
14
14
|
randomScrambleForEvent
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as solveTwips } from '../index-DabjED-w.js';
|
|
3
|
-
export { e as experimentalSolve2x2x2, a as experimentalSolve3x3x3IgnoringCenters, b as setSearchDebug, c as solveMegaminx, d as solvePyraminx, f as solveSkewb } from '../index-DabjED-w.js';
|
|
4
|
-
import 'type-fest';
|
|
5
|
-
import 'three/src/Three.js';
|
|
6
|
-
|
|
7
|
-
declare function random333Pattern(): Promise<KPattern>;
|
|
1
|
+
import { a as setSearchDebug, c as solveSkewb, l as solveTwips, n as experimentalSolve2x2x2, o as solveMegaminx, r as experimentalSolve3x3x3IgnoringCenters, s as solvePyraminx, u as random333Pattern } from "../outside-CwNOEuJJ.js";
|
|
8
2
|
|
|
3
|
+
//#region src/cubing/search/index.d.ts
|
|
9
4
|
/** @deprecated */
|
|
10
5
|
declare const experimentalSolveTwsearch: typeof solveTwips;
|
|
11
|
-
|
|
12
|
-
export { solveTwips as experimentalSolveTwips, experimentalSolveTwsearch, random333Pattern };
|
|
6
|
+
//#endregion
|
|
7
|
+
export { experimentalSolve2x2x2, experimentalSolve3x3x3IgnoringCenters, solveTwips as experimentalSolveTwips, experimentalSolveTwsearch, random333Pattern, setSearchDebug, solveMegaminx, solvePyraminx, solveSkewb };
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
solvePyraminx,
|
|
7
7
|
solveSkewb,
|
|
8
8
|
solveTwips
|
|
9
|
-
} from "../chunks/chunk-
|
|
9
|
+
} from "../chunks/chunk-53SI7XS4.js";
|
|
10
10
|
import {
|
|
11
11
|
random333Pattern
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-XVZLWT3A.js";
|
|
13
13
|
import "../chunks/chunk-7GUL3OBQ.js";
|
|
14
|
-
import "../chunks/chunk-
|
|
15
|
-
import "../chunks/chunk-
|
|
16
|
-
import "../chunks/chunk-
|
|
17
|
-
import "../chunks/chunk-
|
|
14
|
+
import "../chunks/chunk-VYAO5FCM.js";
|
|
15
|
+
import "../chunks/chunk-WBMKMQAL.js";
|
|
16
|
+
import "../chunks/chunk-5ONX3JVC.js";
|
|
17
|
+
import "../chunks/chunk-N5FJ5YIA.js";
|
|
18
18
|
|
|
19
19
|
// src/cubing/search/index.ts
|
|
20
20
|
var experimentalSolveTwsearch = (...args) => {
|
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import '../PuzzleLoader-Bp8zngUn.js';
|
|
4
|
-
import 'type-fest';
|
|
5
|
-
import 'three/src/Three.js';
|
|
6
|
-
|
|
7
|
-
declare class TwizzleStream extends EventTarget {
|
|
8
|
-
socket: WebSocket;
|
|
9
|
-
constructor(url: string);
|
|
10
|
-
onMessage(msg: MessageEvent): void;
|
|
11
|
-
}
|
|
12
|
-
type StreamsField = {
|
|
13
|
-
streamID: string;
|
|
14
|
-
senders: {
|
|
15
|
-
name: string;
|
|
16
|
-
twizzleUserID: string;
|
|
17
|
-
wcaID: string | null;
|
|
18
|
-
}[];
|
|
19
|
-
}[];
|
|
20
|
-
declare class TwizzleStreamServer {
|
|
21
|
-
streams(): Promise<StreamsField>;
|
|
22
|
-
connect(streamID: string): TwizzleStream;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare class WebSocketProxySender {
|
|
26
|
-
protected websocket: WebSocket;
|
|
27
|
-
constructor(url: string);
|
|
28
|
-
sendMoveEvent(e: AlgLeafEvent): void;
|
|
29
|
-
sendOrientationEvent(e: OrientationEvent): void;
|
|
30
|
-
sendResetEvent(): void;
|
|
31
|
-
protected sendProxyEvent(proxyEvent: ProxyEvent): void;
|
|
32
|
-
protected onopen(): void;
|
|
33
|
-
protected onerror(error: any): void;
|
|
34
|
-
protected onmessage(_e: MessageEvent): void;
|
|
35
|
-
}
|
|
36
|
-
declare abstract class WebSocketProxyReceiver {
|
|
37
|
-
protected websocket?: WebSocket;
|
|
38
|
-
constructor(url: string, socketOrigin?: string);
|
|
39
|
-
protected onopen(): void;
|
|
40
|
-
protected onerror(error: any): void;
|
|
41
|
-
protected onmessage(e: MessageEvent): void;
|
|
42
|
-
abstract onProxyEvent(e: ProxyEvent): void;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { AlgLeafEvent as ExperimentalAlgLeafEvent, OrientationEvent as ExperimentalOrientationEvent, ProxyEvent as ExperimentalProxyEvent, TwizzleStreamServer as ExperimentalTwizzleStreamServer, WebSocketProxyReceiver as ExperimentalWebSocketProxyReceiver, WebSocketProxySender as ExperimentalWebSocketProxySender };
|
|
1
|
+
import { a as OrientationEvent, c as ProxyOrientationEvent, i as AlgLeafEvent, l as ProxyResetEvent, n as WebSocketProxySender, o as ProxyEvent, r as TwizzleStreamServer, s as ProxyMoveEvent, t as WebSocketProxyReceiver } from "../index-Cvk652Bd.js";
|
|
2
|
+
export { AlgLeafEvent as ExperimentalAlgLeafEvent, OrientationEvent as ExperimentalOrientationEvent, ProxyEvent as ExperimentalProxyEvent, ProxyMoveEvent as ExperimentalProxyMoveEvent, ProxyOrientationEvent as ExperimentalProxyOrientationEvent, ProxyResetEvent as ExperimentalProxyResetEvent, TwizzleStreamServer as ExperimentalTwizzleStreamServer, WebSocketProxyReceiver as ExperimentalWebSocketProxyReceiver, WebSocketProxySender as ExperimentalWebSocketProxySender };
|
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import 'type-fest';
|
|
4
|
-
import 'three/src/Three.js';
|
|
5
|
-
|
|
6
|
-
declare class SimpleAlgIndexer implements AlgIndexer {
|
|
7
|
-
private kpuzzle;
|
|
8
|
-
private moves;
|
|
9
|
-
private durationFn;
|
|
10
|
-
constructor(kpuzzle: KPuzzle, alg: Alg);
|
|
11
|
-
getAnimLeaf(index: number): Move;
|
|
12
|
-
indexToMoveStartTimestamp(index: number): MillisecondTimestamp;
|
|
13
|
-
timestampToIndex(timestamp: MillisecondTimestamp): LeafIndex;
|
|
14
|
-
patternAtIndex(index: number): KPattern;
|
|
15
|
-
transformationAtIndex(index: number): KTransformation;
|
|
16
|
-
algDuration(): MillisecondDuration;
|
|
17
|
-
numAnimatedLeaves(): LeafCount;
|
|
18
|
-
moveDuration(index: LeafIndex): MillisecondDuration;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare class TreeAlgIndexer implements AlgIndexer {
|
|
22
|
-
private kpuzzle;
|
|
23
|
-
private decoration;
|
|
24
|
-
private walker;
|
|
25
|
-
constructor(kpuzzle: KPuzzle, alg: Alg);
|
|
26
|
-
getAnimLeaf(index: LeafIndex): Move | null;
|
|
27
|
-
indexToMoveStartTimestamp(index: LeafIndex): MillisecondTimestamp;
|
|
28
|
-
indexToMovesInProgress(index: LeafIndex): MillisecondTimestamp;
|
|
29
|
-
patternAtIndex(index: LeafIndex, startPattern?: KPattern): KPattern;
|
|
30
|
-
transformationAtIndex(index: LeafIndex): KTransformation;
|
|
31
|
-
numAnimatedLeaves(): LeafCount;
|
|
32
|
-
timestampToIndex(timestamp: MillisecondTimestamp): LeafIndex;
|
|
33
|
-
algDuration(): MillisecondDuration;
|
|
34
|
-
moveDuration(index: LeafIndex): MillisecondDuration;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare const twistyDebugGlobals: {
|
|
38
|
-
shareAllNewRenderers: "auto" | "always" | "never";
|
|
39
|
-
showRenderStats: boolean;
|
|
40
|
-
};
|
|
41
|
-
declare function setTwistyDebug(options: Partial<typeof twistyDebugGlobals>): void;
|
|
42
|
-
|
|
43
|
-
declare class TwistyAnimatedSVG {
|
|
44
|
-
kpuzzle: KPuzzle;
|
|
45
|
-
private showUnknownOrientations;
|
|
46
|
-
wrapperElement: HTMLElement;
|
|
47
|
-
svgElement: SVGElement;
|
|
48
|
-
gradientDefs: SVGDefsElement;
|
|
49
|
-
private originalColors;
|
|
50
|
-
private gradients;
|
|
51
|
-
private svgID;
|
|
52
|
-
constructor(kpuzzle: KPuzzle, svgSource: string, experimentalStickeringMask?: StickeringMask, showUnknownOrientations?: boolean);
|
|
53
|
-
drawPattern(pattern: KPattern, nextPattern?: KPattern, fraction?: number): void;
|
|
54
|
-
draw(pattern: KPattern, nextPattern?: KPattern, fraction?: number): void;
|
|
55
|
-
private newGradient;
|
|
56
|
-
private elementID;
|
|
57
|
-
private elementByID;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export { AlgIndexer, LeafCount as ExperimentalLeafCount, LeafIndex as ExperimentalLeafIndex, MillisecondDuration as ExperimentalMillisecondDuration, MillisecondTimestamp as ExperimentalMillisecondTimestamp, TwistyAnimatedSVG as ExperimentalSVGAnimator, SimpleAlgIndexer, TreeAlgIndexer, setTwistyDebug };
|
|
1
|
+
import { A as SimpleAlgIndexer, C as VisualizationFormat, D as PuzzleID, E as ExperimentalStickering, F as MillisecondDuration, I as MillisecondTimestamp, M as LeafCount, N as LeafIndex, O as setTwistyDebug, P as NO_VALUE, S as TwistyAnimatedSVG, T as backViewLayouts, d as TwistyAlgEditor, j as AlgIndexer, k as TreeAlgIndexer, l as TwizzleLink, m as TwistyPlayerConfig, p as TwistyPlayer, u as TwistyAlgViewer, w as BackViewLayout } from "../index-BXHm_6gm.js";
|
|
2
|
+
export { AlgIndexer, BackViewLayout, NO_VALUE as EXPERIMENTAL_PROP_NO_VALUE, LeafCount as ExperimentalLeafCount, LeafIndex as ExperimentalLeafIndex, MillisecondDuration as ExperimentalMillisecondDuration, MillisecondTimestamp as ExperimentalMillisecondTimestamp, TwistyAnimatedSVG as ExperimentalSVGAnimator, ExperimentalStickering, PuzzleID, SimpleAlgIndexer, TreeAlgIndexer, TwistyAlgEditor, TwistyAlgViewer, TwistyPlayer, TwistyPlayerConfig, TwizzleLink, VisualizationFormat, backViewLayouts, setTwistyDebug };
|
|
@@ -18,22 +18,22 @@ import {
|
|
|
18
18
|
rawRenderPooled,
|
|
19
19
|
setCameraFromOrbitCoordinates,
|
|
20
20
|
setTwistyDebug
|
|
21
|
-
} from "../chunks/chunk-
|
|
21
|
+
} from "../chunks/chunk-LD4XJTCU.js";
|
|
22
22
|
import {
|
|
23
23
|
countAnimatedLeaves,
|
|
24
24
|
countLeavesInExpansionForSimultaneousMoveIndexer,
|
|
25
25
|
countMetricMoves
|
|
26
|
-
} from "../chunks/chunk-
|
|
26
|
+
} from "../chunks/chunk-JCCXEYXU.js";
|
|
27
27
|
import {
|
|
28
28
|
puzzles
|
|
29
|
-
} from "../chunks/chunk-
|
|
29
|
+
} from "../chunks/chunk-VYAO5FCM.js";
|
|
30
30
|
import {
|
|
31
31
|
cube3x3x3,
|
|
32
32
|
customPGPuzzleLoader,
|
|
33
33
|
getPartialAppendOptionsForPuzzleSpecificSimplifyOptions,
|
|
34
34
|
getPieceStickeringMask
|
|
35
|
-
} from "../chunks/chunk-
|
|
36
|
-
import "../chunks/chunk-
|
|
35
|
+
} from "../chunks/chunk-WBMKMQAL.js";
|
|
36
|
+
import "../chunks/chunk-5ONX3JVC.js";
|
|
37
37
|
import {
|
|
38
38
|
Alg,
|
|
39
39
|
AlgBuilder,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
functionFromTraversal,
|
|
53
53
|
offsetMod,
|
|
54
54
|
startCharIndexKey
|
|
55
|
-
} from "../chunks/chunk-
|
|
55
|
+
} from "../chunks/chunk-N5FJ5YIA.js";
|
|
56
56
|
|
|
57
57
|
// src/cubing/twisty/controllers/indexer/AlgDuration.ts
|
|
58
58
|
function defaultDurationForAmount(amount) {
|
|
@@ -73,6 +73,7 @@ var AlgDuration = class extends TraversalUp {
|
|
|
73
73
|
super();
|
|
74
74
|
this.durationForAmount = durationForAmount;
|
|
75
75
|
}
|
|
76
|
+
durationForAmount;
|
|
76
77
|
traverseAlg(alg) {
|
|
77
78
|
let total = 0;
|
|
78
79
|
for (const algNode of alg.childAlgNodes()) {
|
|
@@ -109,6 +110,7 @@ var SimpleAlgIndexer = class {
|
|
|
109
110
|
this.kpuzzle = kpuzzle;
|
|
110
111
|
this.moves = new Alg(alg.experimentalExpand());
|
|
111
112
|
}
|
|
113
|
+
kpuzzle;
|
|
112
114
|
moves;
|
|
113
115
|
// TODO: Allow custom `durationFn`.
|
|
114
116
|
durationFn = new AlgDuration(
|
|
@@ -162,6 +164,11 @@ var AlgWalkerDecoration = class {
|
|
|
162
164
|
this.backward = backward;
|
|
163
165
|
this.children = children;
|
|
164
166
|
}
|
|
167
|
+
moveCount;
|
|
168
|
+
duration;
|
|
169
|
+
forward;
|
|
170
|
+
backward;
|
|
171
|
+
children;
|
|
165
172
|
};
|
|
166
173
|
var DecoratorConstructor = class extends TraversalUp {
|
|
167
174
|
constructor(kpuzzle) {
|
|
@@ -176,6 +183,7 @@ var DecoratorConstructor = class extends TraversalUp {
|
|
|
176
183
|
[]
|
|
177
184
|
);
|
|
178
185
|
}
|
|
186
|
+
kpuzzle;
|
|
179
187
|
identity;
|
|
180
188
|
dummyLeaf;
|
|
181
189
|
durationFn = new AlgDuration(
|
|
@@ -289,6 +297,8 @@ var WalkerDown = class {
|
|
|
289
297
|
this.apd = apd;
|
|
290
298
|
this.back = back;
|
|
291
299
|
}
|
|
300
|
+
apd;
|
|
301
|
+
back;
|
|
292
302
|
};
|
|
293
303
|
var AlgWalker = class extends TraversalDownUp {
|
|
294
304
|
constructor(kpuzzle, algOrAlgNode, apd) {
|
|
@@ -306,6 +316,9 @@ var AlgWalker = class extends TraversalDownUp {
|
|
|
306
316
|
this.st = this.kpuzzle.identityTransformation();
|
|
307
317
|
this.root = new WalkerDown(this.apd, false);
|
|
308
318
|
}
|
|
319
|
+
kpuzzle;
|
|
320
|
+
algOrAlgNode;
|
|
321
|
+
apd;
|
|
309
322
|
move;
|
|
310
323
|
moveDuration;
|
|
311
324
|
back;
|
|
@@ -560,6 +573,7 @@ var TreeAlgIndexer = class {
|
|
|
560
573
|
this.decoration = deccon.traverseAlg(chunkedAlg);
|
|
561
574
|
this.walker = new AlgWalker(this.kpuzzle, chunkedAlg, this.decoration);
|
|
562
575
|
}
|
|
576
|
+
kpuzzle;
|
|
563
577
|
decoration;
|
|
564
578
|
walker;
|
|
565
579
|
getAnimLeaf(index) {
|
|
@@ -732,6 +746,8 @@ var TwistyAnimatedSVG = class {
|
|
|
732
746
|
this.drawPattern(this.kpuzzle.defaultPattern());
|
|
733
747
|
}
|
|
734
748
|
}
|
|
749
|
+
kpuzzle;
|
|
750
|
+
showUnknownOrientations;
|
|
735
751
|
wrapperElement;
|
|
736
752
|
svgElement;
|
|
737
753
|
gradientDefs;
|
|
@@ -865,6 +881,9 @@ var ClassListManager = class {
|
|
|
865
881
|
this.prefix = prefix;
|
|
866
882
|
this.validSuffixes = validSuffixes;
|
|
867
883
|
}
|
|
884
|
+
elem;
|
|
885
|
+
prefix;
|
|
886
|
+
validSuffixes;
|
|
868
887
|
#currentClassName = null;
|
|
869
888
|
// Does nothing if there was no value.
|
|
870
889
|
clearValue() {
|
|
@@ -936,6 +955,7 @@ var CatchUpHelper = class {
|
|
|
936
955
|
this.tempoScale = tempoScale;
|
|
937
956
|
});
|
|
938
957
|
}
|
|
958
|
+
model;
|
|
939
959
|
catchingUp = false;
|
|
940
960
|
pendingFrame = false;
|
|
941
961
|
tempoScale = 1;
|
|
@@ -994,6 +1014,7 @@ var TwistyAnimationController = class {
|
|
|
994
1014
|
this.catchUpHelper = new CatchUpHelper(this.model);
|
|
995
1015
|
this.model.catchUpMove.addFreshListener(this.onCatchUpMoveProp.bind(this));
|
|
996
1016
|
}
|
|
1017
|
+
delegate;
|
|
997
1018
|
// TODO: #private?
|
|
998
1019
|
playing = false;
|
|
999
1020
|
direction = 1 /* Forwards */;
|
|
@@ -1164,6 +1185,7 @@ var TwistyPlayerController = class {
|
|
|
1164
1185
|
this.model = model;
|
|
1165
1186
|
this.animationController = new TwistyAnimationController(model, delegate);
|
|
1166
1187
|
}
|
|
1188
|
+
model;
|
|
1167
1189
|
animationController;
|
|
1168
1190
|
jumpToStart(options) {
|
|
1169
1191
|
this.animationController.jumpToStart(options);
|
|
@@ -1318,6 +1340,11 @@ var Twisty2DPuzzle = class extends ManagedCustomElement {
|
|
|
1318
1340
|
);
|
|
1319
1341
|
}
|
|
1320
1342
|
}
|
|
1343
|
+
model;
|
|
1344
|
+
kpuzzle;
|
|
1345
|
+
svgSource;
|
|
1346
|
+
options;
|
|
1347
|
+
puzzleLoader;
|
|
1321
1348
|
svgWrapper;
|
|
1322
1349
|
scheduler = new RenderScheduler(this.render.bind(this));
|
|
1323
1350
|
#cachedPosition = null;
|
|
@@ -1408,6 +1435,10 @@ var Twisty2DPuzzleWrapper = class {
|
|
|
1408
1435
|
}
|
|
1409
1436
|
);
|
|
1410
1437
|
}
|
|
1438
|
+
model;
|
|
1439
|
+
schedulable;
|
|
1440
|
+
puzzleLoader;
|
|
1441
|
+
effectiveVisualization;
|
|
1411
1442
|
#freshListenerManager = new FreshListenerManager();
|
|
1412
1443
|
disconnect() {
|
|
1413
1444
|
this.#freshListenerManager.disconnect();
|
|
@@ -1438,6 +1469,8 @@ var Twisty2DSceneWrapper = class extends ManagedCustomElement {
|
|
|
1438
1469
|
this.model = model;
|
|
1439
1470
|
this.effectiveVisualization = effectiveVisualization;
|
|
1440
1471
|
}
|
|
1472
|
+
model;
|
|
1473
|
+
effectiveVisualization;
|
|
1441
1474
|
#freshListenerManager = new FreshListenerManager();
|
|
1442
1475
|
disconnect() {
|
|
1443
1476
|
this.#freshListenerManager.disconnect();
|
|
@@ -1453,7 +1486,7 @@ var Twisty2DSceneWrapper = class extends ManagedCustomElement {
|
|
|
1453
1486
|
}
|
|
1454
1487
|
#cachedScene;
|
|
1455
1488
|
async scene() {
|
|
1456
|
-
return this.#cachedScene ??= (async () => new (await bulk3DCode
|
|
1489
|
+
return this.#cachedScene ??= (async () => new (await bulk3DCode).ThreeScene())();
|
|
1457
1490
|
}
|
|
1458
1491
|
scheduleRender() {
|
|
1459
1492
|
this.#currentTwisty2DPuzzleWrapper?.scheduleRender();
|
|
@@ -1593,6 +1626,10 @@ var Twisty3DPuzzleWrapper = class extends EventTarget {
|
|
|
1593
1626
|
}
|
|
1594
1627
|
);
|
|
1595
1628
|
}
|
|
1629
|
+
model;
|
|
1630
|
+
schedulable;
|
|
1631
|
+
puzzleLoader;
|
|
1632
|
+
visualizationStrategy;
|
|
1596
1633
|
#freshListenerManager = new FreshListenerManager();
|
|
1597
1634
|
disconnect() {
|
|
1598
1635
|
this.#freshListenerManager.disconnect();
|
|
@@ -1604,7 +1641,6 @@ var Twisty3DPuzzleWrapper = class extends EventTarget {
|
|
|
1604
1641
|
#cachedTwisty3DPuzzle = null;
|
|
1605
1642
|
async twisty3DPuzzle() {
|
|
1606
1643
|
return this.#cachedTwisty3DPuzzle ??= (async () => {
|
|
1607
|
-
const proxyPromise = bulk3DCode();
|
|
1608
1644
|
if (this.puzzleLoader.id === "3x3x3" && this.visualizationStrategy === "Cube3D") {
|
|
1609
1645
|
const [
|
|
1610
1646
|
foundationSprite,
|
|
@@ -1621,7 +1657,7 @@ var Twisty3DPuzzleWrapper = class extends EventTarget {
|
|
|
1621
1657
|
this.model.twistySceneModel.faceletScale.get(),
|
|
1622
1658
|
this.model.twistySceneModel.hintFaceletsElevation.get()
|
|
1623
1659
|
]);
|
|
1624
|
-
return (await
|
|
1660
|
+
return (await bulk3DCode).cube3DShim(
|
|
1625
1661
|
() => this.schedulable.scheduleRender(),
|
|
1626
1662
|
{
|
|
1627
1663
|
foundationSprite,
|
|
@@ -1639,7 +1675,7 @@ var Twisty3DPuzzleWrapper = class extends EventTarget {
|
|
|
1639
1675
|
this.model.twistySceneModel.hintStickerSprite.get(),
|
|
1640
1676
|
this.model.twistySceneModel.faceletScale.get()
|
|
1641
1677
|
]);
|
|
1642
|
-
const pg3d = (await
|
|
1678
|
+
const pg3d = (await bulk3DCode).pg3dShim(
|
|
1643
1679
|
() => this.schedulable.scheduleRender(),
|
|
1644
1680
|
this.puzzleLoader,
|
|
1645
1681
|
hintFacelets === "auto" ? "floating" : hintFacelets,
|
|
@@ -1692,6 +1728,7 @@ var Twisty3DSceneWrapper = class extends ManagedCustomElement {
|
|
|
1692
1728
|
super();
|
|
1693
1729
|
this.model = model;
|
|
1694
1730
|
}
|
|
1731
|
+
model;
|
|
1695
1732
|
// @ts-expect-error TypeScript type inference appears to be borked: ts(2322)
|
|
1696
1733
|
#backViewClassListManager = new ClassListManager(this, "back-view-", [
|
|
1697
1734
|
"auto",
|
|
@@ -1750,7 +1787,7 @@ var Twisty3DSceneWrapper = class extends ManagedCustomElement {
|
|
|
1750
1787
|
const [camera, { ThreeRaycaster, ThreeVector2 }] = await Promise.all([
|
|
1751
1788
|
e.detail.cameraPromise,
|
|
1752
1789
|
(async () => {
|
|
1753
|
-
const { ThreeRaycaster: ThreeRaycaster2, ThreeVector2: ThreeVector22 } = await bulk3DCode
|
|
1790
|
+
const { ThreeRaycaster: ThreeRaycaster2, ThreeVector2: ThreeVector22 } = await bulk3DCode;
|
|
1754
1791
|
return { ThreeRaycaster: ThreeRaycaster2, ThreeVector2: ThreeVector22 };
|
|
1755
1792
|
})()
|
|
1756
1793
|
]);
|
|
@@ -1769,7 +1806,7 @@ var Twisty3DSceneWrapper = class extends ManagedCustomElement {
|
|
|
1769
1806
|
}
|
|
1770
1807
|
#cachedScene;
|
|
1771
1808
|
async scene() {
|
|
1772
|
-
return this.#cachedScene ??= (async () => new (await bulk3DCode
|
|
1809
|
+
return this.#cachedScene ??= (async () => new (await bulk3DCode).ThreeScene())();
|
|
1773
1810
|
}
|
|
1774
1811
|
#vantages = /* @__PURE__ */ new Set();
|
|
1775
1812
|
addVantage(vantage) {
|
|
@@ -2075,6 +2112,9 @@ var TwistyButtons = class extends ManagedCustomElement {
|
|
|
2075
2112
|
this.controller = controller;
|
|
2076
2113
|
this.defaultFullscreenElement = defaultFullscreenElement;
|
|
2077
2114
|
}
|
|
2115
|
+
model;
|
|
2116
|
+
controller;
|
|
2117
|
+
defaultFullscreenElement;
|
|
2078
2118
|
buttons = null;
|
|
2079
2119
|
connectedCallback() {
|
|
2080
2120
|
this.addCSS(buttonGridCSS);
|
|
@@ -2269,6 +2309,8 @@ var TwistyScrubber = class extends ManagedCustomElement {
|
|
|
2269
2309
|
this.model = model;
|
|
2270
2310
|
this.controller = controller;
|
|
2271
2311
|
}
|
|
2312
|
+
model;
|
|
2313
|
+
controller;
|
|
2272
2314
|
async onDetailedTimelineInfo(detailedTimelineInfo) {
|
|
2273
2315
|
const inputElem = await this.inputElem();
|
|
2274
2316
|
inputElem.min = detailedTimelineInfo.timeRange.start.toString();
|
|
@@ -2378,7 +2420,7 @@ async function screenshot(model, options) {
|
|
|
2378
2420
|
orbitCoordinates
|
|
2379
2421
|
] = await Promise.all([
|
|
2380
2422
|
(async () => {
|
|
2381
|
-
const { ThreePerspectiveCamera: ThreePerspectiveCamera2, ThreeScene: ThreeScene2 } = await bulk3DCode
|
|
2423
|
+
const { ThreePerspectiveCamera: ThreePerspectiveCamera2, ThreeScene: ThreeScene2 } = await bulk3DCode;
|
|
2382
2424
|
return { ThreePerspectiveCamera: ThreePerspectiveCamera2, ThreeScene: ThreeScene2 };
|
|
2383
2425
|
})(),
|
|
2384
2426
|
await model.puzzleLoader.get(),
|
|
@@ -2920,6 +2962,7 @@ var SimultaneousMoveIndexer = class {
|
|
|
2920
2962
|
this.kpuzzle = kpuzzle;
|
|
2921
2963
|
this.animLeaves = options?.animationTimelineLeaves ?? simulMoves(alg);
|
|
2922
2964
|
}
|
|
2965
|
+
kpuzzle;
|
|
2923
2966
|
animLeaves;
|
|
2924
2967
|
getAnimLeaf(index) {
|
|
2925
2968
|
return this.animLeaves[Math.min(index, this.animLeaves.length - 1)]?.animLeaf ?? null;
|
|
@@ -3430,7 +3473,7 @@ var InitialHintFaceletsAnimationProp = class extends SimpleTwistyPropSource {
|
|
|
3430
3473
|
// src/cubing/twisty/model/props/puzzle/display/SpriteProp.ts
|
|
3431
3474
|
var cachedLoader = null;
|
|
3432
3475
|
async function loader() {
|
|
3433
|
-
return cachedLoader ??= new (await bulk3DCode
|
|
3476
|
+
return cachedLoader ??= new (await bulk3DCode).ThreeTextureLoader();
|
|
3434
3477
|
}
|
|
3435
3478
|
var SpriteProp = class extends TwistyPropDerived {
|
|
3436
3479
|
async derive(inputs) {
|
|
@@ -3737,6 +3780,7 @@ var TwistySceneModel = class {
|
|
|
3737
3780
|
puzzleLoader: twistyPlayerModel.puzzleLoader
|
|
3738
3781
|
});
|
|
3739
3782
|
}
|
|
3783
|
+
twistyPlayerModel;
|
|
3740
3784
|
// Depth 0
|
|
3741
3785
|
background = new BackgroundProp();
|
|
3742
3786
|
colorSchemeRequest = new ColorSchemeRequestProp();
|
|
@@ -3812,8 +3856,8 @@ var TwistyPlayerModel = class {
|
|
|
3812
3856
|
videoURL = new URLProp();
|
|
3813
3857
|
competitionID = new ArbitraryStringProp();
|
|
3814
3858
|
/**
|
|
3815
|
-
* `<twisty-player>`
|
|
3816
|
-
*
|
|
3859
|
+
* `<twisty-player>` internally supports associating custom timing information
|
|
3860
|
+
* with moves, but there is not an API for this yet. In order to support
|
|
3817
3861
|
* exploratory use cases for such a feature in the future, this property
|
|
3818
3862
|
* allows setting timeline information.
|
|
3819
3863
|
*
|
|
@@ -4276,6 +4320,7 @@ var ExperimentalGetters = class {
|
|
|
4276
4320
|
constructor(model) {
|
|
4277
4321
|
this.model = model;
|
|
4278
4322
|
}
|
|
4323
|
+
model;
|
|
4279
4324
|
async alg() {
|
|
4280
4325
|
return (await this.model.alg.get()).alg;
|
|
4281
4326
|
}
|
|
@@ -4340,7 +4385,7 @@ var propOnly = {
|
|
|
4340
4385
|
experimentalMovePressCancelOptions: true
|
|
4341
4386
|
};
|
|
4342
4387
|
var cachedSharedIntersectionObserver;
|
|
4343
|
-
var intersectedCallback = Symbol("intersectedCallback");
|
|
4388
|
+
var intersectedCallback = /* @__PURE__ */ Symbol("intersectedCallback");
|
|
4344
4389
|
function waitForIntersection(player) {
|
|
4345
4390
|
cachedSharedIntersectionObserver ??= new IntersectionObserver(
|
|
4346
4391
|
(entries, observer) => {
|
|
@@ -5316,6 +5361,7 @@ var TwistyAlgLeafElem = class extends ManagedCustomElement {
|
|
|
5316
5361
|
).textContent = text;
|
|
5317
5362
|
}
|
|
5318
5363
|
}
|
|
5364
|
+
algOrAlgNode;
|
|
5319
5365
|
pathToIndex(_index) {
|
|
5320
5366
|
return [];
|
|
5321
5367
|
}
|
|
@@ -5330,6 +5376,7 @@ var TwistyAlgWrapperElem = class extends HTMLElementShim {
|
|
|
5330
5376
|
this.algOrAlgNode = algOrAlgNode;
|
|
5331
5377
|
this.classList.add(className);
|
|
5332
5378
|
}
|
|
5379
|
+
algOrAlgNode;
|
|
5333
5380
|
queue = [];
|
|
5334
5381
|
addString(str) {
|
|
5335
5382
|
this.queue.push(document.createTextNode(str));
|
|
@@ -5922,6 +5969,7 @@ var TwizzleLink = class extends ManagedCustomElement {
|
|
|
5922
5969
|
super({ mode: "open" });
|
|
5923
5970
|
this.options = options;
|
|
5924
5971
|
}
|
|
5972
|
+
options;
|
|
5925
5973
|
twistyPlayer = null;
|
|
5926
5974
|
a = null;
|
|
5927
5975
|
#fallback() {
|