@designcombo/video 0.0.1 → 0.0.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.
@@ -1,5 +1,5 @@
1
- import { u as Ie, m as se, M as v, G as Ee, a as De, v as ae, E as u, e as D, x as S, y as Oe, z as O, F as b, R as F, H as ne, I as Fe, t as m, c as f, j as B, w as L, J as K, K as Le, d as Y, B as y, k as U, L as He, N as C, l as M, O as w, Q as We, b as ze, V as ie, W as oe, X as le, Y as ue, C as P, Z as Ve, _ as A, $ as J, D as H, a0 as Ne, a1 as je, P as $e, h as qe, T as X, a2 as Q, a3 as Ke, a4 as Ye, a5 as Je } from "./index-BuRTeJh6.js";
2
- import { F as Xe, S as Qe, B as de, c as Ze } from "./colorToUniform-B0NRe8Du.js";
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-C333riU-.js";
2
+ import { B as de, c as Ze } from "./colorToUniform-C2jGzNe1.js";
3
3
  var et = `in vec2 vMaskCoord;
4
4
  in vec2 vTextureCoord;
5
5
 
@@ -170,14 +170,14 @@ fn mainFragment(
170
170
  return source * a;
171
171
  }
172
172
  `;
173
- class rt extends Xe {
173
+ class rt extends Ie {
174
174
  constructor(e) {
175
- const { sprite: t, ...r } = e, s = new Ie(t.texture), n = new se({
175
+ const { sprite: t, ...r } = e, s = new Ee(t.texture), n = new se({
176
176
  uFilterMatrix: { value: new v(), type: "mat3x3<f32>" },
177
177
  uMaskClamp: { value: s.uClampFrame, type: "vec4<f32>" },
178
178
  uAlpha: { value: 1, type: "f32" },
179
179
  uInverse: { value: e.inverse ? 1 : 0, type: "f32" }
180
- }), i = Ee.from({
180
+ }), i = De.from({
181
181
  vertex: {
182
182
  source: Z,
183
183
  entryPoint: "mainVertex"
@@ -186,7 +186,7 @@ class rt extends Xe {
186
186
  source: Z,
187
187
  entryPoint: "mainFragment"
188
188
  }
189
- }), o = De.from({
189
+ }), o = Oe.from({
190
190
  vertex: tt,
191
191
  fragment: et,
192
192
  name: "mask-filter"
@@ -217,7 +217,7 @@ class rt extends Xe {
217
217
  }
218
218
  const W = class ce {
219
219
  constructor(e, t) {
220
- this.state = Qe.for2d(), this._batchersByInstructionSet = /* @__PURE__ */ Object.create(null), this._activeBatches = /* @__PURE__ */ Object.create(null), this.renderer = e, this._adaptor = t, this._adaptor.init?.(this);
220
+ this.state = Fe.for2d(), this._batchersByInstructionSet = /* @__PURE__ */ Object.create(null), this._activeBatches = /* @__PURE__ */ Object.create(null), this.renderer = e, this._adaptor = t, this._adaptor.init?.(this);
221
221
  }
222
222
  static getBatcher(e) {
223
223
  return new this._availableBatchers[e]();
@@ -356,7 +356,7 @@ const Bt = {
356
356
  class at extends ne {
357
357
  constructor() {
358
358
  super(), this.filters = [new rt({
359
- sprite: new Fe(m.EMPTY),
359
+ sprite: new He(m.EMPTY),
360
360
  inverse: !1,
361
361
  resolution: "inherit",
362
362
  antialias: "inherit"
@@ -420,7 +420,7 @@ class fe {
420
420
  const s = S.get(at);
421
421
  if (s.inverse = e.inverse, r) {
422
422
  e.mask.mask.measurable = !0;
423
- const n = Oe(e.mask.mask, !0, st);
423
+ const n = Le(e.mask.mask, !0, st);
424
424
  e.mask.mask.measurable = !1, n.ceil();
425
425
  const i = t.renderTarget.renderTarget.colorTexture.source, o = b.getOptimalTexture(
426
426
  n.width,
@@ -665,7 +665,7 @@ class Gt {
665
665
  * @private
666
666
  */
667
667
  _systemCheck() {
668
- if (!Le())
668
+ if (!We())
669
669
  throw new Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.");
670
670
  }
671
671
  ensureUniformGroup(e) {
@@ -944,7 +944,7 @@ function ot(a, e, t, r, s, n) {
944
944
  return a.identity(), a.a = 1 / r * 2, a.d = i * (1 / s * 2), a.tx = -1 - e * a.a, a.ty = -i - t * a.d, a;
945
945
  }
946
946
  const x = /* @__PURE__ */ new Map();
947
- He.register(x);
947
+ ze.register(x);
948
948
  function ve(a, e) {
949
949
  if (!x.has(a)) {
950
950
  const t = new m({
@@ -1061,7 +1061,7 @@ ge.defaultOptions = {
1061
1061
  let G = ge;
1062
1062
  class Dt {
1063
1063
  constructor(e) {
1064
- this.rootViewPort = new w(), this.viewport = new w(), this.onRenderTargetChange = new We("onRenderTargetChange"), this.projectionMatrix = new v(), this.defaultClearColor = [0, 0, 0, 0], this._renderSurfaceToRenderTargetHash = /* @__PURE__ */ new Map(), this._gpuRenderTargetHash = /* @__PURE__ */ Object.create(null), this._renderTargetStack = [], this._renderer = e, e.renderableGC.addManagedHash(this, "_gpuRenderTargetHash");
1064
+ this.rootViewPort = new w(), this.viewport = new w(), this.onRenderTargetChange = new Ve("onRenderTargetChange"), this.projectionMatrix = new v(), this.defaultClearColor = [0, 0, 0, 0], this._renderSurfaceToRenderTargetHash = /* @__PURE__ */ new Map(), this._gpuRenderTargetHash = /* @__PURE__ */ Object.create(null), this._renderTargetStack = [], this._renderer = e, e.renderableGC.addManagedHash(this, "_gpuRenderTargetHash");
1065
1065
  }
1066
1066
  /** called when dev wants to finish a render pass */
1067
1067
  finishRenderPass() {
@@ -1244,7 +1244,7 @@ class Dt {
1244
1244
  this.renderTarget = null, this.renderSurface = null;
1245
1245
  }
1246
1246
  }
1247
- class Ot extends ze {
1247
+ class Ot extends Ne {
1248
1248
  /**
1249
1249
  * Create a new Buffer Resource.
1250
1250
  * @param options - The options for the buffer resource
@@ -1471,7 +1471,7 @@ class ke {
1471
1471
  i,
1472
1472
  o
1473
1473
  );
1474
- d._source.style = new Ve({ scaleMode: l }), e.texture = d, e._textureBounds || (e._textureBounds = new O()), e._textureBounds.copyFrom(r), s !== e.texture && e.renderGroupParent && (e.renderGroupParent.structureDidChange = !0);
1474
+ d._source.style = new je({ scaleMode: l }), e.texture = d, e._textureBounds || (e._textureBounds = new O()), e._textureBounds.copyFrom(r), s !== e.texture && e.renderGroupParent && (e.renderGroupParent.structureDidChange = !0);
1475
1475
  }
1476
1476
  } else e.texture && (b.returnTexture(e.texture, !0), e.texture = null);
1477
1477
  }
@@ -2107,9 +2107,9 @@ class Pe {
2107
2107
  const t = e.resolution || this._renderer.resolution, r = e.antialias || this._renderer.view.antialias, s = e.target;
2108
2108
  let n = e.clearColor;
2109
2109
  n ? n = Array.isArray(n) && n.length === 4 ? n : A.shared.setValue(n).toArray() : n = xt;
2110
- const i = e.frame?.copyTo(vt) || Ne(s, gt).rectangle;
2110
+ const i = e.frame?.copyTo(vt) || $e(s, gt).rectangle;
2111
2111
  i.width = Math.max(i.width, 1 / t) | 0, i.height = Math.max(i.height, 1 / t) | 0;
2112
- const o = je.create({
2112
+ const o = qe.create({
2113
2113
  ...e.textureSourceOptions,
2114
2114
  width: i.width,
2115
2115
  height: i.height,
@@ -2159,7 +2159,7 @@ class Re {
2159
2159
  const i = this._renderer.renderTarget.renderTarget, o = this._stackIndex ? this._globalUniformDataStack[this._stackIndex - 1] : {
2160
2160
  worldTransformMatrix: new v(),
2161
2161
  worldColor: 4294967295,
2162
- offset: new $e()
2162
+ offset: new Ke()
2163
2163
  }, l = {
2164
2164
  projectionMatrix: t || this._renderer.renderTarget.projectionMatrix,
2165
2165
  resolution: e || i.size,
@@ -2176,7 +2176,7 @@ class Re {
2176
2176
  0
2177
2177
  ), d.update();
2178
2178
  let h;
2179
- this._renderer.renderPipes.uniformBatch ? h = this._renderer.renderPipes.uniformBatch.getUniformBindGroup(d, !1) : (h = this._bindGroupPool.pop() || new qe(), this._activeBindGroups.push(h), h.setResource(d, 0)), l.bindGroup = h, this._currentGlobalUniformData = l;
2179
+ this._renderer.renderPipes.uniformBatch ? h = this._renderer.renderPipes.uniformBatch.getUniformBindGroup(d, !1) : (h = this._bindGroupPool.pop() || new Ye(), this._activeBindGroups.push(h), h.setResource(d, 0)), l.bindGroup = h, this._currentGlobalUniformData = l;
2180
2180
  }
2181
2181
  push(e) {
2182
2182
  this.bind(e), this._globalUniformDataStack[this._stackIndex++] = this._currentGlobalUniformData;
@@ -2593,7 +2593,7 @@ const q = class Ge {
2593
2593
  e = {
2594
2594
  ...Ge.defaultOptions,
2595
2595
  ...e
2596
- }, e.view && (Ke(Ye, "ViewSystem.view has been renamed to ViewSystem.canvas"), e.canvas = e.view), this.screen = new w(0, 0, e.width, e.height), this.canvas = e.canvas || H.get().createCanvas(), this.antialias = !!e.antialias, this.texture = ve(this.canvas, e), this.renderTarget = new G({
2596
+ }, e.view && (Je(Xe, "ViewSystem.view has been renamed to ViewSystem.canvas"), e.canvas = e.view), this.screen = new w(0, 0, e.width, e.height), this.canvas = e.canvas || H.get().createCanvas(), this.antialias = !!e.antialias, this.texture = ve(this.canvas, e), this.renderTarget = new G({
2597
2597
  colorTextures: [this.texture],
2598
2598
  depth: !!e.depth,
2599
2599
  isRoot: !0
@@ -2661,7 +2661,7 @@ const Ft = [
2661
2661
  Mt,
2662
2662
  Pe,
2663
2663
  mt,
2664
- Je,
2664
+ Qe,
2665
2665
  Ct,
2666
2666
  Be
2667
2667
  ], Lt = [
@@ -1,9 +1,9 @@
1
- import { E as d, B as v, w as m, D as S, J as j, a as ve, S as G, t as b, a6 as Be, l as K, a7 as Ae, c as p, O as L, k as B, j as A, m as U, M as $, a8 as z, a9 as Ne, aa as ye, ab as Y, ac as Ce, A as De, R as Ie, e as T } from "./index-BuRTeJh6.js";
2
- import { S as F, b as q } from "./colorToUniform-B0NRe8Du.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-BhqLJf5z.js";
4
- class J {
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-C333riU-.js";
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-BWe03l6N.js";
4
+ class Q {
5
5
  constructor() {
6
- this._tempState = F.for2d(), this._didUploadHash = {};
6
+ this._tempState = G.for2d(), this._didUploadHash = {};
7
7
  }
8
8
  init(e) {
9
9
  e.renderer.runners.contextChange.add(this);
@@ -24,7 +24,7 @@ class J {
24
24
  s.geometry.draw(r.topology, r.size, r.start);
25
25
  }
26
26
  }
27
- J.extension = {
27
+ Q.extension = {
28
28
  type: [
29
29
  d.WebGLPipesAdaptor
30
30
  ],
@@ -36,7 +36,7 @@ class Ve {
36
36
  this._lastBindBaseLocation = -1, this._lastBindCallId = -1, this.buffer = e || null, this.updateID = -1, this.byteLength = -1, this.type = r;
37
37
  }
38
38
  }
39
- class Q {
39
+ class J {
40
40
  /**
41
41
  * @param {Renderer} renderer - The renderer this System works for.
42
42
  */
@@ -154,7 +154,7 @@ class Q {
154
154
  this._boundBufferBases = /* @__PURE__ */ Object.create(null);
155
155
  }
156
156
  }
157
- Q.extension = {
157
+ J.extension = {
158
158
  type: [
159
159
  d.WebGLSystem
160
160
  ],
@@ -618,7 +618,7 @@ const je = new Be({
618
618
  }
619
619
  init(e = {}) {
620
620
  const { useBackBuffer: r, antialias: s } = { ...se.defaultOptions, ...e };
621
- this.useBackBuffer = r, this._antialias = s, this._renderer.context.supports.msaa || (m("antialiasing, is not supported on when using the back buffer"), this._antialias = !1), this._state = F.for2d();
621
+ this.useBackBuffer = r, this._antialias = s, this._renderer.context.supports.msaa || (m("antialiasing, is not supported on when using the back buffer"), this._antialias = !1), this._state = G.for2d();
622
622
  const n = new ve({
623
623
  vertex: `
624
624
  attribute vec2 aPosition;
@@ -643,7 +643,7 @@ const je = new Be({
643
643
  }`,
644
644
  name: "big-triangle"
645
645
  });
646
- this._bigTriangleShader = new G({
646
+ this._bigTriangleShader = new U({
647
647
  glProgram: n,
648
648
  resources: {
649
649
  uTexture: b.WHITE.source
@@ -1109,7 +1109,7 @@ _e.extension = {
1109
1109
  type: [d.WebGLSystem],
1110
1110
  name: "renderTarget"
1111
1111
  };
1112
- function Je(t, e) {
1112
+ function Qe(t, e) {
1113
1113
  const r = [], s = [`
1114
1114
  var g = s.groups;
1115
1115
  var sS = r.shader;
@@ -1126,7 +1126,7 @@ function Je(t, e) {
1126
1126
  `);
1127
1127
  for (const _ in u.resources) {
1128
1128
  const f = u.resources[_];
1129
- if (f instanceof U)
1129
+ if (f instanceof F)
1130
1130
  if (f.ubo) {
1131
1131
  const l = t._uniformBindMap[c][Number(_)];
1132
1132
  r.push(`
@@ -1163,7 +1163,7 @@ function Je(t, e) {
1163
1163
  `);
1164
1164
  return new Function("r", "s", "sD", o);
1165
1165
  }
1166
- class Qe {
1166
+ class Je {
1167
1167
  /**
1168
1168
  * Makes a new Pixi program.
1169
1169
  * @param program - webgl program
@@ -1418,7 +1418,7 @@ function at(t, e) {
1418
1418
  value: he(u.type, u.size)
1419
1419
  };
1420
1420
  }
1421
- return new Qe(n, a);
1421
+ return new Je(n, a);
1422
1422
  }
1423
1423
  const R = {
1424
1424
  textureCount: 0,
@@ -1500,7 +1500,7 @@ class le {
1500
1500
  * @ignore
1501
1501
  */
1502
1502
  _generateShaderSync(e, r) {
1503
- return Je(e, r);
1503
+ return Qe(e, r);
1504
1504
  }
1505
1505
  resetState() {
1506
1506
  this._activeProgram = null;
@@ -1636,7 +1636,7 @@ function ut(t, e) {
1636
1636
  `];
1637
1637
  for (const s in t.uniforms) {
1638
1638
  if (!e[s]) {
1639
- t.uniforms[s] instanceof U ? t.uniforms[s].ubo ? r.push(`
1639
+ t.uniforms[s] instanceof F ? t.uniforms[s].ubo ? r.push(`
1640
1640
  renderer.shader.bindUniformBlock(uv.${s}, "${s}");
1641
1641
  `) : r.push(`
1642
1642
  renderer.shader.updateUniformGroup(uv.${s});
@@ -1737,7 +1737,7 @@ function _t(t) {
1737
1737
  }
1738
1738
  const ht = 0, ft = 1, lt = 2, dt = 3, mt = 4, Et = 5, me = class I {
1739
1739
  constructor(e) {
1740
- this._invertFrontFace = !1, this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = "none", this._blendEq = !1, this.map = [], this.map[ht] = this.setBlend, this.map[ft] = this.setOffset, this.map[lt] = this.setCullFace, this.map[dt] = this.setDepthTest, this.map[mt] = this.setFrontFace, this.map[Et] = this.setDepthMask, this.checks = [], this.defaultState = F.for2d(), e.renderTarget.onRenderTargetChange.add(this);
1740
+ this._invertFrontFace = !1, this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = "none", this._blendEq = !1, this.map = [], this.map[ht] = this.setBlend, this.map[ft] = this.setOffset, this.map[lt] = this.setCullFace, this.map[dt] = this.setDepthTest, this.map[mt] = this.setFrontFace, this.map[Et] = this.setDepthMask, this.checks = [], this.defaultState = G.for2d(), e.renderTarget.onRenderTargetChange.add(this);
1741
1741
  }
1742
1742
  onRenderTargetChange(e) {
1743
1743
  this._invertFrontFace = !e.isRoot, this._cullFace ? this.setFrontFace(this._frontFace) : this._frontFaceDirty = !0;
@@ -2505,7 +2505,7 @@ be.extension = {
2505
2505
  };
2506
2506
  class Se {
2507
2507
  contextChange(e) {
2508
- const r = new U({
2508
+ const r = new F({
2509
2509
  uColor: { value: new Float32Array([1, 1, 1, 1]), type: "vec4<f32>" },
2510
2510
  uTransformMatrix: { value: new $(), type: "mat3x3<f32>" },
2511
2511
  uRound: { value: 0, type: "f32" }
@@ -2518,7 +2518,7 @@ class Se {
2518
2518
  Y
2519
2519
  ]
2520
2520
  });
2521
- this.shader = new G({
2521
+ this.shader = new U({
2522
2522
  glProgram: n,
2523
2523
  resources: {
2524
2524
  localUniforms: r,
@@ -2562,7 +2562,7 @@ class pe {
2562
2562
  Y
2563
2563
  ]
2564
2564
  });
2565
- this._shader = new G({
2565
+ this._shader = new U({
2566
2566
  glProgram: e,
2567
2567
  resources: {
2568
2568
  uTexture: b.EMPTY.source,
@@ -2607,7 +2607,7 @@ const Ct = [
2607
2607
  Ke,
2608
2608
  ke,
2609
2609
  ae,
2610
- Q,
2610
+ J,
2611
2611
  be,
2612
2612
  _e,
2613
2613
  re,
@@ -2617,7 +2617,7 @@ const Ct = [
2617
2617
  bt,
2618
2618
  oe,
2619
2619
  ne
2620
- ], Dt = [...we], It = [J, pe, Se], ge = [], Re = [], xe = [];
2620
+ ], Dt = [...we], It = [Q, pe, Se], ge = [], Re = [], xe = [];
2621
2621
  T.handleByNamedList(d.WebGLSystem, ge);
2622
2622
  T.handleByNamedList(d.WebGLPipes, Re);
2623
2623
  T.handleByNamedList(d.WebGLPipesAdaptor, xe);
@@ -1,7 +1,7 @@
1
- import { g as E, E as p, f as ae, D as S, c as C, B as T, d as ue, h as A, i as M, w as v, j as x, k as ce, l as de, m as L, n as w, M as k, o as D, p as he, q as pe, s as H, S as z, t as R, A as le, R as fe, e as B } from "./index-BuRTeJh6.js";
2
- import { S as F, l as ge, a as me } from "./colorToUniform-B0NRe8Du.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-BhqLJf5z.js";
4
- const y = F.for2d();
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-C333riU-.js";
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-BWe03l6N.js";
4
+ const y = E.for2d();
5
5
  class O {
6
6
  start(e, t, r) {
7
7
  const s = e.renderer, i = s.encoder, n = r.gpuProgram;
@@ -17,7 +17,7 @@ class O {
17
17
  const r = this._shader.gpuProgram, s = e.renderer, i = s.encoder;
18
18
  if (!t.bindGroup) {
19
19
  const u = t.textures;
20
- t.bindGroup = E(
20
+ t.bindGroup = A(
21
21
  u.textures,
22
22
  u.count,
23
23
  s.limits.maxBatchableTextures
@@ -577,7 +577,7 @@ class Y {
577
577
  }
578
578
  _getBindGroup(e) {
579
579
  if (!this._bindGroups[e]) {
580
- const t = new A({
580
+ const t = new L({
581
581
  0: this._getBufferResource(e)
582
582
  });
583
583
  this._bindGroups[e] = t;
@@ -1124,7 +1124,7 @@ g.max = {
1124
1124
  };
1125
1125
  class J {
1126
1126
  constructor() {
1127
- this.defaultState = new F(), this.defaultState.blend = !0;
1127
+ this.defaultState = new E(), this.defaultState.blend = !0;
1128
1128
  }
1129
1129
  contextChange(e) {
1130
1130
  this.gpu = e;
@@ -1437,10 +1437,10 @@ class te {
1437
1437
  }
1438
1438
  _createTextureBindGroup(e) {
1439
1439
  const t = e.source;
1440
- return this._bindGroupHash[e.uid] = new A({
1440
+ return this._bindGroupHash[e.uid] = new L({
1441
1441
  0: t,
1442
1442
  1: t.style,
1443
- 2: new L({
1443
+ 2: new k({
1444
1444
  uTextureMatrix: { type: "mat3x3<f32>", value: e.textureMatrix.mapCoord }
1445
1445
  })
1446
1446
  }), this._bindGroupHash[e.uid];
@@ -1500,22 +1500,22 @@ class re {
1500
1500
  this._maxTextures = 0;
1501
1501
  }
1502
1502
  contextChange(e) {
1503
- const t = new L({
1504
- uTransformMatrix: { value: new k(), type: "mat3x3<f32>" },
1503
+ const t = new k({
1504
+ uTransformMatrix: { value: new D(), type: "mat3x3<f32>" },
1505
1505
  uColor: { value: new Float32Array([1, 1, 1, 1]), type: "vec4<f32>" },
1506
1506
  uRound: { value: 0, type: "f32" }
1507
1507
  });
1508
1508
  this._maxTextures = e.limits.maxBatchableTextures;
1509
- const r = D({
1509
+ const r = H({
1510
1510
  name: "graphics",
1511
1511
  bits: [
1512
1512
  he,
1513
1513
  pe(this._maxTextures),
1514
1514
  ge,
1515
- H
1515
+ z
1516
1516
  ]
1517
1517
  });
1518
- this.shader = new z({
1518
+ this.shader = new F({
1519
1519
  gpuProgram: r,
1520
1520
  resources: {
1521
1521
  // added on the fly!
@@ -1544,7 +1544,7 @@ class re {
1544
1544
  m.topology
1545
1545
  )), s.groups[1] = m.bindGroup, !m.gpuBindGroup) {
1546
1546
  const P = m.textures;
1547
- m.bindGroup = E(
1547
+ m.bindGroup = A(
1548
1548
  P.textures,
1549
1549
  P.count,
1550
1550
  this._maxTextures
@@ -1569,21 +1569,21 @@ re.extension = {
1569
1569
  };
1570
1570
  class se {
1571
1571
  init() {
1572
- const e = D({
1572
+ const e = H({
1573
1573
  name: "mesh",
1574
1574
  bits: [
1575
1575
  me,
1576
1576
  Pe,
1577
- H
1577
+ z
1578
1578
  ]
1579
1579
  });
1580
- this._shader = new z({
1580
+ this._shader = new F({
1581
1581
  gpuProgram: e,
1582
1582
  resources: {
1583
1583
  uTexture: R.EMPTY._source,
1584
1584
  uSampler: R.EMPTY._source.style,
1585
1585
  textureUniforms: {
1586
- uTextureMatrix: { type: "mat3x3<f32>", value: new k() }
1586
+ uTextureMatrix: { type: "mat3x3<f32>", value: new D() }
1587
1587
  }
1588
1588
  }
1589
1589
  });
@@ -1,5 +1,5 @@
1
- import { T as M, U as Z, P as m, r as te, E as y, b as ie, w as g, e as P, C as V } from "./index-BuRTeJh6.js";
2
- import "./webworkerAll-DChKIQQa.js";
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-C333riU-.js";
2
+ import "./webworkerAll-aNnyDpl9.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: 'gradient';
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?: 'miter' | 'round' | 'bevel';
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?: 'left' | 'center' | 'right';
118
+ align?: "left" | "center" | "right";
119
119
  /**
120
120
  * Drop shadow configuration
121
121
  */
@@ -163,7 +163,7 @@ export interface ICaptionClipOpts {
163
163
  * captionClip.duration = 3e6; // 3 seconds
164
164
  */
165
165
  export declare class CaptionClip extends BaseClip implements IClip {
166
- ready: IClip['ready'];
166
+ ready: IClip["ready"];
167
167
  private _meta;
168
168
  get meta(): {
169
169
  duration: number;
@@ -216,6 +216,20 @@ export declare class CaptionClip extends BaseClip implements IClip {
216
216
  * Bottom offset from video bottom (hybrid JSON structure)
217
217
  */
218
218
  bottomOffset?: number;
219
+ /**
220
+ * Unique identifier for this clip instance
221
+ */
222
+ id: string;
223
+ /**
224
+ * Array of effects to be applied to this clip
225
+ * Each effect specifies key, startTime, duration, and optional targets
226
+ */
227
+ effects: Array<{
228
+ id: string;
229
+ key: string;
230
+ startTime: number;
231
+ duration: number;
232
+ }>;
219
233
  private opts;
220
234
  private pixiTextContainer;
221
235
  private renderTexture;
@@ -225,7 +239,7 @@ export declare class CaptionClip extends BaseClip implements IClip {
225
239
  private externalRenderer;
226
240
  private pixiApp;
227
241
  private originalOpts;
228
- constructor(text: string, opts?: ICaptionClipOpts, renderer?: Application['renderer']);
242
+ constructor(text: string, opts?: ICaptionClipOpts, renderer?: Application["renderer"]);
229
243
  private lastLoggedTime;
230
244
  updateState(currentTime: number): void;
231
245
  /**
@@ -238,13 +252,25 @@ export declare class CaptionClip extends BaseClip implements IClip {
238
252
  /**
239
253
  * Set an external renderer (e.g., from Studio) to avoid creating our own Pixi App
240
254
  */
241
- setRenderer(renderer: Application['renderer']): void;
255
+ setRenderer(renderer: Application["renderer"]): void;
242
256
  private getRenderer;
243
257
  tick(time: number): Promise<{
244
258
  video: ImageBitmap;
245
- state: 'success';
259
+ state: "success";
246
260
  }>;
247
261
  split(_time: number): Promise<[this, this]>;
262
+ addEffect(effect: {
263
+ id: string;
264
+ key: string;
265
+ startTime: number;
266
+ duration: number;
267
+ }): void;
268
+ editEffect(effectId: string, newEffectData: Partial<{
269
+ key: string;
270
+ startTime: number;
271
+ duration: number;
272
+ }>): void;
273
+ removeEffect(effectId: string): void;
248
274
  clone(): Promise<this>;
249
275
  destroy(): void;
250
276
  toJSON(main?: boolean): CaptionClipJSON;
@@ -43,6 +43,20 @@ export declare class ImageClip extends BaseClip {
43
43
  private img;
44
44
  private pixiTexture;
45
45
  private frames;
46
+ /**
47
+ * Unique identifier for this clip instance
48
+ */
49
+ id: string;
50
+ /**
51
+ * Array of effects to be applied to this clip
52
+ * Each effect specifies key, startTime, duration, and optional targets
53
+ */
54
+ effects: Array<{
55
+ id: string;
56
+ key: string;
57
+ startTime: number;
58
+ duration: number;
59
+ }>;
46
60
  /**
47
61
  * Load an image clip from a URL using PixiJS Assets
48
62
  * This is optimized for Studio as it uses Texture directly
@@ -77,6 +91,18 @@ export declare class ImageClip extends BaseClip {
77
91
  }>;
78
92
  split(time: number): Promise<[this, this]>;
79
93
  clone(): Promise<this>;
94
+ addEffect(effect: {
95
+ id: string;
96
+ key: string;
97
+ startTime: number;
98
+ duration: number;
99
+ }): void;
100
+ editEffect(effectId: string, newEffectData: Partial<{
101
+ key: string;
102
+ startTime: number;
103
+ duration: number;
104
+ }>): void;
105
+ removeEffect(effectId: string): void;
80
106
  destroy(): void;
81
107
  toJSON(main?: boolean): ImageClipJSON;
82
108
  /**
@@ -28,7 +28,7 @@ export interface ITextClipOpts {
28
28
  * @default '#ffffff'
29
29
  */
30
30
  fill?: string | number | {
31
- type: 'gradient';
31
+ type: "gradient";
32
32
  x0: number;
33
33
  y0: number;
34
34
  x1: number;
@@ -44,8 +44,8 @@ export interface ITextClipOpts {
44
44
  stroke?: string | number | {
45
45
  color: string | number;
46
46
  width: number;
47
- join?: 'miter' | 'round' | 'bevel';
48
- cap?: 'butt' | 'round' | 'square';
47
+ join?: "miter" | "round" | "bevel";
48
+ cap?: "butt" | "round" | "square";
49
49
  miterLimit?: number;
50
50
  };
51
51
  /**
@@ -57,7 +57,7 @@ export interface ITextClipOpts {
57
57
  * Text alignment ('left', 'center', 'right')
58
58
  * @default 'left'
59
59
  */
60
- align?: 'left' | 'center' | 'right';
60
+ align?: "left" | "center" | "right";
61
61
  /**
62
62
  * Drop shadow configuration
63
63
  */
@@ -108,7 +108,7 @@ export interface ITextClipOpts {
108
108
  * textClip.duration = 5e6; // 5 seconds
109
109
  */
110
110
  export declare class TextClip extends BaseClip {
111
- ready: IClip['ready'];
111
+ ready: IClip["ready"];
112
112
  private _meta;
113
113
  get meta(): {
114
114
  duration: number;
@@ -171,13 +171,27 @@ export declare class TextClip extends BaseClip {
171
171
  private externalRenderer;
172
172
  private pixiApp;
173
173
  private originalOpts;
174
- constructor(text: string, opts?: ITextClipOpts, renderer?: Application['renderer']);
174
+ /**
175
+ * Unique identifier for this clip instance
176
+ */
177
+ id: string;
178
+ /**
179
+ * Array of effects to be applied to this clip
180
+ * Each effect specifies key, startTime, duration, and optional targets
181
+ */
182
+ effects: Array<{
183
+ id: string;
184
+ key: string;
185
+ startTime: number;
186
+ duration: number;
187
+ }>;
188
+ constructor(text: string, opts?: ITextClipOpts, renderer?: Application["renderer"]);
175
189
  /**
176
190
  * Set an external renderer (e.g., from Studio) to avoid creating our own Pixi App
177
191
  * This is an optimization for Studio preview
178
192
  * Can be called before ready() completes
179
193
  */
180
- setRenderer(renderer: Application['renderer']): void;
194
+ setRenderer(renderer: Application["renderer"]): void;
181
195
  /**
182
196
  * Get the renderer for rendering text to RenderTexture
183
197
  * Creates a minimal renderer as fallback if no external renderer is provided
@@ -192,9 +206,21 @@ export declare class TextClip extends BaseClip {
192
206
  getTexture(): Promise<Texture | null>;
193
207
  tick(_time: number): Promise<{
194
208
  video: ImageBitmap;
195
- state: 'success';
209
+ state: "success";
196
210
  }>;
197
211
  split(_time: number): Promise<[this, this]>;
212
+ addEffect(effect: {
213
+ id: string;
214
+ key: string;
215
+ startTime: number;
216
+ duration: number;
217
+ }): void;
218
+ editEffect(effectId: string, newEffectData: Partial<{
219
+ key: string;
220
+ startTime: number;
221
+ duration: number;
222
+ }>): void;
223
+ removeEffect(effectId: string): void;
198
224
  clone(): Promise<this>;
199
225
  /**
200
226
  * Update text styling options and refresh the texture