@designcombo/state 0.1.3 → 0.1.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.
@@ -0,0 +1,6 @@
1
+ import { default as StateManager } from '.';
2
+
3
+ declare function handleStateEvents(state: StateManager): {
4
+ unsubscribe: () => void;
5
+ };
6
+ export default handleStateEvents;
package/dist/index.d.ts CHANGED
@@ -1,18 +1 @@
1
- import { ITimelineScaleState, ITrack, ITrackItem, ITransition, State as iState } from '@designcombo/types';
2
-
3
- declare class State implements iState {
4
- tracks: ITrack[];
5
- trackItemsMap: Record<string, ITrackItem>;
6
- trackItemIds: string[];
7
- transitionIds: string[];
8
- transitionsMap: Record<string, ITransition>;
9
- scale: ITimelineScaleState;
10
- duration: number;
11
- activeIds: string[];
12
- targetIds: string[];
13
- notify(): void;
14
- selectItem(): void;
15
- getCurrentTime(): number;
16
- getTargetIds(): string[];
17
- }
18
- export default State;
1
+ export { default } from './state';