@designcombo/state 4.0.2 → 4.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 +4 -1
- package/dist/handlers/add/custom.d.ts +2 -2
- package/dist/index.es.js +1891 -1718
- package/dist/index.umd.js +3 -3
- package/dist/utils/load-item.d.ts +90 -7
- package/package.json +3 -3
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IAudio, ICaption, IComposition,
|
1
|
+
import { IAudio, ICaption, IComposition, IDisplay, IIllustration, IImage, ILinealAudioBars, IProgressBar, IProgressFrame, IRadialAudioBars, IShape, ISize, ITemplate, IText, ITrack, ITrackItem, ITrim, IVideo, IVideoDetails } from '@designcombo/types';
|
2
2
|
|
3
3
|
type OptionsType = {
|
4
4
|
size: {
|
@@ -50,24 +50,105 @@ export declare const loadAudioItem: (payload: ITrackItem & IAudio) => Promise<{
|
|
50
50
|
};
|
51
51
|
duration: number;
|
52
52
|
}>;
|
53
|
-
export declare const
|
53
|
+
export declare const loadProgressBarItem: (payload: ITrackItem & IProgressBar, options: {
|
54
54
|
size: ISize;
|
55
55
|
scaleMode?: string;
|
56
56
|
scaleAspectRatio?: number;
|
57
57
|
}) => Promise<{
|
58
58
|
id: string;
|
59
|
-
name:
|
60
|
-
type:
|
59
|
+
name: "progressBar";
|
60
|
+
type: "progressBar";
|
61
61
|
display: IDisplay;
|
62
|
-
|
62
|
+
details: {
|
63
|
+
width: any;
|
64
|
+
height: any;
|
65
|
+
top: any;
|
66
|
+
left: any;
|
67
|
+
border: any;
|
68
|
+
borderRadius: any;
|
69
|
+
borderWidth: any;
|
70
|
+
borderColor: any;
|
71
|
+
opacity: any;
|
72
|
+
flipX: any;
|
73
|
+
flipY: any;
|
74
|
+
inverted: any;
|
75
|
+
backgroundColors: any;
|
76
|
+
};
|
77
|
+
metadata: {};
|
78
|
+
}>;
|
79
|
+
export declare const loadProgressFrameItem: (payload: ITrackItem & IProgressFrame, options: {
|
80
|
+
size: ISize;
|
81
|
+
scaleMode?: string;
|
82
|
+
scaleAspectRatio?: number;
|
83
|
+
}) => Promise<{
|
84
|
+
id: string;
|
85
|
+
name: "progressFrame";
|
86
|
+
type: "progressFrame";
|
87
|
+
display: IDisplay;
|
88
|
+
details: {
|
89
|
+
width: any;
|
90
|
+
height: any;
|
91
|
+
top: any;
|
92
|
+
left: any;
|
93
|
+
border: any;
|
94
|
+
borderRadius: any;
|
95
|
+
borderWidth: any;
|
96
|
+
borderColor: any;
|
97
|
+
opacity: any;
|
98
|
+
flipX: any;
|
99
|
+
flipY: any;
|
100
|
+
inverted: any;
|
101
|
+
backgroundColors: any;
|
102
|
+
};
|
103
|
+
metadata: {};
|
104
|
+
}>;
|
105
|
+
export declare const loadRadialAudioBarsItem: (payload: ITrackItem & IRadialAudioBars, options: {
|
106
|
+
size: ISize;
|
107
|
+
scaleMode?: string;
|
108
|
+
scaleAspectRatio?: number;
|
109
|
+
}) => Promise<{
|
110
|
+
id: string;
|
111
|
+
name: "radialAudioBars";
|
112
|
+
type: "radialAudioBars";
|
113
|
+
display: IDisplay;
|
114
|
+
trim: ITrim;
|
115
|
+
duration: any;
|
116
|
+
details: {
|
117
|
+
width: any;
|
118
|
+
height: any;
|
119
|
+
top: any;
|
120
|
+
left: any;
|
121
|
+
radialBarColor: any;
|
122
|
+
border: any;
|
123
|
+
borderRadius: any;
|
124
|
+
borderWidth: any;
|
125
|
+
borderColor: any;
|
126
|
+
opacity: any;
|
127
|
+
flipX: any;
|
128
|
+
flipY: any;
|
129
|
+
inverted: any;
|
130
|
+
srcs: any;
|
131
|
+
reproduceAudio: any;
|
132
|
+
audioDatas: any[];
|
133
|
+
};
|
134
|
+
metadata: {};
|
135
|
+
}>;
|
136
|
+
export declare const loadLinealAudioBarsItem: (payload: ITrackItem & ILinealAudioBars, options: {
|
137
|
+
size: ISize;
|
138
|
+
scaleMode?: string;
|
139
|
+
scaleAspectRatio?: number;
|
140
|
+
}) => Promise<{
|
141
|
+
id: string;
|
142
|
+
name: "linealAudioBars";
|
143
|
+
type: "linealAudioBars";
|
144
|
+
display: IDisplay;
|
145
|
+
trim: ITrim;
|
63
146
|
duration: any;
|
64
147
|
details: {
|
65
148
|
width: any;
|
66
149
|
height: any;
|
67
150
|
top: any;
|
68
151
|
left: any;
|
69
|
-
firstBackgroundColor: any;
|
70
|
-
secondBackgroundColor: any;
|
71
152
|
border: any;
|
72
153
|
borderRadius: any;
|
73
154
|
borderWidth: any;
|
@@ -78,6 +159,8 @@ export declare const loadCustomItem: (payload: ITrackItem & ICustom, options: {
|
|
78
159
|
inverted: any;
|
79
160
|
srcs: any;
|
80
161
|
reproduceAudio: any;
|
162
|
+
audioDatas: any[];
|
163
|
+
linealBarColor: any;
|
81
164
|
};
|
82
165
|
metadata: {};
|
83
166
|
}>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@designcombo/state",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.3",
|
4
4
|
"private": false,
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"typescript": "^5.3.3",
|
26
26
|
"vite": "^5.2.0",
|
27
27
|
"vite-plugin-dts": "^3.9.1",
|
28
|
-
"@designcombo/types": "4.0.
|
28
|
+
"@designcombo/types": "4.0.3",
|
29
29
|
"@designcombo/typescript-config": "0.0.0"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
@@ -39,7 +39,7 @@
|
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"@designcombo/events": "^1.0.2",
|
42
|
-
"@designcombo/types": "4.0.
|
42
|
+
"@designcombo/types": "4.0.3"
|
43
43
|
},
|
44
44
|
"scripts": {
|
45
45
|
"dev": "vite",
|