cubing 0.63.2 → 0.63.4

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 (111) hide show
  1. package/README.md +15 -1
  2. package/alg/index.d.ts +1 -1
  3. package/bluetooth/index.d.ts +1 -1
  4. package/dist/bin/chunks/{chunk-52ODPET6.js → chunk-E6RYEKYL.js} +2 -2
  5. package/dist/bin/order.js +8 -4
  6. package/dist/bin/order.js.map +2 -2
  7. package/dist/bin/puzzle-geometry-bin.js +8 -4
  8. package/dist/bin/puzzle-geometry-bin.js.map +2 -2
  9. package/dist/bin/scramble.js +8 -4
  10. package/dist/bin/scramble.js.map +2 -2
  11. package/dist/bin/svg.js +56 -0
  12. package/dist/bin/svg.js.map +7 -0
  13. package/dist/lib/cubing/alg/index.d.ts +2 -84
  14. package/dist/lib/cubing/alg/index.js +1 -1
  15. package/dist/lib/cubing/bluetooth/index.d.ts +147 -134
  16. package/dist/lib/cubing/bluetooth/index.js +29 -5
  17. package/dist/lib/cubing/bluetooth/index.js.map +2 -2
  18. package/dist/lib/cubing/chunks/{big-puzzle-orientation-ZVZQJEF5.js → big-puzzle-orientation-ADWIOX6S.js} +2 -2
  19. package/dist/lib/cubing/chunks/{chunk-M7YKTETT.js → chunk-53SI7XS4.js} +14 -4
  20. package/dist/lib/cubing/chunks/chunk-53SI7XS4.js.map +7 -0
  21. package/dist/lib/cubing/chunks/{chunk-RINY3U6G.js → chunk-5ONX3JVC.js} +7 -2
  22. package/dist/lib/cubing/chunks/{chunk-RINY3U6G.js.map → chunk-5ONX3JVC.js.map} +1 -1
  23. package/dist/lib/cubing/chunks/{chunk-ROB5TROI.js → chunk-7LXHWXCO.js} +2 -2
  24. package/dist/lib/cubing/chunks/{chunk-E3YLQC45.js → chunk-GHFBZYSV.js} +2 -2
  25. package/dist/lib/cubing/chunks/chunk-GHFBZYSV.js.map +7 -0
  26. package/dist/lib/cubing/chunks/{chunk-ZU7PSGX4.js → chunk-JCCXEYXU.js} +4 -3
  27. package/dist/lib/cubing/chunks/{chunk-ZU7PSGX4.js.map → chunk-JCCXEYXU.js.map} +1 -1
  28. package/dist/lib/cubing/chunks/{chunk-LWCBAAHO.js → chunk-LD4XJTCU.js} +28 -13
  29. package/dist/lib/cubing/chunks/chunk-LD4XJTCU.js.map +7 -0
  30. package/dist/lib/cubing/chunks/{chunk-O6HEZXGY.js → chunk-N5FJ5YIA.js} +4 -3
  31. package/dist/lib/cubing/chunks/{chunk-O6HEZXGY.js.map → chunk-N5FJ5YIA.js.map} +1 -1
  32. package/dist/lib/cubing/chunks/{chunk-NGW52SHR.js → chunk-S74APGTK.js} +3 -3
  33. package/dist/lib/cubing/chunks/{chunk-FLK6AZKB.js → chunk-VYAO5FCM.js} +7 -7
  34. package/dist/lib/cubing/chunks/{chunk-FLK6AZKB.js.map → chunk-VYAO5FCM.js.map} +2 -2
  35. package/dist/lib/cubing/chunks/{chunk-FUHYAW74.js → chunk-WBMKMQAL.js} +49 -63
  36. package/dist/lib/cubing/chunks/chunk-WBMKMQAL.js.map +7 -0
  37. package/dist/lib/cubing/chunks/{chunk-V27EM5TJ.js → chunk-XVZLWT3A.js} +44 -49
  38. package/dist/lib/cubing/chunks/chunk-XVZLWT3A.js.map +7 -0
  39. package/dist/lib/cubing/chunks/{inside-Q56GLXG4.js → inside-VUJSPBRA.js} +64 -28
  40. package/dist/lib/cubing/chunks/inside-VUJSPBRA.js.map +7 -0
  41. package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-AIGABOAR.js +132 -0
  42. package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-AIGABOAR.js.map +7 -0
  43. package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-GB4WAJ7I.js → search-dynamic-sgs-side-events-LHAMZP5J.js} +6 -6
  44. package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-2CECFBP3.js → search-dynamic-sgs-unofficial-GXKMVR4W.js} +6 -6
  45. package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-E576AITS.js → search-dynamic-solve-4x4x4-N2X3RMYU.js} +7 -7
  46. package/dist/lib/cubing/chunks/{search-dynamic-solve-fto-UZMNOI6U.js → search-dynamic-solve-fto-I5ID5LXD.js} +2 -2
  47. package/dist/lib/cubing/chunks/search-dynamic-solve-kilominx-Y2D3C74Y.js +771 -0
  48. package/dist/lib/cubing/chunks/search-dynamic-solve-kilominx-Y2D3C74Y.js.map +7 -0
  49. package/dist/lib/cubing/chunks/search-worker-entry.js +7 -6
  50. package/dist/lib/cubing/chunks/search-worker-entry.js.map +2 -2
  51. package/dist/lib/cubing/chunks/{twips-YHXBF55O.js → twips-ZNMKGC5U.js} +4 -4
  52. package/dist/lib/cubing/chunks/twips_wasm_bg-TJNYGA2C-AP2O4LGG.js +10 -0
  53. package/dist/lib/cubing/chunks/twips_wasm_bg-TJNYGA2C-AP2O4LGG.js.map +7 -0
  54. package/dist/lib/cubing/chunks/{twisty-dynamic-3d-IKE4BUQG.js → twisty-dynamic-3d-LSRGWTXG.js} +105 -46
  55. package/dist/lib/cubing/chunks/twisty-dynamic-3d-LSRGWTXG.js.map +7 -0
  56. package/dist/lib/cubing/index-BXHm_6gm.d.ts +2626 -0
  57. package/dist/lib/cubing/index-Cvk652Bd.d.ts +76 -0
  58. package/dist/lib/cubing/kpuzzle/index.d.ts +2 -3
  59. package/dist/lib/cubing/kpuzzle/index.js +2 -2
  60. package/dist/lib/cubing/notation/index.d.ts +18 -17
  61. package/dist/lib/cubing/notation/index.js +4 -4
  62. package/dist/lib/cubing/outside-CwNOEuJJ.d.ts +38 -0
  63. package/dist/lib/cubing/protocol/index.d.ts +14 -14
  64. package/dist/lib/cubing/protocol/index.js +4 -4
  65. package/dist/lib/cubing/puzzle-geometry/index.d.ts +2 -8
  66. package/dist/lib/cubing/puzzle-geometry/index.js +33 -1
  67. package/dist/lib/cubing/puzzle-geometry/index.js.map +1 -1
  68. package/dist/lib/cubing/puzzles/index.d.ts +2 -45
  69. package/dist/lib/cubing/puzzles/index.js +4 -4
  70. package/dist/lib/cubing/scramble/index.d.ts +2 -4
  71. package/dist/lib/cubing/scramble/index.js +6 -6
  72. package/dist/lib/cubing/search/index.d.ts +4 -9
  73. package/dist/lib/cubing/search/index.js +6 -6
  74. package/dist/lib/cubing/stream/index.d.ts +2 -45
  75. package/dist/lib/cubing/stream/index.js +1 -1
  76. package/dist/lib/cubing/twisty/index.d.ts +2 -60
  77. package/dist/lib/cubing/twisty/index.js +101 -20
  78. package/dist/lib/cubing/twisty/index.js.map +3 -3
  79. package/kpuzzle/index.d.ts +1 -1
  80. package/notation/index.d.ts +1 -1
  81. package/package.json +19 -20
  82. package/protocol/index.d.ts +1 -1
  83. package/puzzle-geometry/index.d.ts +1 -1
  84. package/puzzles/index.d.ts +1 -1
  85. package/scramble/index.d.ts +1 -1
  86. package/search/index.d.ts +1 -1
  87. package/stream/index.d.ts +1 -1
  88. package/twisty/index.d.ts +1 -1
  89. package/dist/lib/cubing/PuzzleLoader-R-puDLmC.d.ts +0 -2352
  90. package/dist/lib/cubing/chunks/chunk-E3YLQC45.js.map +0 -7
  91. package/dist/lib/cubing/chunks/chunk-FUHYAW74.js.map +0 -7
  92. package/dist/lib/cubing/chunks/chunk-LWCBAAHO.js.map +0 -7
  93. package/dist/lib/cubing/chunks/chunk-M7YKTETT.js.map +0 -7
  94. package/dist/lib/cubing/chunks/chunk-V27EM5TJ.js.map +0 -7
  95. package/dist/lib/cubing/chunks/inside-Q56GLXG4.js.map +0 -7
  96. package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-REUXFQJ4.js +0 -124
  97. package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-REUXFQJ4.js.map +0 -7
  98. package/dist/lib/cubing/chunks/twips_wasm_bg-RWVQBVBA-5YCKA6O5.js +0 -10
  99. package/dist/lib/cubing/chunks/twips_wasm_bg-RWVQBVBA-5YCKA6O5.js.map +0 -7
  100. package/dist/lib/cubing/chunks/twisty-dynamic-3d-IKE4BUQG.js.map +0 -7
  101. package/dist/lib/cubing/events-IfSwQLYm.d.ts +0 -35
  102. package/dist/lib/cubing/index-btIxbuNp.d.ts +0 -33
  103. /package/dist/bin/chunks/{chunk-52ODPET6.js.map → chunk-E6RYEKYL.js.map} +0 -0
  104. /package/dist/lib/cubing/chunks/{big-puzzle-orientation-ZVZQJEF5.js.map → big-puzzle-orientation-ADWIOX6S.js.map} +0 -0
  105. /package/dist/lib/cubing/chunks/{chunk-ROB5TROI.js.map → chunk-7LXHWXCO.js.map} +0 -0
  106. /package/dist/lib/cubing/chunks/{chunk-NGW52SHR.js.map → chunk-S74APGTK.js.map} +0 -0
  107. /package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-GB4WAJ7I.js.map → search-dynamic-sgs-side-events-LHAMZP5J.js.map} +0 -0
  108. /package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-2CECFBP3.js.map → search-dynamic-sgs-unofficial-GXKMVR4W.js.map} +0 -0
  109. /package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-E576AITS.js.map → search-dynamic-solve-4x4x4-N2X3RMYU.js.map} +0 -0
  110. /package/dist/lib/cubing/chunks/{search-dynamic-solve-fto-UZMNOI6U.js.map → search-dynamic-solve-fto-I5ID5LXD.js.map} +0 -0
  111. /package/dist/lib/cubing/chunks/{twips-YHXBF55O.js.map → twips-ZNMKGC5U.js.map} +0 -0
@@ -1,45 +1,2 @@
1
- import { t as PuzzleID, s as PuzzleLoader, u as KPuzzle, i as PuzzleGeometry, E as ExperimentalStickering, v as StickeringMask, w as PuzzleSpecificSimplifyOptions, A as AlgLeaf, x as AlgTransformData } from '../PuzzleLoader-R-puDLmC.js';
2
- import 'type-fest';
3
- import 'three/src/Three.js';
4
-
5
- interface EventInfo {
6
- puzzleID: PuzzleID;
7
- eventName: string;
8
- /** Whether/how scrambles are implemented in `randomScrambleForEvent(…)` in this version of `cubing.js` */
9
- scramblesImplemented: null | "random-state" | "random-moves";
10
- }
11
- declare const wcaEvents: Record<string, EventInfo>;
12
- /** @category Event Info */
13
- declare function wcaEventInfo(event: string): EventInfo | null;
14
- declare const twizzleEvents: Record<string, EventInfo>;
15
- /** @category Event Info */
16
- declare function eventInfo(event: string): EventInfo | null;
17
-
18
- /** @category Specific Puzzles */
19
- declare const cube2x2x2: PuzzleLoader;
20
-
21
- /** @category Specific Puzzles */
22
- declare const cube3x3x3: {
23
- id: string;
24
- fullName: string;
25
- inventedBy: string[];
26
- inventionYear: number;
27
- kpuzzle: () => Promise<KPuzzle>;
28
- svg: () => Promise<string>;
29
- llSVG: () => Promise<string>;
30
- llFaceSVG: () => Promise<string>;
31
- pg: () => Promise<PuzzleGeometry>;
32
- stickeringMask: (stickering: ExperimentalStickering) => Promise<StickeringMask>;
33
- stickerings: () => Promise<string[]>;
34
- puzzleSpecificSimplifyOptions: PuzzleSpecificSimplifyOptions;
35
- keyMapping: () => Promise<{
36
- [key: string]: AlgLeaf;
37
- [key: number]: AlgLeaf;
38
- }>;
39
- algTransformData: AlgTransformData;
40
- };
41
-
42
- /** @category All Puzzles */
43
- declare const puzzles: Record<string, PuzzleLoader>;
44
-
45
- export { PuzzleLoader, cube2x2x2, cube3x3x3, eventInfo, puzzles, twizzleEvents, wcaEventInfo, wcaEvents };
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-BXHm_6gm.js";
2
+ export { PuzzleLoader, cube2x2x2, cube3x3x3, eventInfo, puzzles, twizzleEvents, wcaEventInfo, wcaEvents };
@@ -5,12 +5,12 @@ import {
5
5
  twizzleEvents,
6
6
  wcaEventInfo,
7
7
  wcaEvents
8
- } from "../chunks/chunk-FLK6AZKB.js";
8
+ } from "../chunks/chunk-VYAO5FCM.js";
9
9
  import {
10
10
  cube3x3x3
11
- } from "../chunks/chunk-FUHYAW74.js";
12
- import "../chunks/chunk-RINY3U6G.js";
13
- import "../chunks/chunk-O6HEZXGY.js";
11
+ } from "../chunks/chunk-WBMKMQAL.js";
12
+ import "../chunks/chunk-5ONX3JVC.js";
13
+ import "../chunks/chunk-N5FJ5YIA.js";
14
14
  export {
15
15
  cube2x2x2,
16
16
  cube3x3x3,
@@ -1,4 +1,2 @@
1
- import '../PuzzleLoader-R-puDLmC.js';
2
- export { g as experimentalDeriveScrambleForEvent, r as randomScrambleForEvent } from '../index-btIxbuNp.js';
3
- import 'type-fest';
4
- import 'three/src/Three.js';
1
+ import { i as randomScrambleForEvent, t as deriveScrambleForEvent } from "../outside-CwNOEuJJ.js";
2
+ export { deriveScrambleForEvent as experimentalDeriveScrambleForEvent, randomScrambleForEvent };
@@ -2,13 +2,13 @@ import "../chunks/chunk-NAPITA3L.js";
2
2
  import {
3
3
  deriveScrambleForEvent,
4
4
  randomScrambleForEvent
5
- } from "../chunks/chunk-M7YKTETT.js";
6
- import "../chunks/chunk-V27EM5TJ.js";
5
+ } from "../chunks/chunk-53SI7XS4.js";
6
+ import "../chunks/chunk-XVZLWT3A.js";
7
7
  import "../chunks/chunk-7GUL3OBQ.js";
8
- import "../chunks/chunk-FLK6AZKB.js";
9
- import "../chunks/chunk-FUHYAW74.js";
10
- import "../chunks/chunk-RINY3U6G.js";
11
- import "../chunks/chunk-O6HEZXGY.js";
8
+ import "../chunks/chunk-VYAO5FCM.js";
9
+ import "../chunks/chunk-WBMKMQAL.js";
10
+ import "../chunks/chunk-5ONX3JVC.js";
11
+ import "../chunks/chunk-N5FJ5YIA.js";
12
12
  export {
13
13
  deriveScrambleForEvent as experimentalDeriveScrambleForEvent,
14
14
  randomScrambleForEvent
@@ -1,12 +1,7 @@
1
- import { K as KPattern } from '../PuzzleLoader-R-puDLmC.js';
2
- import { s as solveTwips } from '../index-btIxbuNp.js';
3
- export { e as experimentalSolve2x2x2, a as experimentalSolve3x3x3IgnoringCenters, b as setSearchDebug, c as solveMegaminx, d as solvePyraminx, f as solveSkewb } from '../index-btIxbuNp.js';
4
- import 'type-fest';
5
- import 'three/src/Three.js';
6
-
7
- declare function random333Pattern(): Promise<KPattern>;
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-CwNOEuJJ.js";
8
2
 
3
+ //#region src/cubing/search/index.d.ts
9
4
  /** @deprecated */
10
5
  declare const experimentalSolveTwsearch: typeof solveTwips;
11
-
12
- export { solveTwips as experimentalSolveTwips, experimentalSolveTwsearch, random333Pattern };
6
+ //#endregion
7
+ export { experimentalSolve2x2x2, experimentalSolve3x3x3IgnoringCenters, solveTwips as experimentalSolveTwips, experimentalSolveTwsearch, random333Pattern, setSearchDebug, solveMegaminx, solvePyraminx, solveSkewb };
@@ -6,15 +6,15 @@ import {
6
6
  solvePyraminx,
7
7
  solveSkewb,
8
8
  solveTwips
9
- } from "../chunks/chunk-M7YKTETT.js";
9
+ } from "../chunks/chunk-53SI7XS4.js";
10
10
  import {
11
11
  random333Pattern
12
- } from "../chunks/chunk-V27EM5TJ.js";
12
+ } from "../chunks/chunk-XVZLWT3A.js";
13
13
  import "../chunks/chunk-7GUL3OBQ.js";
14
- import "../chunks/chunk-FLK6AZKB.js";
15
- import "../chunks/chunk-FUHYAW74.js";
16
- import "../chunks/chunk-RINY3U6G.js";
17
- import "../chunks/chunk-O6HEZXGY.js";
14
+ import "../chunks/chunk-VYAO5FCM.js";
15
+ import "../chunks/chunk-WBMKMQAL.js";
16
+ import "../chunks/chunk-5ONX3JVC.js";
17
+ import "../chunks/chunk-N5FJ5YIA.js";
18
18
 
19
19
  // src/cubing/search/index.ts
20
20
  var experimentalSolveTwsearch = (...args) => {
@@ -1,45 +1,2 @@
1
- import { P as ProxyEvent, A as AlgLeafEvent, O as OrientationEvent } from '../events-IfSwQLYm.js';
2
- export { a as ExperimentalProxyMoveEvent, b as ExperimentalProxyOrientationEvent, c as ExperimentalProxyResetEvent } from '../events-IfSwQLYm.js';
3
- import '../PuzzleLoader-R-puDLmC.js';
4
- import 'type-fest';
5
- import 'three/src/Three.js';
6
-
7
- declare class TwizzleStream extends EventTarget {
8
- socket: WebSocket;
9
- constructor(url: string);
10
- onMessage(msg: MessageEvent): void;
11
- }
12
- type StreamsField = {
13
- streamID: string;
14
- senders: {
15
- name: string;
16
- twizzleUserID: string;
17
- wcaID: string | null;
18
- }[];
19
- }[];
20
- declare class TwizzleStreamServer {
21
- streams(): Promise<StreamsField>;
22
- connect(streamID: string): TwizzleStream;
23
- }
24
-
25
- declare class WebSocketProxySender {
26
- protected websocket: WebSocket;
27
- constructor(url: string);
28
- sendMoveEvent(e: AlgLeafEvent): void;
29
- sendOrientationEvent(e: OrientationEvent): void;
30
- sendResetEvent(): void;
31
- protected sendProxyEvent(proxyEvent: ProxyEvent): void;
32
- protected onopen(): void;
33
- protected onerror(error: any): void;
34
- protected onmessage(_e: MessageEvent): void;
35
- }
36
- declare abstract class WebSocketProxyReceiver {
37
- protected websocket?: WebSocket;
38
- constructor(url: string, socketOrigin?: string);
39
- protected onopen(): void;
40
- protected onerror(error: any): void;
41
- protected onmessage(e: MessageEvent): void;
42
- abstract onProxyEvent(e: ProxyEvent): void;
43
- }
44
-
45
- export { AlgLeafEvent as ExperimentalAlgLeafEvent, OrientationEvent as ExperimentalOrientationEvent, ProxyEvent as ExperimentalProxyEvent, TwizzleStreamServer as ExperimentalTwizzleStreamServer, WebSocketProxyReceiver as ExperimentalWebSocketProxyReceiver, WebSocketProxySender as ExperimentalWebSocketProxySender };
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-Cvk652Bd.js";
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,7 +1,7 @@
1
1
  import {
2
2
  Move,
3
3
  QuantumMove
4
- } from "../chunks/chunk-O6HEZXGY.js";
4
+ } from "../chunks/chunk-N5FJ5YIA.js";
5
5
 
6
6
  // src/cubing/stream/twizzle/TwizzleStream.ts
7
7
  var TwizzleStream = class extends EventTarget {
@@ -1,60 +1,2 @@
1
- import { y as AlgIndexer, u as KPuzzle, r as Alg, M as Move, z as MillisecondTimestamp, B as LeafIndex, K as KPattern, C as KTransformation, D as MillisecondDuration, L as LeafCount, v as StickeringMask } from '../PuzzleLoader-R-puDLmC.js';
2
- export { F as BackViewLayout, N as EXPERIMENTAL_PROP_NO_VALUE, E as ExperimentalStickering, t as PuzzleID, T as TwistyAlgEditor, G as TwistyAlgViewer, H as TwistyPlayer, I as TwistyPlayerConfig, J as TwizzleLink, V as VisualizationFormat, O as backViewLayouts } from '../PuzzleLoader-R-puDLmC.js';
3
- import 'type-fest';
4
- import 'three/src/Three.js';
5
-
6
- declare class SimpleAlgIndexer implements AlgIndexer {
7
- private kpuzzle;
8
- private moves;
9
- private durationFn;
10
- constructor(kpuzzle: KPuzzle, alg: Alg);
11
- getAnimLeaf(index: number): Move;
12
- indexToMoveStartTimestamp(index: number): MillisecondTimestamp;
13
- timestampToIndex(timestamp: MillisecondTimestamp): LeafIndex;
14
- patternAtIndex(index: number): KPattern;
15
- transformationAtIndex(index: number): KTransformation;
16
- algDuration(): MillisecondDuration;
17
- numAnimatedLeaves(): LeafCount;
18
- moveDuration(index: LeafIndex): MillisecondDuration;
19
- }
20
-
21
- declare class TreeAlgIndexer implements AlgIndexer {
22
- private kpuzzle;
23
- private decoration;
24
- private walker;
25
- constructor(kpuzzle: KPuzzle, alg: Alg);
26
- getAnimLeaf(index: LeafIndex): Move | null;
27
- indexToMoveStartTimestamp(index: LeafIndex): MillisecondTimestamp;
28
- indexToMovesInProgress(index: LeafIndex): MillisecondTimestamp;
29
- patternAtIndex(index: LeafIndex, startPattern?: KPattern): KPattern;
30
- transformationAtIndex(index: LeafIndex): KTransformation;
31
- numAnimatedLeaves(): LeafCount;
32
- timestampToIndex(timestamp: MillisecondTimestamp): LeafIndex;
33
- algDuration(): MillisecondDuration;
34
- moveDuration(index: LeafIndex): MillisecondDuration;
35
- }
36
-
37
- declare const twistyDebugGlobals: {
38
- shareAllNewRenderers: "auto" | "always" | "never";
39
- showRenderStats: boolean;
40
- };
41
- declare function setTwistyDebug(options: Partial<typeof twistyDebugGlobals>): void;
42
-
43
- declare class TwistyAnimatedSVG {
44
- kpuzzle: KPuzzle;
45
- private showUnknownOrientations;
46
- wrapperElement: HTMLElement;
47
- svgElement: SVGElement;
48
- gradientDefs: SVGDefsElement;
49
- private originalColors;
50
- private gradients;
51
- private svgID;
52
- constructor(kpuzzle: KPuzzle, svgSource: string, experimentalStickeringMask?: StickeringMask, showUnknownOrientations?: boolean);
53
- drawPattern(pattern: KPattern, nextPattern?: KPattern, fraction?: number): void;
54
- draw(pattern: KPattern, nextPattern?: KPattern, fraction?: number): void;
55
- private newGradient;
56
- private elementID;
57
- private elementByID;
58
- }
59
-
60
- export { AlgIndexer, LeafCount as ExperimentalLeafCount, LeafIndex as ExperimentalLeafIndex, MillisecondDuration as ExperimentalMillisecondDuration, MillisecondTimestamp as ExperimentalMillisecondTimestamp, TwistyAnimatedSVG as ExperimentalSVGAnimator, SimpleAlgIndexer, TreeAlgIndexer, setTwistyDebug };
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-BXHm_6gm.js";
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 };