openvideo 0.2.0 → 0.2.1

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/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
- 'selection:created': {
37
+ "selection:created": {
37
38
  selected: IClip[];
38
39
  };
39
- 'selection:updated': {
40
+ "selection:updated": {
40
41
  selected: IClip[];
41
42
  };
42
- 'selection:cleared': {
43
+ "selection:cleared": {
43
44
  deselected: IClip[];
44
45
  };
45
- 'track:added': {
46
+ "track:added": {
46
47
  track: StudioTrack;
47
48
  index?: number;
48
49
  };
49
- 'track:order-changed': {
50
+ "track:order-changed": {
50
51
  tracks: StudioTrack[];
51
52
  };
52
- 'track:removed': {
53
+ "track:removed": {
53
54
  trackId: string;
54
55
  };
55
- 'clip:added': {
56
+ "clip:added": {
56
57
  clip: IClip;
57
58
  trackId: string;
58
59
  };
59
- 'clips:added': {
60
+ "clips:added": {
60
61
  clips: IClip[];
61
62
  trackId?: string;
62
63
  };
63
- 'clip:removed': {
64
+ "clip:removed": {
64
65
  clipId: string;
65
66
  };
66
- 'clip:updated': {
67
+ "clip:updated": {
67
68
  clip: IClip;
68
69
  };
69
- 'clip:replaced': {
70
+ "clip:replaced": {
70
71
  oldClip: IClip;
71
72
  newClip: IClip;
72
73
  trackId: string;
73
74
  };
74
- 'studio:restored': {
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
- 'history:changed': {
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, 'canvas'>> & {
131
+ opts: Required<Omit<IStudioOpts, "canvas">> & {
131
132
  canvas?: HTMLCanvasElement;
132
133
  };
133
134
  destroyed: boolean;
@@ -144,7 +145,7 @@ 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: import('pixi.js').Filter;
148
+ filter: any;
148
149
  render({ width, height, canvasTexture, progress }: import('./effect/types').EffectRendererOptions): RenderTexture;
149
150
  }>;
150
151
  transitionRenderers: Map<string, {
Binary file
Binary file
@@ -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-DCWl03Hg.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-DX5d9IHl.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.0",
3
+ "version": "0.2.1",
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"