@designcombo/video 0.1.1 → 0.1.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/{SharedSystems-CaP5H7w0.js → SharedSystems-Xp4pkXxw.js} +1 -1
- package/dist/{WebGLRenderer-BMj90BH-.js → WebGLRenderer-DUV0VFr8.js} +2 -2
- package/dist/{WebGPURenderer-B7z3CK54.js → WebGPURenderer-CvQagiEk.js} +2 -2
- package/dist/{browserAll-DRgdBopC.js → browserAll-DJgUQT97.js} +2 -2
- package/dist/clips/caption-clip.d.ts +9 -9
- package/dist/{index-CDnMjIGb.js → index-fYFtiQSh.js} +1425 -1446
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +112 -112
- package/dist/utils/color.d.ts +5 -0
- package/dist/{webworkerAll-D0RTOtmO.js → webworkerAll-glUt5Asr.js} +1 -1
- package/package.json +1 -2
|
@@ -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-fYFtiQSh.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-fYFtiQSh.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-Xp4pkXxw.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-fYFtiQSh.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-Xp4pkXxw.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-fYFtiQSh.js";
|
|
2
|
+
import "./webworkerAll-glUt5Asr.js";
|
|
3
3
|
class q {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
|
|
@@ -29,7 +29,7 @@ export interface ICaptionClipOpts {
|
|
|
29
29
|
* @default '#ffffff'
|
|
30
30
|
*/
|
|
31
31
|
fill?: string | number | {
|
|
32
|
-
type:
|
|
32
|
+
type: "gradient";
|
|
33
33
|
x0: number;
|
|
34
34
|
y0: number;
|
|
35
35
|
x1: number;
|
|
@@ -104,7 +104,7 @@ export interface ICaptionClipOpts {
|
|
|
104
104
|
stroke?: string | number | {
|
|
105
105
|
color: string | number;
|
|
106
106
|
width: number;
|
|
107
|
-
join?:
|
|
107
|
+
join?: "miter" | "round" | "bevel";
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
110
|
* Stroke width in pixels (used when stroke is a simple color)
|
|
@@ -115,7 +115,7 @@ export interface ICaptionClipOpts {
|
|
|
115
115
|
* Text alignment ('left', 'center', 'right')
|
|
116
116
|
* @default 'center'
|
|
117
117
|
*/
|
|
118
|
-
align?:
|
|
118
|
+
align?: "left" | "center" | "right";
|
|
119
119
|
/**
|
|
120
120
|
* Drop shadow configuration
|
|
121
121
|
*/
|
|
@@ -150,7 +150,7 @@ export interface ICaptionClipOpts {
|
|
|
150
150
|
* Text case transformation
|
|
151
151
|
* @default 'none'
|
|
152
152
|
*/
|
|
153
|
-
textCase?:
|
|
153
|
+
textCase?: "none" | "uppercase" | "lowercase" | "title";
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
156
156
|
* Caption clip using Canvas 2D for rendering
|
|
@@ -169,7 +169,7 @@ export interface ICaptionClipOpts {
|
|
|
169
169
|
*/
|
|
170
170
|
export declare class CaptionClip extends BaseClip implements IClip {
|
|
171
171
|
readonly type = "Caption";
|
|
172
|
-
ready: IClip[
|
|
172
|
+
ready: IClip["ready"];
|
|
173
173
|
private _meta;
|
|
174
174
|
get meta(): {
|
|
175
175
|
duration: number;
|
|
@@ -228,7 +228,7 @@ export declare class CaptionClip extends BaseClip implements IClip {
|
|
|
228
228
|
* Text case proxy
|
|
229
229
|
*/
|
|
230
230
|
get textCase(): string;
|
|
231
|
-
set textCase(v:
|
|
231
|
+
set textCase(v: "none" | "uppercase" | "lowercase" | "title");
|
|
232
232
|
/**
|
|
233
233
|
* Unique identifier for this clip instance
|
|
234
234
|
*/
|
|
@@ -252,7 +252,7 @@ export declare class CaptionClip extends BaseClip implements IClip {
|
|
|
252
252
|
private externalRenderer;
|
|
253
253
|
private pixiApp;
|
|
254
254
|
private originalOpts;
|
|
255
|
-
constructor(text: string, opts?: ICaptionClipOpts, renderer?: Application[
|
|
255
|
+
constructor(text: string, opts?: ICaptionClipOpts, renderer?: Application["renderer"]);
|
|
256
256
|
/**
|
|
257
257
|
* Update text styling options and refresh the caption rendering
|
|
258
258
|
*/
|
|
@@ -270,11 +270,11 @@ export declare class CaptionClip extends BaseClip implements IClip {
|
|
|
270
270
|
/**
|
|
271
271
|
* Set an external renderer (e.g., from Studio) to avoid creating our own Pixi App
|
|
272
272
|
*/
|
|
273
|
-
setRenderer(renderer: Application[
|
|
273
|
+
setRenderer(renderer: Application["renderer"]): void;
|
|
274
274
|
private getRenderer;
|
|
275
275
|
tick(time: number): Promise<{
|
|
276
276
|
video: ImageBitmap;
|
|
277
|
-
state:
|
|
277
|
+
state: "success";
|
|
278
278
|
}>;
|
|
279
279
|
split(_time: number): Promise<[this, this]>;
|
|
280
280
|
addEffect(effect: {
|