@designcombo/state 5.0.0 → 5.0.2
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/events.d.ts +3 -0
- package/dist/handlers/add/custom.d.ts +1 -1
- package/dist/handlers/add/rect.d.ts +10 -0
- package/dist/index.es.js +1359 -1246
- package/dist/index.umd.js +3 -3
- package/dist/utils/load-item.d.ts +51 -1
- package/package.json +4 -4
package/dist/events.d.ts
CHANGED
@@ -29,6 +29,9 @@ export declare const ADD_PROGRESS_BAR = "add:progressBar";
|
|
29
29
|
export declare const ADD_PROGRESS_FRAME = "add:progressFrame";
|
30
30
|
export declare const ADD_RADIAL_AUDIO_BARS = "add:radialAudioBars";
|
31
31
|
export declare const ADD_LINEAL_AUDIO_BARS = "add:linealAudioBars";
|
32
|
+
export declare const ADD_WAVE_AUDIO_BARS = "add:waveAudioBars";
|
33
|
+
export declare const ADD_HILL_AUDIO_BARS = "add:hillAudioBars";
|
34
|
+
export declare const ADD_RECT = "add:rect";
|
32
35
|
export declare const EDIT_PREFIX = "edit";
|
33
36
|
export declare const EDIT_OBJECT = "edit:object";
|
34
37
|
export declare const REPLACE_MEDIA = "edit:replaceMedia";
|
@@ -6,5 +6,5 @@ interface CustomOptions {
|
|
6
6
|
scaleMode?: string;
|
7
7
|
scaleAspectRatio?: number;
|
8
8
|
}
|
9
|
-
export declare function addGeneric(state: State, payload: IProgressBar | IProgressFrame | IRadialAudioBars | ILinealAudioBars, options: CustomOptions | undefined, type: "progress-bar" | "progress-frame" | "radial-audio-bars" | "lineal-audio-bars"): Promise<Partial<State>>;
|
9
|
+
export declare function addGeneric(state: State, payload: IProgressBar | IProgressFrame | IRadialAudioBars | ILinealAudioBars, options: CustomOptions | undefined, type: "progress-bar" | "progress-frame" | "radial-audio-bars" | "lineal-audio-bars" | "wave-audio-bars" | "hill-audio-bars"): Promise<Partial<State>>;
|
10
10
|
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { State, IRect } from '@designcombo/types';
|
2
|
+
|
3
|
+
interface RectOptions {
|
4
|
+
targetTrackIndex?: number;
|
5
|
+
targetTrackId?: string;
|
6
|
+
scaleMode?: string;
|
7
|
+
scaleAspectRatio?: number;
|
8
|
+
}
|
9
|
+
export declare function addRect(state: State, payload: IRect, options?: RectOptions): Promise<Partial<State>>;
|
10
|
+
export {};
|