cubing 0.53.11 → 0.53.12
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/{TwizzleLink.d-Dl_V74VW.d.ts → TwizzleLink.d-BzfMIk_O.d.ts} +1 -1
- package/dist/lib/cubing/bluetooth/index.d.ts +4 -4
- package/dist/lib/cubing/{bluetooth-puzzle.d-9F8pLnkE.d.ts → bluetooth-puzzle.d-C-95fTCe.d.ts} +1 -1
- package/dist/lib/cubing/chunks/{chunk-Q7LVKWAU.js → chunk-4A5X67G6.js} +3 -5
- package/dist/lib/cubing/chunks/{chunk-Q7LVKWAU.js.map → chunk-4A5X67G6.js.map} +1 -1
- package/dist/lib/cubing/chunks/{chunk-RDSQRW3G.js → chunk-GOT3GVLG.js} +11 -1
- package/dist/lib/cubing/chunks/chunk-GOT3GVLG.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-VXVRV477.js → chunk-YUHH4EXE.js} +3 -5
- package/dist/lib/cubing/chunks/{chunk-VXVRV477.js.map → chunk-YUHH4EXE.js.map} +1 -1
- package/dist/lib/cubing/chunks/{inside-QH4KBULV.js → inside-FE3UMYVY.js} +5 -6
- package/dist/lib/cubing/chunks/{inside-QH4KBULV.js.map → inside-FE3UMYVY.js.map} +1 -1
- package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-MCEJ4TLC.js → search-dynamic-solve-4x4x4-W5GCSX3J.js} +3 -4
- package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-MCEJ4TLC.js.map → search-dynamic-solve-4x4x4-W5GCSX3J.js.map} +1 -1
- package/dist/lib/cubing/chunks/search-worker-entry.js +3 -4
- package/dist/lib/cubing/chunks/search-worker-entry.js.map +1 -1
- package/dist/lib/cubing/chunks/{twsearch-P7UCZ2FN.js → twsearch-P5MOXX3O.js} +220 -227
- package/dist/lib/cubing/chunks/twsearch-P5MOXX3O.js.map +7 -0
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-7OSYYTWX-SEPIFK5Y.js +15 -0
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-7OSYYTWX-SEPIFK5Y.js.map +7 -0
- package/dist/lib/cubing/{index-BKODmlbd.d.ts → index-CB2Rc3zO.d.ts} +1 -1
- package/dist/lib/cubing/kpuzzle/index.d.ts +1 -1
- package/dist/lib/cubing/notation/index.d.ts +2 -2
- package/dist/lib/cubing/protocol/index.d.ts +1 -1
- package/dist/lib/cubing/puzzle-geometry/index.d.ts +2 -2
- package/dist/lib/cubing/puzzles/index.d.ts +2 -2
- package/dist/lib/cubing/scramble/index.d.ts +2 -2
- package/dist/lib/cubing/scramble/index.js +2 -3
- package/dist/lib/cubing/search/index.d.ts +2 -2
- package/dist/lib/cubing/search/index.js +2 -3
- package/dist/lib/cubing/stream/index.d.ts +3 -3
- package/dist/lib/cubing/twisty/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/lib/cubing/chunks/chunk-RDSQRW3G.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-YLS2ZYML.js +0 -13
- package/dist/lib/cubing/chunks/chunk-YLS2ZYML.js.map +0 -7
- package/dist/lib/cubing/chunks/twsearch-P7UCZ2FN.js.map +0 -7
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-NVQDAG6T-4Q3NEW35.js +0 -15
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-NVQDAG6T-4Q3NEW35.js.map +0 -7
- package/dist/lib/cubing/{index-DR8lwjeP.d.ts → KPattern.d-DdYwFXdd.d.ts} +103 -103
|
@@ -1,108 +1,5 @@
|
|
|
1
1
|
import { M as Move, A as Alg } from './PuzzleLoader-BN2CTwbG.js';
|
|
2
2
|
|
|
3
|
-
interface NotationMapper {
|
|
4
|
-
notationToInternal(move: Move): Move | null;
|
|
5
|
-
notationToExternal(move: Move): Move | null;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare function parseOptions(argv: string[]): {
|
|
9
|
-
puzzleDescription: PuzzleDescription | null;
|
|
10
|
-
options: PuzzleGeometryOptions;
|
|
11
|
-
};
|
|
12
|
-
type FaceName = string;
|
|
13
|
-
type OrientationDirection = [number, number, number];
|
|
14
|
-
type FaceBasedOrientationDescription = [
|
|
15
|
-
[
|
|
16
|
-
FaceName,
|
|
17
|
-
OrientationDirection
|
|
18
|
-
],
|
|
19
|
-
[
|
|
20
|
-
FaceName,
|
|
21
|
-
OrientationDirection
|
|
22
|
-
]
|
|
23
|
-
];
|
|
24
|
-
type BaseFaceCount = 4 | 6 | 8 | 12 | 20;
|
|
25
|
-
type FaceBasedOrientationDescriptionLookup = Record<BaseFaceCount, FaceBasedOrientationDescription>;
|
|
26
|
-
declare class PuzzleGeometryFullOptions {
|
|
27
|
-
verbosity: number;
|
|
28
|
-
allMoves: boolean;
|
|
29
|
-
outerBlockMoves: boolean;
|
|
30
|
-
vertexMoves: boolean;
|
|
31
|
-
addRotations: boolean;
|
|
32
|
-
moveList: string[] | null;
|
|
33
|
-
fixedOrientation: boolean;
|
|
34
|
-
fixedPieceType: null | "e" | "v" | "f";
|
|
35
|
-
orientCenters: boolean;
|
|
36
|
-
includeCornerOrbits: boolean;
|
|
37
|
-
includeCenterOrbits: boolean;
|
|
38
|
-
includeEdgeOrbits: boolean;
|
|
39
|
-
excludeOrbits: string[];
|
|
40
|
-
optimizeOrbits: boolean;
|
|
41
|
-
grayCorners: boolean;
|
|
42
|
-
grayCenters: boolean;
|
|
43
|
-
grayEdges: boolean;
|
|
44
|
-
puzzleOrientation: FaceBasedOrientationDescription | null;
|
|
45
|
-
puzzleOrientations: FaceBasedOrientationDescriptionLookup | null;
|
|
46
|
-
scrambleAmount: number;
|
|
47
|
-
constructor(options?: PuzzleGeometryOptions);
|
|
48
|
-
}
|
|
49
|
-
type PuzzleGeometryOptions = Partial<PuzzleGeometryFullOptions>;
|
|
50
|
-
|
|
51
|
-
declare class Perm {
|
|
52
|
-
n: number;
|
|
53
|
-
p: number[];
|
|
54
|
-
constructor(a: number[]);
|
|
55
|
-
toString(): string;
|
|
56
|
-
mul(p2: Perm): Perm;
|
|
57
|
-
rmul(p2: Perm): Perm;
|
|
58
|
-
inv(): Perm;
|
|
59
|
-
compareTo(p2: Perm): number;
|
|
60
|
-
toGap(): string;
|
|
61
|
-
toMathematica(): string;
|
|
62
|
-
order(): number;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
declare class KTransformation {
|
|
66
|
-
#private;
|
|
67
|
-
readonly kpuzzle: KPuzzle;
|
|
68
|
-
readonly transformationData: KTransformationData;
|
|
69
|
-
constructor(kpuzzle: KPuzzle, transformationData: KTransformationData);
|
|
70
|
-
toJSON(): any;
|
|
71
|
-
invert(): KTransformation;
|
|
72
|
-
isIdentityTransformation(): boolean;
|
|
73
|
-
/** @deprecated */
|
|
74
|
-
static experimentalConstructIdentity(kpuzzle: KPuzzle): KTransformation;
|
|
75
|
-
isIdentical(t2: KTransformation): boolean;
|
|
76
|
-
/** @deprecated */
|
|
77
|
-
apply(source: KTransformationSource): KTransformation;
|
|
78
|
-
applyTransformation(t2: KTransformation): KTransformation;
|
|
79
|
-
applyMove(move: Move | string): KTransformation;
|
|
80
|
-
applyAlg(alg: Alg | string): KTransformation;
|
|
81
|
-
toKPattern(): KPattern;
|
|
82
|
-
repetitionOrder(): number;
|
|
83
|
-
selfMultiply(amount: number): KTransformation;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare class KPattern {
|
|
87
|
-
readonly kpuzzle: KPuzzle;
|
|
88
|
-
readonly patternData: KPatternData;
|
|
89
|
-
constructor(kpuzzle: KPuzzle, patternData: KPatternData);
|
|
90
|
-
toJSON(): any;
|
|
91
|
-
static fromTransformation(transformation: KTransformation): KPattern;
|
|
92
|
-
/** @deprecated */
|
|
93
|
-
apply(source: KTransformationSource): KPattern;
|
|
94
|
-
applyTransformation(transformation: KTransformation): KPattern;
|
|
95
|
-
applyMove(move: Move | string): KPattern;
|
|
96
|
-
applyAlg(alg: Alg | string): KPattern;
|
|
97
|
-
isIdentical(other: KPattern): boolean;
|
|
98
|
-
/** @deprecated */
|
|
99
|
-
experimentalToTransformation(): KTransformation | null;
|
|
100
|
-
experimentalIsSolved(options: {
|
|
101
|
-
ignorePuzzleOrientation: boolean;
|
|
102
|
-
ignoreCenterOrientation: boolean;
|
|
103
|
-
}): boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
3
|
type KPatternData = Record<string, KPatternOrbitData>;
|
|
107
4
|
interface KPatternOrbitData {
|
|
108
5
|
pieces: number[];
|
|
@@ -254,6 +151,89 @@ interface KPuzzleDefinition {
|
|
|
254
151
|
}) => boolean;
|
|
255
152
|
}
|
|
256
153
|
|
|
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
|
+
|
|
257
237
|
declare class PGOrbitDef {
|
|
258
238
|
size: number;
|
|
259
239
|
mod: number;
|
|
@@ -547,4 +527,24 @@ declare class KPuzzle {
|
|
|
547
527
|
canConvertDefaultPatternToUniqueTransformation(): boolean;
|
|
548
528
|
}
|
|
549
529
|
|
|
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 };
|