cubing 0.53.12 → 0.53.14
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/{PuzzleLoader-BN2CTwbG.d.ts → PuzzleLoader-BYI7PA7C.d.ts} +2 -0
- package/dist/lib/cubing/{TwizzleLink.d-BzfMIk_O.d.ts → TwizzleLink.d-yDfHSjux.d.ts} +5 -3
- package/dist/lib/cubing/alg/index.d.ts +3 -3
- package/dist/lib/cubing/bluetooth/index.d.ts +6 -6
- package/dist/lib/cubing/bluetooth/index.js +3 -3
- package/dist/lib/cubing/{bluetooth-puzzle.d-C-95fTCe.d.ts → bluetooth-puzzle.d-B2L3nzXn.d.ts} +2 -2
- package/dist/lib/cubing/chunks/{chunk-WTJ326HQ.js → chunk-63PE4ND6.js} +3 -3
- package/dist/lib/cubing/chunks/{chunk-IMO4YKJO.js → chunk-7LAJDOI3.js} +1 -1
- package/dist/lib/cubing/chunks/{chunk-KZE4TK74.js → chunk-IWH3E6EY.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-4A5X67G6.js → chunk-JVHCFNBL.js} +1 -1
- package/dist/lib/cubing/chunks/{chunk-MNGQLIZL.js → chunk-KIC77KAO.js} +3 -3
- package/dist/lib/cubing/chunks/{chunk-IPUTXJEJ.js → chunk-US5D7CVM.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-2DFT7OFB.js → chunk-YSHXHFL2.js} +2 -2
- package/dist/lib/cubing/chunks/{inside-FE3UMYVY.js → inside-JHHWCKZI.js} +10 -10
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-CR5RLWPU.js → search-dynamic-sgs-side-events-JOC5DT7H.js} +3 -3
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-BR77UWSI.js → search-dynamic-sgs-unofficial-ZKP3UOZQ.js} +3 -3
- package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-W5GCSX3J.js → search-dynamic-solve-4x4x4-DKSRKWDZ.js} +5 -5
- package/dist/lib/cubing/chunks/search-worker-entry.js +1 -1
- package/dist/lib/cubing/chunks/{twisty-dynamic-3d-GHONCSOH.js → twisty-dynamic-3d-YGAIMWZ2.js} +4 -4
- package/dist/lib/cubing/chunks/{twsearch-P5MOXX3O.js → twsearch-2T5RAJYA.js} +2 -2
- package/dist/lib/cubing/chunks/{twsearch-P5MOXX3O.js.map → twsearch-2T5RAJYA.js.map} +1 -1
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-VKUQN4MD-IPLXEKL7.js +15 -0
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-VKUQN4MD-IPLXEKL7.js.map +7 -0
- package/dist/lib/cubing/{KPattern.d-DdYwFXdd.d.ts → index-ByJRFnO6.d.ts} +104 -104
- package/dist/lib/cubing/{index-CB2Rc3zO.d.ts → index-nwbgtVtK.d.ts} +2 -2
- package/dist/lib/cubing/kpuzzle/index.d.ts +2 -2
- package/dist/lib/cubing/notation/index.d.ts +4 -4
- package/dist/lib/cubing/notation/index.js +2 -2
- package/dist/lib/cubing/{parseAlg.d-DewXU-Sn.d.ts → parseAlg.d-BMkZo3Y-.d.ts} +1 -1
- 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 +31 -28
- package/dist/lib/cubing/puzzle-geometry/index.js.map +2 -2
- package/dist/lib/cubing/puzzles/index.d.ts +4 -4
- 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 +5 -5
- package/dist/lib/cubing/twisty/index.d.ts +5 -5
- package/dist/lib/cubing/twisty/index.js +23 -5
- package/dist/lib/cubing/twisty/index.js.map +2 -2
- package/package.json +2 -1
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-7OSYYTWX-SEPIFK5Y.js +0 -15
- package/dist/lib/cubing/chunks/twsearch_wasm_bg-7OSYYTWX-SEPIFK5Y.js.map +0 -7
- /package/dist/lib/cubing/chunks/{chunk-WTJ326HQ.js.map → chunk-63PE4ND6.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-IMO4YKJO.js.map → chunk-7LAJDOI3.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-KZE4TK74.js.map → chunk-IWH3E6EY.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-4A5X67G6.js.map → chunk-JVHCFNBL.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-MNGQLIZL.js.map → chunk-KIC77KAO.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-IPUTXJEJ.js.map → chunk-US5D7CVM.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-2DFT7OFB.js.map → chunk-YSHXHFL2.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{inside-FE3UMYVY.js.map → inside-JHHWCKZI.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-CR5RLWPU.js.map → search-dynamic-sgs-side-events-JOC5DT7H.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-BR77UWSI.js.map → search-dynamic-sgs-unofficial-ZKP3UOZQ.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-W5GCSX3J.js.map → search-dynamic-solve-4x4x4-DKSRKWDZ.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{twisty-dynamic-3d-GHONCSOH.js.map → twisty-dynamic-3d-YGAIMWZ2.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as PuzzleID, P as PuzzleLoader, E as ExperimentalStickering, S as StickeringMask } from '../TwizzleLink.d-
|
|
2
|
-
import { P as PuzzleSpecificSimplifyOptions, b as AlgLeaf } from '../PuzzleLoader-
|
|
3
|
-
import { s as KPuzzle, d as PuzzleGeometry } from '../
|
|
1
|
+
import { a as PuzzleID, P as PuzzleLoader, E as ExperimentalStickering, S as StickeringMask } from '../TwizzleLink.d-yDfHSjux.js';
|
|
2
|
+
import { P as PuzzleSpecificSimplifyOptions, b as AlgLeaf } from '../PuzzleLoader-BYI7PA7C.js';
|
|
3
|
+
import { s as KPuzzle, d as PuzzleGeometry } from '../index-ByJRFnO6.js';
|
|
4
4
|
import 'three';
|
|
5
|
-
import '../parseAlg.d-
|
|
5
|
+
import '../parseAlg.d-BMkZo3Y-.js';
|
|
6
6
|
|
|
7
7
|
interface EventInfo {
|
|
8
8
|
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-IWH3E6EY.js";
|
|
10
|
+
import "../chunks/chunk-7LAJDOI3.js";
|
|
11
11
|
import "../chunks/chunk-TA6HSIQ6.js";
|
|
12
12
|
import "../chunks/chunk-2SBMIHZV.js";
|
|
13
13
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { r as randomScrambleForEvent } from '../index-
|
|
2
|
-
import '../PuzzleLoader-
|
|
3
|
-
import '../
|
|
1
|
+
export { r as randomScrambleForEvent } from '../index-nwbgtVtK.js';
|
|
2
|
+
import '../PuzzleLoader-BYI7PA7C.js';
|
|
3
|
+
import '../index-ByJRFnO6.js';
|
|
4
4
|
import 'three';
|
|
@@ -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-JVHCFNBL.js";
|
|
5
|
+
import "../chunks/chunk-KIC77KAO.js";
|
|
6
6
|
import "../chunks/chunk-7GUL3OBQ.js";
|
|
7
7
|
import "../chunks/chunk-GOT3GVLG.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-IWH3E6EY.js";
|
|
9
|
+
import "../chunks/chunk-7LAJDOI3.js";
|
|
10
10
|
import "../chunks/chunk-TA6HSIQ6.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 '../PuzzleLoader-
|
|
3
|
-
import { K as KPattern } from '../
|
|
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-nwbgtVtK.js';
|
|
2
|
+
import '../PuzzleLoader-BYI7PA7C.js';
|
|
3
|
+
import { K as KPattern } from '../index-ByJRFnO6.js';
|
|
4
4
|
import 'three';
|
|
5
5
|
|
|
6
6
|
declare function random333Pattern(): Promise<KPattern>;
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
solvePyraminx,
|
|
7
7
|
solveSkewb,
|
|
8
8
|
solveTwsearch
|
|
9
|
-
} from "../chunks/chunk-
|
|
9
|
+
} from "../chunks/chunk-JVHCFNBL.js";
|
|
10
10
|
import {
|
|
11
11
|
random333Pattern
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-KIC77KAO.js";
|
|
13
13
|
import "../chunks/chunk-7GUL3OBQ.js";
|
|
14
14
|
import "../chunks/chunk-GOT3GVLG.js";
|
|
15
|
-
import "../chunks/chunk-
|
|
16
|
-
import "../chunks/chunk-
|
|
15
|
+
import "../chunks/chunk-IWH3E6EY.js";
|
|
16
|
+
import "../chunks/chunk-7LAJDOI3.js";
|
|
17
17
|
import "../chunks/chunk-TA6HSIQ6.js";
|
|
18
18
|
import "../chunks/chunk-2SBMIHZV.js";
|
|
19
19
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../PuzzleLoader-
|
|
2
|
-
import '../TwizzleLink.d-
|
|
3
|
-
import { A as AlgLeafEvent, O as OrientationEvent } from '../bluetooth-puzzle.d-
|
|
1
|
+
import '../PuzzleLoader-BYI7PA7C.js';
|
|
2
|
+
import '../TwizzleLink.d-yDfHSjux.js';
|
|
3
|
+
import { A as AlgLeafEvent, O as OrientationEvent } from '../bluetooth-puzzle.d-B2L3nzXn.js';
|
|
4
4
|
import 'three';
|
|
5
|
-
import '../parseAlg.d-
|
|
6
|
-
import '../
|
|
5
|
+
import '../parseAlg.d-BMkZo3Y-.js';
|
|
6
|
+
import '../index-ByJRFnO6.js';
|
|
7
7
|
|
|
8
8
|
interface ProxyMoveEvent {
|
|
9
9
|
event: "move";
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
3
|
-
import { A as Alg, M as Move } from '../PuzzleLoader-
|
|
4
|
-
import { s as KPuzzle, K as KPattern, t as KTransformation } from '../
|
|
1
|
+
import { A as AlgIndexer, T as Timestamp, D as Duration, S as StickeringMask } from '../TwizzleLink.d-yDfHSjux.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-yDfHSjux.js';
|
|
3
|
+
import { A as Alg, M as Move } from '../PuzzleLoader-BYI7PA7C.js';
|
|
4
|
+
import { s as KPuzzle, K as KPattern, t as KTransformation } from '../index-ByJRFnO6.js';
|
|
5
5
|
import 'three';
|
|
6
|
-
import '../parseAlg.d-
|
|
6
|
+
import '../parseAlg.d-BMkZo3Y-.js';
|
|
7
7
|
|
|
8
8
|
declare const twistyDebugGlobals: {
|
|
9
9
|
shareAllNewRenderers: "auto" | "always" | "never";
|
|
@@ -18,21 +18,21 @@ import {
|
|
|
18
18
|
rawRenderPooled,
|
|
19
19
|
setCameraFromOrbitCoordinates,
|
|
20
20
|
setTwistyDebug
|
|
21
|
-
} from "../chunks/chunk-
|
|
21
|
+
} from "../chunks/chunk-63PE4ND6.js";
|
|
22
22
|
import {
|
|
23
23
|
countAnimatedLeaves,
|
|
24
24
|
countLeavesInExpansionForSimultaneousMoveIndexer,
|
|
25
25
|
countMetricMoves
|
|
26
|
-
} from "../chunks/chunk-
|
|
26
|
+
} from "../chunks/chunk-US5D7CVM.js";
|
|
27
27
|
import {
|
|
28
28
|
cube3x3x3,
|
|
29
29
|
puzzles
|
|
30
|
-
} from "../chunks/chunk-
|
|
30
|
+
} from "../chunks/chunk-IWH3E6EY.js";
|
|
31
31
|
import {
|
|
32
32
|
customPGPuzzleLoader,
|
|
33
33
|
getPartialAppendOptionsForPuzzleSpecificSimplifyOptions,
|
|
34
34
|
getPieceStickeringMask
|
|
35
|
-
} from "../chunks/chunk-
|
|
35
|
+
} from "../chunks/chunk-7LAJDOI3.js";
|
|
36
36
|
import "../chunks/chunk-TA6HSIQ6.js";
|
|
37
37
|
import {
|
|
38
38
|
Alg,
|
|
@@ -4251,6 +4251,21 @@ var configKeys = Object.fromEntries(
|
|
|
4251
4251
|
var propOnly = {
|
|
4252
4252
|
experimentalMovePressCancelOptions: true
|
|
4253
4253
|
};
|
|
4254
|
+
var cachedSharedIntersectionObserver;
|
|
4255
|
+
var intersectedCallback = Symbol("intersectedCallback");
|
|
4256
|
+
function waitForIntersection(player) {
|
|
4257
|
+
cachedSharedIntersectionObserver ??= new IntersectionObserver(
|
|
4258
|
+
(entries, observer) => {
|
|
4259
|
+
for (const entry of entries) {
|
|
4260
|
+
if (entry.isIntersecting && entry.intersectionRect.height > 0) {
|
|
4261
|
+
entry.target[intersectedCallback]();
|
|
4262
|
+
observer.unobserve(entry.target);
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4265
|
+
}
|
|
4266
|
+
);
|
|
4267
|
+
cachedSharedIntersectionObserver.observe(player);
|
|
4268
|
+
}
|
|
4254
4269
|
var TwistyPlayer = class extends TwistyPlayerSettable {
|
|
4255
4270
|
controller = new TwistyPlayerController(
|
|
4256
4271
|
this.experimentalModel,
|
|
@@ -4285,11 +4300,14 @@ var TwistyPlayer = class extends TwistyPlayerSettable {
|
|
|
4285
4300
|
#alreadyConnected = false;
|
|
4286
4301
|
// TODO: support resetting
|
|
4287
4302
|
async connectedCallback() {
|
|
4303
|
+
this.addCSS(twistyPlayerCSS);
|
|
4304
|
+
waitForIntersection(this);
|
|
4305
|
+
}
|
|
4306
|
+
async [intersectedCallback]() {
|
|
4288
4307
|
if (this.#alreadyConnected) {
|
|
4289
4308
|
return;
|
|
4290
4309
|
}
|
|
4291
4310
|
this.#alreadyConnected = true;
|
|
4292
|
-
this.addCSS(twistyPlayerCSS);
|
|
4293
4311
|
this.addElement(this.#visualizationWrapperElem).classList.add(
|
|
4294
4312
|
"visualization-wrapper"
|
|
4295
4313
|
);
|