@rednaxela101/cubing 0.63.9 → 0.63.10

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.
Files changed (28) hide show
  1. package/dist/bin/chunks/{chunk-F63RAIBR.js → chunk-3WUR6UXA.js} +2 -2
  2. package/dist/bin/order.js +1 -1
  3. package/dist/bin/puzzle-geometry-bin.js +1 -1
  4. package/dist/bin/scramble.js +1 -1
  5. package/dist/bin/svg.js +1 -1
  6. package/dist/lib/cubing/alg/index.d.ts +1 -1
  7. package/dist/lib/cubing/bluetooth/index.d.ts +2 -2
  8. package/dist/lib/cubing/chunks/{chunk-F765ZFNM.js → chunk-IOHGEWB2.js} +2 -2
  9. package/dist/lib/cubing/chunks/{twisty-dynamic-3d-MF76FSDA.js → twisty-dynamic-3d-3MGVD3TG.js} +634 -172
  10. package/dist/lib/cubing/chunks/twisty-dynamic-3d-3MGVD3TG.js.map +7 -0
  11. package/dist/lib/cubing/{index-ylnTp4i5.d.ts → index-0OM9yjf0.d.ts} +1 -1
  12. package/dist/lib/cubing/{index-FT5_Vsnm.d.ts → index-B_TS5TTk.d.ts} +13 -0
  13. package/dist/lib/cubing/kpuzzle/index.d.ts +1 -1
  14. package/dist/lib/cubing/notation/index.d.ts +1 -1
  15. package/dist/lib/cubing/{outside-D3tRtsxV.d.ts → outside-BUsE7O5Q.d.ts} +1 -1
  16. package/dist/lib/cubing/protocol/index.d.ts +1 -1
  17. package/dist/lib/cubing/puzzle-geometry/index.d.ts +1 -1
  18. package/dist/lib/cubing/puzzles/index.d.ts +1 -1
  19. package/dist/lib/cubing/scramble/index.d.ts +1 -1
  20. package/dist/lib/cubing/search/index.d.ts +1 -1
  21. package/dist/lib/cubing/stream/index.d.ts +1 -1
  22. package/dist/lib/cubing/twisty/index.d.ts +1 -1
  23. package/dist/lib/cubing/twisty/index.js +31 -2
  24. package/dist/lib/cubing/twisty/index.js.map +2 -2
  25. package/package.json +1 -1
  26. package/dist/lib/cubing/chunks/twisty-dynamic-3d-MF76FSDA.js.map +0 -7
  27. /package/dist/bin/chunks/{chunk-F63RAIBR.js.map → chunk-3WUR6UXA.js.map} +0 -0
  28. /package/dist/lib/cubing/chunks/{chunk-F765ZFNM.js.map → chunk-IOHGEWB2.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { Ct as AlgLeaf, R as KPattern } from "./index-FT5_Vsnm.js";
1
+ import { Ct as AlgLeaf, R as KPattern } from "./index-B_TS5TTk.js";
2
2
 
3
3
  //#region src/cubing/stream/events.d.ts
4
4
  /** @category Smart Puzzles */
@@ -1849,6 +1849,7 @@ declare class TwistySceneModel {
1849
1849
  faceColorBorder: FaceColorBorderProp;
1850
1850
  hintFacelet: HintFaceletProp;
1851
1851
  hintStickerSpriteURL: URLProp;
1852
+ logoSpriteURL: URLProp;
1852
1853
  initialHintFaceletsAnimation: InitialHintFaceletsAnimationProp;
1853
1854
  hintFaceletsElevation: HintFaceletsElevationProp;
1854
1855
  latitudeLimit: LatitudeLimitProp;
@@ -1861,6 +1862,7 @@ declare class TwistySceneModel {
1861
1862
  colorScheme: ColorSchemeProp;
1862
1863
  foundationStickerSprite: SpriteProp;
1863
1864
  hintStickerSprite: SpriteProp;
1865
+ logoSprite: SpriteProp;
1864
1866
  orbitCoordinates: OrbitCoordinatesProp;
1865
1867
  stickeringMask: StickeringMaskProp;
1866
1868
  constructor(twistyPlayerModel: TwistyPlayerModel);
@@ -2218,6 +2220,16 @@ declare abstract class TwistyPlayerSettable extends ManagedCustomElement {
2218
2220
  get experimentalSprite(): never;
2219
2221
  set experimentalHintSprite(url: string | URL);
2220
2222
  get experimentalHintSprite(): never;
2223
+ /**
2224
+ * An image printed on one piece of the puzzle, the way a brand prints a logo
2225
+ * on the white center of a 3×3×3. 3D only, and only on the puzzles that take
2226
+ * one — everything but the FTO and the clock.
2227
+ *
2228
+ * The image is stretched onto a square sized to the piece, so it comes out
2229
+ * the same size whatever the image's own dimensions are.
2230
+ */
2231
+ set experimentalLogo(url: string | URL | null);
2232
+ get experimentalLogo(): never;
2221
2233
  set fullscreenElement(element: Element | null);
2222
2234
  get fullscreenElement(): never;
2223
2235
  set experimentalInitialHintFaceletsAnimation(anim: InitialHintFaceletsAnimation);
@@ -2299,6 +2311,7 @@ interface TwistyPlayerConfig {
2299
2311
  tempoScale?: number;
2300
2312
  experimentalSprite?: string | null;
2301
2313
  experimentalHintSprite?: string | null;
2314
+ experimentalLogo?: string | null;
2302
2315
  experimentalMovePressCancelOptions?: AppendCancelOptions;
2303
2316
  }
2304
2317
  declare const intersectedCallback: unique symbol;
@@ -1,2 +1,2 @@
1
- import { B as KTransformation, G as KTransformationData, H as KPatternData, K as KTransformationOrbitData, R as KPattern, U as KPatternOrbitData, V as KPuzzleDefinition, W as KPuzzleOrbitDefinition, z as KPuzzle } from "../index-FT5_Vsnm.js";
1
+ import { B as KTransformation, G as KTransformationData, H as KPatternData, K as KTransformationOrbitData, R as KPattern, U as KPatternOrbitData, V as KPuzzleDefinition, W as KPuzzleOrbitDefinition, z as KPuzzle } from "../index-B_TS5TTk.js";
2
2
  export { KPattern, KPatternData, KPatternOrbitData, KPuzzle, KPuzzleDefinition, KPuzzleOrbitDefinition, KTransformation, KTransformationData, KTransformationOrbitData };
@@ -1,4 +1,4 @@
1
- import { M as LeafCount, c as PuzzleLoader, gt as Alg } from "../index-FT5_Vsnm.js";
1
+ import { M as LeafCount, c as PuzzleLoader, gt as Alg } from "../index-B_TS5TTk.js";
2
2
 
3
3
  //#region src/cubing/notation/CountAnimatedLeaves.d.ts
4
4
  declare const countAnimatedLeaves: (alg: Alg) => LeafCount;
@@ -1,4 +1,4 @@
1
- import { R as KPattern, gt as Alg, z as KPuzzle } from "./index-FT5_Vsnm.js";
1
+ import { R as KPattern, gt as Alg, z as KPuzzle } from "./index-B_TS5TTk.js";
2
2
  //#region src/cubing/search/inside/solve/puzzles/3x3x3/index.d.ts
3
3
  declare function random333Pattern(): Promise<KPattern>;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { R as KPattern } from "../index-FT5_Vsnm.js";
1
+ import { R as KPattern } from "../index-B_TS5TTk.js";
2
2
 
3
3
  //#region src/cubing/protocol/binary/binary3x3x3.d.ts
4
4
  type Binary3x3x3Pattern = Uint8Array;
@@ -1,2 +1,2 @@
1
- import { $ as PuzzleDescription, J as PUZZLE_BASE_SHAPES, L as schreierSims, Q as PuzzleCutType, X as PuzzleBaseShape, Y as PUZZLE_CUT_TYPES, Z as PuzzleCutDescription, at as getPG3DNamedPuzzles, ct as getPuzzleGeometryByName, dt as PuzzleGeometryOptions, et as PuzzleGeometry, it as StickerDatSticker, lt as parsePuzzleDescription, nt as StickerDatAxis, ot as getPuzzleDescriptionString, q as PGNotation, rt as StickerDatFace, st as getPuzzleGeometryByDesc, tt as StickerDat, ut as Quat } from "../index-FT5_Vsnm.js";
1
+ import { $ as PuzzleDescription, J as PUZZLE_BASE_SHAPES, L as schreierSims, Q as PuzzleCutType, X as PuzzleBaseShape, Y as PUZZLE_CUT_TYPES, Z as PuzzleCutDescription, at as getPG3DNamedPuzzles, ct as getPuzzleGeometryByName, dt as PuzzleGeometryOptions, et as PuzzleGeometry, it as StickerDatSticker, lt as parsePuzzleDescription, nt as StickerDatAxis, ot as getPuzzleDescriptionString, q as PGNotation, rt as StickerDatFace, st as getPuzzleGeometryByDesc, tt as StickerDat, ut as Quat } from "../index-B_TS5TTk.js";
2
2
  export { PUZZLE_BASE_SHAPES as EXPERIMENTAL_PUZZLE_BASE_SHAPES, PUZZLE_CUT_TYPES as EXPERIMENTAL_PUZZLE_CUT_TYPES, PGNotation as ExperimentalPGNotation, PuzzleBaseShape as ExperimentalPuzzleBaseShape, PuzzleCutDescription as ExperimentalPuzzleCutDescription, PuzzleCutType as ExperimentalPuzzleCutType, PuzzleDescription as ExperimentalPuzzleDescription, PuzzleGeometryOptions as ExperimentalPuzzleGeometryOptions, PuzzleGeometry, Quat, StickerDat, StickerDatAxis, StickerDatFace, StickerDatSticker, getPG3DNamedPuzzles, getPuzzleDescriptionString, getPuzzleGeometryByDesc, getPuzzleGeometryByName, parsePuzzleDescription, schreierSims };
@@ -1,2 +1,2 @@
1
- import { _ as cube2x2x2, b as wcaEventInfo, c as PuzzleLoader, g as cube3x3x3, h as puzzles, v as eventInfo, x as wcaEvents, y as twizzleEvents } from "../index-FT5_Vsnm.js";
1
+ import { _ as cube2x2x2, b as wcaEventInfo, c as PuzzleLoader, g as cube3x3x3, h as puzzles, v as eventInfo, x as wcaEvents, y as twizzleEvents } from "../index-B_TS5TTk.js";
2
2
  export { PuzzleLoader, cube2x2x2, cube3x3x3, eventInfo, puzzles, twizzleEvents, wcaEventInfo, wcaEvents };
@@ -1,2 +1,2 @@
1
- import { i as randomScrambleForEvent, t as deriveScrambleForEvent } from "../outside-D3tRtsxV.js";
1
+ import { i as randomScrambleForEvent, t as deriveScrambleForEvent } from "../outside-BUsE7O5Q.js";
2
2
  export { deriveScrambleForEvent as experimentalDeriveScrambleForEvent, randomScrambleForEvent };
@@ -1,4 +1,4 @@
1
- import { a as setSearchDebug, c as solveSkewb, l as solveTwips, n as experimentalSolve2x2x2, o as solveMegaminx, r as experimentalSolve3x3x3IgnoringCenters, s as solvePyraminx, u as random333Pattern } from "../outside-D3tRtsxV.js";
1
+ import { a as setSearchDebug, c as solveSkewb, l as solveTwips, n as experimentalSolve2x2x2, o as solveMegaminx, r as experimentalSolve3x3x3IgnoringCenters, s as solvePyraminx, u as random333Pattern } from "../outside-BUsE7O5Q.js";
2
2
 
3
3
  //#region src/cubing/search/index.d.ts
4
4
  /** @deprecated */
@@ -1,2 +1,2 @@
1
- import { a as OrientationEvent, c as ProxyOrientationEvent, i as AlgLeafEvent, l as ProxyResetEvent, n as WebSocketProxySender, o as ProxyEvent, r as TwizzleStreamServer, s as ProxyMoveEvent, t as WebSocketProxyReceiver } from "../index-ylnTp4i5.js";
1
+ import { a as OrientationEvent, c as ProxyOrientationEvent, i as AlgLeafEvent, l as ProxyResetEvent, n as WebSocketProxySender, o as ProxyEvent, r as TwizzleStreamServer, s as ProxyMoveEvent, t as WebSocketProxyReceiver } from "../index-0OM9yjf0.js";
2
2
  export { AlgLeafEvent as ExperimentalAlgLeafEvent, OrientationEvent as ExperimentalOrientationEvent, ProxyEvent as ExperimentalProxyEvent, ProxyMoveEvent as ExperimentalProxyMoveEvent, ProxyOrientationEvent as ExperimentalProxyOrientationEvent, ProxyResetEvent as ExperimentalProxyResetEvent, TwizzleStreamServer as ExperimentalTwizzleStreamServer, WebSocketProxyReceiver as ExperimentalWebSocketProxyReceiver, WebSocketProxySender as ExperimentalWebSocketProxySender };
@@ -1,2 +1,2 @@
1
- import { A as SimpleAlgIndexer, C as VisualizationFormat, D as PuzzleID, E as ExperimentalStickering, F as MillisecondDuration, I as MillisecondTimestamp, M as LeafCount, N as LeafIndex, O as setTwistyDebug, P as NO_VALUE, S as TwistyAnimatedSVG, T as backViewLayouts, d as TwistyAlgEditor, j as AlgIndexer, k as TreeAlgIndexer, l as TwizzleLink, m as TwistyPlayerConfig, p as TwistyPlayer, u as TwistyAlgViewer, w as BackViewLayout } from "../index-FT5_Vsnm.js";
1
+ import { A as SimpleAlgIndexer, C as VisualizationFormat, D as PuzzleID, E as ExperimentalStickering, F as MillisecondDuration, I as MillisecondTimestamp, M as LeafCount, N as LeafIndex, O as setTwistyDebug, P as NO_VALUE, S as TwistyAnimatedSVG, T as backViewLayouts, d as TwistyAlgEditor, j as AlgIndexer, k as TreeAlgIndexer, l as TwizzleLink, m as TwistyPlayerConfig, p as TwistyPlayer, u as TwistyAlgViewer, w as BackViewLayout } from "../index-B_TS5TTk.js";
2
2
  export { AlgIndexer, BackViewLayout, NO_VALUE as EXPERIMENTAL_PROP_NO_VALUE, LeafCount as ExperimentalLeafCount, LeafIndex as ExperimentalLeafIndex, MillisecondDuration as ExperimentalMillisecondDuration, MillisecondTimestamp as ExperimentalMillisecondTimestamp, TwistyAnimatedSVG as ExperimentalSVGAnimator, ExperimentalStickering, PuzzleID, SimpleAlgIndexer, TreeAlgIndexer, TwistyAlgEditor, TwistyAlgViewer, TwistyPlayer, TwistyPlayerConfig, TwizzleLink, VisualizationFormat, backViewLayouts, setTwistyDebug };
@@ -18,7 +18,7 @@ import {
18
18
  rawRenderPooled,
19
19
  setCameraFromOrbitCoordinates,
20
20
  setTwistyDebug
21
- } from "../chunks/chunk-F765ZFNM.js";
21
+ } from "../chunks/chunk-IOHGEWB2.js";
22
22
  import {
23
23
  countAnimatedLeaves,
24
24
  countLeavesInExpansionForSimultaneousMoveIndexer,
@@ -1761,6 +1761,16 @@ var Twisty3DPuzzleWrapper = class extends EventTarget {
1761
1761
  this.scheduleRender();
1762
1762
  }
1763
1763
  );
1764
+ this.#freshListenerManager.addListener(
1765
+ this.model.twistySceneModel.logoSprite,
1766
+ async (logoSprite) => {
1767
+ const twisty3D = await this.twisty3DPuzzle();
1768
+ if ("experimentalSetLogo" in twisty3D) {
1769
+ twisty3D.experimentalSetLogo(logoSprite);
1770
+ this.scheduleRender();
1771
+ }
1772
+ }
1773
+ );
1764
1774
  this.#freshListenerManager.addMultiListener3(
1765
1775
  [
1766
1776
  this.model.twistySceneModel.stickeringMask,
@@ -3958,6 +3968,7 @@ var TwistySceneModel = class {
3958
3968
  faceColorBorder = new FaceColorBorderProp();
3959
3969
  hintFacelet = new HintFaceletProp();
3960
3970
  hintStickerSpriteURL = new URLProp();
3971
+ logoSpriteURL = new URLProp();
3961
3972
  initialHintFaceletsAnimation = new InitialHintFaceletsAnimationProp();
3962
3973
  hintFaceletsElevation = new HintFaceletsElevationProp();
3963
3974
  latitudeLimit = new LatitudeLimitProp();
@@ -3978,6 +3989,9 @@ var TwistySceneModel = class {
3978
3989
  hintStickerSprite = new SpriteProp({
3979
3990
  spriteURL: this.hintStickerSpriteURL
3980
3991
  });
3992
+ logoSprite = new SpriteProp({
3993
+ spriteURL: this.logoSpriteURL
3994
+ });
3981
3995
  // Dependence on TwistyPlayerModel
3982
3996
  orbitCoordinates;
3983
3997
  stickeringMask;
@@ -4462,6 +4476,20 @@ var TwistyPlayerSettable = class extends ManagedCustomElement {
4462
4476
  get experimentalHintSprite() {
4463
4477
  throw err("experimentalHintSprite");
4464
4478
  }
4479
+ /**
4480
+ * An image printed on one piece of the puzzle, the way a brand prints a logo
4481
+ * on the white center of a 3×3×3. 3D only, and only on the puzzles that take
4482
+ * one — everything but the FTO and the clock.
4483
+ *
4484
+ * The image is stretched onto a square sized to the piece, so it comes out
4485
+ * the same size whatever the image's own dimensions are.
4486
+ */
4487
+ set experimentalLogo(url) {
4488
+ this.experimentalModel.twistySceneModel.logoSpriteURL.set(url);
4489
+ }
4490
+ get experimentalLogo() {
4491
+ throw err("experimentalLogo");
4492
+ }
4465
4493
  set fullscreenElement(element) {
4466
4494
  this.experimentalModel.twistySceneModel.fullscreenElement.set(element);
4467
4495
  }
@@ -4553,7 +4581,8 @@ var twistyPlayerAttributeMap = {
4553
4581
  "tempo-scale": "tempoScale",
4554
4582
  // URL-based
4555
4583
  "experimental-sprite": "experimentalSprite",
4556
- "experimental-hint-sprite": "experimentalHintSprite"
4584
+ "experimental-hint-sprite": "experimentalHintSprite",
4585
+ "experimental-logo": "experimentalLogo"
4557
4586
  };
4558
4587
  var configKeys = Object.fromEntries(
4559
4588
  Object.values(twistyPlayerAttributeMap).map((s) => [s, true])