openvideo 0.2.1 → 0.2.3
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-fg4kMsDE.js → browserAll-fYnMYU5U.js} +2 -2
- package/dist/effect/constant/index.d.ts +3 -10
- package/dist/effect/effect.d.ts +1 -1
- package/dist/effect/types.d.ts +1 -0
- package/dist/{index-DX5d9IHl.js → index-CZJxf7wC.js} +6722 -6711
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +251 -251
- package/dist/json-serialization.d.ts +20 -20
- package/dist/studio.d.ts +1 -1
- package/dist/{webworkerAll-VNDkFiQ2.js → webworkerAll-B5b1f-BT.js} +1 -1
- package/package.json +1 -1
- package/dist/texture1.png +0 -0
- package/dist/texture2.png +0 -0
|
@@ -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,19 @@ 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
108
|
}
|
|
109
109
|
export interface ICaptionWordAnimation {
|
|
110
|
-
type:
|
|
111
|
-
application:
|
|
110
|
+
type: "scale" | "opacity";
|
|
111
|
+
application: "active" | "keyword" | "none";
|
|
112
112
|
value: number;
|
|
113
|
-
mode?:
|
|
113
|
+
mode?: "static" | "dynamic";
|
|
114
114
|
}
|
|
115
115
|
export interface TextJSON extends BaseClipJSON {
|
|
116
|
-
type:
|
|
116
|
+
type: "Text";
|
|
117
117
|
text: string;
|
|
118
118
|
style?: TextStyleJSON;
|
|
119
119
|
}
|
|
@@ -143,7 +143,7 @@ export interface CaptionDataJSON {
|
|
|
143
143
|
wordAnimation?: ICaptionWordAnimation;
|
|
144
144
|
}
|
|
145
145
|
export interface CaptionJSON extends BaseClipJSON {
|
|
146
|
-
type:
|
|
146
|
+
type: "Caption";
|
|
147
147
|
text: string;
|
|
148
148
|
style?: TextStyleJSON;
|
|
149
149
|
caption?: CaptionDataJSON;
|
|
@@ -165,10 +165,10 @@ export interface CaptionJSON extends BaseClipJSON {
|
|
|
165
165
|
videoHeight?: number;
|
|
166
166
|
fontUrl?: string;
|
|
167
167
|
mediaId?: string;
|
|
168
|
-
wordsPerLine?:
|
|
168
|
+
wordsPerLine?: "single" | "multiple";
|
|
169
169
|
}
|
|
170
170
|
export interface EffectJSON extends BaseClipJSON {
|
|
171
|
-
type:
|
|
171
|
+
type: "Effect";
|
|
172
172
|
effect: {
|
|
173
173
|
id: string;
|
|
174
174
|
key: string;
|
|
@@ -176,7 +176,7 @@ export interface EffectJSON extends BaseClipJSON {
|
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
export interface TransitionJSON extends BaseClipJSON {
|
|
179
|
-
type:
|
|
179
|
+
type: "Transition";
|
|
180
180
|
transitionEffect: {
|
|
181
181
|
id: string;
|
|
182
182
|
key: string;
|
|
@@ -186,7 +186,7 @@ export interface TransitionJSON extends BaseClipJSON {
|
|
|
186
186
|
toClipId: string | null;
|
|
187
187
|
}
|
|
188
188
|
export interface PlaceholderJSON extends BaseClipJSON {
|
|
189
|
-
type:
|
|
189
|
+
type: "Placeholder";
|
|
190
190
|
}
|
|
191
191
|
export interface GlobalTransitionJSON {
|
|
192
192
|
key: string;
|
package/dist/studio.d.ts
CHANGED
|
@@ -146,7 +146,7 @@ export declare class Studio extends EventEmitter<StudioEvents> {
|
|
|
146
146
|
render({ canvasTexture }: import('./effect/types').EffectRendererOptions): Texture<import('pixi.js').TextureSource<any>>;
|
|
147
147
|
} | {
|
|
148
148
|
filter: any;
|
|
149
|
-
render({ width, height, canvasTexture, progress }: import('./effect/types').EffectRendererOptions): RenderTexture;
|
|
149
|
+
render({ width, height, canvasTexture, progress, values: runtimeValues, }: import('./effect/types').EffectRendererOptions): RenderTexture;
|
|
150
150
|
}>;
|
|
151
151
|
transitionRenderers: Map<string, {
|
|
152
152
|
render({ width, height, from, to, progress }: import('./transition/types').TransitionRendererOptions): RenderTexture;
|
|
@@ -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-CZJxf7wC.js";
|
|
2
2
|
a.add(e);
|
|
3
3
|
a.add(d);
|
|
4
4
|
a.add(i);
|
package/package.json
CHANGED
package/dist/texture1.png
DELETED
|
Binary file
|
package/dist/texture2.png
DELETED
|
Binary file
|