@netless/app-slide 0.2.95 → 0.2.96-alpha.0

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/main.es.js CHANGED
@@ -28682,6 +28682,9 @@ void main() {
28682
28682
  const t3 = l2 * u2;
28683
28683
  t3 > 2048 && (l2 *= u2 / t3);
28684
28684
  }
28685
+ if (Math.abs(l2 - 1) < 1e-3) {
28686
+ return { baseTexture: new Vh.c(a2, { resolution: 1 }), scale: 1 };
28687
+ }
28685
28688
  const c2 = Math.ceil(a2.width * l2), d2 = Math.ceil(a2.height * l2);
28686
28689
  let p2;
28687
28690
  try {
@@ -32322,8 +32325,8 @@ void main(void){
32322
32325
  this.math = { pi: Math.PI, e: Math.E, abs: Math.abs, acos: Math.acos, asin: Math.asin, atan: Math.atan, ceil: Math.ceil, cos: Math.cos, cosh: Math.cosh, deg: (t3) => t3 / Math.PI * 180, exp: Math.exp, floor: Math.floor, ln: Math.log, max: Math.max, min: Math.min, rad: (t3) => t3 / 180 * Math.PI, rand: (t3) => Math.random() * t3, sin: Math.sin, sinh: Math.sinh, sqrt: Math.sqrt, tan: Math.tan, tanh: Math.tanh }, this.timingTarget = e2, this.val = t2.val.value, this.time = t2.time, t2.fmla && (this.fmla = this.parseFmla(t2.fmla));
32323
32326
  }
32324
32327
  parseFmla(t2) {
32325
- let e2 = t2.replace(/#ppt_h/g, `(${this.timingTarget.design_ppt_h})`);
32326
- return e2 = e2.replace(/#ppt_w/g, `(${this.timingTarget.design_ppt_w})`), e2 = e2.replace(/#ppt_x/g, `(${this.timingTarget.design_ppt_x})`), e2 = e2.replace(/#ppt_y/g, `(${this.timingTarget.design_ppt_y})`), e2 = e2.replace(/ppt_w/g, "vars.ppt_w"), e2 = e2.replace(/ppt_h/g, "vars.ppt_h"), e2 = e2.replace(/ppt_x/g, "vars.ppt_x"), e2 = e2.replace(/ppt_y/g, "vars.ppt_y"), e2 = e2.replace(/ppt_r/g, "vars.ppt_r"), e2 = e2.replace(/#/g, "vars."), ["abs", "acos", "asin", "atan", "ceil", "cos", "cosh", "deg", "exp", "floor", "ln", "max", "min", "rad", "rand", "sin", "sinh", "sqrt", "tan", "tanh", "pi", "e"].forEach((t3) => {
32328
+ let e2 = t2.replace(/#ppt_w/g, `(${this.timingTarget.design_ppt_w})`).replace(/#ppt_h/g, `(${this.timingTarget.design_ppt_h})`).replace(/#ppt_x/g, `(${this.timingTarget.design_ppt_x})`).replace(/#ppt_y/g, `(${this.timingTarget.design_ppt_y})`).replace(/#ppt_r/g, `(${this.timingTarget.ppt_r})`).replace(/ppt_w/g, "vars.ppt_w").replace(/ppt_h/g, "vars.ppt_h").replace(/ppt_x/g, "vars.ppt_x").replace(/ppt_y/g, "vars.ppt_y").replace(/ppt_r/g, "vars.ppt_r").replace(/#/g, "vars.");
32329
+ return ["abs", "acos", "asin", "atan", "ceil", "cos", "cosh", "deg", "exp", "floor", "ln", "max", "min", "rad", "rand", "sin", "sinh", "sqrt", "tan", "tanh", "pi", "e"].forEach((t3) => {
32327
32330
  const i2 = new RegExp(`([^a-z])${t3}([^a-z])`, "g");
32328
32331
  e2 = e2.replace(i2, (e3, i3, n2) => `${i3}math.${t3}${n2}`);
32329
32332
  }), new Function("vars", "math", "$", "return " + e2);
@@ -36528,7 +36531,7 @@ void main(void){
36528
36531
  }
36529
36532
  var _T = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart", useraddLink: "useraddLink" }, yT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, xT = "";
36530
36533
  try {
36531
- xT = "1.4.49";
36534
+ xT = "1.4.50";
36532
36535
  } catch (t2) {
36533
36536
  xT = "-dev-";
36534
36537
  }
@@ -40352,7 +40355,7 @@ class SlidePreviewer {
40352
40355
  }
40353
40356
  }
40354
40357
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
40355
- const version = "0.2.95";
40358
+ const version = "0.2.96-alpha.0";
40356
40359
  const SlideApp = {
40357
40360
  kind: "Slide",
40358
40361
  setup(context) {