cubing 0.33.5 → 0.34.0
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 +4 -0
- package/dist/esm/alg/index.d.ts +1 -0
- package/dist/esm/bluetooth/index.d.ts +1 -0
- package/dist/esm/{search-worker-js-entry-HOSYFG74.js → chunk-44FWGBTT.js} +30 -15
- package/dist/esm/{search-worker-js-entry-HOSYFG74.js.map → chunk-44FWGBTT.js.map} +3 -3
- package/dist/esm/{chunk-2IZUSAXQ.js → chunk-DFZ2CYSE.js} +2 -2
- package/dist/esm/{chunk-2IZUSAXQ.js.map → chunk-DFZ2CYSE.js.map} +0 -0
- package/dist/esm/{chunk-ZB3P5AZN.js → chunk-KJUHIZ2G.js} +5 -2
- package/dist/esm/{chunk-ZB3P5AZN.js.map → chunk-KJUHIZ2G.js.map} +2 -2
- package/dist/esm/{chunk-4PMIYWH6.js → chunk-WWOZNWEN.js} +66 -25
- package/dist/esm/chunk-WWOZNWEN.js.map +7 -0
- package/dist/esm/kpuzzle/index.d.ts +1 -0
- package/dist/esm/notation/index.d.ts +1 -0
- package/dist/esm/protocol/index.d.ts +1 -0
- package/dist/esm/puzzle-geometry/index.d.ts +1 -0
- package/dist/esm/puzzles/index.d.ts +1 -0
- package/dist/esm/scramble/index.d.ts +1 -0
- package/dist/esm/scramble/index.js +8 -2
- package/dist/esm/search/index.d.ts +1 -0
- package/dist/esm/search/index.js +13 -9
- package/dist/esm/search-worker-inside-generated-string-L45M56BO.js +4068 -0
- package/dist/esm/search-worker-inside-generated-string-L45M56BO.js.map +7 -0
- package/dist/esm/search-worker-js-entry-FCQUXOMO.js +17 -0
- package/dist/esm/search-worker-js-entry-FCQUXOMO.js.map +7 -0
- package/dist/esm/{search-worker-ts-entry-5EA5JZUZ.js → search-worker-ts-entry-XKX3J4JU.js} +4 -4
- package/dist/esm/{search-worker-ts-entry-5EA5JZUZ.js.map → search-worker-ts-entry-XKX3J4JU.js.map} +0 -0
- package/dist/esm/stream/index.d.ts +1 -0
- package/dist/esm/twisty/index.d.ts +1 -0
- package/dist/esm/twsearch-3VIDM5NB-TXNG4RLV.js +3173 -0
- package/dist/esm/twsearch-3VIDM5NB-TXNG4RLV.js.map +7 -0
- package/dist/esm/twsearch-OTFFWWVK.js +121 -0
- package/dist/esm/twsearch-OTFFWWVK.js.map +7 -0
- package/dist/types/{Alg-8b4e9255.d.ts → Alg-3c1c16f6.d.ts} +6 -6
- package/dist/types/{KState-0da22515.d.ts → KState-82c7bd49.d.ts} +17 -17
- package/dist/types/{TwizzleLink-f790571d.d.ts → TwizzleLink-adf00931.d.ts} +59 -59
- package/dist/types/alg/index.d.ts +4 -4
- package/dist/types/bluetooth/index.d.ts +6 -6
- package/dist/types/{bluetooth-puzzle-62e2b423.d.ts → bluetooth-puzzle-084aff86.d.ts} +2 -2
- package/dist/types/kpuzzle/index.d.ts +2 -2
- package/dist/types/notation/index.d.ts +1 -1
- package/dist/types/{outside-58bc5f1a.d.ts → outside-86684116.d.ts} +7 -3
- package/dist/types/parseAlg-e1af1cb1.d.ts +9 -0
- package/dist/types/protocol/index.d.ts +3 -3
- package/dist/types/puzzle-geometry/index.d.ts +3 -3
- package/dist/types/puzzles/index.d.ts +5 -5
- package/dist/types/scramble/index.d.ts +3 -3
- package/dist/types/search/index.d.ts +3 -3
- package/dist/types/stream/index.d.ts +5 -5
- package/dist/types/twisty/index.d.ts +5 -5
- package/package.json +4 -3
- package/dist/esm/chunk-4PMIYWH6.js.map +0 -7
- package/dist/esm/search-worker-inside-generated-string-BQOV7WQF.js +0 -4063
- package/dist/esm/search-worker-inside-generated-string-BQOV7WQF.js.map +0 -7
- package/dist/types/parseAlg-2dd4194b.d.ts +0 -9
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Alg
|
|
3
|
+
} from "./chunk-IJP4IAGZ.js";
|
|
4
|
+
|
|
5
|
+
// src/cubing/vendor/twsearch/index.js
|
|
6
|
+
console.info("Loading twsearch v0.3.1-1-gfe6934f5");
|
|
7
|
+
async function importOnce() {
|
|
8
|
+
const fn = (await import("./twsearch-3VIDM5NB-TXNG4RLV.js")).default;
|
|
9
|
+
return await fn();
|
|
10
|
+
}
|
|
11
|
+
var cachedEmscriptenModule = null;
|
|
12
|
+
async function emscriptenModule() {
|
|
13
|
+
return cachedEmscriptenModule ?? (cachedEmscriptenModule = importOnce());
|
|
14
|
+
}
|
|
15
|
+
function cwrap(fn, returnType, argTypes, processReturnValue = (v) => v) {
|
|
16
|
+
const wrapped = (async () => (await emscriptenModule()).cwrap(fn, returnType, argTypes))();
|
|
17
|
+
return async (...args) => {
|
|
18
|
+
return processReturnValue((await wrapped)(...args));
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
var stringArg = ["string"];
|
|
22
|
+
var setArgs = cwrap(
|
|
23
|
+
"w_args",
|
|
24
|
+
"void",
|
|
25
|
+
stringArg
|
|
26
|
+
);
|
|
27
|
+
var setKPuzzleDefString = cwrap(
|
|
28
|
+
"w_setksolve",
|
|
29
|
+
"void",
|
|
30
|
+
stringArg
|
|
31
|
+
);
|
|
32
|
+
var solveScramble = cwrap(
|
|
33
|
+
"w_solvescramble",
|
|
34
|
+
"string",
|
|
35
|
+
stringArg,
|
|
36
|
+
Alg.fromString
|
|
37
|
+
);
|
|
38
|
+
var solveState = cwrap(
|
|
39
|
+
"w_solveposition",
|
|
40
|
+
"string",
|
|
41
|
+
stringArg,
|
|
42
|
+
Alg.fromString
|
|
43
|
+
);
|
|
44
|
+
var BLANK_LINE = "";
|
|
45
|
+
var END = "End";
|
|
46
|
+
function sanitize(s) {
|
|
47
|
+
return s.replaceAll(/[^A-Za-z0-9]/g, "_");
|
|
48
|
+
}
|
|
49
|
+
function serializeKTransformationDataToTws(name, t, forScramble = false) {
|
|
50
|
+
const outputLines = [];
|
|
51
|
+
outputLines.push(
|
|
52
|
+
`${forScramble ? "ScrambleState" : "MoveTransformation"} ${sanitize(name)}`
|
|
53
|
+
);
|
|
54
|
+
for (const [orbitName, orbitData] of Object.entries(t)) {
|
|
55
|
+
outputLines.push(sanitize(orbitName));
|
|
56
|
+
outputLines.push(orbitData.permutation.join(" "));
|
|
57
|
+
outputLines.push(orbitData.orientation.join(" "));
|
|
58
|
+
}
|
|
59
|
+
outputLines.push(END);
|
|
60
|
+
outputLines.push(BLANK_LINE);
|
|
61
|
+
return outputLines.join("\n");
|
|
62
|
+
}
|
|
63
|
+
function serializeDefToTws(kpuzzle, options) {
|
|
64
|
+
let outputLines = [];
|
|
65
|
+
const def = kpuzzle.definition;
|
|
66
|
+
outputLines.push(`Name ${sanitize(def.name ?? "CustomPuzzle")}`);
|
|
67
|
+
outputLines.push(BLANK_LINE);
|
|
68
|
+
for (const [orbitName, orbitInfo] of Object.entries(def.orbits)) {
|
|
69
|
+
outputLines.push(
|
|
70
|
+
`Set ${sanitize(orbitName)} ${orbitInfo.numPieces} ${orbitInfo.numOrientations}`
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
outputLines.push(BLANK_LINE);
|
|
74
|
+
outputLines.push("StartState");
|
|
75
|
+
if (options?.startState) {
|
|
76
|
+
outputLines.push(options?.startState);
|
|
77
|
+
} else {
|
|
78
|
+
for (const [orbitName, orbitDef] of Object.entries(def.startStateData)) {
|
|
79
|
+
outputLines.push(sanitize(orbitName));
|
|
80
|
+
outputLines.push(orbitDef.pieces.join(" "));
|
|
81
|
+
outputLines.push(orbitDef.orientation.join(" "));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
outputLines.push(END);
|
|
85
|
+
outputLines.push(BLANK_LINE);
|
|
86
|
+
function include(moveName) {
|
|
87
|
+
if (options?.moveSubset) {
|
|
88
|
+
return options.moveSubset.includes(moveName);
|
|
89
|
+
} else {
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
for (const [moveName, moveDef] of Object.entries(def.moves)) {
|
|
94
|
+
if (include(moveName)) {
|
|
95
|
+
outputLines.push(serializeKTransformationDataToTws(moveName, moveDef));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
for (const [moveName, moveAlgDef] of Object.entries(
|
|
99
|
+
def.experimentalDerivedMoves ?? {}
|
|
100
|
+
)) {
|
|
101
|
+
if (include(moveName)) {
|
|
102
|
+
const transformation = kpuzzle.algToTransformation(moveAlgDef);
|
|
103
|
+
outputLines.push(
|
|
104
|
+
serializeKTransformationDataToTws(
|
|
105
|
+
moveName,
|
|
106
|
+
transformation.transformationData
|
|
107
|
+
)
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return outputLines.join("\n");
|
|
112
|
+
}
|
|
113
|
+
export {
|
|
114
|
+
serializeDefToTws,
|
|
115
|
+
serializeKTransformationDataToTws,
|
|
116
|
+
setArgs,
|
|
117
|
+
setKPuzzleDefString,
|
|
118
|
+
solveScramble,
|
|
119
|
+
solveState
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=twsearch-OTFFWWVK.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/cubing/vendor/twsearch/index.js"],
|
|
4
|
+
"sourcesContent": ["console.info(\"Loading twsearch v0.3.1-1-gfe6934f5\");\n// src/js/api.ts\nimport { Alg } from \"../../alg\";\nasync function importOnce() {\n const fn = (await import(\"./twsearch-3VIDM5NB.js\")).default;\n return await fn();\n}\nvar cachedEmscriptenModule = null;\nasync function emscriptenModule() {\n return cachedEmscriptenModule ?? (cachedEmscriptenModule = importOnce());\n}\nfunction cwrap(fn, returnType, argTypes, processReturnValue = (v) => v) {\n const wrapped = (async () => (await emscriptenModule()).cwrap(fn, returnType, argTypes))();\n return async (...args) => {\n return processReturnValue((await wrapped)(...args));\n };\n}\nvar stringArg = [\"string\"];\nvar setArgs = cwrap(\n \"w_args\",\n \"void\",\n stringArg\n);\nvar setKPuzzleDefString = cwrap(\n \"w_setksolve\",\n \"void\",\n stringArg\n);\nvar solveScramble = cwrap(\n \"w_solvescramble\",\n \"string\",\n stringArg,\n Alg.fromString\n);\nvar solveState = cwrap(\n \"w_solveposition\",\n \"string\",\n stringArg,\n Alg.fromString\n);\n\n// src/js/serialize.ts\nvar BLANK_LINE = \"\";\nvar END = \"End\";\nfunction sanitize(s) {\n return s.replaceAll(/[^A-Za-z0-9]/g, \"_\");\n}\nfunction serializeKTransformationDataToTws(name, t, forScramble = false) {\n const outputLines = [];\n outputLines.push(\n `${forScramble ? \"ScrambleState\" : \"MoveTransformation\"} ${sanitize(name)}`\n );\n for (const [orbitName, orbitData] of Object.entries(t)) {\n outputLines.push(sanitize(orbitName));\n outputLines.push(orbitData.permutation.join(\" \"));\n outputLines.push(orbitData.orientation.join(\" \"));\n }\n outputLines.push(END);\n outputLines.push(BLANK_LINE);\n return outputLines.join(\"\\n\");\n}\nfunction serializeDefToTws(kpuzzle, options) {\n let outputLines = [];\n const def = kpuzzle.definition;\n outputLines.push(`Name ${sanitize(def.name ?? \"CustomPuzzle\")}`);\n outputLines.push(BLANK_LINE);\n for (const [orbitName, orbitInfo] of Object.entries(def.orbits)) {\n outputLines.push(\n `Set ${sanitize(orbitName)} ${orbitInfo.numPieces} ${orbitInfo.numOrientations}`\n );\n }\n outputLines.push(BLANK_LINE);\n outputLines.push(\"StartState\");\n if (options?.startState) {\n outputLines.push(options?.startState);\n } else {\n for (const [orbitName, orbitDef] of Object.entries(def.startStateData)) {\n outputLines.push(sanitize(orbitName));\n outputLines.push(orbitDef.pieces.join(\" \"));\n outputLines.push(orbitDef.orientation.join(\" \"));\n }\n }\n outputLines.push(END);\n outputLines.push(BLANK_LINE);\n function include(moveName) {\n if (options?.moveSubset) {\n return options.moveSubset.includes(moveName);\n } else {\n return true;\n }\n }\n for (const [moveName, moveDef] of Object.entries(def.moves)) {\n if (include(moveName)) {\n outputLines.push(serializeKTransformationDataToTws(moveName, moveDef));\n }\n }\n for (const [moveName, moveAlgDef] of Object.entries(\n def.experimentalDerivedMoves ?? {}\n )) {\n if (include(moveName)) {\n const transformation = kpuzzle.algToTransformation(moveAlgDef);\n outputLines.push(\n serializeKTransformationDataToTws(\n moveName,\n transformation.transformationData\n )\n );\n }\n }\n return outputLines.join(\"\\n\");\n}\nexport {\n serializeDefToTws,\n serializeKTransformationDataToTws,\n setArgs,\n setKPuzzleDefString,\n solveScramble,\n solveState\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -121,11 +121,11 @@ declare class Grouping extends AlgCommon<Grouping> {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/** @category Alg Nodes */
|
|
124
|
-
|
|
124
|
+
type AlgLeaf = Move | LineComment | Newline | Pause;
|
|
125
125
|
/** @category Alg Nodes */
|
|
126
|
-
|
|
126
|
+
type AlgBranch = Grouping | Conjugate | Commutator;
|
|
127
127
|
/** @category Alg Nodes */
|
|
128
|
-
|
|
128
|
+
type AlgNode = AlgLeaf | AlgBranch;
|
|
129
129
|
|
|
130
130
|
declare abstract class Comparable {
|
|
131
131
|
is(c: any): boolean;
|
|
@@ -144,8 +144,8 @@ declare abstract class AlgCommon<T extends Alg | AlgNode> extends Comparable imp
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
declare const DEFAULT_DIRECTIONAL = "any-direction";
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
type QuantumDirectionalCancellation = typeof DEFAULT_DIRECTIONAL | "same-direction" | "none";
|
|
148
|
+
type ModWrap = "none" | "gravity" | "canonical-centered" | "canonical-positive" | "preserve-sign";
|
|
149
149
|
interface AppendCancelOptions {
|
|
150
150
|
directional?: QuantumDirectionalCancellation;
|
|
151
151
|
puzzleSpecificModWrap?: ModWrap;
|
|
@@ -169,7 +169,7 @@ interface PuzzleSpecificSimplifyOptions {
|
|
|
169
169
|
axis?: PuzzleSpecificAxisSimplifyInfo;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
type FlexibleAlgSource = string | Iterable<AlgNode> | Alg;
|
|
173
173
|
/**
|
|
174
174
|
* `Alg` is a class that encapsulates a structured alg. To create an `Alg` from a string, use:
|
|
175
175
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { M as Move, a as Alg } from './Alg-
|
|
1
|
+
import { M as Move, a as Alg } from './Alg-3c1c16f6.js';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type KTransformationData = Record<string, KTransformationOrbitData>;
|
|
4
4
|
interface KTransformationOrbitData {
|
|
5
5
|
permutation: number[];
|
|
6
6
|
orientation: number[];
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
type KStateData = Record<string, KStateOrbitData>;
|
|
9
9
|
interface KStateOrbitData {
|
|
10
10
|
pieces: number[];
|
|
11
11
|
orientation: number[];
|
|
@@ -56,9 +56,9 @@ declare function parseOptions(argv: string[]): {
|
|
|
56
56
|
puzzleDescription: PuzzleDescription | null;
|
|
57
57
|
options: PuzzleGeometryOptions;
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
type FaceName = string;
|
|
60
|
+
type OrientationDirection = [number, number, number];
|
|
61
|
+
type FaceBasedOrientationDescription = [
|
|
62
62
|
[
|
|
63
63
|
FaceName,
|
|
64
64
|
OrientationDirection
|
|
@@ -68,8 +68,8 @@ declare type FaceBasedOrientationDescription = [
|
|
|
68
68
|
OrientationDirection
|
|
69
69
|
]
|
|
70
70
|
];
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
type BaseFaceCount = 4 | 6 | 8 | 12 | 20;
|
|
72
|
+
type FaceBasedOrientationDescriptionLookup = Record<BaseFaceCount, FaceBasedOrientationDescription>;
|
|
73
73
|
declare class PuzzleGeometryFullOptions {
|
|
74
74
|
verbosity: number;
|
|
75
75
|
allMoves: boolean;
|
|
@@ -93,7 +93,7 @@ declare class PuzzleGeometryFullOptions {
|
|
|
93
93
|
scrambleAmount: number;
|
|
94
94
|
constructor(options?: PuzzleGeometryOptions);
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
type PuzzleGeometryOptions = Partial<PuzzleGeometryFullOptions>;
|
|
97
97
|
|
|
98
98
|
declare class Perm {
|
|
99
99
|
n: number;
|
|
@@ -177,11 +177,11 @@ declare class VisibleState extends PGTransformBase {
|
|
|
177
177
|
mul(b: PGTransform): VisibleState;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
type PuzzleDescriptionString = string;
|
|
181
181
|
declare const PGPuzzles: {
|
|
182
182
|
[name: string]: PuzzleDescriptionString;
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
type PuzzleName = keyof typeof PGPuzzles;
|
|
185
185
|
|
|
186
186
|
declare class Quat {
|
|
187
187
|
a: number;
|
|
@@ -240,7 +240,7 @@ interface StickerDatFace {
|
|
|
240
240
|
coords: number[];
|
|
241
241
|
name: string;
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
type StickerDatAxis = {
|
|
244
244
|
coordinates: number[];
|
|
245
245
|
quantumMove: Move;
|
|
246
246
|
order: number;
|
|
@@ -258,14 +258,14 @@ declare function getPG3DNamedPuzzles(): {
|
|
|
258
258
|
};
|
|
259
259
|
declare function getPuzzleDescriptionString(puzzleName: PuzzleName): PuzzleDescriptionString;
|
|
260
260
|
declare const PUZZLE_BASE_SHAPES: readonly ["c", "t", "o", "d", "i"];
|
|
261
|
-
|
|
261
|
+
type PuzzleBaseShape = typeof PUZZLE_BASE_SHAPES[number];
|
|
262
262
|
declare const PUZZLE_CUT_TYPES: readonly ["f", "v", "e"];
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
type PuzzleCutType = typeof PUZZLE_CUT_TYPES[number];
|
|
264
|
+
type PuzzleCutDescription = {
|
|
265
265
|
cutType: PuzzleCutType;
|
|
266
266
|
distance: number;
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
type PuzzleDescription = {
|
|
269
269
|
shape: PuzzleBaseShape;
|
|
270
270
|
cuts: PuzzleCutDescription[];
|
|
271
271
|
};
|
|
@@ -378,7 +378,7 @@ declare class PGNotation {
|
|
|
378
378
|
lookupMove(move: Move): KTransformationData | null;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
|
|
381
|
+
type KTransformationSource = Alg | Move | string | KTransformation;
|
|
382
382
|
declare class KPuzzle {
|
|
383
383
|
#private;
|
|
384
384
|
readonly definition: KPuzzleDefinition;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Texture, Object3D, Raycaster, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
|
|
2
|
-
import { g as PuzzleSpecificSimplifyOptions, M as Move, a as Alg, P as Pause, h as AppendCancelOptions, d as AlgLeaf, b as AppendOptions, A as AlgNode, I as IterationDirection } from './Alg-
|
|
3
|
-
import { P as Parsed } from './parseAlg-
|
|
4
|
-
import { a as KPuzzle, j as PuzzleGeometry, K as KState, e as KTransformation, w as PuzzleDescriptionString } from './KState-
|
|
2
|
+
import { g as PuzzleSpecificSimplifyOptions, M as Move, a as Alg, P as Pause, h as AppendCancelOptions, d as AlgLeaf, b as AppendOptions, A as AlgNode, I as IterationDirection } from './Alg-3c1c16f6.js';
|
|
3
|
+
import { P as Parsed } from './parseAlg-e1af1cb1.js';
|
|
4
|
+
import { a as KPuzzle, j as PuzzleGeometry, K as KState, e as KTransformation, w as PuzzleDescriptionString } from './KState-82c7bd49.js';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type FaceletMeshStickeringMask = "regular" | "dim" | "oriented" | "ignored" | "invisible";
|
|
7
|
+
type FaceletStickeringMask = {
|
|
8
8
|
mask: FaceletMeshStickeringMask;
|
|
9
9
|
hintMask?: FaceletMeshStickeringMask;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type PieceStickeringMask = {
|
|
12
12
|
facelets: (FaceletMeshStickeringMask | FaceletStickeringMask | null)[];
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type OrbitStickeringMask = {
|
|
15
15
|
pieces: (PieceStickeringMask | null)[];
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
type StickeringMask = {
|
|
18
18
|
specialBehaviour?: "picture";
|
|
19
19
|
name?: string;
|
|
20
20
|
orbits: Record<string, OrbitStickeringMask>;
|
|
@@ -41,9 +41,9 @@ declare const experimentalStickerings: Record<string, {
|
|
|
41
41
|
groups?: Partial<Record<PuzzleID, string>>;
|
|
42
42
|
}>;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
type MillisecondTimestamp = number;
|
|
45
|
+
type Duration = MillisecondTimestamp;
|
|
46
|
+
type Timestamp = MillisecondTimestamp;
|
|
47
47
|
declare enum Direction {
|
|
48
48
|
Forwards = 1,
|
|
49
49
|
Paused = 0,
|
|
@@ -54,7 +54,7 @@ interface MoveInProgress {
|
|
|
54
54
|
direction: Direction;
|
|
55
55
|
fraction: number;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
type PuzzlePosition = {
|
|
58
58
|
state: KState;
|
|
59
59
|
movesInProgress: MoveInProgress[];
|
|
60
60
|
};
|
|
@@ -76,8 +76,8 @@ declare class UserVisibleErrorTracker extends SimpleTwistyPropSource<UserVisible
|
|
|
76
76
|
protected canReuseValue(_v1: UserVisibleError, _v2: UserVisibleError): boolean;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
type InputRecord = {};
|
|
80
|
+
type InputProps<T extends InputRecord> = {
|
|
81
81
|
[s in keyof T]: TwistyPropParent<T[s]>;
|
|
82
82
|
};
|
|
83
83
|
interface SourceEventDetail<OutputType> {
|
|
@@ -85,8 +85,8 @@ interface SourceEventDetail<OutputType> {
|
|
|
85
85
|
value: Promise<OutputType>;
|
|
86
86
|
generation: number;
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
type SourceEvent<T> = CustomEvent<SourceEventDetail<T>>;
|
|
89
|
+
type PromiseOrValue<T> = T | Promise<T>;
|
|
90
90
|
declare abstract class TwistyPropParent<T> {
|
|
91
91
|
#private;
|
|
92
92
|
abstract get(): Promise<T>;
|
|
@@ -119,7 +119,7 @@ declare abstract class SimpleTwistyPropSource<SimpleType> extends TwistyPropSour
|
|
|
119
119
|
protected derive(input: SimpleType): PromiseOrValue<SimpleType>;
|
|
120
120
|
}
|
|
121
121
|
declare const NO_VALUE: unique symbol;
|
|
122
|
-
|
|
122
|
+
type NoValueType = typeof NO_VALUE;
|
|
123
123
|
declare abstract class TwistyPropDerived<InputTypes extends InputRecord, OutputType> extends TwistyPropParent<OutputType> {
|
|
124
124
|
#private;
|
|
125
125
|
protected userVisibleErrorTracker?: UserVisibleErrorTracker | undefined;
|
|
@@ -128,7 +128,7 @@ declare abstract class TwistyPropDerived<InputTypes extends InputRecord, OutputT
|
|
|
128
128
|
protected abstract derive(input: InputTypes): PromiseOrValue<OutputType>;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
type SimpleDirection = Direction.Forwards | Direction.Backwards;
|
|
132
132
|
interface PlayingInfo {
|
|
133
133
|
playing: boolean;
|
|
134
134
|
direction: SimpleDirection;
|
|
@@ -174,7 +174,7 @@ declare class AlgProp extends TwistyPropSource<AlgWithIssues, Alg | string> {
|
|
|
174
174
|
protected derive(newAlg: Alg | string): Promise<AlgWithIssues>;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
type AlgTransformationPropInputs = {
|
|
178
178
|
setupAlg: AlgWithIssues;
|
|
179
179
|
kpuzzle: KPuzzle;
|
|
180
180
|
};
|
|
@@ -182,7 +182,7 @@ declare class AlgTransformationProp extends TwistyPropDerived<AlgTransformationP
|
|
|
182
182
|
derive(input: AlgTransformationPropInputs): KTransformation;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
type AnimatedLeafAlgNode = Move | Pause;
|
|
186
186
|
|
|
187
187
|
interface CurrentMove {
|
|
188
188
|
move: Move;
|
|
@@ -217,7 +217,7 @@ declare const setupToLocations: {
|
|
|
217
217
|
start: boolean;
|
|
218
218
|
end: boolean;
|
|
219
219
|
};
|
|
220
|
-
|
|
220
|
+
type SetupToLocation = keyof typeof setupToLocations;
|
|
221
221
|
declare class SetupAnchorProp extends SimpleTwistyPropSource<SetupToLocation> {
|
|
222
222
|
getDefaultValue(): SetupToLocation;
|
|
223
223
|
}
|
|
@@ -261,7 +261,7 @@ declare const smartTimestamps: {
|
|
|
261
261
|
anchor: boolean;
|
|
262
262
|
"opposite-anchor": boolean;
|
|
263
263
|
};
|
|
264
|
-
|
|
264
|
+
type TimestampRequest = MillisecondTimestamp | keyof typeof smartTimestamps;
|
|
265
265
|
declare class TimestampRequestProp extends SimpleTwistyPropSource<TimestampRequest> {
|
|
266
266
|
getDefaultValue(): TimestampRequest;
|
|
267
267
|
set(v: TimestampRequest): void;
|
|
@@ -310,17 +310,17 @@ declare const visualizationFormats: {
|
|
|
310
310
|
"experimental-2D-LL": boolean;
|
|
311
311
|
PG3D: boolean;
|
|
312
312
|
};
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
type VisualizationFormat = keyof typeof visualizationFormats;
|
|
314
|
+
type VisualizationFormatWithAuto = VisualizationFormat | "auto";
|
|
315
315
|
declare class VisualizationFormatProp extends SimpleTwistyPropSource<VisualizationFormatWithAuto> {
|
|
316
316
|
getDefaultValue(): VisualizationFormatWithAuto;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
type VisualizationStrategyPropInputs = {
|
|
320
320
|
visualizationRequest: VisualizationFormatWithAuto;
|
|
321
321
|
puzzleID: PuzzleID;
|
|
322
322
|
};
|
|
323
|
-
|
|
323
|
+
type VisualizationStrategy = "Cube3D" | "2D" | "experimental-2D-LL" | "PG3D";
|
|
324
324
|
declare class VisualizationStrategyProp extends TwistyPropDerived<VisualizationStrategyPropInputs, VisualizationStrategy> {
|
|
325
325
|
derive(inputs: VisualizationStrategyPropInputs): VisualizationStrategy;
|
|
326
326
|
}
|
|
@@ -346,7 +346,7 @@ declare const puzzleIDs: {
|
|
|
346
346
|
redi_cube: boolean;
|
|
347
347
|
melindas2x2x2x2: boolean;
|
|
348
348
|
};
|
|
349
|
-
|
|
349
|
+
type PuzzleID = keyof typeof puzzleIDs;
|
|
350
350
|
declare class PuzzleIDRequestProp extends SimpleTwistyPropSource<PuzzleID | NoValueType> {
|
|
351
351
|
getDefaultValue(): PuzzleID | NoValueType;
|
|
352
352
|
}
|
|
@@ -357,12 +357,12 @@ declare const indexerStrategyNames: {
|
|
|
357
357
|
tree: boolean;
|
|
358
358
|
simultaneous: boolean;
|
|
359
359
|
};
|
|
360
|
-
|
|
360
|
+
type IndexerStrategyName = keyof typeof indexerStrategyNames;
|
|
361
361
|
declare class IndexerConstructorRequestProp extends SimpleTwistyPropSource<IndexerStrategyName> {
|
|
362
362
|
getDefaultValue(): IndexerStrategyName;
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
|
|
365
|
+
type IndexerConstructor = new (kpuzzle: KPuzzle, alg: Alg) => AlgIndexer;
|
|
366
366
|
interface IndexerConstructorPropInputs {
|
|
367
367
|
puzzle: PuzzleID;
|
|
368
368
|
alg: AlgWithIssues;
|
|
@@ -373,7 +373,7 @@ declare class IndexerConstructorProp extends TwistyPropDerived<IndexerConstructo
|
|
|
373
373
|
derive(inputs: IndexerConstructorPropInputs): IndexerConstructor;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
|
|
376
|
+
type IndexerPropInputs = {
|
|
377
377
|
indexerConstructor: IndexerConstructor;
|
|
378
378
|
algWithIssues: AlgWithIssues;
|
|
379
379
|
kpuzzle: KPuzzle;
|
|
@@ -465,21 +465,21 @@ declare const viewerLinkPages: {
|
|
|
465
465
|
"experimental-twizzle-explorer": boolean;
|
|
466
466
|
none: boolean;
|
|
467
467
|
};
|
|
468
|
-
|
|
469
|
-
|
|
468
|
+
type ViewerLinkPage = keyof typeof viewerLinkPages;
|
|
469
|
+
type ViewerLinkPageWithAuto = ViewerLinkPage | "auto";
|
|
470
470
|
declare class ViewerLinkProp extends SimpleTwistyPropSource<ViewerLinkPageWithAuto> {
|
|
471
471
|
getDefaultValue(): ViewerLinkPageWithAuto;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
declare const buttonIcons: string[];
|
|
475
|
-
|
|
475
|
+
type ButtonIcon = typeof buttonIcons[number];
|
|
476
476
|
interface ButtonAppearance {
|
|
477
477
|
enabled: boolean;
|
|
478
478
|
icon: ButtonIcon;
|
|
479
479
|
title: string;
|
|
480
480
|
hidden?: boolean;
|
|
481
481
|
}
|
|
482
|
-
|
|
482
|
+
type ButtonAppearances = Record<ButtonCommand, ButtonAppearance>;
|
|
483
483
|
interface ButtonAppearancePropInputs {
|
|
484
484
|
coarseTimelineInfo: CoarseTimelineInfo;
|
|
485
485
|
viewerLink: ViewerLinkPageWithAuto;
|
|
@@ -506,8 +506,8 @@ declare const darkModeThemes: {
|
|
|
506
506
|
light: boolean;
|
|
507
507
|
dark: boolean;
|
|
508
508
|
};
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
type DarkModeTheme = keyof typeof darkModeThemes;
|
|
510
|
+
type DarkModeThemeWithAuto = DarkModeTheme | "auto";
|
|
511
511
|
declare class DarkModeRequstProp extends SimpleTwistyPropSource<DarkModeThemeWithAuto> {
|
|
512
512
|
getDefaultValue(): DarkModeThemeWithAuto;
|
|
513
513
|
}
|
|
@@ -521,7 +521,7 @@ declare const buttonCommands: {
|
|
|
521
521
|
"jump-to-end": boolean;
|
|
522
522
|
"twizzle-link": boolean;
|
|
523
523
|
};
|
|
524
|
-
|
|
524
|
+
type ButtonCommand = keyof typeof buttonCommands;
|
|
525
525
|
declare class TwistyButtons extends ManagedCustomElement {
|
|
526
526
|
#private;
|
|
527
527
|
model?: TwistyPlayerModel | undefined;
|
|
@@ -566,8 +566,8 @@ declare const backViewLayouts: {
|
|
|
566
566
|
"side-by-side": boolean;
|
|
567
567
|
"top-right": boolean;
|
|
568
568
|
};
|
|
569
|
-
|
|
570
|
-
|
|
569
|
+
type BackViewLayout = keyof typeof backViewLayouts;
|
|
570
|
+
type BackViewLayoutWithAuto = BackViewLayout | "auto";
|
|
571
571
|
declare class BackViewProp extends SimpleTwistyPropSource<BackViewLayoutWithAuto> {
|
|
572
572
|
getDefaultValue(): BackViewLayoutWithAuto;
|
|
573
573
|
}
|
|
@@ -576,8 +576,8 @@ declare const controlsLocations: {
|
|
|
576
576
|
"bottom-row": boolean;
|
|
577
577
|
none: boolean;
|
|
578
578
|
};
|
|
579
|
-
|
|
580
|
-
|
|
579
|
+
type ControlsLocation = keyof typeof controlsLocations;
|
|
580
|
+
type ControlPanelThemeWithAuto = ControlsLocation | "auto";
|
|
581
581
|
declare class ControlPanelProp extends SimpleTwistyPropSource<ControlPanelThemeWithAuto> {
|
|
582
582
|
getDefaultValue(): ControlPanelThemeWithAuto;
|
|
583
583
|
}
|
|
@@ -590,12 +590,12 @@ declare class TimeRangeProp extends TwistyPropDerived<{
|
|
|
590
590
|
}): TimeRange;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
|
|
593
|
+
type FaceletScale = "auto" | number;
|
|
594
594
|
declare class FaceletScaleProp extends SimpleTwistyPropSource<FaceletScale> {
|
|
595
595
|
getDefaultValue(): FaceletScale;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
|
|
598
|
+
type FoundationDisplay = "auto" | "opaque" | "none";
|
|
599
599
|
declare class FoundationDisplayProp extends SimpleTwistyPropSource<FoundationDisplay> {
|
|
600
600
|
getDefaultValue(): FoundationDisplay;
|
|
601
601
|
}
|
|
@@ -604,25 +604,25 @@ declare const hintFaceletStyles: {
|
|
|
604
604
|
floating: boolean;
|
|
605
605
|
none: boolean;
|
|
606
606
|
};
|
|
607
|
-
|
|
608
|
-
|
|
607
|
+
type HintFaceletStyle = keyof typeof hintFaceletStyles;
|
|
608
|
+
type HintFaceletStyleWithAuto = HintFaceletStyle | "auto";
|
|
609
609
|
declare class HintFaceletProp extends SimpleTwistyPropSource<HintFaceletStyleWithAuto> {
|
|
610
610
|
getDefaultValue(): HintFaceletStyleWithAuto;
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
|
|
613
|
+
type InitialHintFaceletsAnimation = "auto" | "always" | "none";
|
|
614
614
|
declare class InitialHintFaceletsAnimationProp extends SimpleTwistyPropSource<InitialHintFaceletsAnimation> {
|
|
615
615
|
getDefaultValue(): InitialHintFaceletsAnimation;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
|
|
618
|
+
type SpritePropInputs = {
|
|
619
619
|
spriteURL: URL | null;
|
|
620
620
|
};
|
|
621
621
|
declare class SpriteProp extends TwistyPropDerived<SpritePropInputs, Texture | null> {
|
|
622
622
|
derive(inputs: SpritePropInputs): Promise<Texture | null>;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
|
-
|
|
625
|
+
type ExperimentalStickering = keyof typeof experimentalStickerings;
|
|
626
626
|
declare class StickeringRequestProp extends SimpleTwistyPropSource<ExperimentalStickering | null> {
|
|
627
627
|
getDefaultValue(): ExperimentalStickering | null;
|
|
628
628
|
}
|
|
@@ -646,7 +646,7 @@ declare const dragInputModes: {
|
|
|
646
646
|
auto: boolean;
|
|
647
647
|
none: boolean;
|
|
648
648
|
};
|
|
649
|
-
|
|
649
|
+
type DragInputMode = keyof typeof dragInputModes;
|
|
650
650
|
declare class DragInputProp extends SimpleTwistyPropSource<DragInputMode> {
|
|
651
651
|
getDefaultValue(): DragInputMode;
|
|
652
652
|
}
|
|
@@ -660,7 +660,7 @@ declare const movePressInputNames: {
|
|
|
660
660
|
none: boolean;
|
|
661
661
|
basic: boolean;
|
|
662
662
|
};
|
|
663
|
-
|
|
663
|
+
type MovePressInput = keyof typeof movePressInputNames;
|
|
664
664
|
declare class MovePressInputProp extends SimpleTwistyPropSource<MovePressInput> {
|
|
665
665
|
getDefaultValue(): MovePressInput;
|
|
666
666
|
}
|
|
@@ -670,8 +670,8 @@ declare const backgroundThemes: {
|
|
|
670
670
|
"checkered-transparent": boolean;
|
|
671
671
|
none: boolean;
|
|
672
672
|
};
|
|
673
|
-
|
|
674
|
-
|
|
673
|
+
type BackgroundTheme = keyof typeof backgroundThemes;
|
|
674
|
+
type BackgroundThemeWithAuto = BackgroundTheme | "auto";
|
|
675
675
|
declare class BackgroundProp extends SimpleTwistyPropSource<BackgroundThemeWithAuto> {
|
|
676
676
|
getDefaultValue(): BackgroundThemeWithAuto;
|
|
677
677
|
}
|
|
@@ -687,13 +687,13 @@ declare class DOMElementReferenceProp extends SimpleTwistyPropSource<Element | n
|
|
|
687
687
|
getDefaultValue(): Element | null;
|
|
688
688
|
}
|
|
689
689
|
|
|
690
|
-
|
|
690
|
+
type CoordinateDegrees = number;
|
|
691
691
|
interface OrbitCoordinates {
|
|
692
692
|
latitude: CoordinateDegrees;
|
|
693
693
|
longitude: CoordinateDegrees;
|
|
694
694
|
distance: number;
|
|
695
695
|
}
|
|
696
|
-
|
|
696
|
+
type OrbitCoordinatesRequest = Partial<OrbitCoordinates> | "auto";
|
|
697
697
|
declare class OrbitCoordinatesRequestProp extends TwistyPropSource<OrbitCoordinatesRequest, Partial<OrbitCoordinates> | "auto"> {
|
|
698
698
|
getDefaultValue(): OrbitCoordinatesRequest;
|
|
699
699
|
protected canReuseValue(v1: OrbitCoordinates, v2: OrbitCoordinates): boolean;
|
|
@@ -741,7 +741,7 @@ declare class TwistySceneModel {
|
|
|
741
741
|
constructor(twistyPlayerModel: TwistyPlayerModel);
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
-
|
|
744
|
+
type Without<T, K extends string[]> = Pick<T, Exclude<keyof T, K[number]>>;
|
|
745
745
|
declare class TwistyPlayerModel {
|
|
746
746
|
userVisibleErrorTracker: UserVisibleErrorTracker;
|
|
747
747
|
alg: AlgProp;
|
|
@@ -1230,11 +1230,11 @@ declare global {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
|
|
1233
|
-
|
|
1233
|
+
type AnimatedLeafAlgNodeInfo = {
|
|
1234
1234
|
leaf: Parsed<AnimatedLeafAlgNode>;
|
|
1235
1235
|
idx: number;
|
|
1236
1236
|
};
|
|
1237
|
-
|
|
1237
|
+
type OrderedLeafTokens = AnimatedLeafAlgNodeInfo[];
|
|
1238
1238
|
|
|
1239
1239
|
declare class TwistyAlgEditorValueProp extends SimpleTwistyPropSource<string> {
|
|
1240
1240
|
getDefaultValue(): string;
|
|
@@ -1276,7 +1276,7 @@ interface LeafToHighlightPropInputs {
|
|
|
1276
1276
|
targetChar: number;
|
|
1277
1277
|
leafTokens: OrderedLeafTokens;
|
|
1278
1278
|
}
|
|
1279
|
-
|
|
1279
|
+
type HighlightWhere = "before" | "start" | "inside" | "end" | "after";
|
|
1280
1280
|
interface HighlightInfo {
|
|
1281
1281
|
leafInfo: AnimatedLeafAlgNodeInfo;
|
|
1282
1282
|
where: HighlightWhere;
|
|
@@ -1306,7 +1306,7 @@ declare class TwistyAlgEditorModel {
|
|
|
1306
1306
|
* proper rewrite with a better model would be very welcome.
|
|
1307
1307
|
*/
|
|
1308
1308
|
|
|
1309
|
-
|
|
1309
|
+
type TwistyPlayerAlgProp = "alg" | "setupAlg";
|
|
1310
1310
|
/** @category Other Custom Elements */
|
|
1311
1311
|
declare class TwistyAlgEditor extends ManagedCustomElement {
|
|
1312
1312
|
#private;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AlgNode, a as Alg, M as Move, b as AppendOptions, G as Grouping, C as Commutator, c as Conjugate, P as Pause, N as Newline, L as LineComment, d as AlgLeaf } from '../Alg-
|
|
2
|
-
export { a as Alg, f as AlgBranch, d as AlgLeaf, A as AlgNode, h as AppendCancelOptions, C as Commutator, c as Conjugate, G as Grouping, L as LineComment, M as Move, e as MoveModifications, N as Newline, P as Pause, g as PuzzleSpecificSimplifyOptions, Q as QuantumMove, S as SimplifyOptions } from '../Alg-
|
|
3
|
-
export { P as ExperimentalParsed } from '../parseAlg-
|
|
1
|
+
import { A as AlgNode, a as Alg, M as Move, b as AppendOptions, G as Grouping, C as Commutator, c as Conjugate, P as Pause, N as Newline, L as LineComment, d as AlgLeaf } from '../Alg-3c1c16f6.js';
|
|
2
|
+
export { a as Alg, f as AlgBranch, d as AlgLeaf, A as AlgNode, h as AppendCancelOptions, C as Commutator, c as Conjugate, G as Grouping, L as LineComment, M as Move, e as MoveModifications, N as Newline, P as Pause, g as PuzzleSpecificSimplifyOptions, Q as QuantumMove, S as SimplifyOptions } from '../Alg-3c1c16f6.js';
|
|
3
|
+
export { P as ExperimentalParsed } from '../parseAlg-e1af1cb1.js';
|
|
4
4
|
|
|
5
5
|
/** @deprecated */
|
|
6
|
-
|
|
6
|
+
type Unit = AlgNode;
|
|
7
7
|
|
|
8
8
|
declare function experimentalAppendMove(alg: Alg, addedMove: Move, options?: AppendOptions): Alg;
|
|
9
9
|
|