cubing 0.55.2 → 0.56.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/bin/scramble.js +1 -0
- package/dist/bin/scramble.js.map +2 -2
- package/dist/lib/cubing/{PuzzleLoader-DGpDr4U9.d.ts → PuzzleLoader-DWqO9l1G.d.ts} +3 -2
- package/dist/lib/cubing/alg/index.d.ts +3 -3
- package/dist/lib/cubing/bluetooth/index.d.ts +7 -7
- package/dist/lib/cubing/bluetooth/index.js +7 -6
- package/dist/lib/cubing/bluetooth/index.js.map +2 -2
- package/dist/lib/cubing/{bluetooth-puzzle-C097rA5h.d.ts → bluetooth-puzzle-C6TIIh-Z.d.ts} +1 -1
- package/dist/lib/cubing/chunks/{chunk-Y5U55NHQ.js → chunk-KO64SKMG.js} +3 -3
- package/dist/lib/cubing/chunks/{chunk-WELOEBCE.js → chunk-M4T7GO54.js} +77 -83
- package/dist/lib/cubing/chunks/chunk-M4T7GO54.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-PJH5IVDC.js → chunk-MA47PABE.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-MFK4M6PV.js → chunk-WOAANT6Y.js} +23 -14
- package/dist/lib/cubing/chunks/chunk-WOAANT6Y.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-G3WJVG4K.js → chunk-XKTLEY2R.js} +2 -2
- package/dist/lib/cubing/chunks/chunk-XKTLEY2R.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-ZOU73IV5.js → chunk-XPH22PGR.js} +1 -1
- package/dist/lib/cubing/chunks/{chunk-2QDTMC3W.js → chunk-YFGRXDD4.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-SGPKF5IH.js → chunk-YQVHA4F6.js} +1 -1
- package/dist/lib/cubing/chunks/{inside-DZMTYTHV.js → inside-KAVAZETT.js} +10 -10
- package/dist/lib/cubing/chunks/{puzzles-dynamic-side-events-QIADTLKJ.js → puzzles-dynamic-side-events-AHFPWEBD.js} +24 -143
- package/dist/lib/cubing/chunks/puzzles-dynamic-side-events-AHFPWEBD.js.map +7 -0
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-EGIM6IYZ.js → search-dynamic-sgs-side-events-FTWMZ5ZJ.js} +3 -3
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-R2TXOWXD.js → search-dynamic-sgs-unofficial-ZYGVRJQK.js} +3 -3
- package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-6XXEHLWN.js → search-dynamic-solve-4x4x4-6MKLH6KJ.js} +5 -5
- package/dist/lib/cubing/chunks/search-worker-entry.js +1 -1
- package/dist/lib/cubing/chunks/{twisty-dynamic-3d-H7YMZQPB.js → twisty-dynamic-3d-QGRCHB6L.js} +47 -40
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-QGRCHB6L.js.map +7 -0
- package/dist/lib/cubing/chunks/{twsearch-ZJ4WTIBT.js → twsearch-ITWEA5PO.js} +3 -3
- package/dist/lib/cubing/chunks/twsearch-ITWEA5PO.js.map +7 -0
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-NHUYB5UW-HHHVHFI5.js +10 -0
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-NHUYB5UW-HHHVHFI5.js.map +7 -0
- package/dist/lib/cubing/{index-3pTbhXFM.d.ts → index-g0IQg962.d.ts} +1 -1
- package/dist/lib/cubing/kpuzzle/index.d.ts +2 -2
- package/dist/lib/cubing/notation/index.d.ts +2 -2
- package/dist/lib/cubing/notation/index.js +2 -2
- package/dist/lib/cubing/protocol/index.d.ts +2 -2
- package/dist/lib/cubing/protocol/index.js +2 -2
- package/dist/lib/cubing/puzzle-geometry/index.d.ts +3 -3
- package/dist/lib/cubing/puzzle-geometry/index.js +167 -52
- package/dist/lib/cubing/puzzle-geometry/index.js.map +2 -2
- package/dist/lib/cubing/puzzles/index.d.ts +2 -2
- package/dist/lib/cubing/puzzles/index.js +2 -2
- package/dist/lib/cubing/scramble/index.d.ts +3 -3
- package/dist/lib/cubing/scramble/index.js +4 -4
- package/dist/lib/cubing/search/index.d.ts +3 -3
- package/dist/lib/cubing/search/index.js +4 -4
- package/dist/lib/cubing/stream/index.d.ts +3 -3
- package/dist/lib/cubing/twisty/index.d.ts +3 -3
- package/dist/lib/cubing/twisty/index.js +23 -18
- package/dist/lib/cubing/twisty/index.js.map +3 -3
- package/package.json +5 -5
- package/dist/lib/cubing/chunks/chunk-G3WJVG4K.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-MFK4M6PV.js.map +0 -7
- package/dist/lib/cubing/chunks/chunk-WELOEBCE.js.map +0 -7
- package/dist/lib/cubing/chunks/puzzles-dynamic-side-events-QIADTLKJ.js.map +0 -7
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-H7YMZQPB.js.map +0 -7
- package/dist/lib/cubing/chunks/twsearch-ZJ4WTIBT.js.map +0 -7
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-FWKR4AQ6-XETKNJAN.js +0 -10
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-FWKR4AQ6-XETKNJAN.js.map +0 -7
- /package/dist/lib/cubing/chunks/{chunk-Y5U55NHQ.js.map → chunk-KO64SKMG.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-PJH5IVDC.js.map → chunk-MA47PABE.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-ZOU73IV5.js.map → chunk-XPH22PGR.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-2QDTMC3W.js.map → chunk-YFGRXDD4.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-SGPKF5IH.js.map → chunk-YQVHA4F6.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{inside-DZMTYTHV.js.map → inside-KAVAZETT.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-EGIM6IYZ.js.map → search-dynamic-sgs-side-events-FTWMZ5ZJ.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-R2TXOWXD.js.map → search-dynamic-sgs-unofficial-ZYGVRJQK.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-6XXEHLWN.js.map → search-dynamic-solve-4x4x4-6MKLH6KJ.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as PuzzleID, t as PuzzleLoader, v as KPuzzle, d as PuzzleGeometry, E as ExperimentalStickering, w as StickeringMask, x as PuzzleSpecificSimplifyOptions, A as AlgLeaf } from '../PuzzleLoader-
|
|
2
|
-
import 'three';
|
|
1
|
+
import { u as PuzzleID, t as PuzzleLoader, v as KPuzzle, d as PuzzleGeometry, E as ExperimentalStickering, w as StickeringMask, x as PuzzleSpecificSimplifyOptions, A as AlgLeaf } from '../PuzzleLoader-DWqO9l1G.js';
|
|
2
|
+
import 'three/src/Three.js';
|
|
3
3
|
|
|
4
4
|
interface EventInfo {
|
|
5
5
|
puzzleID: PuzzleID;
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
twizzleEvents,
|
|
7
7
|
wcaEventInfo,
|
|
8
8
|
wcaEvents
|
|
9
|
-
} from "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-
|
|
9
|
+
} from "../chunks/chunk-WOAANT6Y.js";
|
|
10
|
+
import "../chunks/chunk-YQVHA4F6.js";
|
|
11
11
|
import "../chunks/chunk-TQF5J7MH.js";
|
|
12
12
|
import "../chunks/chunk-2SBMIHZV.js";
|
|
13
13
|
export {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { r as randomScrambleForEvent } from '../index-
|
|
2
|
-
import '../PuzzleLoader-
|
|
3
|
-
import 'three';
|
|
1
|
+
export { r as randomScrambleForEvent } from '../index-g0IQg962.js';
|
|
2
|
+
import '../PuzzleLoader-DWqO9l1G.js';
|
|
3
|
+
import 'three/src/Three.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunks/chunk-NAPITA3L.js";
|
|
2
2
|
import {
|
|
3
3
|
randomScrambleForEvent
|
|
4
|
-
} from "../chunks/chunk-
|
|
5
|
-
import "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-XPH22PGR.js";
|
|
5
|
+
import "../chunks/chunk-KO64SKMG.js";
|
|
6
6
|
import "../chunks/chunk-7GUL3OBQ.js";
|
|
7
7
|
import "../chunks/chunk-RDSQRW3G.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-WOAANT6Y.js";
|
|
9
|
+
import "../chunks/chunk-YQVHA4F6.js";
|
|
10
10
|
import "../chunks/chunk-TQF5J7MH.js";
|
|
11
11
|
import "../chunks/chunk-2SBMIHZV.js";
|
|
12
12
|
export {
|
|
@@ -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-
|
|
2
|
-
import { K as KPattern } from '../PuzzleLoader-
|
|
3
|
-
import 'three';
|
|
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-g0IQg962.js';
|
|
2
|
+
import { K as KPattern } from '../PuzzleLoader-DWqO9l1G.js';
|
|
3
|
+
import 'three/src/Three.js';
|
|
4
4
|
|
|
5
5
|
declare function random333Pattern(): Promise<KPattern>;
|
|
6
6
|
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
solvePyraminx,
|
|
7
7
|
solveSkewb,
|
|
8
8
|
solveTwsearch
|
|
9
|
-
} from "../chunks/chunk-
|
|
9
|
+
} from "../chunks/chunk-XPH22PGR.js";
|
|
10
10
|
import {
|
|
11
11
|
random333Pattern
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-KO64SKMG.js";
|
|
13
13
|
import "../chunks/chunk-7GUL3OBQ.js";
|
|
14
14
|
import "../chunks/chunk-RDSQRW3G.js";
|
|
15
|
-
import "../chunks/chunk-
|
|
16
|
-
import "../chunks/chunk-
|
|
15
|
+
import "../chunks/chunk-WOAANT6Y.js";
|
|
16
|
+
import "../chunks/chunk-YQVHA4F6.js";
|
|
17
17
|
import "../chunks/chunk-TQF5J7MH.js";
|
|
18
18
|
import "../chunks/chunk-2SBMIHZV.js";
|
|
19
19
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../PuzzleLoader-
|
|
2
|
-
import { A as AlgLeafEvent, O as OrientationEvent } from '../bluetooth-puzzle-
|
|
3
|
-
import 'three';
|
|
1
|
+
import '../PuzzleLoader-DWqO9l1G.js';
|
|
2
|
+
import { A as AlgLeafEvent, O as OrientationEvent } from '../bluetooth-puzzle-C6TIIh-Z.js';
|
|
3
|
+
import 'three/src/Three.js';
|
|
4
4
|
|
|
5
5
|
interface ProxyMoveEvent {
|
|
6
6
|
event: "move";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { y as AlgIndexer, v as KPuzzle, s as Alg, M as Move, T as Timestamp, K as KPattern, z as KTransformation, D as Duration, w as StickeringMask } from '../PuzzleLoader-
|
|
2
|
-
export { H as BackViewLayout, N as EXPERIMENTAL_PROP_NO_VALUE, L as ExperimentalMillisecondTimestamp, E as ExperimentalStickering, u as PuzzleID, F as TwistyAlgEditor, C as TwistyAlgViewer, B as TwistyPlayer, G as TwistyPlayerConfig, J as TwizzleLink, V as VisualizationFormat, I as backViewLayouts } from '../PuzzleLoader-
|
|
3
|
-
import 'three';
|
|
1
|
+
import { y as AlgIndexer, v as KPuzzle, s as Alg, M as Move, T as Timestamp, K as KPattern, z as KTransformation, D as Duration, w as StickeringMask } from '../PuzzleLoader-DWqO9l1G.js';
|
|
2
|
+
export { H as BackViewLayout, N as EXPERIMENTAL_PROP_NO_VALUE, L as ExperimentalMillisecondTimestamp, E as ExperimentalStickering, u as PuzzleID, F as TwistyAlgEditor, C as TwistyAlgViewer, B as TwistyPlayer, G as TwistyPlayerConfig, J as TwizzleLink, V as VisualizationFormat, I as backViewLayouts } from '../PuzzleLoader-DWqO9l1G.js';
|
|
3
|
+
import 'three/src/Three.js';
|
|
4
4
|
|
|
5
5
|
declare const twistyDebugGlobals: {
|
|
6
6
|
shareAllNewRenderers: "auto" | "always" | "never";
|
|
@@ -8,31 +8,30 @@ import {
|
|
|
8
8
|
RenderScheduler,
|
|
9
9
|
SimpleTwistyPropSource,
|
|
10
10
|
StaleDropper,
|
|
11
|
-
THREEJS,
|
|
12
11
|
Twisty3DVantage,
|
|
13
12
|
TwistyPropDerived,
|
|
14
13
|
TwistyPropSource,
|
|
14
|
+
bulk3DCode,
|
|
15
15
|
cssStyleSheetShim,
|
|
16
16
|
customElementsShim,
|
|
17
|
-
proxy3D,
|
|
18
17
|
rawRenderPooled,
|
|
19
18
|
setCameraFromOrbitCoordinates,
|
|
20
19
|
setTwistyDebug
|
|
21
|
-
} from "../chunks/chunk-
|
|
20
|
+
} from "../chunks/chunk-M4T7GO54.js";
|
|
22
21
|
import {
|
|
23
22
|
countAnimatedLeaves,
|
|
24
23
|
countLeavesInExpansionForSimultaneousMoveIndexer,
|
|
25
24
|
countMetricMoves
|
|
26
|
-
} from "../chunks/chunk-
|
|
25
|
+
} from "../chunks/chunk-MA47PABE.js";
|
|
27
26
|
import {
|
|
28
27
|
cube3x3x3,
|
|
29
28
|
puzzles
|
|
30
|
-
} from "../chunks/chunk-
|
|
29
|
+
} from "../chunks/chunk-WOAANT6Y.js";
|
|
31
30
|
import {
|
|
32
31
|
customPGPuzzleLoader,
|
|
33
32
|
getPartialAppendOptionsForPuzzleSpecificSimplifyOptions,
|
|
34
33
|
getPieceStickeringMask
|
|
35
|
-
} from "../chunks/chunk-
|
|
34
|
+
} from "../chunks/chunk-YQVHA4F6.js";
|
|
36
35
|
import "../chunks/chunk-TQF5J7MH.js";
|
|
37
36
|
import {
|
|
38
37
|
Alg,
|
|
@@ -821,7 +820,7 @@ var Twisty2DSceneWrapper = class extends ManagedCustomElement {
|
|
|
821
820
|
}
|
|
822
821
|
#cachedScene;
|
|
823
822
|
async scene() {
|
|
824
|
-
return this.#cachedScene ??= (async () => new (await
|
|
823
|
+
return this.#cachedScene ??= (async () => new (await bulk3DCode()).ThreeScene())();
|
|
825
824
|
}
|
|
826
825
|
scheduleRender() {
|
|
827
826
|
this.#currentTwisty2DPuzzleWrapper?.scheduleRender();
|
|
@@ -990,7 +989,7 @@ var Twisty3DPuzzleWrapper = class extends EventTarget {
|
|
|
990
989
|
#cachedTwisty3DPuzzle = null;
|
|
991
990
|
async twisty3DPuzzle() {
|
|
992
991
|
return this.#cachedTwisty3DPuzzle ??= (async () => {
|
|
993
|
-
const proxyPromise =
|
|
992
|
+
const proxyPromise = bulk3DCode();
|
|
994
993
|
if (this.puzzleLoader.id === "3x3x3" && this.visualizationStrategy === "Cube3D") {
|
|
995
994
|
const [
|
|
996
995
|
foundationSprite,
|
|
@@ -1128,12 +1127,15 @@ var Twisty3DSceneWrapper = class extends ManagedCustomElement {
|
|
|
1128
1127
|
return;
|
|
1129
1128
|
}
|
|
1130
1129
|
const raycasterPromise = (async () => {
|
|
1131
|
-
const [camera,
|
|
1130
|
+
const [camera, { ThreeRaycaster, ThreeVector2 }] = await Promise.all([
|
|
1132
1131
|
e.detail.cameraPromise,
|
|
1133
|
-
|
|
1132
|
+
(async () => {
|
|
1133
|
+
const { ThreeRaycaster: ThreeRaycaster2, ThreeVector2: ThreeVector22 } = await bulk3DCode();
|
|
1134
|
+
return { ThreeRaycaster: ThreeRaycaster2, ThreeVector2: ThreeVector22 };
|
|
1135
|
+
})()
|
|
1134
1136
|
]);
|
|
1135
|
-
const raycaster = new
|
|
1136
|
-
const mouse = new (
|
|
1137
|
+
const raycaster = new ThreeRaycaster();
|
|
1138
|
+
const mouse = new ThreeVector2(
|
|
1137
1139
|
e.detail.pressInfo.normalizedX,
|
|
1138
1140
|
e.detail.pressInfo.normalizedY
|
|
1139
1141
|
);
|
|
@@ -1147,7 +1149,7 @@ var Twisty3DSceneWrapper = class extends ManagedCustomElement {
|
|
|
1147
1149
|
}
|
|
1148
1150
|
#cachedScene;
|
|
1149
1151
|
async scene() {
|
|
1150
|
-
return this.#cachedScene ??= (async () => new (await
|
|
1152
|
+
return this.#cachedScene ??= (async () => new (await bulk3DCode()).ThreeScene())();
|
|
1151
1153
|
}
|
|
1152
1154
|
#vantages = /* @__PURE__ */ new Set();
|
|
1153
1155
|
addVantage(vantage) {
|
|
@@ -1741,7 +1743,7 @@ customElementsShim.define("twisty-scrubber", TwistyScrubber);
|
|
|
1741
1743
|
var cachedCamera = null;
|
|
1742
1744
|
async function screenshot(model, options) {
|
|
1743
1745
|
const [
|
|
1744
|
-
{
|
|
1746
|
+
{ ThreePerspectiveCamera, ThreeScene },
|
|
1745
1747
|
puzzleLoader,
|
|
1746
1748
|
visualizationStrategy,
|
|
1747
1749
|
_stickering,
|
|
@@ -1751,7 +1753,10 @@ async function screenshot(model, options) {
|
|
|
1751
1753
|
_legacyPosition,
|
|
1752
1754
|
orbitCoordinates
|
|
1753
1755
|
] = await Promise.all([
|
|
1754
|
-
|
|
1756
|
+
(async () => {
|
|
1757
|
+
const { ThreePerspectiveCamera: ThreePerspectiveCamera2, ThreeScene: ThreeScene2 } = await bulk3DCode();
|
|
1758
|
+
return { ThreePerspectiveCamera: ThreePerspectiveCamera2, ThreeScene: ThreeScene2 };
|
|
1759
|
+
})(),
|
|
1755
1760
|
await model.puzzleLoader.get(),
|
|
1756
1761
|
await model.visualizationStrategy.get(),
|
|
1757
1762
|
await model.twistySceneModel.stickeringRequest.get(),
|
|
@@ -1763,9 +1768,9 @@ async function screenshot(model, options) {
|
|
|
1763
1768
|
const height = options?.height ?? 2048;
|
|
1764
1769
|
const aspectRatio = width / height;
|
|
1765
1770
|
const camera = cachedCamera ??= await (async () => {
|
|
1766
|
-
return new
|
|
1771
|
+
return new ThreePerspectiveCamera(20, aspectRatio, 0.1, 20);
|
|
1767
1772
|
})();
|
|
1768
|
-
const scene = new
|
|
1773
|
+
const scene = new ThreeScene();
|
|
1769
1774
|
const twisty3DWrapper = new Twisty3DPuzzleWrapper(
|
|
1770
1775
|
model,
|
|
1771
1776
|
{ scheduleRender: () => {
|
|
@@ -3363,7 +3368,7 @@ var InitialHintFaceletsAnimationProp = class extends SimpleTwistyPropSource {
|
|
|
3363
3368
|
// src/cubing/twisty/model/props/puzzle/display/SpriteProp.ts
|
|
3364
3369
|
var cachedLoader = null;
|
|
3365
3370
|
async function loader() {
|
|
3366
|
-
return cachedLoader ??= new (await
|
|
3371
|
+
return cachedLoader ??= new (await bulk3DCode()).ThreeTextureLoader();
|
|
3367
3372
|
}
|
|
3368
3373
|
var SpriteProp = class extends TwistyPropDerived {
|
|
3369
3374
|
async derive(inputs) {
|