@designcombo/video 0.1.12 → 0.1.14
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/{SharedSystems-0YB9sQZp.js → SharedSystems-G3yTQS7R.js} +1 -1
- package/dist/{WebGLRenderer-D0QN9_76.js → WebGLRenderer-6R3JtiJK.js} +2 -2
- package/dist/{WebGPURenderer-BT-NkEIk.js → WebGPURenderer-DwcNXLNH.js} +2 -2
- package/dist/{browserAll-C1airNhp.js → browserAll-CY6fP_g4.js} +2 -2
- package/dist/clips/video-clip.d.ts +22 -0
- package/dist/{index-Bg9KGlQ_.js → index-D8oGyWjX.js} +3458 -2927
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +127 -127
- package/dist/studio/history-manager.d.ts +46 -0
- package/dist/studio/timeline-model.d.ts +9 -1
- package/dist/studio.d.ts +23 -2
- package/dist/{webworkerAll-v-K8jfl0.js → webworkerAll-AI9nt7c5.js} +1 -1
- package/package.json +5 -11
- package/src/index.ts +47 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Ie, u as Ee, l as se, M as v, G as De, v as Oe, S as Fe, x as ae, E as u, e as D, y as S, z as Le, H as O, I as b, R as F, J as ne, K as He, t as m, b as f, i as B, w as L, L as K, N as We, c as Y, B as y, j as U, O as ze, Q as C, k as M, V as w, W as Ve, a as Ne, X as ie, Y as oe, Z as le, _ as ue, C as P, $ as je, a0 as A, a1 as J, D as H, a2 as $e, a3 as qe, P as Ke, d as Ye, T as X, a4 as Q, a5 as Je, a6 as Xe, a7 as Qe } from "./index-
|
|
1
|
+
import { F as Ie, u as Ee, l as se, M as v, G as De, v as Oe, S as Fe, x as ae, E as u, e as D, y as S, z as Le, H as O, I as b, R as F, J as ne, K as He, t as m, b as f, i as B, w as L, L as K, N as We, c as Y, B as y, j as U, O as ze, Q as C, k as M, V as w, W as Ve, a as Ne, X as ie, Y as oe, Z as le, _ as ue, C as P, $ as je, a0 as A, a1 as J, D as H, a2 as $e, a3 as qe, P as Ke, d as Ye, T as X, a4 as Q, a5 as Je, a6 as Xe, a7 as Qe } from "./index-D8oGyWjX.js";
|
|
2
2
|
import { B as de, c as Ze } from "./colorToUniform-C2jGzNe1.js";
|
|
3
3
|
var et = `in vec2 vMaskCoord;
|
|
4
4
|
in vec2 vTextureCoord;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as G, E as d, B as v, w as m, D as S, L as j, v as ve, s as U, t as b, a8 as Be, k as K, a9 as Ae, b as p, V as L, j as B, i as A, l as F, M as $, aa as z, ab as Ne, ac as ye, ad as Y, ae as Ce, A as De, R as Ie, e as T } from "./index-
|
|
1
|
+
import { S as G, E as d, B as v, w as m, D as S, L as j, v as ve, s as U, t as b, a8 as Be, k as K, a9 as Ae, b as p, V as L, j as B, i as A, l as F, M as $, aa as z, ab as Ne, ac as ye, ad as Y, ae as Ce, A as De, R as Ie, e as T } from "./index-D8oGyWjX.js";
|
|
2
2
|
import { b as q } from "./colorToUniform-C2jGzNe1.js";
|
|
3
|
-
import { e as Ge, G as Ue, c as Fe, b as Oe, U as Pe, R as Me, B as Z, d as N, f as Le, S as He, a as we } from "./SharedSystems-
|
|
3
|
+
import { e as Ge, G as Ue, c as Fe, b as Oe, U as Pe, R as Me, B as Z, d as N, f as Le, S as He, a as we } from "./SharedSystems-G3yTQS7R.js";
|
|
4
4
|
class Q {
|
|
5
5
|
constructor() {
|
|
6
6
|
this._tempState = G.for2d(), this._didUploadHash = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as E, g as A, E as p, f as ae, D as S, b as C, B as T, c as ue, d as L, h as M, w as v, i as x, j as ce, k as de, l as k, m as w, M as D, n as H, o as he, p as pe, q as z, s as F, t as R, A as le, R as fe, e as B } from "./index-
|
|
1
|
+
import { S as E, g as A, E as p, f as ae, D as S, b as C, B as T, c as ue, d as L, h as M, w as v, i as x, j as ce, k as de, l as k, m as w, M as D, n as H, o as he, p as pe, q as z, s as F, t as R, A as le, R as fe, e as B } from "./index-D8oGyWjX.js";
|
|
2
2
|
import { l as ge, a as me } from "./colorToUniform-C2jGzNe1.js";
|
|
3
|
-
import { c as _e, u as be, U as xe, B as ye, G as Ge, e as Se, R as Be, t as Pe, S as Te, a as Ce } from "./SharedSystems-
|
|
3
|
+
import { c as _e, u as be, U as xe, B as ye, G as Ge, e as Se, R as Be, t as Pe, S as Te, a as Ce } from "./SharedSystems-G3yTQS7R.js";
|
|
4
4
|
const y = E.for2d();
|
|
5
5
|
class O {
|
|
6
6
|
start(e, t, r) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as M, U as Z, P as m, r as te, E as y, a as ie, w as g, e as P, C as V } from "./index-
|
|
2
|
-
import "./webworkerAll-
|
|
1
|
+
import { T as M, U as Z, P as m, r as te, E as y, a as ie, w as g, e as P, C as V } from "./index-D8oGyWjX.js";
|
|
2
|
+
import "./webworkerAll-AI9nt7c5.js";
|
|
3
3
|
class q {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
|
|
@@ -25,6 +25,11 @@ type ExtMP4Sample = Omit<MP4Sample, 'data'> & {
|
|
|
25
25
|
deleted?: boolean;
|
|
26
26
|
data: null | Uint8Array;
|
|
27
27
|
};
|
|
28
|
+
type ThumbnailOpts = {
|
|
29
|
+
start: number;
|
|
30
|
+
end: number;
|
|
31
|
+
step: number;
|
|
32
|
+
};
|
|
28
33
|
/**
|
|
29
34
|
* Video clip, parses MP4 files, uses {@link Video.tick} to decode image frames at specified time on demand
|
|
30
35
|
*
|
|
@@ -134,6 +139,19 @@ export declare class Video extends BaseClip implements IPlaybackCapable {
|
|
|
134
139
|
audio: Float32Array[];
|
|
135
140
|
state: 'success' | 'done';
|
|
136
141
|
}>;
|
|
142
|
+
private thumbAborter;
|
|
143
|
+
private thumbFinder;
|
|
144
|
+
/**
|
|
145
|
+
* Generate thumbnails, default generates one 100px width thumbnail per keyframe.
|
|
146
|
+
*
|
|
147
|
+
* @param imgWidth Thumbnail width, default 100
|
|
148
|
+
* @param opts Partial<ThumbnailOpts>
|
|
149
|
+
* @returns Promise<Array<{ ts: number; img: Blob }>>
|
|
150
|
+
*/
|
|
151
|
+
thumbnails(imgWidth?: number, opts?: Partial<ThumbnailOpts>): Promise<Array<{
|
|
152
|
+
ts: number;
|
|
153
|
+
img: Blob;
|
|
154
|
+
}>>;
|
|
137
155
|
split(time: number): Promise<[this, this]>;
|
|
138
156
|
addEffect(effect: {
|
|
139
157
|
id: string;
|
|
@@ -153,6 +171,10 @@ export declare class Video extends BaseClip implements IPlaybackCapable {
|
|
|
153
171
|
* @returns VideoClip[]
|
|
154
172
|
*/
|
|
155
173
|
splitTrack(): Promise<Video[]>;
|
|
174
|
+
/**
|
|
175
|
+
* Clean up thumbnail generation resources
|
|
176
|
+
*/
|
|
177
|
+
cleanupThumbnails: () => Promise<void>;
|
|
156
178
|
destroy(): void;
|
|
157
179
|
toJSON(main?: boolean): VideoJSON;
|
|
158
180
|
/**
|