openvideo 0.2.3 → 0.2.5

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,14 @@ 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
+ verticalPadding?: number;
123
+ }
115
124
  export interface TextJSON extends BaseClipJSON {
116
125
  type: "Text";
117
126
  text: string;
@@ -141,6 +150,7 @@ export interface CaptionDataJSON {
141
150
  preserveKeywordColor?: boolean;
142
151
  positioning?: CaptionPositioningJSON;
143
152
  wordAnimation?: ICaptionWordAnimation;
153
+ textBoxStyle?: TextBoxStyleJSON;
144
154
  }
145
155
  export interface CaptionJSON extends BaseClipJSON {
146
156
  type: "Caption";
@@ -166,6 +176,7 @@ export interface CaptionJSON extends BaseClipJSON {
166
176
  fontUrl?: string;
167
177
  mediaId?: string;
168
178
  wordsPerLine?: "single" | "multiple";
179
+ textBoxStyle?: TextBoxStyleJSON;
169
180
  }
170
181
  export interface EffectJSON extends BaseClipJSON {
171
182
  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-CPuuXWdR.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.5",
4
4
  "description": "Video rendering and processing library",
5
5
  "type": "module",
6
6
  "publishConfig": {