cubing 0.57.1 → 0.57.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/cubing/{PuzzleLoader-KP152e2X.d.ts → KPattern-mvBrQSuc.d.ts} +21 -20
- package/dist/lib/cubing/alg/index.d.ts +2 -2
- package/dist/lib/cubing/bluetooth/index.d.ts +3 -3
- package/dist/lib/cubing/bluetooth/index.js +3 -3
- package/dist/lib/cubing/{bluetooth-puzzle-6BecDFLi.d.ts → bluetooth-puzzle-wivjKx0u.d.ts} +1 -1
- package/dist/lib/cubing/chunks/{chunk-ZKDJHPLD.js → chunk-4SW5YMBF.js} +3 -3
- package/dist/lib/cubing/chunks/{chunk-NHRL4TEW.js → chunk-666TWRT6.js} +21 -4
- package/dist/lib/cubing/chunks/{chunk-NHRL4TEW.js.map → chunk-666TWRT6.js.map} +2 -2
- package/dist/lib/cubing/chunks/{chunk-3C5XG4SC.js → chunk-7CZZRWBJ.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-C5WSBDCA.js → chunk-7DQIG5TO.js} +1 -1
- package/dist/lib/cubing/chunks/{chunk-MTC4WFXA.js → chunk-7HQOMRBY.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-5Q6DZ5HV.js → chunk-CJSXUBHM.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-XKTLEY2R.js → chunk-NJFJ3OMF.js} +2 -2
- package/dist/lib/cubing/chunks/chunk-NJFJ3OMF.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-Z7BNHCSY.js → chunk-VZOWBQJT.js} +3 -3
- package/dist/lib/cubing/chunks/{inside-GP3ZBAPI.js → inside-I7JABMUQ.js} +10 -10
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-ZJVBE4BF.js → search-dynamic-sgs-side-events-QYEVKG6G.js} +3 -3
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-RT4BSM6R.js → search-dynamic-sgs-unofficial-CD7VNHVB.js} +3 -3
- package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-WSSH4ANK.js → search-dynamic-solve-4x4x4-7D4J3U7P.js} +5 -5
- package/dist/lib/cubing/chunks/search-worker-entry.js +1 -1
- package/dist/lib/cubing/chunks/{twisty-dynamic-3d-2Z5KPRYX.js → twisty-dynamic-3d-PGO6KXRX.js} +4 -4
- package/dist/lib/cubing/chunks/{twsearch-TGLVN7TI.js → twsearch-WDBATGZX.js} +3 -3
- package/dist/lib/cubing/chunks/twsearch-WDBATGZX.js.map +7 -0
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-WOVCK52S-RP4VI7OV.js +10 -0
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-WOVCK52S-RP4VI7OV.js.map +7 -0
- package/dist/lib/cubing/{index-DS5qKjfG.d.ts → index-If8W3A2Q.d.ts} +1 -1
- package/dist/lib/cubing/kpuzzle/index.d.ts +1 -1
- package/dist/lib/cubing/notation/index.d.ts +1 -1
- package/dist/lib/cubing/notation/index.js +2 -2
- package/dist/lib/cubing/protocol/index.d.ts +1 -1
- package/dist/lib/cubing/protocol/index.js +2 -2
- package/dist/lib/cubing/puzzle-geometry/index.d.ts +2 -2
- package/dist/lib/cubing/puzzle-geometry/index.js +5 -1
- package/dist/lib/cubing/puzzle-geometry/index.js.map +2 -2
- package/dist/lib/cubing/puzzles/index.d.ts +1 -1
- package/dist/lib/cubing/puzzles/index.js +2 -2
- package/dist/lib/cubing/scramble/index.d.ts +2 -2
- package/dist/lib/cubing/scramble/index.js +4 -4
- package/dist/lib/cubing/search/index.d.ts +2 -2
- package/dist/lib/cubing/search/index.js +4 -4
- package/dist/lib/cubing/stream/index.d.ts +2 -2
- package/dist/lib/cubing/twisty/index.d.ts +2 -2
- package/dist/lib/cubing/twisty/index.js +4 -4
- package/package.json +2 -1
- package/dist/lib/cubing/chunks/chunk-XKTLEY2R.js.map +0 -7
- package/dist/lib/cubing/chunks/twsearch-TGLVN7TI.js.map +0 -7
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-NHUYB5UW-HHHVHFI5.js +0 -10
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-NHUYB5UW-HHHVHFI5.js.map +0 -7
- /package/dist/lib/cubing/chunks/{chunk-ZKDJHPLD.js.map → chunk-4SW5YMBF.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-3C5XG4SC.js.map → chunk-7CZZRWBJ.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-C5WSBDCA.js.map → chunk-7DQIG5TO.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-MTC4WFXA.js.map → chunk-7HQOMRBY.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-5Q6DZ5HV.js.map → chunk-CJSXUBHM.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-Z7BNHCSY.js.map → chunk-VZOWBQJT.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{inside-GP3ZBAPI.js.map → inside-I7JABMUQ.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-ZJVBE4BF.js.map → search-dynamic-sgs-side-events-QYEVKG6G.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-RT4BSM6R.js.map → search-dynamic-sgs-unofficial-CD7VNHVB.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-WSSH4ANK.js.map → search-dynamic-solve-4x4x4-7D4J3U7P.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{twisty-dynamic-3d-2Z5KPRYX.js.map → twisty-dynamic-3d-PGO6KXRX.js.map} +0 -0
|
@@ -873,26 +873,6 @@ declare class KPuzzle {
|
|
|
873
873
|
canConvertDefaultPatternToUniqueTransformation(): boolean;
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
declare class KPattern {
|
|
877
|
-
readonly kpuzzle: KPuzzle;
|
|
878
|
-
readonly patternData: KPatternData;
|
|
879
|
-
constructor(kpuzzle: KPuzzle, patternData: KPatternData);
|
|
880
|
-
toJSON(): any;
|
|
881
|
-
static fromTransformation(transformation: KTransformation): KPattern;
|
|
882
|
-
/** @deprecated */
|
|
883
|
-
apply(source: KTransformationSource): KPattern;
|
|
884
|
-
applyTransformation(transformation: KTransformation): KPattern;
|
|
885
|
-
applyMove(move: Move | string): KPattern;
|
|
886
|
-
applyAlg(alg: Alg | string): KPattern;
|
|
887
|
-
isIdentical(other: KPattern): boolean;
|
|
888
|
-
/** @deprecated */
|
|
889
|
-
experimentalToTransformation(): KTransformation | null;
|
|
890
|
-
experimentalIsSolved(options: {
|
|
891
|
-
ignorePuzzleOrientation: boolean;
|
|
892
|
-
ignoreCenterOrientation: boolean;
|
|
893
|
-
}): boolean;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
876
|
type MillisecondTimestamp = number;
|
|
897
877
|
type Duration = MillisecondTimestamp;
|
|
898
878
|
type Timestamp = MillisecondTimestamp;
|
|
@@ -2321,6 +2301,7 @@ interface PuzzleLoader {
|
|
|
2321
2301
|
llSVG?: () => Promise<string>;
|
|
2322
2302
|
llFaceSVG?: () => Promise<string>;
|
|
2323
2303
|
pg?: () => Promise<PuzzleGeometry>;
|
|
2304
|
+
basePG?: () => Promise<PuzzleGeometry>;
|
|
2324
2305
|
stickeringMask?: (stickering: ExperimentalStickering) => Promise<StickeringMask>;
|
|
2325
2306
|
stickerings?: () => Promise<ExperimentalStickering[]>;
|
|
2326
2307
|
puzzleSpecificSimplifyOptions?: PuzzleSpecificSimplifyOptions;
|
|
@@ -2328,4 +2309,24 @@ interface PuzzleLoader {
|
|
|
2328
2309
|
keyMapping?: () => Promise<KeyMapping>;
|
|
2329
2310
|
}
|
|
2330
2311
|
|
|
2312
|
+
declare class KPattern {
|
|
2313
|
+
readonly kpuzzle: KPuzzle;
|
|
2314
|
+
readonly patternData: KPatternData;
|
|
2315
|
+
constructor(kpuzzle: KPuzzle, patternData: KPatternData);
|
|
2316
|
+
toJSON(): any;
|
|
2317
|
+
static fromTransformation(transformation: KTransformation): KPattern;
|
|
2318
|
+
/** @deprecated */
|
|
2319
|
+
apply(source: KTransformationSource): KPattern;
|
|
2320
|
+
applyTransformation(transformation: KTransformation): KPattern;
|
|
2321
|
+
applyMove(move: Move | string): KPattern;
|
|
2322
|
+
applyAlg(alg: Alg | string): KPattern;
|
|
2323
|
+
isIdentical(other: KPattern): boolean;
|
|
2324
|
+
/** @deprecated */
|
|
2325
|
+
experimentalToTransformation(): KTransformation | null;
|
|
2326
|
+
experimentalIsSolved(options: {
|
|
2327
|
+
ignorePuzzleOrientation: boolean;
|
|
2328
|
+
ignoreCenterOrientation: boolean;
|
|
2329
|
+
}): boolean;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2331
2332
|
export { type KeyMapping as $, type AlgLeaf as A, type MillisecondTimestamp as B, type BackViewLayout as C, type Duration as D, type ExperimentalStickering as E, backViewLayouts as F, TwistyAlgEditor as G, TwistyAlgViewer as H, type TwistyPlayerConfig as I, TwistyPlayer as J, KPattern as K, TwizzleLink as L, Move as M, NO_VALUE as N, type AlgNode as O, Perm as P, Quat as Q, type AppendOptions as R, type StickerDat as S, type Timestamp as T, Grouping as U, type VisualizationFormat as V, LineComment as W, Commutator as X, Conjugate as Y, Newline as Z, Pause as _, type PuzzleGeometryOptions as a, type AlgBranch as a0, type MoveModifications as a1, type Parsed as a2, type ExperimentalNotationType as a3, type ExperimentalSerializationOptions as a4, type AppendCancelOptions as a5, type SimplifyOptions as a6, QuantumMove as a7, type KPatternData as a8, type KPatternOrbitData as a9, type KPuzzleDefinition as aa, type KTransformationData as ab, type KTransformationOrbitData as ac, type StickerDatAxis as b, type StickerDatFace as c, type StickerDatSticker as d, getPuzzleDescriptionString as e, getPuzzleGeometryByDesc as f, getPG3DNamedPuzzles as g, getPuzzleGeometryByName as h, PGNotation as i, PUZZLE_BASE_SHAPES as j, PUZZLE_CUT_TYPES as k, type PuzzleBaseShape as l, type PuzzleCutDescription as m, type PuzzleCutType as n, type PuzzleDescription as o, parseOptions as p, PuzzleGeometry as q, parsePuzzleDescription as r, Alg as s, type PuzzleLoader as t, type PuzzleID as u, KPuzzle as v, type StickeringMask as w, type PuzzleSpecificSimplifyOptions as x, type AlgIndexer as y, KTransformation as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as AlgNode, s as Alg, M as Move, R as AppendOptions, U as Grouping, W as LineComment, X as Commutator, Y as Conjugate, Z as Newline, _ as Pause, $ as KeyMapping, A as AlgLeaf } from '../
|
|
2
|
-
export { a0 as AlgBranch, a5 as AppendCancelOptions, a3 as ExperimentalNotationType, a2 as ExperimentalParsed, a4 as ExperimentalSerializationOptions, a1 as MoveModifications, x as PuzzleSpecificSimplifyOptions, a7 as QuantumMove, a6 as SimplifyOptions } from '../
|
|
1
|
+
import { O as AlgNode, s as Alg, M as Move, R as AppendOptions, U as Grouping, W as LineComment, X as Commutator, Y as Conjugate, Z as Newline, _ as Pause, $ as KeyMapping, A as AlgLeaf } from '../KPattern-mvBrQSuc.js';
|
|
2
|
+
export { a0 as AlgBranch, a5 as AppendCancelOptions, a3 as ExperimentalNotationType, a2 as ExperimentalParsed, a4 as ExperimentalSerializationOptions, a1 as MoveModifications, x as PuzzleSpecificSimplifyOptions, a7 as QuantumMove, a6 as SimplifyOptions } from '../KPattern-mvBrQSuc.js';
|
|
3
3
|
import 'three/src/Three.js';
|
|
4
4
|
|
|
5
5
|
/** @deprecated */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as PuzzleID, t as PuzzleLoader, $ as KeyMapping, K as KPattern, s as Alg, M as Move } from '../
|
|
2
|
-
import { B as BluetoothPuzzle } from '../bluetooth-puzzle-
|
|
3
|
-
export { A as MoveEvent, O as OrientationEvent } from '../bluetooth-puzzle-
|
|
1
|
+
import { u as PuzzleID, t as PuzzleLoader, $ as KeyMapping, K as KPattern, s as Alg, M as Move } from '../KPattern-mvBrQSuc.js';
|
|
2
|
+
import { B as BluetoothPuzzle } from '../bluetooth-puzzle-wivjKx0u.js';
|
|
3
|
+
export { A as MoveEvent, O as OrientationEvent } from '../bluetooth-puzzle-wivjKx0u.js';
|
|
4
4
|
import 'three/src/Three.js';
|
|
5
5
|
|
|
6
6
|
declare function enableDebugLogging(enable: boolean): void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
binaryComponentsToReid3x3x3,
|
|
3
3
|
twizzleBinaryToBinaryComponents
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-7HQOMRBY.js";
|
|
5
5
|
import {
|
|
6
6
|
cube3x3x3,
|
|
7
7
|
puzzles
|
|
8
|
-
} from "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-CJSXUBHM.js";
|
|
9
9
|
import {
|
|
10
10
|
experimental3x3x3KPuzzle
|
|
11
|
-
} from "../chunks/chunk-
|
|
11
|
+
} from "../chunks/chunk-666TWRT6.js";
|
|
12
12
|
import {
|
|
13
13
|
KPattern
|
|
14
14
|
} from "../chunks/chunk-3YVVF3KK.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
from
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-666TWRT6.js";
|
|
4
4
|
|
|
5
5
|
// src/cubing/twisty/debug.ts
|
|
6
6
|
var twistyDebugGlobals = {
|
|
@@ -527,7 +527,7 @@ var StatsPanel = class {
|
|
|
527
527
|
// src/cubing/twisty/heavy-code-imports/3d.ts
|
|
528
528
|
var cachedConstructorProxy = null;
|
|
529
529
|
async function bulk3DCode() {
|
|
530
|
-
return cachedConstructorProxy ??= import("./twisty-dynamic-3d-
|
|
530
|
+
return cachedConstructorProxy ??= import("./twisty-dynamic-3d-PGO6KXRX.js");
|
|
531
531
|
}
|
|
532
532
|
|
|
533
533
|
// src/cubing/twisty/views/canvas.ts
|
|
@@ -1171,4 +1171,4 @@ export {
|
|
|
1171
1171
|
Twisty3DVantage,
|
|
1172
1172
|
bulk3DCode
|
|
1173
1173
|
};
|
|
1174
|
-
//# sourceMappingURL=chunk-
|
|
1174
|
+
//# sourceMappingURL=chunk-4SW5YMBF.js.map
|
|
@@ -772,6 +772,10 @@ async function asyncGetPuzzleGeometry(puzzleName) {
|
|
|
772
772
|
addRotations: true
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
|
+
async function asyncGetBasePuzzleGeometry(puzzleName) {
|
|
776
|
+
const puzzleGeometry = await import("../puzzle-geometry/index.js");
|
|
777
|
+
return puzzleGeometry.getPuzzleGeometryByName(puzzleName);
|
|
778
|
+
}
|
|
775
779
|
async function asyncGetKPuzzle(pgPromise, puzzleName, setOrientationModTo1ForPiecesOfOrbits) {
|
|
776
780
|
const pg = await pgPromise;
|
|
777
781
|
const kpuzzleDefinition = pg.getKPuzzleDefinition(true);
|
|
@@ -820,6 +824,12 @@ var PGPuzzleLoader = class {
|
|
|
820
824
|
pg() {
|
|
821
825
|
return this.#cachedPG ??= asyncGetPuzzleGeometry(this.pgId ?? this.id);
|
|
822
826
|
}
|
|
827
|
+
#cachedBasePG;
|
|
828
|
+
basePG() {
|
|
829
|
+
return this.#cachedBasePG ??= asyncGetBasePuzzleGeometry(
|
|
830
|
+
this.pgId ?? this.id
|
|
831
|
+
);
|
|
832
|
+
}
|
|
823
833
|
#cachedKPuzzle;
|
|
824
834
|
kpuzzle() {
|
|
825
835
|
return this.#cachedKPuzzle ??= asyncGetKPuzzle(
|
|
@@ -1167,9 +1177,9 @@ async function getPartialAppendOptionsForPuzzleSpecificSimplifyOptions(puzzleLoa
|
|
|
1167
1177
|
async function descAsyncGetPuzzleGeometry(desc, options) {
|
|
1168
1178
|
const puzzleGeometry = await import("../puzzle-geometry/index.js");
|
|
1169
1179
|
return puzzleGeometry.getPuzzleGeometryByDesc(desc, {
|
|
1170
|
-
allMoves: true,
|
|
1171
|
-
orientCenters: true,
|
|
1172
|
-
addRotations: true,
|
|
1180
|
+
allMoves: options?.allMoves ?? true,
|
|
1181
|
+
orientCenters: options?.orientCenters ?? true,
|
|
1182
|
+
addRotations: options?.addRotations ?? true,
|
|
1173
1183
|
...options
|
|
1174
1184
|
});
|
|
1175
1185
|
}
|
|
@@ -1195,6 +1205,13 @@ function customPGPuzzleLoader(desc, info) {
|
|
|
1195
1205
|
pg: async () => {
|
|
1196
1206
|
return descAsyncGetPuzzleGeometry(desc);
|
|
1197
1207
|
},
|
|
1208
|
+
basePG: async () => {
|
|
1209
|
+
return descAsyncGetPuzzleGeometry(desc, {
|
|
1210
|
+
allMoves: false,
|
|
1211
|
+
orientCenters: false,
|
|
1212
|
+
addRotations: false
|
|
1213
|
+
});
|
|
1214
|
+
},
|
|
1198
1215
|
puzzleSpecificSimplifyOptionsPromise: puzzleSpecificSimplifyOptionsPromise(kpuzzlePromiseFn)
|
|
1199
1216
|
};
|
|
1200
1217
|
if (info?.inventedBy) {
|
|
@@ -1345,4 +1362,4 @@ export {
|
|
|
1345
1362
|
experimental3x3x3KPuzzle,
|
|
1346
1363
|
bigCubePuzzleOrientation
|
|
1347
1364
|
};
|
|
1348
|
-
//# sourceMappingURL=chunk-
|
|
1365
|
+
//# sourceMappingURL=chunk-666TWRT6.js.map
|