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.
@@ -23,7 +23,7 @@ interface BaseClipJSON {
23
23
  angle: number;
24
24
  zIndex: number;
25
25
  opacity: number;
26
- flip: 'horizontal' | 'vertical' | null;
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: 'Video';
56
+ type: "Video";
57
57
  audio?: boolean;
58
58
  volume?: number;
59
59
  }
60
60
  export interface AudioJSON extends BaseClipJSON {
61
- type: 'Audio';
61
+ type: "Audio";
62
62
  loop?: boolean;
63
63
  volume?: number;
64
64
  }
65
65
  export interface ImageJSON extends BaseClipJSON {
66
- type: 'Image';
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: 'gradient';
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?: 'left' | 'center' | 'right';
84
+ align?: "left" | "center" | "right";
85
85
  fontUrl?: string;
86
86
  stroke?: {
87
87
  color: string | number;
88
88
  width: number;
89
- join?: 'miter' | 'round' | 'bevel';
90
- cap?: 'butt' | 'round' | 'square';
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?: 'none' | 'uppercase' | 'lowercase' | 'title';
105
- wordsPerLine?: 'single' | 'multiple';
106
- verticalAlign?: 'top' | 'center' | 'bottom';
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: 'scale' | 'opacity';
111
- application: 'active' | 'keyword' | 'none';
111
+ type: "scale" | "opacity";
112
+ application: "active" | "keyword" | "none";
112
113
  value: number;
113
- mode?: 'static' | 'dynamic';
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: 'Text';
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: 'Caption';
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?: 'single' | 'multiple';
177
+ wordsPerLine?: "single" | "multiple";
178
+ textBoxStyle?: TextBoxStyleJSON;
169
179
  }
170
180
  export interface EffectJSON extends BaseClipJSON {
171
- type: 'Effect';
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: 'Transition';
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: 'Placeholder';
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-BXuEu2AS.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.2",
3
+ "version": "0.2.4",
4
4
  "description": "Video rendering and processing library",
5
5
  "type": "module",
6
6
  "publishConfig": {