cubing 0.24.3 → 0.24.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.
@@ -2,9 +2,9 @@ import { Alg } from "../../../../alg";
2
2
  import type { KPuzzle, KTransformation } from "../../../../kpuzzle";
3
3
  import type { KState } from "../../../../kpuzzle/KState";
4
4
  import { Duration, PuzzlePosition, Timestamp } from "../../AnimationTypes";
5
- import type { AlgIndexer } from "../AlgIndexer";
5
+ import type { CurrentMoveInfo } from "../AlgIndexer";
6
6
  import { AnimatedLeafUnit } from "./simul-moves";
7
- export declare class SimultaneousMoveIndexer implements AlgIndexer {
7
+ export declare class SimultaneousMoveIndexer {
8
8
  private kpuzzle;
9
9
  private animLeaves;
10
10
  constructor(kpuzzle: KPuzzle, alg: Alg);
@@ -12,8 +12,9 @@ export declare class SimultaneousMoveIndexer implements AlgIndexer {
12
12
  private getAnimLeafWithRange;
13
13
  indexToMoveStartTimestamp(index: number): Timestamp;
14
14
  timestampToIndex(timestamp: Timestamp): number;
15
- timestampToPosition(timestamp: Timestamp, startTransformation?: KState): PuzzlePosition;
16
- stateAtIndex(index: number, startTransformation?: KState): KState;
15
+ timestampToPosition(timestamp: Timestamp, startState?: KState): PuzzlePosition;
16
+ currentMoveInfo(timestamp: Timestamp): CurrentMoveInfo;
17
+ stateAtIndex(index: number, startState?: KState): KState;
17
18
  transformationAtIndex(index: number): KTransformation;
18
19
  algDuration(): Duration;
19
20
  numAnimatedLeaves(): number;
@@ -1,4 +1,4 @@
1
- import type { ButtonCommand } from "../../../views/control-panel/TwistyButtonsV2";
1
+ import type { ButtonCommand } from "../../../views/control-panel/TwistyButtons";
2
2
  import type { PlayingInfo } from "./PlayingInfoProp";
3
3
  import type { DetailedTimelineInfo } from "./DetailedTimelineInfoProp";
4
4
  import { TwistyPropDerived } from "../TwistyProp";
@@ -1,4 +1,4 @@
1
- import type { ButtonCommand } from "../../../views/control-panel/TwistyButtonsV2";
1
+ import type { ButtonCommand } from "../../../views/control-panel/TwistyButtons";
2
2
  import type { ViewerLinkPageWithAuto } from "./ViewerLinkProp";
3
3
  import type { CoarseTimelineInfo as CoarseTimelineInfo } from "../timeline/CoarseTimelineInfoProp";
4
4
  import { TwistyPropDerived } from "../TwistyProp";
@@ -12,7 +12,7 @@ import { ControlPanelThemeWithAuto } from "../model/props/viewer/ControlPanelPro
12
12
  import type { ViewerLinkPageWithAuto } from "../model/props/viewer/ViewerLinkProp";
13
13
  import type { VisualizationFormatWithAuto } from "../model/props/viewer/VisualizationProp";
14
14
  import type { PG3D } from "./3D/puzzles/PG3D";
15
- import { TwistyButtonsV2 } from "./control-panel/TwistyButtonsV2";
15
+ import { TwistyButtons } from "./control-panel/TwistyButtons";
16
16
  import { TwistyPlayerSettable } from "./TwistyPlayerSettable";
17
17
  export declare const twistyPlayerAttributeMap: {
18
18
  alg: string;
@@ -77,7 +77,7 @@ export interface TwistyPlayerConfig {
77
77
  export declare class TwistyPlayer extends TwistyPlayerSettable implements TwistyAnimationControllerDelegate {
78
78
  #private;
79
79
  controller: TwistyPlayerController;
80
- buttons: TwistyButtonsV2;
80
+ buttons: TwistyButtons;
81
81
  experimentalCanvasClickCallback: (...args: any) => void;
82
82
  constructor(config?: TwistyPlayerConfig);
83
83
  connectedCallback(): Promise<void>;
@@ -12,18 +12,18 @@ declare const buttonCommands: {
12
12
  "twizzle-link": boolean;
13
13
  };
14
14
  export declare type ButtonCommand = keyof typeof buttonCommands;
15
- export declare class TwistyButtonsV2 extends ManagedCustomElement {
15
+ export declare class TwistyButtons extends ManagedCustomElement {
16
16
  #private;
17
17
  model?: TwistyPlayerModel | undefined;
18
18
  controller?: TwistyPlayerController | undefined;
19
19
  private fullscreenElement?;
20
- buttons: Record<ButtonCommand, TwistyButtonV2> | null;
20
+ buttons: Record<ButtonCommand, TwistyButton> | null;
21
21
  constructor(model?: TwistyPlayerModel | undefined, controller?: TwistyPlayerController | undefined, fullscreenElement?: HTMLElement | undefined);
22
22
  connectedCallback(): void;
23
23
  onFullscreenButton(): Promise<void>;
24
24
  update(buttonAppearances: ButtonAppearances): Promise<void>;
25
25
  }
26
- declare class TwistyButtonV2 extends ManagedCustomElement {
26
+ declare class TwistyButton extends ManagedCustomElement {
27
27
  #private;
28
28
  button: HTMLButtonElement;
29
29
  connectedCallback(): void;
@@ -1,7 +1,7 @@
1
1
  import { ManagedCustomElement } from "../ManagedCustomElement";
2
2
  import type { DetailedTimelineInfo } from "../../model/props/timeline/DetailedTimelineInfoProp";
3
3
  import type { TwistyPlayerModel } from "../../model/TwistyPlayerModel";
4
- export declare class TwistyScrubberV2 extends ManagedCustomElement {
4
+ export declare class TwistyScrubber extends ManagedCustomElement {
5
5
  #private;
6
6
  model?: TwistyPlayerModel | undefined;
7
7
  constructor(model?: TwistyPlayerModel | undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cubing",
3
- "version": "0.24.3",
3
+ "version": "0.24.4",
4
4
  "description": "A collection of JavaScript cubing libraries.",
5
5
  "author": "The js.cubing.net team",
6
6
  "type": "module",
@@ -1,22 +0,0 @@
1
- import { Alg } from "../../../../alg";
2
- import type { KPuzzle, KTransformation } from "../../../../kpuzzle";
3
- import type { KState } from "../../../../kpuzzle/KState";
4
- import { Duration, PuzzlePosition, Timestamp } from "../../AnimationTypes";
5
- import type { CurrentMoveInfo } from "../AlgIndexer";
6
- import { AnimatedLeafUnit } from "./simul-moves";
7
- export declare class SimultaneousMoveIndexerV2 {
8
- private kpuzzle;
9
- private animLeaves;
10
- constructor(kpuzzle: KPuzzle, alg: Alg);
11
- getAnimLeaf(index: number): AnimatedLeafUnit | null;
12
- private getAnimLeafWithRange;
13
- indexToMoveStartTimestamp(index: number): Timestamp;
14
- timestampToIndex(timestamp: Timestamp): number;
15
- timestampToPosition(timestamp: Timestamp, startState?: KState): PuzzlePosition;
16
- currentMoveInfo(timestamp: Timestamp): CurrentMoveInfo;
17
- stateAtIndex(index: number, startState?: KState): KState;
18
- transformationAtIndex(index: number): KTransformation;
19
- algDuration(): Duration;
20
- numAnimatedLeaves(): number;
21
- moveDuration(index: number): number;
22
- }