cubing 0.54.0 → 0.54.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.
Files changed (30) hide show
  1. package/dist/lib/cubing/{TwizzleLink.d-Bxv5QZmG.d.ts → TwizzleLink.d-Dqq2s13l.d.ts} +1 -1
  2. package/dist/lib/cubing/bluetooth/index.d.ts +4 -4
  3. package/dist/lib/cubing/{bluetooth-puzzle.d-SLdses2g.d.ts → bluetooth-puzzle.d-GKzytGMi.d.ts} +1 -1
  4. package/dist/lib/cubing/chunks/{chunk-OPV6VG3X.js → chunk-GE6WYWVJ.js} +1 -1
  5. package/dist/lib/cubing/chunks/{inside-LUDELYNF.js → inside-ZAMNCUJH.js} +3 -3
  6. package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-6JR6MPNN.js → search-dynamic-solve-4x4x4-NIMWCI6N.js} +2 -2
  7. package/dist/lib/cubing/chunks/search-worker-entry.js +1 -1
  8. package/dist/lib/cubing/chunks/{twsearch-KODGQJMW.js → twsearch-6G4O4NH5.js} +2 -2
  9. package/dist/lib/cubing/chunks/{twsearch-KODGQJMW.js.map → twsearch-6G4O4NH5.js.map} +1 -1
  10. package/dist/lib/cubing/chunks/twsearch_wasm_bg-MM4ZLJE4-C4O45PXN.js +15 -0
  11. package/dist/lib/cubing/chunks/twsearch_wasm_bg-MM4ZLJE4-C4O45PXN.js.map +7 -0
  12. package/dist/lib/cubing/{index-C0GtBTdp.d.ts → index-wCE-9KX4.d.ts} +1 -1
  13. package/dist/lib/cubing/kpuzzle/index.d.ts +1 -1
  14. package/dist/lib/cubing/notation/index.d.ts +2 -2
  15. package/dist/lib/cubing/protocol/index.d.ts +1 -1
  16. package/dist/lib/cubing/puzzle-geometry/index.d.ts +2 -2
  17. package/dist/lib/cubing/puzzles/index.d.ts +2 -2
  18. package/dist/lib/cubing/scramble/index.d.ts +2 -2
  19. package/dist/lib/cubing/scramble/index.js +1 -1
  20. package/dist/lib/cubing/search/index.d.ts +2 -2
  21. package/dist/lib/cubing/search/index.js +1 -1
  22. package/dist/lib/cubing/stream/index.d.ts +3 -3
  23. package/dist/lib/cubing/twisty/index.d.ts +3 -3
  24. package/package.json +1 -1
  25. package/dist/lib/cubing/chunks/twsearch_wasm_bg-ZVADHDTY-KT5WT5OX.js +0 -15
  26. package/dist/lib/cubing/chunks/twsearch_wasm_bg-ZVADHDTY-KT5WT5OX.js.map +0 -7
  27. package/dist/lib/cubing/chunks/{chunk-OPV6VG3X.js.map → chunk-GE6WYWVJ.js.map} +0 -0
  28. package/dist/lib/cubing/chunks/{inside-LUDELYNF.js.map → inside-ZAMNCUJH.js.map} +0 -0
  29. package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-6JR6MPNN.js.map → search-dynamic-solve-4x4x4-NIMWCI6N.js.map} +0 -0
  30. package/dist/lib/cubing/{KPattern.d-B8PBnjzZ.d.ts → index-BwKMMtpV.d.ts} +109 -109
@@ -1,5 +1,114 @@
1
1
  import { M as Move, A as Alg } from './PuzzleLoader-BYI7PA7C.js';
2
2
 
3
+ type PuzzleDescriptionString = string;
4
+ declare const PGPuzzles: {
5
+ [name: string]: PuzzleDescriptionString;
6
+ };
7
+ type PuzzleName = keyof typeof PGPuzzles;
8
+
9
+ interface NotationMapper {
10
+ notationToInternal(move: Move): Move | null;
11
+ notationToExternal(move: Move): Move | null;
12
+ }
13
+
14
+ declare function parseOptions(argv: string[]): {
15
+ puzzleDescription: PuzzleDescription | null;
16
+ options: PuzzleGeometryOptions;
17
+ };
18
+ type FaceName = string;
19
+ type OrientationDirection = [number, number, number];
20
+ type FaceBasedOrientationDescription = [
21
+ [
22
+ FaceName,
23
+ OrientationDirection
24
+ ],
25
+ [
26
+ FaceName,
27
+ OrientationDirection
28
+ ]
29
+ ];
30
+ type BaseFaceCount = 4 | 6 | 8 | 12 | 20;
31
+ type FaceBasedOrientationDescriptionLookup = Record<BaseFaceCount, FaceBasedOrientationDescription>;
32
+ declare class PuzzleGeometryFullOptions {
33
+ verbosity: number;
34
+ allMoves: boolean;
35
+ outerBlockMoves: boolean;
36
+ vertexMoves: boolean;
37
+ addRotations: boolean;
38
+ moveList: string[] | null;
39
+ fixedOrientation: boolean;
40
+ fixedPieceType: null | "e" | "v" | "f";
41
+ orientCenters: boolean;
42
+ includeCornerOrbits: boolean;
43
+ includeCenterOrbits: boolean;
44
+ includeEdgeOrbits: boolean;
45
+ excludeOrbits: string[];
46
+ optimizeOrbits: boolean;
47
+ grayCorners: boolean;
48
+ grayCenters: boolean;
49
+ grayEdges: boolean;
50
+ puzzleOrientation: FaceBasedOrientationDescription | null;
51
+ puzzleOrientations: FaceBasedOrientationDescriptionLookup | null;
52
+ scrambleAmount: number;
53
+ constructor(options?: PuzzleGeometryOptions);
54
+ }
55
+ type PuzzleGeometryOptions = Partial<PuzzleGeometryFullOptions>;
56
+
57
+ declare class Perm {
58
+ n: number;
59
+ p: number[];
60
+ constructor(a: number[]);
61
+ toString(): string;
62
+ mul(p2: Perm): Perm;
63
+ rmul(p2: Perm): Perm;
64
+ inv(): Perm;
65
+ compareTo(p2: Perm): number;
66
+ toGap(): string;
67
+ toMathematica(): string;
68
+ order(): number;
69
+ }
70
+
71
+ declare class KTransformation {
72
+ #private;
73
+ readonly kpuzzle: KPuzzle;
74
+ readonly transformationData: KTransformationData;
75
+ constructor(kpuzzle: KPuzzle, transformationData: KTransformationData);
76
+ toJSON(): any;
77
+ invert(): KTransformation;
78
+ isIdentityTransformation(): boolean;
79
+ /** @deprecated */
80
+ static experimentalConstructIdentity(kpuzzle: KPuzzle): KTransformation;
81
+ isIdentical(t2: KTransformation): boolean;
82
+ /** @deprecated */
83
+ apply(source: KTransformationSource): KTransformation;
84
+ applyTransformation(t2: KTransformation): KTransformation;
85
+ applyMove(move: Move | string): KTransformation;
86
+ applyAlg(alg: Alg | string): KTransformation;
87
+ toKPattern(): KPattern;
88
+ repetitionOrder(): number;
89
+ selfMultiply(amount: number): KTransformation;
90
+ }
91
+
92
+ declare class KPattern {
93
+ readonly kpuzzle: KPuzzle;
94
+ readonly patternData: KPatternData;
95
+ constructor(kpuzzle: KPuzzle, patternData: KPatternData);
96
+ toJSON(): any;
97
+ static fromTransformation(transformation: KTransformation): KPattern;
98
+ /** @deprecated */
99
+ apply(source: KTransformationSource): KPattern;
100
+ applyTransformation(transformation: KTransformation): KPattern;
101
+ applyMove(move: Move | string): KPattern;
102
+ applyAlg(alg: Alg | string): KPattern;
103
+ isIdentical(other: KPattern): boolean;
104
+ /** @deprecated */
105
+ experimentalToTransformation(): KTransformation | null;
106
+ experimentalIsSolved(options: {
107
+ ignorePuzzleOrientation: boolean;
108
+ ignoreCenterOrientation: boolean;
109
+ }): boolean;
110
+ }
111
+
3
112
  type KPatternData = Record<string, KPatternOrbitData>;
4
113
  interface KPatternOrbitData {
5
114
  pieces: number[];
@@ -151,89 +260,6 @@ interface KPuzzleDefinition {
151
260
  }) => boolean;
152
261
  }
153
262
 
154
- declare class KTransformation {
155
- #private;
156
- readonly kpuzzle: KPuzzle;
157
- readonly transformationData: KTransformationData;
158
- constructor(kpuzzle: KPuzzle, transformationData: KTransformationData);
159
- toJSON(): any;
160
- invert(): KTransformation;
161
- isIdentityTransformation(): boolean;
162
- /** @deprecated */
163
- static experimentalConstructIdentity(kpuzzle: KPuzzle): KTransformation;
164
- isIdentical(t2: KTransformation): boolean;
165
- /** @deprecated */
166
- apply(source: KTransformationSource): KTransformation;
167
- applyTransformation(t2: KTransformation): KTransformation;
168
- applyMove(move: Move | string): KTransformation;
169
- applyAlg(alg: Alg | string): KTransformation;
170
- toKPattern(): KPattern;
171
- repetitionOrder(): number;
172
- selfMultiply(amount: number): KTransformation;
173
- }
174
-
175
- interface NotationMapper {
176
- notationToInternal(move: Move): Move | null;
177
- notationToExternal(move: Move): Move | null;
178
- }
179
-
180
- declare function parseOptions(argv: string[]): {
181
- puzzleDescription: PuzzleDescription | null;
182
- options: PuzzleGeometryOptions;
183
- };
184
- type FaceName = string;
185
- type OrientationDirection = [number, number, number];
186
- type FaceBasedOrientationDescription = [
187
- [
188
- FaceName,
189
- OrientationDirection
190
- ],
191
- [
192
- FaceName,
193
- OrientationDirection
194
- ]
195
- ];
196
- type BaseFaceCount = 4 | 6 | 8 | 12 | 20;
197
- type FaceBasedOrientationDescriptionLookup = Record<BaseFaceCount, FaceBasedOrientationDescription>;
198
- declare class PuzzleGeometryFullOptions {
199
- verbosity: number;
200
- allMoves: boolean;
201
- outerBlockMoves: boolean;
202
- vertexMoves: boolean;
203
- addRotations: boolean;
204
- moveList: string[] | null;
205
- fixedOrientation: boolean;
206
- fixedPieceType: null | "e" | "v" | "f";
207
- orientCenters: boolean;
208
- includeCornerOrbits: boolean;
209
- includeCenterOrbits: boolean;
210
- includeEdgeOrbits: boolean;
211
- excludeOrbits: string[];
212
- optimizeOrbits: boolean;
213
- grayCorners: boolean;
214
- grayCenters: boolean;
215
- grayEdges: boolean;
216
- puzzleOrientation: FaceBasedOrientationDescription | null;
217
- puzzleOrientations: FaceBasedOrientationDescriptionLookup | null;
218
- scrambleAmount: number;
219
- constructor(options?: PuzzleGeometryOptions);
220
- }
221
- type PuzzleGeometryOptions = Partial<PuzzleGeometryFullOptions>;
222
-
223
- declare class Perm {
224
- n: number;
225
- p: number[];
226
- constructor(a: number[]);
227
- toString(): string;
228
- mul(p2: Perm): Perm;
229
- rmul(p2: Perm): Perm;
230
- inv(): Perm;
231
- compareTo(p2: Perm): number;
232
- toGap(): string;
233
- toMathematica(): string;
234
- order(): number;
235
- }
236
-
237
263
  declare class PGOrbitDef {
238
264
  size: number;
239
265
  mod: number;
@@ -303,12 +329,6 @@ declare class VisibleState extends PGTransformBase {
303
329
  mul(b: PGTransform): VisibleState;
304
330
  }
305
331
 
306
- type PuzzleDescriptionString = string;
307
- declare const PGPuzzles: {
308
- [name: string]: PuzzleDescriptionString;
309
- };
310
- type PuzzleName = keyof typeof PGPuzzles;
311
-
312
332
  declare class Quat {
313
333
  a: number;
314
334
  b: number;
@@ -527,24 +547,4 @@ declare class KPuzzle {
527
547
  canConvertDefaultPatternToUniqueTransformation(): boolean;
528
548
  }
529
549
 
530
- declare class KPattern {
531
- readonly kpuzzle: KPuzzle;
532
- readonly patternData: KPatternData;
533
- constructor(kpuzzle: KPuzzle, patternData: KPatternData);
534
- toJSON(): any;
535
- static fromTransformation(transformation: KTransformation): KPattern;
536
- /** @deprecated */
537
- apply(source: KTransformationSource): KPattern;
538
- applyTransformation(transformation: KTransformation): KPattern;
539
- applyMove(move: Move | string): KPattern;
540
- applyAlg(alg: Alg | string): KPattern;
541
- isIdentical(other: KPattern): boolean;
542
- /** @deprecated */
543
- experimentalToTransformation(): KTransformation | null;
544
- experimentalIsSolved(options: {
545
- ignorePuzzleOrientation: boolean;
546
- ignoreCenterOrientation: boolean;
547
- }): boolean;
548
- }
549
-
550
550
  export { KPattern as K, Perm as P, Quat as Q, type StickerDat as S, getPuzzleGeometryByDesc as a, getPuzzleGeometryByName as b, getPG3DNamedPuzzles as c, PuzzleGeometry as d, type StickerDatAxis as e, type StickerDatFace as f, getPuzzleDescriptionString as g, type StickerDatSticker as h, parseOptions as i, type PuzzleGeometryOptions as j, PGNotation as k, type PuzzleCutDescription as l, type PuzzleDescription as m, PUZZLE_CUT_TYPES as n, type PuzzleCutType as o, parsePuzzleDescription as p, PUZZLE_BASE_SHAPES as q, type PuzzleBaseShape as r, KPuzzle as s, KTransformation as t, type PuzzleDescriptionString as u, type KPuzzleDefinition as v, type KPatternData as w, type KPatternOrbitData as x, type KTransformationData as y, type KTransformationOrbitData as z };