cubing 0.53.4 → 0.53.5
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-iit8QFEU.d.ts → TwizzleLink.d-Dde7gyeR.d.ts} +1 -1
- package/dist/lib/cubing/bluetooth/index.d.ts +4 -4
- package/dist/lib/cubing/{bluetooth-puzzle.d-DA4Wx3co.d.ts → bluetooth-puzzle.d-CmjQOGXN.d.ts} +1 -1
- package/dist/lib/cubing/{index-WCV0Si9w.d.ts → index-SnpOfUNy.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/search/index.d.ts +2 -2
- package/dist/lib/cubing/stream/index.d.ts +3 -3
- package/dist/lib/cubing/twisty/index.d.ts +3 -3
- package/package.json +2 -2
- package/dist/lib/cubing/{index-CxSsew9j.d.ts → KPattern.d-BYanty6A.d.ts} +109 -109
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Texture, Object3D, Raycaster, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
|
|
2
2
|
import { P as PuzzleSpecificSimplifyOptions, b as AlgLeaf, M as Move, A as Alg, e as Pause, h as AppendCancelOptions, c as AppendOptions, a as AlgNode, I as IterationDirection } from './PuzzleLoader-Bxh01zKY.js';
|
|
3
3
|
import { P as Parsed } from './parseAlg.d-CCV6A24s.js';
|
|
4
|
-
import { s as KPuzzle, d as PuzzleGeometry, K as KPattern, t as KTransformation, u as PuzzleDescriptionString } from './
|
|
4
|
+
import { s as KPuzzle, d as PuzzleGeometry, K as KPattern, t as KTransformation, u as PuzzleDescriptionString } from './KPattern.d-BYanty6A.js';
|
|
5
5
|
|
|
6
6
|
type FaceletMeshStickeringMask = "regular" | "dim" | "oriented" | "experimentalOriented2" | "ignored" | "invisible";
|
|
7
7
|
type FaceletStickeringMask = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { K as KPattern } from '../
|
|
2
|
-
import { a as PuzzleID, P as PuzzleLoader } from '../TwizzleLink.d-
|
|
1
|
+
import { K as KPattern } from '../KPattern.d-BYanty6A.js';
|
|
2
|
+
import { a as PuzzleID, P as PuzzleLoader } from '../TwizzleLink.d-Dde7gyeR.js';
|
|
3
3
|
import { A as Alg, M as Move } from '../PuzzleLoader-Bxh01zKY.js';
|
|
4
|
-
import { B as BluetoothPuzzle } from '../bluetooth-puzzle.d-
|
|
5
|
-
export { A as MoveEvent, O as OrientationEvent } from '../bluetooth-puzzle.d-
|
|
4
|
+
import { B as BluetoothPuzzle } from '../bluetooth-puzzle.d-CmjQOGXN.js';
|
|
5
|
+
export { A as MoveEvent, O as OrientationEvent } from '../bluetooth-puzzle.d-CmjQOGXN.js';
|
|
6
6
|
import 'three';
|
|
7
7
|
import '../parseAlg.d-CCV6A24s.js';
|
|
8
8
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { K as KPattern, w as KPatternData, x as KPatternOrbitData, s as KPuzzle, v as KPuzzleDefinition, t as KTransformation, y as KTransformationData, z as KTransformationOrbitData } from '../
|
|
1
|
+
export { K as KPattern, w as KPatternData, x as KPatternOrbitData, s as KPuzzle, v as KPuzzleDefinition, t as KTransformation, y as KTransformationData, z as KTransformationOrbitData } from '../KPattern.d-BYanty6A.js';
|
|
2
2
|
import '../PuzzleLoader-Bxh01zKY.js';
|
|
3
3
|
import 'three';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as Alg } from '../PuzzleLoader-Bxh01zKY.js';
|
|
2
|
-
import { P as PuzzleLoader } from '../TwizzleLink.d-
|
|
2
|
+
import { P as PuzzleLoader } from '../TwizzleLink.d-Dde7gyeR.js';
|
|
3
3
|
import 'three';
|
|
4
4
|
import '../parseAlg.d-CCV6A24s.js';
|
|
5
|
-
import '../
|
|
5
|
+
import '../KPattern.d-BYanty6A.js';
|
|
6
6
|
|
|
7
7
|
declare enum CommonMetric {
|
|
8
8
|
OuterBlockTurnMetric = "OBTM",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Perm } from '../
|
|
2
|
-
export { q as EXPERIMENTAL_PUZZLE_BASE_SHAPES, n as EXPERIMENTAL_PUZZLE_CUT_TYPES, k as ExperimentalPGNotation, r as ExperimentalPuzzleBaseShape, l as ExperimentalPuzzleCutDescription, o as ExperimentalPuzzleCutType, m as ExperimentalPuzzleDescription, j as ExperimentalPuzzleGeometryOptions, d as PuzzleGeometry, Q as Quat, S as StickerDat, e as StickerDatAxis, f as StickerDatFace, h as StickerDatSticker, c as getPG3DNamedPuzzles, g as getPuzzleDescriptionString, a as getPuzzleGeometryByDesc, b as getPuzzleGeometryByName, i as parseOptions, p as parsePuzzleDescription } from '../
|
|
1
|
+
import { P as Perm } from '../KPattern.d-BYanty6A.js';
|
|
2
|
+
export { q as EXPERIMENTAL_PUZZLE_BASE_SHAPES, n as EXPERIMENTAL_PUZZLE_CUT_TYPES, k as ExperimentalPGNotation, r as ExperimentalPuzzleBaseShape, l as ExperimentalPuzzleCutDescription, o as ExperimentalPuzzleCutType, m as ExperimentalPuzzleDescription, j as ExperimentalPuzzleGeometryOptions, d as PuzzleGeometry, Q as Quat, S as StickerDat, e as StickerDatAxis, f as StickerDatFace, h as StickerDatSticker, c as getPG3DNamedPuzzles, g as getPuzzleDescriptionString, a as getPuzzleGeometryByDesc, b as getPuzzleGeometryByName, i as parseOptions, p as parsePuzzleDescription } from '../KPattern.d-BYanty6A.js';
|
|
3
3
|
import '../PuzzleLoader-Bxh01zKY.js';
|
|
4
4
|
import 'three';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as PuzzleID, P as PuzzleLoader, E as ExperimentalStickering, S as StickeringMask } from '../TwizzleLink.d-
|
|
1
|
+
import { a as PuzzleID, P as PuzzleLoader, E as ExperimentalStickering, S as StickeringMask } from '../TwizzleLink.d-Dde7gyeR.js';
|
|
2
2
|
import { P as PuzzleSpecificSimplifyOptions, b as AlgLeaf } from '../PuzzleLoader-Bxh01zKY.js';
|
|
3
|
-
import { s as KPuzzle, d as PuzzleGeometry } from '../
|
|
3
|
+
import { s as KPuzzle, d as PuzzleGeometry } from '../KPattern.d-BYanty6A.js';
|
|
4
4
|
import 'three';
|
|
5
5
|
import '../parseAlg.d-CCV6A24s.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a as experimentalSolve2x2x2, e as experimentalSolve3x3x3IgnoringCenters, f as experimentalSolveTwsearch, d as setSearchDebug, c as solveMegaminx, b as solvePyraminx, s as solveSkewb } from '../index-
|
|
1
|
+
export { a as experimentalSolve2x2x2, e as experimentalSolve3x3x3IgnoringCenters, f as experimentalSolveTwsearch, d as setSearchDebug, c as solveMegaminx, b as solvePyraminx, s as solveSkewb } from '../index-SnpOfUNy.js';
|
|
2
2
|
import '../PuzzleLoader-Bxh01zKY.js';
|
|
3
|
-
import { K as KPattern } from '../
|
|
3
|
+
import { K as KPattern } from '../KPattern.d-BYanty6A.js';
|
|
4
4
|
import 'three';
|
|
5
5
|
|
|
6
6
|
declare function random333Pattern(): Promise<KPattern>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../PuzzleLoader-Bxh01zKY.js';
|
|
2
|
-
import '../TwizzleLink.d-
|
|
3
|
-
import { A as AlgLeafEvent, O as OrientationEvent } from '../bluetooth-puzzle.d-
|
|
2
|
+
import '../TwizzleLink.d-Dde7gyeR.js';
|
|
3
|
+
import { A as AlgLeafEvent, O as OrientationEvent } from '../bluetooth-puzzle.d-CmjQOGXN.js';
|
|
4
4
|
import 'three';
|
|
5
5
|
import '../parseAlg.d-CCV6A24s.js';
|
|
6
|
-
import '../
|
|
6
|
+
import '../KPattern.d-BYanty6A.js';
|
|
7
7
|
|
|
8
8
|
interface ProxyMoveEvent {
|
|
9
9
|
event: "move";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AlgIndexer, T as Timestamp, D as Duration, S as StickeringMask } from '../TwizzleLink.d-
|
|
2
|
-
export { B as BackViewLayout, N as EXPERIMENTAL_PROP_NO_VALUE, M as ExperimentalMillisecondTimestamp, E as ExperimentalStickering, a as PuzzleID, d as TwistyAlgEditor, c as TwistyAlgViewer, b as TwistyPlayer, e as TwistyPlayerConfig, g as TwizzleLink, V as VisualizationFormat, f as backViewLayouts } from '../TwizzleLink.d-
|
|
1
|
+
import { A as AlgIndexer, T as Timestamp, D as Duration, S as StickeringMask } from '../TwizzleLink.d-Dde7gyeR.js';
|
|
2
|
+
export { B as BackViewLayout, N as EXPERIMENTAL_PROP_NO_VALUE, M as ExperimentalMillisecondTimestamp, E as ExperimentalStickering, a as PuzzleID, d as TwistyAlgEditor, c as TwistyAlgViewer, b as TwistyPlayer, e as TwistyPlayerConfig, g as TwizzleLink, V as VisualizationFormat, f as backViewLayouts } from '../TwizzleLink.d-Dde7gyeR.js';
|
|
3
3
|
import { A as Alg, M as Move } from '../PuzzleLoader-Bxh01zKY.js';
|
|
4
|
-
import { s as KPuzzle, K as KPattern, t as KTransformation } from '../
|
|
4
|
+
import { s as KPuzzle, K as KPattern, t as KTransformation } from '../KPattern.d-BYanty6A.js';
|
|
5
5
|
import 'three';
|
|
6
6
|
import '../parseAlg.d-CCV6A24s.js';
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cubing",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.5",
|
|
4
4
|
"description": "A collection of JavaScript cubing libraries.",
|
|
5
5
|
"author": "The js.cubing.net team",
|
|
6
6
|
"type": "module",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@types/three": "^0.169.0",
|
|
60
60
|
"@types/web-bluetooth": "^0.0.20",
|
|
61
|
+
"cmd-ts-too": "^0.15.3",
|
|
61
62
|
"comlink": "^4.4.1",
|
|
62
63
|
"random-uint-below": "v3.3.0",
|
|
63
64
|
"three": "^0.170.0"
|
|
@@ -74,7 +75,6 @@
|
|
|
74
75
|
"@web/test-runner-playwright": "^0.11.0",
|
|
75
76
|
"barely-a-dev-server": "latest",
|
|
76
77
|
"chai": "^5.1.1",
|
|
77
|
-
"cmd-ts-too": "v0.15.0",
|
|
78
78
|
"esbuild": "latest",
|
|
79
79
|
"getbuiltinmodule-ponyfill": "^1.0.1",
|
|
80
80
|
"jszip": "^3.10.1",
|
|
@@ -1,114 +1,5 @@
|
|
|
1
1
|
import { M as Move, A as Alg } from './PuzzleLoader-Bxh01zKY.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
|
-
|
|
112
3
|
type KPatternData = Record<string, KPatternOrbitData>;
|
|
113
4
|
interface KPatternOrbitData {
|
|
114
5
|
pieces: number[];
|
|
@@ -260,6 +151,89 @@ interface KPuzzleDefinition {
|
|
|
260
151
|
}) => boolean;
|
|
261
152
|
}
|
|
262
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
|
+
|
|
263
237
|
declare class PGOrbitDef {
|
|
264
238
|
size: number;
|
|
265
239
|
mod: number;
|
|
@@ -329,6 +303,12 @@ declare class VisibleState extends PGTransformBase {
|
|
|
329
303
|
mul(b: PGTransform): VisibleState;
|
|
330
304
|
}
|
|
331
305
|
|
|
306
|
+
type PuzzleDescriptionString = string;
|
|
307
|
+
declare const PGPuzzles: {
|
|
308
|
+
[name: string]: PuzzleDescriptionString;
|
|
309
|
+
};
|
|
310
|
+
type PuzzleName = keyof typeof PGPuzzles;
|
|
311
|
+
|
|
332
312
|
declare class Quat {
|
|
333
313
|
a: number;
|
|
334
314
|
b: 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 };
|