cubing 0.43.4 → 0.43.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/README.md +17 -1
- package/dist/lib/cubing/{Alg-c6770822.d.ts → Alg-3ed1d42c.d.ts} +1 -1
- package/dist/lib/cubing/{KPattern-60960997.d.ts → KPattern-7494403f.d.ts} +3 -2
- package/dist/lib/cubing/{TwizzleLink-3c302469.d.ts → TwizzleLink-4060845a.d.ts} +5 -5
- package/dist/lib/cubing/alg/{index.d.ts → index.d.cts} +4 -4
- package/dist/lib/cubing/bluetooth/{index.d.ts → index.d.cts} +5 -5
- package/dist/lib/cubing/bluetooth/index.js +4 -4
- package/dist/lib/cubing/bluetooth/index.js.map +2 -2
- package/dist/lib/cubing/{bluetooth-puzzle-c3224834.d.ts → bluetooth-puzzle-c9c778f2.d.ts} +2 -2
- package/dist/lib/cubing/chunks/{chunk-ZUPLJQAD.js → chunk-4MCJ7H5A.js} +8 -4
- package/dist/lib/cubing/chunks/{chunk-ZUPLJQAD.js.map → chunk-4MCJ7H5A.js.map} +2 -2
- package/dist/lib/cubing/chunks/{chunk-NDY3DEEE.js → chunk-72RDBMAX.js} +1 -28
- package/dist/lib/cubing/chunks/chunk-72RDBMAX.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-RS62HLA5.js → chunk-CULFM3I2.js} +22 -41
- package/dist/lib/cubing/chunks/chunk-CULFM3I2.js.map +7 -0
- package/dist/lib/cubing/chunks/chunk-DX6FHFRA.js +28 -0
- package/dist/lib/cubing/chunks/chunk-DX6FHFRA.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-3LQLRLXS.js → chunk-ITZZ44VH.js} +3 -3
- package/dist/lib/cubing/chunks/chunk-ITZZ44VH.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-EBWRIEEZ.js → chunk-J6EV75FJ.js} +29 -122
- package/dist/lib/cubing/chunks/chunk-J6EV75FJ.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-NB6OOT2E.js → chunk-NS47A66S.js} +3 -3
- package/dist/lib/cubing/chunks/chunk-NS47A66S.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-QF4HTZYW.js → chunk-VIEFLN2D.js} +33 -3
- package/dist/lib/cubing/chunks/chunk-VIEFLN2D.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-SODS5Y3A.js → chunk-ZQFNVOD5.js} +7 -7
- package/dist/lib/cubing/chunks/inside-BCHGO3XT.js +16 -0
- package/dist/lib/cubing/chunks/{puzzles-dynamic-unofficial-WXH65MSQ.js → puzzles-dynamic-unofficial-2RL6RPOO.js} +60 -60
- package/dist/lib/cubing/chunks/puzzles-dynamic-unofficial-2RL6RPOO.js.map +7 -0
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-KBQTGXZR.js → search-dynamic-sgs-side-events-PFWJK7HL.js} +4 -4
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-KTHSSINP.js → search-dynamic-sgs-unofficial-YLGCKTJJ.js} +4 -4
- package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-JQRNWKAG.js → search-dynamic-solve-4x4x4-JZPYKEUP.js} +7 -7
- package/dist/lib/cubing/chunks/search-worker-entry.js +1 -1
- package/dist/lib/cubing/chunks/{twisty-dynamic-3d-GX34QIPC.js → twisty-dynamic-3d-IRLKRUGR.js} +16 -5
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-IRLKRUGR.js.map +7 -0
- package/dist/lib/cubing/chunks/{twsearch-BDAXZGZU-Q2YC2EQ6.js → twsearch-BDAXZGZU-JERMHHZP.js} +2 -2
- package/dist/lib/cubing/chunks/{twsearch-BDAXZGZU-Q2YC2EQ6.js.map → twsearch-BDAXZGZU-JERMHHZP.js.map} +1 -1
- package/dist/lib/cubing/chunks/twsearch-ZUYNNUKY.js +440 -0
- package/dist/lib/cubing/chunks/twsearch-ZUYNNUKY.js.map +7 -0
- package/dist/lib/cubing/chunks/{twsearch-SLVE4NQH.js → twsearch-cpp-CUTU3IFM.js} +35 -5
- package/dist/lib/cubing/chunks/twsearch-cpp-CUTU3IFM.js.map +7 -0
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-V6CRTKYG-PV6XNJXH.js +15 -0
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-V6CRTKYG-PV6XNJXH.js.map +7 -0
- package/dist/lib/cubing/{outside-2f424d30.d.ts → index-17ce7649.d.ts} +2 -2
- package/dist/lib/cubing/kpuzzle/index.d.cts +2 -0
- package/dist/lib/cubing/kpuzzle/index.js +1 -1
- package/dist/lib/cubing/notation/{index.d.ts → index.d.cts} +4 -4
- package/dist/lib/cubing/notation/index.js +3 -3
- package/dist/lib/cubing/{parseAlg-d2c83795.d.ts → parseAlg-23e8b6cd.d.ts} +1 -1
- package/dist/lib/cubing/protocol/{index.d.ts → index.d.cts} +6 -6
- package/dist/lib/cubing/protocol/index.js +3 -3
- package/dist/lib/cubing/puzzle-geometry/index.d.cts +7 -0
- package/dist/lib/cubing/puzzles/{index.d.ts → index.d.cts} +5 -6
- package/dist/lib/cubing/puzzles/index.js +3 -3
- package/dist/lib/cubing/scramble/index.d.cts +3 -0
- package/dist/lib/cubing/scramble/index.js +6 -6
- package/dist/lib/cubing/search/{index.d.ts → index.d.cts} +3 -3
- package/dist/lib/cubing/search/index.js +6 -6
- package/dist/lib/cubing/stream/{index.d.ts → index.d.cts} +3 -3
- package/dist/lib/cubing/twisty/{index.d.ts → index.d.cts} +6 -6
- package/dist/lib/cubing/twisty/index.js +7 -7
- package/dist/lib/cubing/twisty/index.js.map +2 -2
- package/package.json +33 -28
- package/dist/lib/cubing/chunks/chunk-3LQLRLXS.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-EBWRIEEZ.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-NB6OOT2E.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-NDY3DEEE.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-QF4HTZYW.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-RS62HLA5.js.map +0 -7
- package/dist/lib/cubing/chunks/inside-5CIAPTLP.js +0 -16
- package/dist/lib/cubing/chunks/puzzles-dynamic-unofficial-WXH65MSQ.js.map +0 -7
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-GX34QIPC.js.map +0 -7
- package/dist/lib/cubing/chunks/twsearch-SLVE4NQH.js.map +0 -7
- package/dist/lib/cubing/kpuzzle/index.d.ts +0 -2
- package/dist/lib/cubing/puzzle-geometry/index.d.ts +0 -7
- package/dist/lib/cubing/scramble/index.d.ts +0 -3
- /package/dist/lib/cubing/chunks/{chunk-SODS5Y3A.js.map → chunk-ZQFNVOD5.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{inside-5CIAPTLP.js.map → inside-BCHGO3XT.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-KBQTGXZR.js.map → search-dynamic-sgs-side-events-PFWJK7HL.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-KTHSSINP.js.map → search-dynamic-sgs-unofficial-YLGCKTJJ.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-JQRNWKAG.js.map → search-dynamic-solve-4x4x4-JZPYKEUP.js.map} +0 -0
package/README.md
CHANGED
|
@@ -42,7 +42,23 @@ If you would like to contribute to the development of `cubing.js`, please refer
|
|
|
42
42
|
|
|
43
43
|
## Developing `cubing.js` itself
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Working on `cubing.js` requires the following tools:
|
|
46
|
+
|
|
47
|
+
- [`GNU make`](https://www.gnu.org/software/make/) (probably included with your OS)
|
|
48
|
+
- [`git`](https://git-scm.com/) (possibly included with your OS)
|
|
49
|
+
- [`node` and `npm`](https://nodejs.org/en/download)
|
|
50
|
+
- [`bun`](https://bun.sh/)
|
|
51
|
+
- [`git-lfs`](https://git-lfs.com/)
|
|
52
|
+
|
|
53
|
+
On macOS, you can install these using [Homebrew](https://brew.sh/):
|
|
54
|
+
|
|
55
|
+
```shell
|
|
56
|
+
brew install git node oven-sh/bun/bun git-lfs
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
(On other platforms, you'll have to follow individual installation instructions. We recommend using [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) on Windows.)
|
|
60
|
+
|
|
61
|
+
Once you have these dependencies, you can run the `cubing.js` source like this (see the [contribution guidelines](./CONTRIBUTING.md) for more details):
|
|
46
62
|
|
|
47
63
|
```shell
|
|
48
64
|
git clone https://github.com/cubing/cubing.js && cd cubing.js
|
|
@@ -339,4 +339,4 @@ declare class Alg extends AlgCommon<Alg> {
|
|
|
339
339
|
simplify(options?: SimplifyOptions): Alg;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
export {
|
|
342
|
+
export { Alg as A, Commutator as C, Grouping as G, IterationDirection as I, LineComment as L, Move as M, Newline as N, PuzzleSpecificSimplifyOptions as P, QuantumMove as Q, SimplifyOptions as S, AlgNode as a, AlgLeaf as b, AppendOptions as c, Conjugate as d, Pause as e, MoveModifications as f, AlgBranch as g, AppendCancelOptions as h };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Move,
|
|
1
|
+
import { M as Move, A as Alg } from './Alg-3ed1d42c.js';
|
|
2
2
|
|
|
3
3
|
type KPatternData = Record<string, KPatternOrbitData>;
|
|
4
4
|
interface KPatternOrbitData {
|
|
@@ -537,6 +537,7 @@ declare class KPattern {
|
|
|
537
537
|
applyTransformation(transformation: KTransformation): KPattern;
|
|
538
538
|
applyMove(move: Move | string): KPattern;
|
|
539
539
|
applyAlg(alg: Alg | string): KPattern;
|
|
540
|
+
isIdentical(other: KPattern): boolean;
|
|
540
541
|
/** @deprecated */
|
|
541
542
|
experimentalToTransformation(): KTransformation | null;
|
|
542
543
|
experimentalIsSolved(options: {
|
|
@@ -545,4 +546,4 @@ declare class KPattern {
|
|
|
545
546
|
}): boolean;
|
|
546
547
|
}
|
|
547
548
|
|
|
548
|
-
export { KPattern as K,
|
|
549
|
+
export { KPattern as K, Perm as P, Quat as Q, StickerDat as S, getPuzzleGeometryByDesc as a, getPuzzleGeometryByName as b, getPG3DNamedPuzzles as c, PuzzleGeometry as d, StickerDatAxis as e, StickerDatFace as f, getPuzzleDescriptionString as g, StickerDatSticker as h, parseOptions as i, PuzzleGeometryOptions as j, PGNotation as k, PuzzleCutDescription as l, PuzzleDescription as m, PUZZLE_CUT_TYPES as n, PuzzleCutType as o, parsePuzzleDescription as p, PUZZLE_BASE_SHAPES as q, PuzzleBaseShape as r, KPuzzle as s, KTransformation as t, PuzzleDescriptionString as u, KPuzzleDefinition as v, KPatternData as w, KPatternOrbitData as x, KTransformationData as y, KTransformationOrbitData as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Texture, Object3D, Raycaster, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
|
|
2
|
-
import {
|
|
3
|
-
import { P as Parsed } from './parseAlg-
|
|
4
|
-
import {
|
|
2
|
+
import { P as PuzzleSpecificSimplifyOptions, M as Move, A as Alg, e as Pause, h as AppendCancelOptions, b as AlgLeaf, c as AppendOptions, a as AlgNode, I as IterationDirection } from './Alg-3ed1d42c.js';
|
|
3
|
+
import { P as Parsed } from './parseAlg-23e8b6cd.js';
|
|
4
|
+
import { s as KPuzzle, d as PuzzleGeometry, K as KPattern, t as KTransformation, u as PuzzleDescriptionString } from './KPattern-7494403f.js';
|
|
5
5
|
|
|
6
|
-
type FaceletMeshStickeringMask = "regular" | "dim" | "oriented" | "ignored" | "invisible";
|
|
6
|
+
type FaceletMeshStickeringMask = "regular" | "dim" | "oriented" | "experimentalOriented2" | "ignored" | "invisible";
|
|
7
7
|
type FaceletStickeringMask = {
|
|
8
8
|
mask: FaceletMeshStickeringMask;
|
|
9
9
|
hintMask?: FaceletMeshStickeringMask;
|
|
@@ -76,7 +76,7 @@ declare class UserVisibleErrorTracker extends SimpleTwistyPropSource<UserVisible
|
|
|
76
76
|
protected canReuseValue(_v1: UserVisibleError, _v2: UserVisibleError): boolean;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
type InputRecord =
|
|
79
|
+
type InputRecord = Record<string, any>;
|
|
80
80
|
type InputProps<T extends InputRecord> = {
|
|
81
81
|
[s in keyof T]: TwistyPropParent<T[s]>;
|
|
82
82
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { P as ExperimentalParsed } from '../parseAlg-
|
|
1
|
+
import { a as AlgNode, A as Alg, M as Move, c as AppendOptions, G as Grouping, C as Commutator, d as Conjugate, e as Pause, N as Newline, L as LineComment, b as AlgLeaf } from '../Alg-3ed1d42c.js';
|
|
2
|
+
export { g as AlgBranch, h as AppendCancelOptions, f as MoveModifications, P as PuzzleSpecificSimplifyOptions, Q as QuantumMove, S as SimplifyOptions } from '../Alg-3ed1d42c.js';
|
|
3
|
+
export { P as ExperimentalParsed } from '../parseAlg-23e8b6cd.js';
|
|
4
4
|
|
|
5
5
|
/** @deprecated */
|
|
6
6
|
type Unit = AlgNode;
|
|
@@ -80,4 +80,4 @@ declare function setAlgDebug(options: {
|
|
|
80
80
|
caretNISSNotationEnabled?: boolean;
|
|
81
81
|
}): void;
|
|
82
82
|
|
|
83
|
-
export { AlgBuilder, AlgCubingNetOptions, Example, TraversalDownUp, TraversalUp, Unit, experimentalAlgCubingNetLink, experimentalAppendMove, experimentalIs, functionFromTraversal, keyToMove, setAlgDebug };
|
|
83
|
+
export { Alg, AlgBuilder, AlgCubingNetOptions, AlgLeaf, AlgNode, Commutator, Conjugate, Example, Grouping, LineComment, Move, Newline, Pause, TraversalDownUp, TraversalUp, Unit, experimentalAlgCubingNetLink, experimentalAppendMove, experimentalIs, functionFromTraversal, keyToMove, setAlgDebug };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as KPattern } from '../KPattern-
|
|
2
|
-
import { B as BluetoothPuzzle } from '../bluetooth-puzzle-
|
|
3
|
-
export {
|
|
4
|
-
import {
|
|
1
|
+
import { K as KPattern } from '../KPattern-7494403f.js';
|
|
2
|
+
import { B as BluetoothPuzzle } from '../bluetooth-puzzle-c9c778f2.js';
|
|
3
|
+
export { A as MoveEvent, O as OrientationEvent } from '../bluetooth-puzzle-c9c778f2.js';
|
|
4
|
+
import { A as Alg, M as Move } from '../Alg-3ed1d42c.js';
|
|
5
5
|
|
|
6
6
|
declare function enableDebugLogging(enable: boolean): void;
|
|
7
7
|
|
|
@@ -153,4 +153,4 @@ type BluetoothTimer = GanTimer;
|
|
|
153
153
|
/** @category Timers */
|
|
154
154
|
declare function connectSmartTimer(options?: BluetoothConnectOptions): Promise<BluetoothTimer>;
|
|
155
155
|
|
|
156
|
-
export { BluetoothRobot, BluetoothTimer, GanCube, GiiKERCube, GoCube, KeyboardPuzzle, connectSmartPuzzle, connectSmartRobot, connectSmartTimer, debugKeyboardConnect, enableDebugLogging };
|
|
156
|
+
export { BluetoothPuzzle, BluetoothRobot, BluetoothTimer, GanCube, GiiKERCube, GoCube, KeyboardPuzzle, connectSmartPuzzle, connectSmartRobot, connectSmartTimer, debugKeyboardConnect, enableDebugLogging };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
binaryComponentsToReid3x3x3,
|
|
3
3
|
twizzleBinaryToBinaryComponents
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-NS47A66S.js";
|
|
5
5
|
import {
|
|
6
6
|
cube3x3x3,
|
|
7
7
|
puzzles
|
|
8
|
-
} from "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-ZQFNVOD5.js";
|
|
9
9
|
import {
|
|
10
10
|
experimental3x3x3KPuzzle
|
|
11
|
-
} from "../chunks/chunk-
|
|
11
|
+
} from "../chunks/chunk-CULFM3I2.js";
|
|
12
12
|
import {
|
|
13
13
|
KPattern
|
|
14
|
-
} from "../chunks/chunk-
|
|
14
|
+
} from "../chunks/chunk-VIEFLN2D.js";
|
|
15
15
|
import {
|
|
16
16
|
Alg,
|
|
17
17
|
Move,
|