openvideo 0.2.3 → 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-fYnMYU5U.js → browserAll-DqJYgFGF.js} +2 -2
- package/dist/clips/caption-clip.d.ts +55 -41
- package/dist/{index-CZJxf7wC.js → index-D-dl7dbF.js} +2152 -2091
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +112 -112
- package/dist/json-serialization.d.ts +10 -0
- package/dist/{webworkerAll-B5b1f-BT.js → webworkerAll-LBYBQRrP.js} +1 -1
- package/package.json +1 -1
|
@@ -105,6 +105,7 @@ export interface TextStyleJSON {
|
|
|
105
105
|
wordsPerLine?: "single" | "multiple";
|
|
106
106
|
verticalAlign?: "top" | "center" | "bottom";
|
|
107
107
|
wordAnimation?: ICaptionWordAnimation;
|
|
108
|
+
textBoxStyle?: TextBoxStyleJSON;
|
|
108
109
|
}
|
|
109
110
|
export interface ICaptionWordAnimation {
|
|
110
111
|
type: "scale" | "opacity";
|
|
@@ -112,6 +113,13 @@ export interface ICaptionWordAnimation {
|
|
|
112
113
|
value: number;
|
|
113
114
|
mode?: "static" | "dynamic";
|
|
114
115
|
}
|
|
116
|
+
export interface TextBoxStyleJSON {
|
|
117
|
+
style?: "tiktok" | "none";
|
|
118
|
+
textAlign?: "left" | "center" | "right" | "";
|
|
119
|
+
maxLines?: number;
|
|
120
|
+
borderRadius?: number;
|
|
121
|
+
horizontalPadding?: number;
|
|
122
|
+
}
|
|
115
123
|
export interface TextJSON extends BaseClipJSON {
|
|
116
124
|
type: "Text";
|
|
117
125
|
text: string;
|
|
@@ -141,6 +149,7 @@ 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
155
|
type: "Caption";
|
|
@@ -166,6 +175,7 @@ export interface CaptionJSON extends BaseClipJSON {
|
|
|
166
175
|
fontUrl?: string;
|
|
167
176
|
mediaId?: string;
|
|
168
177
|
wordsPerLine?: "single" | "multiple";
|
|
178
|
+
textBoxStyle?: TextBoxStyleJSON;
|
|
169
179
|
}
|
|
170
180
|
export interface EffectJSON extends BaseClipJSON {
|
|
171
181
|
type: "Effect";
|
|
@@ -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);
|