openvideo 0.2.0 → 0.2.2
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-DjjOJsg2.js → browserAll-Bki0HKJn.js} +2 -2
- package/dist/clips/effect-clip.d.ts +3 -2
- package/dist/effect/constant/index.d.ts +860 -0
- package/dist/effect/effect.d.ts +5 -5
- package/dist/effect/interface/index.d.ts +40 -0
- package/dist/effect/types.d.ts +2 -0
- package/dist/{index-DCWl03Hg.js → index-BXuEu2AS.js} +27051 -17477
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +30 -28
- package/dist/index.umd.js +4689 -284
- package/dist/studio.d.ts +17 -16
- package/dist/{webworkerAll-DY6Fccy4.js → webworkerAll-BPHrCidF.js} +1 -1
- package/package.json +2 -1
package/dist/studio.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ interface ActiveGlobalEffect {
|
|
|
25
25
|
startTime: number;
|
|
26
26
|
duration: number;
|
|
27
27
|
trackIndex?: number;
|
|
28
|
+
values?: Record<string, any>;
|
|
28
29
|
}
|
|
29
30
|
interface GlobalEffectInfo {
|
|
30
31
|
id: string;
|
|
@@ -33,45 +34,45 @@ interface GlobalEffectInfo {
|
|
|
33
34
|
duration: number;
|
|
34
35
|
}
|
|
35
36
|
export interface StudioEvents {
|
|
36
|
-
|
|
37
|
+
"selection:created": {
|
|
37
38
|
selected: IClip[];
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
"selection:updated": {
|
|
40
41
|
selected: IClip[];
|
|
41
42
|
};
|
|
42
|
-
|
|
43
|
+
"selection:cleared": {
|
|
43
44
|
deselected: IClip[];
|
|
44
45
|
};
|
|
45
|
-
|
|
46
|
+
"track:added": {
|
|
46
47
|
track: StudioTrack;
|
|
47
48
|
index?: number;
|
|
48
49
|
};
|
|
49
|
-
|
|
50
|
+
"track:order-changed": {
|
|
50
51
|
tracks: StudioTrack[];
|
|
51
52
|
};
|
|
52
|
-
|
|
53
|
+
"track:removed": {
|
|
53
54
|
trackId: string;
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
+
"clip:added": {
|
|
56
57
|
clip: IClip;
|
|
57
58
|
trackId: string;
|
|
58
59
|
};
|
|
59
|
-
|
|
60
|
+
"clips:added": {
|
|
60
61
|
clips: IClip[];
|
|
61
62
|
trackId?: string;
|
|
62
63
|
};
|
|
63
|
-
|
|
64
|
+
"clip:removed": {
|
|
64
65
|
clipId: string;
|
|
65
66
|
};
|
|
66
|
-
|
|
67
|
+
"clip:updated": {
|
|
67
68
|
clip: IClip;
|
|
68
69
|
};
|
|
69
|
-
|
|
70
|
+
"clip:replaced": {
|
|
70
71
|
oldClip: IClip;
|
|
71
72
|
newClip: IClip;
|
|
72
73
|
trackId: string;
|
|
73
74
|
};
|
|
74
|
-
|
|
75
|
+
"studio:restored": {
|
|
75
76
|
clips: IClip[];
|
|
76
77
|
tracks: StudioTrack[];
|
|
77
78
|
settings: IStudioOpts;
|
|
@@ -85,7 +86,7 @@ export interface StudioEvents {
|
|
|
85
86
|
pause: {
|
|
86
87
|
isPlaying: boolean;
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
+
"history:changed": {
|
|
89
90
|
canUndo: boolean;
|
|
90
91
|
canRedo: boolean;
|
|
91
92
|
};
|
|
@@ -127,7 +128,7 @@ export declare class Studio extends EventEmitter<StudioEvents> {
|
|
|
127
128
|
set currentTime(val: number);
|
|
128
129
|
get maxDuration(): number;
|
|
129
130
|
set maxDuration(val: number);
|
|
130
|
-
opts: Required<Omit<IStudioOpts,
|
|
131
|
+
opts: Required<Omit<IStudioOpts, "canvas">> & {
|
|
131
132
|
canvas?: HTMLCanvasElement;
|
|
132
133
|
};
|
|
133
134
|
destroyed: boolean;
|
|
@@ -144,8 +145,8 @@ export declare class Studio extends EventEmitter<StudioEvents> {
|
|
|
144
145
|
filter: null;
|
|
145
146
|
render({ canvasTexture }: import('./effect/types').EffectRendererOptions): Texture<import('pixi.js').TextureSource<any>>;
|
|
146
147
|
} | {
|
|
147
|
-
filter:
|
|
148
|
-
render({ width, height, canvasTexture, progress }: import('./effect/types').EffectRendererOptions): RenderTexture;
|
|
148
|
+
filter: any;
|
|
149
|
+
render({ width, height, canvasTexture, progress, values: runtimeValues, }: import('./effect/types').EffectRendererOptions): RenderTexture;
|
|
149
150
|
}>;
|
|
150
151
|
transitionRenderers: Map<string, {
|
|
151
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-BXuEu2AS.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
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Video rendering and processing library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"mediabunny": "^1.26.0",
|
|
59
59
|
"microdiff": "^1.4.0",
|
|
60
60
|
"opfs-tools": "^0.7.2",
|
|
61
|
+
"pixi-filters": "^6.1.5",
|
|
61
62
|
"pixi.js": "^8.14.3",
|
|
62
63
|
"wave-resampler": "^1.0.0",
|
|
63
64
|
"wrapbox": "^0.1.0"
|