openvideo 0.2.2 → 0.2.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.
- package/dist/{browserAll-Bki0HKJn.js → browserAll-DqJYgFGF.js} +2 -2
- package/dist/clips/caption-clip.d.ts +55 -41
- package/dist/{index-BXuEu2AS.js → index-D-dl7dbF.js} +2169 -2101
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +112 -112
- package/dist/json-serialization.d.ts +30 -20
- package/dist/{webworkerAll-BPHrCidF.js → webworkerAll-LBYBQRrP.js} +1 -1
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ interface BaseClipJSON {
|
|
|
23
23
|
angle: number;
|
|
24
24
|
zIndex: number;
|
|
25
25
|
opacity: number;
|
|
26
|
-
flip:
|
|
26
|
+
flip: "horizontal" | "vertical" | null;
|
|
27
27
|
trim?: {
|
|
28
28
|
from: number;
|
|
29
29
|
to: number;
|
|
@@ -53,17 +53,17 @@ interface BaseClipJSON {
|
|
|
53
53
|
main?: boolean;
|
|
54
54
|
}
|
|
55
55
|
export interface VideoJSON extends BaseClipJSON {
|
|
56
|
-
type:
|
|
56
|
+
type: "Video";
|
|
57
57
|
audio?: boolean;
|
|
58
58
|
volume?: number;
|
|
59
59
|
}
|
|
60
60
|
export interface AudioJSON extends BaseClipJSON {
|
|
61
|
-
type:
|
|
61
|
+
type: "Audio";
|
|
62
62
|
loop?: boolean;
|
|
63
63
|
volume?: number;
|
|
64
64
|
}
|
|
65
65
|
export interface ImageJSON extends BaseClipJSON {
|
|
66
|
-
type:
|
|
66
|
+
type: "Image";
|
|
67
67
|
}
|
|
68
68
|
export interface TextStyleJSON {
|
|
69
69
|
fontSize?: number;
|
|
@@ -71,7 +71,7 @@ export interface TextStyleJSON {
|
|
|
71
71
|
fontWeight?: string | number;
|
|
72
72
|
fontStyle?: string;
|
|
73
73
|
color?: string | number | {
|
|
74
|
-
type:
|
|
74
|
+
type: "gradient";
|
|
75
75
|
x0: number;
|
|
76
76
|
y0: number;
|
|
77
77
|
x1: number;
|
|
@@ -81,13 +81,13 @@ export interface TextStyleJSON {
|
|
|
81
81
|
color: string | number;
|
|
82
82
|
}>;
|
|
83
83
|
};
|
|
84
|
-
align?:
|
|
84
|
+
align?: "left" | "center" | "right";
|
|
85
85
|
fontUrl?: string;
|
|
86
86
|
stroke?: {
|
|
87
87
|
color: string | number;
|
|
88
88
|
width: number;
|
|
89
|
-
join?:
|
|
90
|
-
cap?:
|
|
89
|
+
join?: "miter" | "round" | "bevel";
|
|
90
|
+
cap?: "butt" | "round" | "square";
|
|
91
91
|
miterLimit?: number;
|
|
92
92
|
};
|
|
93
93
|
shadow?: {
|
|
@@ -101,19 +101,27 @@ export interface TextStyleJSON {
|
|
|
101
101
|
wordWrapWidth?: number;
|
|
102
102
|
lineHeight?: number;
|
|
103
103
|
letterSpacing?: number;
|
|
104
|
-
textCase?:
|
|
105
|
-
wordsPerLine?:
|
|
106
|
-
verticalAlign?:
|
|
104
|
+
textCase?: "none" | "uppercase" | "lowercase" | "title";
|
|
105
|
+
wordsPerLine?: "single" | "multiple";
|
|
106
|
+
verticalAlign?: "top" | "center" | "bottom";
|
|
107
107
|
wordAnimation?: ICaptionWordAnimation;
|
|
108
|
+
textBoxStyle?: TextBoxStyleJSON;
|
|
108
109
|
}
|
|
109
110
|
export interface ICaptionWordAnimation {
|
|
110
|
-
type:
|
|
111
|
-
application:
|
|
111
|
+
type: "scale" | "opacity";
|
|
112
|
+
application: "active" | "keyword" | "none";
|
|
112
113
|
value: number;
|
|
113
|
-
mode?:
|
|
114
|
+
mode?: "static" | "dynamic";
|
|
115
|
+
}
|
|
116
|
+
export interface TextBoxStyleJSON {
|
|
117
|
+
style?: "tiktok" | "none";
|
|
118
|
+
textAlign?: "left" | "center" | "right" | "";
|
|
119
|
+
maxLines?: number;
|
|
120
|
+
borderRadius?: number;
|
|
121
|
+
horizontalPadding?: number;
|
|
114
122
|
}
|
|
115
123
|
export interface TextJSON extends BaseClipJSON {
|
|
116
|
-
type:
|
|
124
|
+
type: "Text";
|
|
117
125
|
text: string;
|
|
118
126
|
style?: TextStyleJSON;
|
|
119
127
|
}
|
|
@@ -141,9 +149,10 @@ export interface CaptionDataJSON {
|
|
|
141
149
|
preserveKeywordColor?: boolean;
|
|
142
150
|
positioning?: CaptionPositioningJSON;
|
|
143
151
|
wordAnimation?: ICaptionWordAnimation;
|
|
152
|
+
textBoxStyle?: TextBoxStyleJSON;
|
|
144
153
|
}
|
|
145
154
|
export interface CaptionJSON extends BaseClipJSON {
|
|
146
|
-
type:
|
|
155
|
+
type: "Caption";
|
|
147
156
|
text: string;
|
|
148
157
|
style?: TextStyleJSON;
|
|
149
158
|
caption?: CaptionDataJSON;
|
|
@@ -165,10 +174,11 @@ export interface CaptionJSON extends BaseClipJSON {
|
|
|
165
174
|
videoHeight?: number;
|
|
166
175
|
fontUrl?: string;
|
|
167
176
|
mediaId?: string;
|
|
168
|
-
wordsPerLine?:
|
|
177
|
+
wordsPerLine?: "single" | "multiple";
|
|
178
|
+
textBoxStyle?: TextBoxStyleJSON;
|
|
169
179
|
}
|
|
170
180
|
export interface EffectJSON extends BaseClipJSON {
|
|
171
|
-
type:
|
|
181
|
+
type: "Effect";
|
|
172
182
|
effect: {
|
|
173
183
|
id: string;
|
|
174
184
|
key: string;
|
|
@@ -176,7 +186,7 @@ export interface EffectJSON extends BaseClipJSON {
|
|
|
176
186
|
};
|
|
177
187
|
}
|
|
178
188
|
export interface TransitionJSON extends BaseClipJSON {
|
|
179
|
-
type:
|
|
189
|
+
type: "Transition";
|
|
180
190
|
transitionEffect: {
|
|
181
191
|
id: string;
|
|
182
192
|
key: string;
|
|
@@ -186,7 +196,7 @@ export interface TransitionJSON extends BaseClipJSON {
|
|
|
186
196
|
toClipId: string | null;
|
|
187
197
|
}
|
|
188
198
|
export interface PlaceholderJSON extends BaseClipJSON {
|
|
189
|
-
type:
|
|
199
|
+
type: "Placeholder";
|
|
190
200
|
}
|
|
191
201
|
export interface GlobalTransitionJSON {
|
|
192
202
|
key: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as a, R as e, T as d, G as i, b as s, M as t, c as p, d as P, f as n, g as r, B as T, H as l, h as c, i as m, N as x, j as S, k as o } from "./index-
|
|
1
|
+
import { e as a, R as e, T as d, G as i, b as s, M as t, c as p, d as P, f as n, g as r, B as T, H as l, h as c, i as m, N as x, j as S, k as o } from "./index-D-dl7dbF.js";
|
|
2
2
|
a.add(e);
|
|
3
3
|
a.add(d);
|
|
4
4
|
a.add(i);
|