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.
- package/dist/esm/twisty/index.js +21 -20
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts +5 -4
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts +1 -1
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts +1 -1
- package/dist/types/twisty/views/TwistyPlayer.d.ts +2 -2
- package/dist/types/twisty/views/control-panel/{TwistyButtonsV2.css.d.ts → TwistyButtons.css.d.ts} +0 -0
- package/dist/types/twisty/views/control-panel/{TwistyButtonsV2.d.ts → TwistyButtons.d.ts} +3 -3
- package/dist/types/twisty/views/control-panel/{TwistyScrubberV2.d.ts → TwistyScrubber.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts +0 -22
package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts
CHANGED
|
@@ -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 {
|
|
5
|
+
import type { CurrentMoveInfo } from "../AlgIndexer";
|
|
6
6
|
import { AnimatedLeafUnit } from "./simul-moves";
|
|
7
|
-
export declare class SimultaneousMoveIndexer
|
|
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,
|
|
16
|
-
|
|
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/
|
|
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/
|
|
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 {
|
|
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:
|
|
80
|
+
buttons: TwistyButtons;
|
|
81
81
|
experimentalCanvasClickCallback: (...args: any) => void;
|
|
82
82
|
constructor(config?: TwistyPlayerConfig);
|
|
83
83
|
connectedCallback(): Promise<void>;
|
package/dist/types/twisty/views/control-panel/{TwistyButtonsV2.css.d.ts → TwistyButtons.css.d.ts}
RENAMED
|
File without changes
|
|
@@ -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
|
|
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,
|
|
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
|
|
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
|
|
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
package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts
DELETED
|
@@ -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
|
-
}
|