Skip to content

Commit

Permalink
fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Feb 7, 2025
1 parent bddefbe commit 8ecf319
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
declare enum AnimationStatus {
NOT_STARTED = "not-started",
STARTED = "started",
FREE = "free",
RESULT = "result",
RESULT_ANIMATION = "result_animation",
RESTART_ANIMATION = "restart_animation",
RESTART = "restart"
}

export declare let animationStatus: AnimationStatus;

export declare function loadTowerAnimation({ canvasId, offset }: {
canvasId: string;
offset?: number;
Expand Down
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { loadTowerAnimation, removeTowerAnimation } from './scripts/index';
import { properties } from './scripts/core/properties';
import { stateManager } from './scripts/logic/stateManager';
import { stateManager, status as animationStatus } from './scripts/logic/stateManager';

export function setAnimationState(id: string, isReplay?: boolean) {
stateManager.set(id, isReplay);
Expand All @@ -15,4 +15,4 @@ export function setAnimationProperties(newProps: Property[]) {
}
}

export { loadTowerAnimation, removeTowerAnimation };
export { loadTowerAnimation, removeTowerAnimation, animationStatus };
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tari-project/tari-tower",
"version": "0.0.12",
"version": "0.0.13",
"private": false,
"description": "the tower animation used in Tari Universe",
"homepage": "https://github.com/tari-project/tari-tower#readme",
Expand Down

0 comments on commit 8ecf319

Please sign in to comment.