cubing 0.63.2 → 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-52ODPET6.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-M7YKTETT.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-LWCBAAHO.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-V27EM5TJ.js → chunk-XVZLWT3A.js} +44 -49
- package/dist/lib/cubing/chunks/chunk-XVZLWT3A.js.map +7 -0
- package/dist/lib/cubing/chunks/{inside-Q56GLXG4.js → inside-VUJSPBRA.js} +64 -28
- 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-2CECFBP3.js → search-dynamic-sgs-unofficial-GXKMVR4W.js} +6 -6
- package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-E576AITS.js → search-dynamic-solve-4x4x4-N2X3RMYU.js} +7 -7
- 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-IKE4BUQG.js → twisty-dynamic-3d-LSRGWTXG.js} +105 -46
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-LSRGWTXG.js.map +7 -0
- 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 +101 -20
- package/dist/lib/cubing/twisty/index.js.map +3 -3
- 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-R-puDLmC.d.ts +0 -2352
- package/dist/lib/cubing/chunks/chunk-E3YLQC45.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-FUHYAW74.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-LWCBAAHO.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-M7YKTETT.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-V27EM5TJ.js.map +0 -7
- 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/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-IKE4BUQG.js.map +0 -7
- package/dist/lib/cubing/events-IfSwQLYm.d.ts +0 -35
- package/dist/lib/cubing/index-btIxbuNp.d.ts +0 -33
- /package/dist/bin/chunks/{chunk-52ODPET6.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-NGW52SHR.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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Ct as AlgLeaf, R as KPattern } from "./index-BXHm_6gm.js";
|
|
2
|
+
|
|
3
|
+
//#region src/cubing/stream/events.d.ts
|
|
4
|
+
/** @category Smart Puzzles */
|
|
5
|
+
interface AlgLeafEvent {
|
|
6
|
+
latestAlgLeaf: AlgLeaf;
|
|
7
|
+
timeStamp: number;
|
|
8
|
+
debug?: Record<string, unknown>;
|
|
9
|
+
pattern?: KPattern;
|
|
10
|
+
quaternion?: any;
|
|
11
|
+
}
|
|
12
|
+
/** @category Smart Puzzles */
|
|
13
|
+
interface OrientationEvent {
|
|
14
|
+
quaternion: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
z: number;
|
|
18
|
+
w: number;
|
|
19
|
+
};
|
|
20
|
+
timeStamp: number;
|
|
21
|
+
debug?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
interface ProxyMoveEvent {
|
|
24
|
+
event: "move";
|
|
25
|
+
data: AlgLeafEvent;
|
|
26
|
+
}
|
|
27
|
+
interface ProxyOrientationEvent {
|
|
28
|
+
event: "orientation";
|
|
29
|
+
data: OrientationEvent;
|
|
30
|
+
}
|
|
31
|
+
interface ProxyResetEvent {
|
|
32
|
+
event: "reset";
|
|
33
|
+
}
|
|
34
|
+
type ProxyEvent = ProxyMoveEvent | ProxyOrientationEvent | ProxyResetEvent;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/cubing/stream/twizzle/TwizzleStream.d.ts
|
|
37
|
+
declare class TwizzleStream extends EventTarget {
|
|
38
|
+
socket: WebSocket;
|
|
39
|
+
constructor(url: string);
|
|
40
|
+
onMessage(msg: MessageEvent): void;
|
|
41
|
+
}
|
|
42
|
+
type StreamsField = {
|
|
43
|
+
streamID: string;
|
|
44
|
+
senders: {
|
|
45
|
+
name: string;
|
|
46
|
+
twizzleUserID: string;
|
|
47
|
+
wcaID: string | null;
|
|
48
|
+
}[];
|
|
49
|
+
}[];
|
|
50
|
+
declare class TwizzleStreamServer {
|
|
51
|
+
streams(): Promise<StreamsField>;
|
|
52
|
+
connect(streamID: string): TwizzleStream;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/cubing/stream/websocket-proxy.d.ts
|
|
56
|
+
declare class WebSocketProxySender {
|
|
57
|
+
protected websocket: WebSocket;
|
|
58
|
+
constructor(url: string);
|
|
59
|
+
sendMoveEvent(e: AlgLeafEvent): void;
|
|
60
|
+
sendOrientationEvent(e: OrientationEvent): void;
|
|
61
|
+
sendResetEvent(): void;
|
|
62
|
+
protected sendProxyEvent(proxyEvent: ProxyEvent): void;
|
|
63
|
+
protected onopen(): void;
|
|
64
|
+
protected onerror(error: any): void;
|
|
65
|
+
protected onmessage(_e: MessageEvent): void;
|
|
66
|
+
}
|
|
67
|
+
declare abstract class WebSocketProxyReceiver {
|
|
68
|
+
protected websocket?: WebSocket;
|
|
69
|
+
constructor(url: string, socketOrigin?: string);
|
|
70
|
+
protected onopen(): void;
|
|
71
|
+
protected onerror(error: any): void;
|
|
72
|
+
protected onmessage(e: MessageEvent): void;
|
|
73
|
+
abstract onProxyEvent(e: ProxyEvent): void;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
export { OrientationEvent as a, ProxyOrientationEvent as c, AlgLeafEvent as i, ProxyResetEvent as l, WebSocketProxySender as n, ProxyEvent as o, TwizzleStreamServer as r, ProxyMoveEvent as s, WebSocketProxyReceiver as t };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import 'three/src/Three.js';
|
|
1
|
+
import { B as KTransformation, G as KTransformationData, H as KPatternData, K as KTransformationOrbitData, R as KPattern, U as KPatternOrbitData, V as KPuzzleDefinition, W as KPuzzleOrbitDefinition, z as KPuzzle } from "../index-BXHm_6gm.js";
|
|
2
|
+
export { KPattern, KPatternData, KPatternOrbitData, KPuzzle, KPuzzleDefinition, KPuzzleOrbitDefinition, KTransformation, KTransformationData, KTransformationOrbitData };
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import 'type-fest';
|
|
3
|
-
import 'three/src/Three.js';
|
|
1
|
+
import { M as LeafCount, c as PuzzleLoader, gt as Alg } from "../index-BXHm_6gm.js";
|
|
4
2
|
|
|
3
|
+
//#region src/cubing/notation/CountAnimatedLeaves.d.ts
|
|
5
4
|
declare const countAnimatedLeaves: (alg: Alg) => LeafCount;
|
|
6
|
-
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/cubing/notation/commonMetrics.d.ts
|
|
7
7
|
declare enum CommonMetric {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
OuterBlockTurnMetric = "OBTM",
|
|
9
|
+
RangeBlockTurnMetric = "RBTM",
|
|
10
|
+
SingleSliceTurnMetric = "SSTM",
|
|
11
|
+
OuterBlockQuantumTurnMetric = "OBQTM",
|
|
12
|
+
RangeBlockQuantumTurnMetric = "RBQTM",
|
|
13
|
+
SingleSliceQuantumTurnMetric = "SSQTM",
|
|
14
|
+
ExecutionTurnMetric = "ETM"
|
|
15
15
|
}
|
|
16
16
|
declare enum CommonMetricAlias {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
QuantumTurnMetric = "OBQTM",
|
|
18
|
+
HandTurnMetric = "OBTM",
|
|
19
|
+
SliceTurnMetric = "RBTM"
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/cubing/notation/CountMoves.d.ts
|
|
22
23
|
declare const countMoves: (alg: Alg) => number;
|
|
23
24
|
declare const countMovesETM: (alg: Alg) => number;
|
|
24
25
|
/**
|
|
@@ -27,5 +28,5 @@ declare const countMovesETM: (alg: Alg) => number;
|
|
|
27
28
|
* - 3x3x3: OBTM, RBTM, ETM
|
|
28
29
|
*/
|
|
29
30
|
declare function countMetricMoves(puzzleLoader: PuzzleLoader, metric: CommonMetric, alg: Alg): number;
|
|
30
|
-
|
|
31
|
-
export { CommonMetric as ExperimentalCommonMetric, CommonMetricAlias as ExperimentalCommonMetricAlias, countAnimatedLeaves as experimentalCountAnimatedLeaves, countMetricMoves as experimentalCountMetricMoves, countMoves as experimentalCountMoves, countMovesETM as experimentalCountMovesETM };
|
|
31
|
+
//#endregion
|
|
32
|
+
export { CommonMetric as ExperimentalCommonMetric, CommonMetricAlias as ExperimentalCommonMetricAlias, countAnimatedLeaves as experimentalCountAnimatedLeaves, countMetricMoves as experimentalCountMetricMoves, countMoves as experimentalCountMoves, countMovesETM as experimentalCountMovesETM };
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
countMetricMoves,
|
|
6
6
|
countMoves,
|
|
7
7
|
countMovesETM
|
|
8
|
-
} from "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-
|
|
11
|
-
import "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-JCCXEYXU.js";
|
|
9
|
+
import "../chunks/chunk-WBMKMQAL.js";
|
|
10
|
+
import "../chunks/chunk-5ONX3JVC.js";
|
|
11
|
+
import "../chunks/chunk-N5FJ5YIA.js";
|
|
12
12
|
export {
|
|
13
13
|
CommonMetric as ExperimentalCommonMetric,
|
|
14
14
|
CommonMetricAlias as ExperimentalCommonMetricAlias,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { R as KPattern, gt as Alg, z as KPuzzle } from "./index-BXHm_6gm.js";
|
|
2
|
+
//#region src/cubing/search/inside/solve/puzzles/3x3x3/index.d.ts
|
|
3
|
+
declare function random333Pattern(): Promise<KPattern>;
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/cubing/search/inside/api.d.ts
|
|
6
|
+
declare enum PrefetchLevel {
|
|
7
|
+
Auto = "auto",
|
|
8
|
+
None = "none",
|
|
9
|
+
Immediate = "immediate"
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/cubing/search/outside.d.ts
|
|
13
|
+
declare function randomScrambleForEvent(eventID: string): Promise<Alg>;
|
|
14
|
+
declare function deriveScrambleForEvent(derivationSeedHex: string, derivationSaltHierarchy: string[], eventID: string): Promise<Alg>;
|
|
15
|
+
declare function experimentalSolve3x3x3IgnoringCenters(pattern: KPattern): Promise<Alg>;
|
|
16
|
+
declare function experimentalSolve2x2x2(pattern: KPattern): Promise<Alg>;
|
|
17
|
+
declare function solveSkewb(pattern: KPattern): Promise<Alg>;
|
|
18
|
+
declare function solvePyraminx(pattern: KPattern): Promise<Alg>;
|
|
19
|
+
declare function solveMegaminx(pattern: KPattern): Promise<Alg>;
|
|
20
|
+
interface SolveTwipsOptions {
|
|
21
|
+
generatorMoves?: string[];
|
|
22
|
+
targetPattern?: KPattern;
|
|
23
|
+
minDepth?: number;
|
|
24
|
+
maxDepth?: number;
|
|
25
|
+
}
|
|
26
|
+
declare function solveTwips(kpuzzle: KPuzzle, pattern: KPattern, options?: SolveTwipsOptions): Promise<Alg>;
|
|
27
|
+
interface SearchOutsideDebugGlobals {
|
|
28
|
+
logPerf: boolean;
|
|
29
|
+
scramblePrefetchLevel: `${PrefetchLevel}`;
|
|
30
|
+
forceNewWorkerForEveryScramble: boolean;
|
|
31
|
+
showWorkerInstantiationWarnings: boolean;
|
|
32
|
+
forceTwipsForScrambles: boolean;
|
|
33
|
+
prioritizeEsbuildWorkaroundForWorkerInstantiation: boolean;
|
|
34
|
+
allowDerivedScrambles: boolean;
|
|
35
|
+
}
|
|
36
|
+
declare function setSearchDebug(options: Partial<SearchOutsideDebugGlobals>): void;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { setSearchDebug as a, solveSkewb as c, randomScrambleForEvent as i, solveTwips as l, experimentalSolve2x2x2 as n, solveMegaminx as o, experimentalSolve3x3x3IgnoringCenters as r, solvePyraminx as s, deriveScrambleForEvent as t, random333Pattern as u };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import 'type-fest';
|
|
3
|
-
import 'three/src/Three.js';
|
|
1
|
+
import { R as KPattern } from "../index-BXHm_6gm.js";
|
|
4
2
|
|
|
3
|
+
//#region src/cubing/protocol/binary/binary3x3x3.d.ts
|
|
5
4
|
type Binary3x3x3Pattern = Uint8Array;
|
|
6
5
|
interface Binary3x3x3Components {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
epLex: number;
|
|
7
|
+
eoMask: number;
|
|
8
|
+
cpLex: number;
|
|
9
|
+
coMask: number;
|
|
10
|
+
poIdxU: number;
|
|
11
|
+
poIdxL: number;
|
|
12
|
+
moSupport: number;
|
|
13
|
+
moMask: number;
|
|
15
14
|
}
|
|
16
15
|
/** @category Binary 3x3x3 Format */
|
|
17
16
|
declare function reid3x3x3ToTwizzleBinary(pattern: KPattern): Binary3x3x3Pattern;
|
|
@@ -21,8 +20,9 @@ declare function twizzleBinaryToBinaryComponents(buffer: ArrayBuffer | Uint8Arra
|
|
|
21
20
|
declare function binaryComponentsToReid3x3x3(components: Binary3x3x3Components): KPattern;
|
|
22
21
|
/** @category Binary 3x3x3 Format */
|
|
23
22
|
declare function twizzleBinaryToReid3x3x3(buffy: ArrayBuffer | Uint8Array): KPattern;
|
|
24
|
-
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/cubing/protocol/binary/hex.d.ts
|
|
25
25
|
declare function bufferToSpacedHex(buffer: ArrayBuffer | Uint8Array): string;
|
|
26
26
|
declare function spacedHexToBuffer(hex: string): Uint8Array;
|
|
27
|
-
|
|
28
|
-
export { binaryComponentsToReid3x3x3 as experimentalBinaryComponentsToReid3x3x3, bufferToSpacedHex as experimentalBufferToSpacedHex, reid3x3x3ToTwizzleBinary as experimentalReid3x3x3ToTwizzleBinary, spacedHexToBuffer as experimentalSpacedHexToBuffer, twizzleBinaryToBinaryComponents as experimentalTwizzleBinaryToBinaryComponents, twizzleBinaryToReid3x3x3 as experimentalTwizzleBinaryToReid3x3x3 };
|
|
27
|
+
//#endregion
|
|
28
|
+
export { binaryComponentsToReid3x3x3 as experimentalBinaryComponentsToReid3x3x3, bufferToSpacedHex as experimentalBufferToSpacedHex, reid3x3x3ToTwizzleBinary as experimentalReid3x3x3ToTwizzleBinary, spacedHexToBuffer as experimentalSpacedHexToBuffer, twizzleBinaryToBinaryComponents as experimentalTwizzleBinaryToBinaryComponents, twizzleBinaryToReid3x3x3 as experimentalTwizzleBinaryToReid3x3x3 };
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
spacedHexToBuffer,
|
|
6
6
|
twizzleBinaryToBinaryComponents,
|
|
7
7
|
twizzleBinaryToReid3x3x3
|
|
8
|
-
} from "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-
|
|
11
|
-
import "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-S74APGTK.js";
|
|
9
|
+
import "../chunks/chunk-WBMKMQAL.js";
|
|
10
|
+
import "../chunks/chunk-5ONX3JVC.js";
|
|
11
|
+
import "../chunks/chunk-N5FJ5YIA.js";
|
|
12
12
|
export {
|
|
13
13
|
binaryComponentsToReid3x3x3 as experimentalBinaryComponentsToReid3x3x3,
|
|
14
14
|
bufferToSpacedHex as experimentalBufferToSpacedHex,
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import 'type-fest';
|
|
4
|
-
import 'three/src/Three.js';
|
|
5
|
-
|
|
6
|
-
declare function schreierSims(g: Perm[], disp: (s: string) => void): bigint;
|
|
7
|
-
|
|
8
|
-
export { schreierSims };
|
|
1
|
+
import { $ as PuzzleDescription, J as PUZZLE_BASE_SHAPES, L as schreierSims, Q as PuzzleCutType, X as PuzzleBaseShape, Y as PUZZLE_CUT_TYPES, Z as PuzzleCutDescription, at as getPG3DNamedPuzzles, ct as getPuzzleGeometryByName, dt as PuzzleGeometryOptions, et as PuzzleGeometry, it as StickerDatSticker, lt as parsePuzzleDescription, nt as StickerDatAxis, ot as getPuzzleDescriptionString, q as PGNotation, rt as StickerDatFace, st as getPuzzleGeometryByDesc, tt as StickerDat, ut as Quat } from "../index-BXHm_6gm.js";
|
|
2
|
+
export { PUZZLE_BASE_SHAPES as EXPERIMENTAL_PUZZLE_BASE_SHAPES, PUZZLE_CUT_TYPES as EXPERIMENTAL_PUZZLE_CUT_TYPES, PGNotation as ExperimentalPGNotation, PuzzleBaseShape as ExperimentalPuzzleBaseShape, PuzzleCutDescription as ExperimentalPuzzleCutDescription, PuzzleCutType as ExperimentalPuzzleCutType, PuzzleDescription as ExperimentalPuzzleDescription, PuzzleGeometryOptions as ExperimentalPuzzleGeometryOptions, PuzzleGeometry, Quat, StickerDat, StickerDatAxis, StickerDatFace, StickerDatSticker, getPG3DNamedPuzzles, getPuzzleDescriptionString, getPuzzleGeometryByDesc, getPuzzleGeometryByName, parsePuzzleDescription, schreierSims };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Move,
|
|
3
3
|
QuantumMove
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-N5FJ5YIA.js";
|
|
5
5
|
|
|
6
6
|
// src/cubing/puzzle-geometry/colors.ts
|
|
7
7
|
function defaultPlatonicColorSchemes() {
|
|
@@ -85,6 +85,7 @@ var FaceNameSwizzler = class {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
+
facenames;
|
|
88
89
|
prefixFree = true;
|
|
89
90
|
gripnames = [];
|
|
90
91
|
setGripNames(names) {
|
|
@@ -219,6 +220,8 @@ var FaceRenamingMapper = class {
|
|
|
219
220
|
this.internalNames = internalNames;
|
|
220
221
|
this.externalNames = externalNames;
|
|
221
222
|
}
|
|
223
|
+
internalNames;
|
|
224
|
+
externalNames;
|
|
222
225
|
// TODO: consider putting a cache in front of this
|
|
223
226
|
convertString(grip, a, b) {
|
|
224
227
|
let suffix = "";
|
|
@@ -265,6 +268,8 @@ var FTONotationMapper = class {
|
|
|
265
268
|
this.child = child;
|
|
266
269
|
this.sw = sw;
|
|
267
270
|
}
|
|
271
|
+
child;
|
|
272
|
+
sw;
|
|
268
273
|
notationToInternal(move) {
|
|
269
274
|
if (move.family === "T" && move.innerLayer === void 0 && move.outerLayer === void 0) {
|
|
270
275
|
return new Move(
|
|
@@ -297,6 +302,7 @@ var MegaminxScramblingNotationMapper = class {
|
|
|
297
302
|
constructor(child) {
|
|
298
303
|
this.child = child;
|
|
299
304
|
}
|
|
305
|
+
child;
|
|
300
306
|
notationToInternal(move) {
|
|
301
307
|
if (move.innerLayer === void 0 && move.outerLayer === void 0) {
|
|
302
308
|
if (Math.abs(move.amount) === 1) {
|
|
@@ -366,6 +372,7 @@ var NxNxNCubeMapper = class {
|
|
|
366
372
|
constructor(slices) {
|
|
367
373
|
this.slices = slices;
|
|
368
374
|
}
|
|
375
|
+
slices;
|
|
369
376
|
notationToInternal(move) {
|
|
370
377
|
const grip = move.family;
|
|
371
378
|
if (!(move.innerLayer || move.outerLayer)) {
|
|
@@ -490,6 +497,7 @@ var PyraminxNotationMapper = class {
|
|
|
490
497
|
constructor(child) {
|
|
491
498
|
this.child = child;
|
|
492
499
|
}
|
|
500
|
+
child;
|
|
493
501
|
wcaHack = false;
|
|
494
502
|
map = pyraminxFamilyMap;
|
|
495
503
|
notationToInternal(move) {
|
|
@@ -581,6 +589,7 @@ var SkewbNotationMapper = class {
|
|
|
581
589
|
constructor(child) {
|
|
582
590
|
this.child = child;
|
|
583
591
|
}
|
|
592
|
+
child;
|
|
584
593
|
notationToInternal(move) {
|
|
585
594
|
if (move.innerLayer || move.outerLayer) {
|
|
586
595
|
return null;
|
|
@@ -868,6 +877,8 @@ var PGOrbitDef = class {
|
|
|
868
877
|
this.size = size;
|
|
869
878
|
this.mod = mod;
|
|
870
879
|
}
|
|
880
|
+
size;
|
|
881
|
+
mod;
|
|
871
882
|
reassemblySize() {
|
|
872
883
|
return factorial(this.size) * BigInt(this.mod) ** BigInt(this.size);
|
|
873
884
|
}
|
|
@@ -891,6 +902,13 @@ var PGOrbitsDef = class _PGOrbitsDef {
|
|
|
891
902
|
this.isRotation = isRotation;
|
|
892
903
|
this.forcenames = forcenames;
|
|
893
904
|
}
|
|
905
|
+
orbitnames;
|
|
906
|
+
orbitdefs;
|
|
907
|
+
solved;
|
|
908
|
+
movenames;
|
|
909
|
+
moveops;
|
|
910
|
+
isRotation;
|
|
911
|
+
forcenames;
|
|
894
912
|
toKTransformationData(t) {
|
|
895
913
|
const ktransformationData = {};
|
|
896
914
|
for (let i = 0; i < this.orbitnames.length; i++) {
|
|
@@ -1190,6 +1208,9 @@ var PGOrbit = class _PGOrbit {
|
|
|
1190
1208
|
this.ori = ori;
|
|
1191
1209
|
this.orimod = orimod;
|
|
1192
1210
|
}
|
|
1211
|
+
perm;
|
|
1212
|
+
ori;
|
|
1213
|
+
orimod;
|
|
1193
1214
|
static ktransformationCache = [];
|
|
1194
1215
|
static e(n, mod) {
|
|
1195
1216
|
return new _PGOrbit(iota(n), zeros(n), mod);
|
|
@@ -1369,6 +1390,7 @@ var PGTransformBase = class {
|
|
|
1369
1390
|
constructor(orbits) {
|
|
1370
1391
|
this.orbits = orbits;
|
|
1371
1392
|
}
|
|
1393
|
+
orbits;
|
|
1372
1394
|
internalMul(b) {
|
|
1373
1395
|
const newOrbits = [];
|
|
1374
1396
|
for (let i = 0; i < this.orbits.length; i++) {
|
|
@@ -1491,6 +1513,7 @@ var DisjointUnion = class {
|
|
|
1491
1513
|
this.heads[i] = i;
|
|
1492
1514
|
}
|
|
1493
1515
|
}
|
|
1516
|
+
n;
|
|
1494
1517
|
heads;
|
|
1495
1518
|
find(v) {
|
|
1496
1519
|
let h = this.heads[v];
|
|
@@ -1590,6 +1613,10 @@ var Quat = class _Quat {
|
|
|
1590
1613
|
this.c = c;
|
|
1591
1614
|
this.d = d;
|
|
1592
1615
|
}
|
|
1616
|
+
a;
|
|
1617
|
+
b;
|
|
1618
|
+
c;
|
|
1619
|
+
d;
|
|
1593
1620
|
mul(q) {
|
|
1594
1621
|
return new _Quat(
|
|
1595
1622
|
this.a * q.a - this.b * q.b - this.c * q.c - this.d * q.d,
|
|
@@ -2186,6 +2213,9 @@ var FaceTree = class _FaceTree {
|
|
|
2186
2213
|
this.left = left;
|
|
2187
2214
|
this.right = right;
|
|
2188
2215
|
}
|
|
2216
|
+
face;
|
|
2217
|
+
left;
|
|
2218
|
+
right;
|
|
2189
2219
|
split(q) {
|
|
2190
2220
|
const t = q.cutface(this.face);
|
|
2191
2221
|
if (t !== null) {
|
|
@@ -3035,6 +3065,7 @@ var PuzzleGeometry = class {
|
|
|
3035
3065
|
}
|
|
3036
3066
|
tend(t1);
|
|
3037
3067
|
}
|
|
3068
|
+
puzzleDescription;
|
|
3038
3069
|
rotations;
|
|
3039
3070
|
// all members of the rotation group
|
|
3040
3071
|
basePlaneRotations;
|
|
@@ -4941,6 +4972,7 @@ var PGNotation = class {
|
|
|
4941
4972
|
this.pg = pg;
|
|
4942
4973
|
this.orbitNames = od.orbitnames;
|
|
4943
4974
|
}
|
|
4975
|
+
pg;
|
|
4944
4976
|
orbitNames;
|
|
4945
4977
|
lookupMove(move) {
|
|
4946
4978
|
const mv = this.pg.parseMove(move);
|