@designcombo/state 5.0.1 → 5.0.3

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 CHANGED
@@ -31,6 +31,7 @@ export declare const ADD_RADIAL_AUDIO_BARS = "add:radialAudioBars";
31
31
  export declare const ADD_LINEAL_AUDIO_BARS = "add:linealAudioBars";
32
32
  export declare const ADD_WAVE_AUDIO_BARS = "add:waveAudioBars";
33
33
  export declare const ADD_HILL_AUDIO_BARS = "add:hillAudioBars";
34
+ export declare const ADD_RECT = "add:rect";
34
35
  export declare const EDIT_PREFIX = "edit";
35
36
  export declare const EDIT_OBJECT = "edit:object";
36
37
  export declare const REPLACE_MEDIA = "edit:replaceMedia";
@@ -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 {};