openvideo 0.1.2 → 0.1.4

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,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-Btpkt1Jj.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-Dmkmv4u7.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-Btpkt1Jj.js";
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-Dmkmv4u7.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-BmCMssRs.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-CXindXRH.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-Btpkt1Jj.js";
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-Dmkmv4u7.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-BmCMssRs.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-CXindXRH.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-Btpkt1Jj.js";
2
- import "./webworkerAll-G2TZLg-n.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-Dmkmv4u7.js";
2
+ import "./webworkerAll-BxlCSeKM.js";
3
3
  class q {
4
4
  constructor(e) {
5
5
  this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
@@ -10809,16 +10809,18 @@ class cS {
10809
10809
  }
10810
10810
  }
10811
10811
  const hS = (i, t) => {
10812
- const e = Math.max(i.duration / 1e6, 1);
10812
+ const e = Math.max(i.duration / 1e6, 1), s = t?.mirror || 0;
10813
10813
  return t && (t["0%"] || t["100%"]) ? new W(
10814
10814
  t,
10815
10815
  { ...i, iterCount: e * 3 },
10816
10816
  "pulse"
10817
10817
  ) : new W(
10818
10818
  {
10819
- "0%": { scale: 0.9 },
10820
- "50%": { scale: 1 },
10821
- "100%": { scale: 0.9 }
10819
+ "0%": { scale: 1, mirror: s },
10820
+ "25%": { scale: 0.9, mirror: s },
10821
+ "50%": { scale: 1, mirror: s },
10822
+ "75%": { scale: 0.9, mirror: s },
10823
+ "100%": { scale: 1, mirror: s }
10822
10824
  },
10823
10825
  {
10824
10826
  ...i,
@@ -10827,75 +10829,123 @@ const hS = (i, t) => {
10827
10829
  },
10828
10830
  "pulse"
10829
10831
  );
10830
- }, uS = (i, t) => t && (t["0%"] || t["100%"]) ? new W(t, i, "fadeIn") : new W(
10831
- {
10832
- "0%": { opacity: 0, scale: 0.9 },
10833
- "100%": { opacity: 1, scale: 1 }
10834
- },
10835
- { ...i, easing: i.easing || "easeOutQuad" },
10836
- "fadeIn"
10837
- ), dS = (i, t) => t && (t["0%"] || t["100%"]) ? new W(t, i, "fadeOut") : new W(
10838
- {
10839
- "0%": { opacity: 1 },
10840
- "100%": { opacity: 0 }
10841
- },
10842
- { ...i, easing: i.easing || "easeInQuad" },
10843
- "fadeOut"
10844
- ), fS = (i, t) => {
10832
+ }, uS = (i, t) => {
10833
+ const e = t?.mirror || 0, s = t?.opacity || 0;
10834
+ return t && (t["0%"] || t["100%"]) ? new W(t, i, "fadeIn") : new W(
10835
+ {
10836
+ "0%": { opacity: s, scale: 0.9, mirror: e },
10837
+ "100%": { opacity: 1, scale: 1, mirror: e }
10838
+ },
10839
+ { ...i, easing: i.easing || "easeOutQuad" },
10840
+ "fadeIn"
10841
+ );
10842
+ }, dS = (i, t) => {
10843
+ const e = t?.mirror || 0, s = t?.opacity || 0;
10844
+ return t && (t["0%"] || t["100%"]) ? new W(t, i, "fadeOut") : new W(
10845
+ {
10846
+ "0%": { opacity: 1, mirror: e },
10847
+ "100%": { opacity: s, mirror: e }
10848
+ },
10849
+ { ...i, easing: i.easing || "easeInQuad" },
10850
+ "fadeOut"
10851
+ );
10852
+ }, fS = (i, t) => {
10853
+ const e = t?.mirror || 0, s = t?.opacity || 0;
10845
10854
  if (t && (t["0%"] || t["100%"]))
10846
10855
  return new W(t, i, "slideIn");
10847
- const e = t || { direction: "left" }, s = e.distance || 300, r = {
10848
- "100%": { x: 0, y: 0, opacity: 1 }
10856
+ const r = t || { direction: "left" }, n = r.distance || 300, o = {
10857
+ "100%": { x: 0, y: 0, opacity: 1, mirror: e }
10849
10858
  };
10850
- e.direction === "left" ? r["0%"] = { x: -s, opacity: 0 } : e.direction === "right" ? r["0%"] = { x: s, opacity: 0 } : e.direction === "top" ? r["0%"] = { y: -s, opacity: 0 } : e.direction === "bottom" ? r["0%"] = { y: s, opacity: 0 } : r["0%"] = { x: -s, opacity: 0 };
10851
- const n = new W(
10852
- r,
10859
+ r.direction === "left" ? o["0%"] = { x: -n, opacity: s, mirror: e } : r.direction === "right" ? o["0%"] = { x: n, opacity: s, mirror: e } : r.direction === "top" ? o["0%"] = { y: -n, opacity: s, mirror: e } : r.direction === "bottom" ? o["0%"] = { y: n, opacity: s, mirror: e } : o["0%"] = { x: -n, opacity: s, mirror: e };
10860
+ const a = new W(
10861
+ o,
10853
10862
  { ...i, easing: i.easing || "easeOutCubic" },
10854
10863
  "slideIn"
10855
10864
  );
10856
- return n.presetParams = t, n;
10865
+ return a.presetParams = t, a;
10857
10866
  }, pS = (i, t) => {
10867
+ const e = t?.mirror || 0, s = t?.opacity || 0;
10858
10868
  if (t && (t["0%"] || t["100%"]))
10859
10869
  return new W(t, i, "slideOut");
10860
- const e = t || { direction: "left" }, s = e.distance || 300, r = {
10861
- "0%": { x: 0, y: 0, opacity: 1 }
10870
+ const r = t || { direction: "left" }, n = r.distance || 300, o = {
10871
+ "0%": { x: 0, y: 0, opacity: 1, mirror: e }
10862
10872
  };
10863
- e.direction === "left" ? r["100%"] = { x: -s, opacity: 0 } : e.direction === "right" ? r["100%"] = { x: s, opacity: 0 } : e.direction === "top" ? r["100%"] = { y: -s, opacity: 0 } : e.direction === "bottom" ? r["100%"] = { y: s, opacity: 0 } : r["100%"] = { x: -s, opacity: 0 };
10864
- const n = new W(
10865
- r,
10873
+ r.direction === "left" ? o["100%"] = {
10874
+ x: -n,
10875
+ opacity: s,
10876
+ mirror: e
10877
+ } : r.direction === "right" ? o["100%"] = {
10878
+ x: n,
10879
+ opacity: s,
10880
+ mirror: e
10881
+ } : r.direction === "top" ? o["100%"] = {
10882
+ y: -n,
10883
+ opacity: s,
10884
+ mirror: e
10885
+ } : r.direction === "bottom" ? o["100%"] = {
10886
+ y: n,
10887
+ opacity: s,
10888
+ mirror: e
10889
+ } : o["100%"] = {
10890
+ x: -n,
10891
+ opacity: s,
10892
+ mirror: e
10893
+ };
10894
+ const a = new W(
10895
+ o,
10866
10896
  { ...i, easing: i.easing || "easeInCubic" },
10867
10897
  "slideOut"
10868
10898
  );
10869
- return n.presetParams = t, n;
10870
- }, mS = (i, t) => t && (t["0%"] || t["100%"]) ? new W(t, i, "zoomIn") : new W(
10871
- {
10872
- "0%": { scale: 0, opacity: 0 },
10873
- "100%": { scale: 1, opacity: 1 }
10874
- },
10875
- { ...i, easing: i.easing || "easeOutBack" },
10876
- "zoomIn"
10877
- ), gS = (i, t) => t && (t["0%"] || t["100%"]) ? new W(t, i, "zoomOut") : new W(
10878
- {
10879
- "0%": { scale: 1, opacity: 1 },
10880
- "100%": { scale: 0, opacity: 0 }
10881
- },
10882
- { ...i, easing: i.easing || "easeInBack" },
10883
- "zoomOut"
10884
- ), xS = (i, t) => t && (t["0%"] || t["100%"]) ? new W(t, i, "blurIn") : new W(
10885
- {
10886
- "0%": { blur: 20, opacity: 0 },
10887
- "100%": { blur: 0, opacity: 1 }
10888
- },
10889
- { ...i, easing: i.easing || "easeOutQuad" },
10890
- "blurIn"
10891
- ), yS = (i, t) => t && (t["0%"] || t["100%"]) ? new W(t, i, "blurOut") : new W(
10892
- {
10893
- "0%": { blur: 0, opacity: 1 },
10894
- "100%": { blur: 20, opacity: 0 }
10895
- },
10896
- { ...i, easing: i.easing || "easeInQuad" },
10897
- "blurOut"
10898
- ), _S = (i, t) => new cS(
10899
+ return a.presetParams = t, a;
10900
+ }, mS = (i, t) => {
10901
+ const e = t?.mirror || 0, s = t?.opacity || 0, r = t?.scale || 0;
10902
+ return t && (t["0%"] || t["100%"]) ? new W(t, i, "zoomIn") : new W(
10903
+ {
10904
+ "0%": {
10905
+ scale: r,
10906
+ opacity: s,
10907
+ mirror: e
10908
+ },
10909
+ "100%": { scale: 1, opacity: 1, mirror: e }
10910
+ },
10911
+ { ...i, easing: i.easing || "easeOutBack" },
10912
+ "zoomIn"
10913
+ );
10914
+ }, gS = (i, t) => {
10915
+ const e = t?.mirror || 0, s = t?.opacity || 0, r = t?.scale || 0;
10916
+ return t && (t["0%"] || t["100%"]) ? new W(t, i, "zoomOut") : new W(
10917
+ {
10918
+ "0%": { scale: 1, opacity: 1, mirror: e },
10919
+ "100%": {
10920
+ scale: r,
10921
+ opacity: s,
10922
+ mirror: e
10923
+ }
10924
+ },
10925
+ { ...i, easing: i.easing || "easeInBack" },
10926
+ "zoomOut"
10927
+ );
10928
+ }, xS = (i, t) => {
10929
+ const e = t?.mirror || 0, s = t?.opacity || 0;
10930
+ return t && (t["0%"] || t["100%"]) ? new W(t, i, "blurIn") : new W(
10931
+ {
10932
+ "0%": { blur: 20, opacity: s, mirror: e },
10933
+ "100%": { blur: 0, opacity: 1, mirror: e }
10934
+ },
10935
+ { ...i, easing: i.easing || "easeOutQuad" },
10936
+ "blurIn"
10937
+ );
10938
+ }, yS = (i, t) => {
10939
+ const e = t?.mirror || 0, s = t?.opacity || 0;
10940
+ return t && (t["0%"] || t["100%"]) ? new W(t, i, "blurOut") : new W(
10941
+ {
10942
+ "0%": { blur: 0, opacity: 1, mirror: e },
10943
+ "100%": { blur: 20, opacity: s, mirror: e }
10944
+ },
10945
+ { ...i, easing: i.easing || "easeInQuad" },
10946
+ "blurOut"
10947
+ );
10948
+ }, _S = (i, t) => new cS(
10899
10949
  {
10900
10950
  type: "character",
10901
10951
  from: { alpha: 0 },
@@ -11104,69 +11154,82 @@ ct.register("fallZoomOut", RS);
11104
11154
  ct.register("zoomSpinOut", US);
11105
11155
  ct.register("dramaticSpinSlideOut", zS);
11106
11156
  function DE(i, t) {
11157
+ const e = t?.mirror || 0, s = t?.scale || 0, r = t?.opacity || 0;
11107
11158
  switch (i) {
11108
11159
  case "fadeIn":
11109
11160
  return {
11110
- "0%": { opacity: 0, scale: 0.9 },
11111
- "100%": { opacity: 1, scale: 1 }
11161
+ "0%": { opacity: r, scale: 0.9, mirror: e },
11162
+ "100%": { opacity: 1, scale: 1, mirror: e }
11112
11163
  };
11113
11164
  case "fadeOut":
11114
11165
  return {
11115
- "0%": { opacity: 1 },
11116
- "100%": { opacity: 0 }
11166
+ "0%": { opacity: 1, mirror: e },
11167
+ "100%": { opacity: r, mirror: e }
11117
11168
  };
11118
11169
  case "zoomIn":
11119
11170
  return {
11120
- "0%": { scale: 0, opacity: 0 },
11121
- "100%": { scale: 1, opacity: 1 }
11171
+ "0%": {
11172
+ scale: s,
11173
+ opacity: r,
11174
+ mirror: e
11175
+ },
11176
+ "100%": { scale: 1, opacity: 1, mirror: e }
11122
11177
  };
11123
11178
  case "zoomOut":
11124
11179
  return {
11125
- "0%": { scale: 1, opacity: 1 },
11126
- "100%": { scale: 0, opacity: 0 }
11180
+ "0%": { scale: 1, opacity: 1, mirror: e },
11181
+ "100%": {
11182
+ scale: s,
11183
+ opacity: r,
11184
+ mirror: e
11185
+ }
11127
11186
  };
11128
11187
  case "slideIn": {
11129
- const e = t?.direction || "left", s = t?.distance || 300;
11188
+ const n = t?.direction || "left", o = t?.distance || 300;
11130
11189
  return {
11131
11190
  "0%": {
11132
- x: e === "left" ? -s : e === "right" ? s : 0,
11133
- y: e === "top" ? -s : e === "bottom" ? s : 0,
11134
- opacity: 0
11191
+ x: n === "left" ? -o : n === "right" ? o : 0,
11192
+ y: n === "top" ? -o : n === "bottom" ? o : 0,
11193
+ opacity: r,
11194
+ mirror: e
11135
11195
  },
11136
- "100%": { x: 0, y: 0, opacity: 1 }
11196
+ "100%": { x: 0, y: 0, opacity: 1, mirror: e }
11137
11197
  };
11138
11198
  }
11139
11199
  case "slideOut": {
11140
- const e = t?.direction || "left", s = t?.distance || 300;
11200
+ const n = t?.direction || "left", o = t?.distance || 300;
11141
11201
  return {
11142
- "0%": { x: 0, y: 0, opacity: 1 },
11202
+ "0%": { x: 0, y: 0, opacity: 1, mirror: e },
11143
11203
  "100%": {
11144
- x: e === "left" ? -s : e === "right" ? s : 0,
11145
- y: e === "top" ? -s : e === "bottom" ? s : 0,
11146
- opacity: 0
11204
+ x: n === "left" ? -o : n === "right" ? o : 0,
11205
+ y: n === "top" ? -o : n === "bottom" ? o : 0,
11206
+ opacity: r,
11207
+ mirror: e
11147
11208
  }
11148
11209
  };
11149
11210
  }
11150
11211
  case "pulse":
11151
11212
  return {
11152
- "0%": { scale: 0.9 },
11153
- "50%": { scale: 1 },
11154
- "100%": { scale: 0.9 }
11213
+ "0%": { scale: 1, mirror: e },
11214
+ "25%": { scale: 0.9, mirror: e },
11215
+ "50%": { scale: 1, mirror: e },
11216
+ "75%": { scale: 0.9, mirror: e },
11217
+ "100%": { scale: 1, mirror: e }
11155
11218
  };
11156
11219
  case "blurIn":
11157
11220
  return {
11158
- "0%": { blur: 20, opacity: 0 },
11159
- "100%": { blur: 0, opacity: 1 }
11221
+ "0%": { blur: 20, opacity: r, mirror: e },
11222
+ "100%": { blur: 0, opacity: 1, mirror: e }
11160
11223
  };
11161
11224
  case "blurOut":
11162
11225
  return {
11163
- "0%": { blur: 0, opacity: 1 },
11164
- "100%": { blur: 20, opacity: 0 }
11226
+ "0%": { blur: 0, opacity: 1, mirror: e },
11227
+ "100%": { blur: 20, opacity: r, mirror: e }
11165
11228
  };
11166
11229
  case "blurSlideRightIn":
11167
11230
  return {
11168
- "0%": { blur: 5, x: 100, mirror: 1 },
11169
- "100%": { blur: 0, x: 0, mirror: 1 }
11231
+ "0%": { blur: 5, x: 100, mirror: e },
11232
+ "100%": { blur: 0, x: 0, mirror: e }
11170
11233
  };
11171
11234
  case "wobbleZoomIn":
11172
11235
  return {
@@ -12417,7 +12480,7 @@ const Md = (i) => {
12417
12480
  },
12418
12481
  test: () => !0,
12419
12482
  load: async () => {
12420
- await import("./browserAll-CqGwXsvh.js");
12483
+ await import("./browserAll-DZcFbAZx.js");
12421
12484
  }
12422
12485
  }, GS = {
12423
12486
  extension: {
@@ -12427,7 +12490,7 @@ const Md = (i) => {
12427
12490
  },
12428
12491
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
12429
12492
  load: async () => {
12430
- await import("./webworkerAll-G2TZLg-n.js");
12493
+ await import("./webworkerAll-BxlCSeKM.js");
12431
12494
  }
12432
12495
  };
12433
12496
  class Ct {
@@ -21618,13 +21681,13 @@ async function U3(i) {
21618
21681
  for (let n = 0; n < t.length; n++) {
21619
21682
  const o = t[n];
21620
21683
  if (o === "webgpu" && await R3()) {
21621
- const { WebGPURenderer: a } = await import("./WebGPURenderer-2Q3ro95g.js");
21684
+ const { WebGPURenderer: a } = await import("./WebGPURenderer-CUlPzoET.js");
21622
21685
  e = a, s = { ...i, ...i.webgpu };
21623
21686
  break;
21624
21687
  } else if (o === "webgl" && E3(
21625
21688
  i.failIfMajorPerformanceCaveat ?? Ox.defaultOptions.failIfMajorPerformanceCaveat
21626
21689
  )) {
21627
- const { WebGLRenderer: a } = await import("./WebGLRenderer-C_6TQ1h9.js");
21690
+ const { WebGLRenderer: a } = await import("./WebGLRenderer-CmrnYimx.js");
21628
21691
  e = a, s = { ...i, ...i.webgl };
21629
21692
  break;
21630
21693
  } else if (o === "canvas")
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aT as e, az as i, aA as o, aI as t, aH as n, aE as T, aP as r, aR as m, aB as A, aX as P, aK as C, aC as E, aG as I, aJ as O, aD as f, aF as g, aC as p, aW as N, aL as d, ax as M, aU as S, au as _, av as c, aN as l, aV as x, aS as F, aM as L, aO as u, aQ as R, aw as y, ay as D } from "./index-Btpkt1Jj.js";
1
+ import { aT as e, az as i, aA as o, aI as t, aH as n, aE as T, aP as r, aR as m, aB as A, aX as P, aK as C, aC as E, aG as I, aJ as O, aD as f, aF as g, aC as p, aW as N, aL as d, ax as M, aU as S, au as _, av as c, aN as l, aV as x, aS as F, aM as L, aO as u, aQ as R, aw as y, ay as D } from "./index-Dmkmv4u7.js";
2
2
  export {
3
3
  e as ANIMATABLE_PROPERTIES,
4
4
  i as Audio,