cubing 0.24.0-pre2 → 0.24.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/dist/esm/{2x2x2.kpuzzle.json-U5KOZCMU.js → 2x2x2.kpuzzle.json-RUB44MJV.js} +2 -2
- package/dist/esm/2x2x2.kpuzzle.json-RUB44MJV.js.map +7 -0
- package/dist/esm/{2x2x2.sgs.json-UAYPCQVL.js → 2x2x2.sgs.json-TASFAQNY.js} +3 -3
- package/dist/esm/{2x2x2.sgs.json-UAYPCQVL.js.map → 2x2x2.sgs.json-TASFAQNY.js.map} +0 -0
- package/dist/esm/{chunk-REMJV2GO.js → 3d-dynamic-inside-RSDMFS4G.js} +23 -420
- package/dist/esm/3d-dynamic-inside-RSDMFS4G.js.map +7 -0
- package/dist/esm/bluetooth/index.js +3 -3
- package/dist/esm/chunk-27MCV5LC.js +423 -0
- package/dist/esm/chunk-27MCV5LC.js.map +7 -0
- package/dist/esm/{chunk-NPK6Z4AU.js → chunk-3SURT6S2.js} +2 -2
- package/dist/esm/{chunk-NPK6Z4AU.js.map → chunk-3SURT6S2.js.map} +0 -0
- package/dist/esm/{chunk-ZLIK3DZT.js → chunk-54HT7B4M.js} +118 -92
- package/dist/esm/chunk-54HT7B4M.js.map +7 -0
- package/dist/esm/{chunk-TNRZDNGH.js → chunk-B27E6KTE.js} +121 -115
- package/dist/esm/chunk-B27E6KTE.js.map +7 -0
- package/dist/esm/{chunk-KCRFOAR4.js → chunk-BBEJTW6Z.js} +3 -3
- package/dist/esm/{chunk-KCRFOAR4.js.map → chunk-BBEJTW6Z.js.map} +0 -0
- package/dist/esm/{chunk-TB4D4E2W.js → chunk-EA4KWT7Z.js} +3 -3
- package/dist/esm/chunk-EA4KWT7Z.js.map +7 -0
- package/dist/esm/{chunk-7OPCF2OL.js → chunk-GBIDMAJS.js} +2 -2
- package/dist/esm/{chunk-7OPCF2OL.js.map → chunk-GBIDMAJS.js.map} +0 -0
- package/dist/esm/{chunk-YN7E5RGM.js → chunk-LR6VCMD2.js} +3 -3
- package/dist/esm/{chunk-YN7E5RGM.js.map → chunk-LR6VCMD2.js.map} +0 -0
- package/dist/esm/{chunk-NV5ESXTN.js → chunk-SPTKCRT5.js} +3 -3
- package/dist/esm/{chunk-NV5ESXTN.js.map → chunk-SPTKCRT5.js.map} +0 -0
- package/dist/esm/{chunk-4IUYLRHT.js → chunk-U2TSTTDG.js} +12 -1
- package/dist/esm/chunk-U2TSTTDG.js.map +7 -0
- package/dist/esm/{chunk-J2U2GRS4.js → chunk-ZDALYMGF.js} +2 -2
- package/dist/esm/chunk-ZDALYMGF.js.map +7 -0
- package/dist/esm/{clock.kpuzzle.json-J3YBOI3G.js → clock.kpuzzle.json-BQKNKV3G.js} +4 -4
- package/dist/esm/clock.kpuzzle.json-BQKNKV3G.js.map +7 -0
- package/dist/esm/{entry-PHAJAE4E.js → entry-VNBE3GIX.js} +18 -18
- package/dist/esm/entry-VNBE3GIX.js.map +7 -0
- package/dist/esm/{fto.sgs.json-VO6HST2V.js → fto.sgs.json-RZ2BQGRG.js} +3 -3
- package/dist/esm/{fto.sgs.json-VO6HST2V.js.map → fto.sgs.json-RZ2BQGRG.js.map} +0 -0
- package/dist/esm/kpuzzle/index.js +3 -1
- package/dist/esm/{megaminx.sgs.json-R3MK4HXM.js → megaminx.sgs.json-3UELYHNZ.js} +4 -4
- package/dist/esm/{3d-NFF7OGTI.js.map → megaminx.sgs.json-3UELYHNZ.js.map} +0 -0
- package/dist/esm/{module-entry-UYTOFYBC.js → module-entry-MKJ6SWPL.js} +2 -2
- package/dist/esm/{module-entry-UYTOFYBC.js.map → module-entry-MKJ6SWPL.js.map} +0 -0
- package/dist/esm/notation/index.js +6 -4
- package/dist/esm/protocol/index.js +2 -2
- package/dist/esm/puzzle-geometry/index.js +1 -1
- package/dist/esm/puzzles/index.js +2 -2
- package/dist/esm/{pyraminx.sgs.json-R3J3JHMV.js → pyraminx.sgs.json-6KZV2YF7.js} +4 -4
- package/dist/esm/{megaminx.sgs.json-R3MK4HXM.js.map → pyraminx.sgs.json-6KZV2YF7.js.map} +0 -0
- package/dist/esm/scramble/index.js +4 -4
- package/dist/esm/{scramble_444-F3YANDPO.js → scramble_444-WHAZBEON.js} +6 -5
- package/dist/esm/scramble_444-WHAZBEON.js.map +7 -0
- package/dist/esm/search/index.js +4 -4
- package/dist/esm/{skewb.sgs.json-T6CO36WU.js → skewb.sgs.json-QVGBEYZV.js} +4 -4
- package/dist/esm/{pyraminx.sgs.json-R3J3JHMV.js.map → skewb.sgs.json-QVGBEYZV.js.map} +0 -0
- package/dist/esm/{sq1-hyperorbit.kpuzzle.json-AWDGN4ZW.js → sq1-hyperorbit.kpuzzle.json-4XS5YACO.js} +3 -3
- package/dist/esm/sq1-hyperorbit.kpuzzle.json-4XS5YACO.js.map +7 -0
- package/dist/esm/twisty/index.js +267 -139
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/esm/{worker-inside-generated-string-6YDSDSRJ.js → worker-inside-generated-string-K4NE6VX5.js} +24 -24
- package/dist/esm/worker-inside-generated-string-K4NE6VX5.js.map +7 -0
- package/dist/types/kpuzzle/KPuzzle.d.ts +5 -0
- package/dist/types/kpuzzle/KPuzzleDefinition.d.ts +1 -1
- package/dist/types/kpuzzle/KState.d.ts +2 -0
- package/dist/types/kpuzzle/KTransformation.d.ts +3 -0
- package/dist/types/kpuzzle/calculate.d.ts +1 -1
- package/dist/types/kpuzzle/index.d.ts +2 -2
- package/dist/types/notation/CountMoves.d.ts +1 -0
- package/dist/types/notation/index.d.ts +2 -2
- package/dist/types/puzzles/PuzzleLoader.d.ts +1 -0
- package/dist/types/puzzles/async/async-pg3d.d.ts +23 -6
- package/dist/types/puzzles/async/lazy-cached.d.ts +1 -0
- package/dist/types/puzzles/implementations/fto/index.d.ts +11 -2
- package/dist/types/puzzles/implementations/megaminx/index.d.ts +11 -2
- package/dist/types/puzzles/implementations/pyraminx/index.d.ts +7 -2
- package/dist/types/search/worker-inside-generated-string.d.ts +1 -1
- package/dist/types/twisty/heavy-code-imports/3d.d.ts +1 -1
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/{3d.d.ts → 3d-dynamic-inside.d.ts} +0 -0
- package/dist/types/twisty/index.d.ts +1 -2
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts +1 -0
- package/dist/types/twisty/views/3D/Twisty3DScene.d.ts +6 -5
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts +2 -2
- package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts +2 -2
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts +1 -0
- package/dist/types/twisty/views/TwistyPlayer.d.ts +2 -1
- package/dist/types/twisty/views/twizzle/TwizzleLink.css.d.ts +2 -0
- package/dist/types/twisty/views/twizzle/TwizzleLink.d.ts +9 -0
- package/dist/types/twisty/views/twizzle/url-params.d.ts +18 -0
- package/package.json +2 -1
- package/dist/esm/2x2x2.kpuzzle.json-U5KOZCMU.js.map +0 -7
- package/dist/esm/3d-NFF7OGTI.js +0 -21
- package/dist/esm/chunk-4IUYLRHT.js.map +0 -7
- package/dist/esm/chunk-J2U2GRS4.js.map +0 -7
- package/dist/esm/chunk-REMJV2GO.js.map +0 -7
- package/dist/esm/chunk-TB4D4E2W.js.map +0 -7
- package/dist/esm/chunk-TNRZDNGH.js.map +0 -7
- package/dist/esm/chunk-ZLIK3DZT.js.map +0 -7
- package/dist/esm/clock.kpuzzle.json-J3YBOI3G.js.map +0 -7
- package/dist/esm/entry-PHAJAE4E.js.map +0 -7
- package/dist/esm/scramble_444-F3YANDPO.js.map +0 -7
- package/dist/esm/skewb.sgs.json-T6CO36WU.js.map +0 -7
- package/dist/esm/sq1-hyperorbit.kpuzzle.json-AWDGN4ZW.js.map +0 -7
- package/dist/esm/worker-inside-generated-string-6YDSDSRJ.js.map +0 -7
- package/dist/types/.DS_Store +0 -0
- package/dist/types/puzzles/async/lazy-cached-kpuzzle.d.ts +0 -2
|
@@ -15,11 +15,16 @@ export declare class KPuzzle {
|
|
|
15
15
|
identityTransformation(): KTransformation;
|
|
16
16
|
moveToTransformation(move: Move | string): KTransformation;
|
|
17
17
|
algToTransformation(alg: Alg | string): KTransformation;
|
|
18
|
+
/** @deprecated */
|
|
18
19
|
toTransformation(source: KTransformationSource): KTransformation;
|
|
19
20
|
startState(): KState;
|
|
20
21
|
canConvertStateToUniqueTransformation(): boolean;
|
|
22
|
+
/** @deprecated */
|
|
21
23
|
get state(): never;
|
|
24
|
+
/** @deprecated */
|
|
22
25
|
reset(): never;
|
|
26
|
+
/** @deprecated */
|
|
23
27
|
applyMove(_move: Move): never;
|
|
28
|
+
/** @deprecated */
|
|
24
29
|
applyAlg(_alg: Alg): never;
|
|
25
30
|
}
|
|
@@ -8,9 +8,11 @@ export declare class KState {
|
|
|
8
8
|
readonly stateData: KStateData;
|
|
9
9
|
constructor(kpuzzle: KPuzzle, stateData: KStateData);
|
|
10
10
|
static fromTransformation(transformation: KTransformation): KState;
|
|
11
|
+
/** @deprecated */
|
|
11
12
|
apply(source: KTransformationSource): KState;
|
|
12
13
|
applyTransformation(transformation: KTransformation): KState;
|
|
13
14
|
applyMove(move: Move | string): KState;
|
|
14
15
|
applyAlg(alg: Alg | string): KState;
|
|
16
|
+
/** @deprecated */
|
|
15
17
|
experimentalToTransformation(): KTransformation | null;
|
|
16
18
|
}
|
|
@@ -9,7 +9,10 @@ export declare class KTransformation {
|
|
|
9
9
|
constructor(kpuzzle: KPuzzle, transformationData: KTransformationData);
|
|
10
10
|
invert(): KTransformation;
|
|
11
11
|
isIdentityTransformation(): boolean;
|
|
12
|
+
/** @deprecated */
|
|
13
|
+
static experimentalConstructIdentity(kpuzzle: KPuzzle): KTransformation;
|
|
12
14
|
isIdentical(t2: KTransformation): boolean;
|
|
15
|
+
/** @deprecated */
|
|
13
16
|
apply(source: KTransformationSource): KTransformation;
|
|
14
17
|
applyTransformation(t2: KTransformation): KTransformation;
|
|
15
18
|
applyMove(move: Move | string): KTransformation;
|
|
@@ -13,4 +13,4 @@ export declare function invertTransformation(kpuzzle: KPuzzle, transformationDat
|
|
|
13
13
|
export declare function repeatTransformationUncached(kpuzzle: KPuzzle, transformationData: KTransformationData, amount: number): KTransformationData;
|
|
14
14
|
export declare const algToTransformation: (alg: Alg, kpuzzle: KPuzzle) => KTransformation;
|
|
15
15
|
export declare function canConvertStateToUniqueTransformationUncached(definition: KPuzzleDefinition): boolean;
|
|
16
|
-
export declare function transformationRepetitionOrder(
|
|
16
|
+
export declare function transformationRepetitionOrder(definition: KPuzzleDefinition, transformation: KTransformation): number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { KPuzzle } from "./KPuzzle";
|
|
2
|
-
export type {
|
|
3
|
-
export { KPuzzleDefinition, KTransformationData, KStateData, } from "./KPuzzleDefinition";
|
|
2
|
+
export type { KPuzzleDefinition, KStateData, KTransformationData, } from "./KPuzzleDefinition";
|
|
4
3
|
export { KState } from "./KState";
|
|
4
|
+
export { KTransformation } from "./KTransformation";
|
|
5
5
|
import { KPuzzle } from "./KPuzzle";
|
|
6
6
|
export declare const experimental3x3x3KPuzzle: KPuzzle;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { countMoves } from "./CountMoves";
|
|
2
|
-
export { countAnimatedLeaves } from "./CountAnimatedLeaves";
|
|
1
|
+
export { countMoves as experimentalCountMoves, countQuantumMoves as experimentalCountQuantumMoves, } from "./CountMoves";
|
|
2
|
+
export { countAnimatedLeaves as experimentalCountAnimatedLeaves } from "./CountAnimatedLeaves";
|
|
@@ -1,14 +1,31 @@
|
|
|
1
1
|
import { KPuzzle } from "../../kpuzzle";
|
|
2
2
|
import type { PuzzleGeometry } from "../../puzzle-geometry";
|
|
3
|
+
import type { ExperimentalStickering } from "../../twisty";
|
|
3
4
|
import type { PuzzleLoader } from "../PuzzleLoader";
|
|
5
|
+
import type { PuzzleAppearance } from "../stickerings/appearance";
|
|
6
|
+
import { cubeStickerings } from "../stickerings/cube-stickerings";
|
|
4
7
|
export declare function asyncGetPuzzleGeometry(puzzleName: string): Promise<PuzzleGeometry>;
|
|
5
|
-
export declare function asyncGetKPuzzle(puzzleName: string): Promise<KPuzzle>;
|
|
6
|
-
export declare function asyncLazyKPuzzleGetter(puzzleName: string): () => Promise<KPuzzle>;
|
|
7
|
-
|
|
8
|
+
export declare function asyncGetKPuzzle(pgPromise: Promise<PuzzleGeometry>, puzzleName: string): Promise<KPuzzle>;
|
|
9
|
+
export declare function asyncLazyKPuzzleGetter(pgPromise: Promise<PuzzleGeometry>, puzzleName: string): () => Promise<KPuzzle>;
|
|
10
|
+
declare type PuzzleLoaderConstructorArgs = {
|
|
11
|
+
id: string;
|
|
12
|
+
fullName: string;
|
|
8
13
|
inventedBy?: string[];
|
|
9
14
|
inventionYear?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare
|
|
15
|
+
};
|
|
16
|
+
export declare class PGPuzzleLoader implements PuzzleLoader {
|
|
17
|
+
#private;
|
|
18
|
+
id: string;
|
|
19
|
+
fullName: string;
|
|
12
20
|
inventedBy?: string[];
|
|
13
21
|
inventionYear?: number;
|
|
14
|
-
|
|
22
|
+
constructor(info: PuzzleLoaderConstructorArgs);
|
|
23
|
+
pg(): Promise<PuzzleGeometry>;
|
|
24
|
+
kpuzzle(): Promise<KPuzzle>;
|
|
25
|
+
svg(): Promise<string>;
|
|
26
|
+
}
|
|
27
|
+
export declare class CubePGPuzzleLoader extends PGPuzzleLoader {
|
|
28
|
+
appearance(stickering: ExperimentalStickering): Promise<PuzzleAppearance>;
|
|
29
|
+
stickerings: typeof cubeStickerings;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getCached<T>(getValue: () => Promise<T>): () => Promise<T>;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ExperimentalStickering } from "../../../twisty";
|
|
2
|
+
import { PGPuzzleLoader } from "../../async/async-pg3d";
|
|
3
|
+
import type { PuzzleAppearance } from "../../stickerings/appearance";
|
|
4
|
+
import { ftoStickerings } from "../../stickerings/fto-stickerings";
|
|
5
|
+
declare class FTOPuzzleLoader extends PGPuzzleLoader {
|
|
6
|
+
constructor();
|
|
7
|
+
appearance(stickering: ExperimentalStickering): Promise<PuzzleAppearance>;
|
|
8
|
+
stickerings: typeof ftoStickerings;
|
|
9
|
+
}
|
|
10
|
+
export declare const fto: FTOPuzzleLoader;
|
|
11
|
+
export {};
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { ExperimentalStickering } from "../../../twisty";
|
|
2
|
+
import { PGPuzzleLoader } from "../../async/async-pg3d";
|
|
3
|
+
import type { PuzzleAppearance } from "../../stickerings/appearance";
|
|
4
|
+
import { megaminxStickerings } from "../../stickerings/megaminx-stickerings";
|
|
5
|
+
declare class MegaminxPuzzleLoader extends PGPuzzleLoader {
|
|
6
|
+
constructor();
|
|
7
|
+
appearance(stickering: ExperimentalStickering): Promise<PuzzleAppearance>;
|
|
8
|
+
stickerings: typeof megaminxStickerings;
|
|
9
|
+
}
|
|
10
|
+
export declare const megaminx: MegaminxPuzzleLoader;
|
|
11
|
+
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { PGPuzzleLoader } from "../../async/async-pg3d";
|
|
2
|
+
declare class PyraminxPuzzleLoader extends PGPuzzleLoader {
|
|
3
|
+
constructor();
|
|
4
|
+
svg: () => Promise<string>;
|
|
5
|
+
}
|
|
6
|
+
export declare const pyraminx: PyraminxPuzzleLoader;
|
|
7
|
+
export {};
|