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.
@@ -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-CZJxf7wC.js";
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openvideo",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Video rendering and processing library",
5
5
  "type": "module",
6
6
  "publishConfig": {