@realsee/dnalogel 3.8.5 → 3.8.6

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/index.js CHANGED
@@ -39,7 +39,7 @@ import ul from "animejs";
39
39
  import { GLTFLoader as nm } from "@realsee/five/gltf-loader";
40
40
  function sm() {
41
41
  console.debug(
42
- "%c %c@realsee/dnalogel %cv3.8.5",
42
+ "%c %c@realsee/dnalogel %cv3.8.6",
43
43
  [
44
44
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
45
45
  "background-repeat: no-repeat",
@@ -7085,7 +7085,7 @@ let Fi = class {
7085
7085
  /**
7086
7086
  * @realsee/dnalogel 版本号
7087
7087
  */
7088
- u(this, "VERSION", "3.8.5");
7088
+ u(this, "VERSION", "3.8.6");
7089
7089
  u(this, "five");
7090
7090
  /**
7091
7091
  * 插件事件钩子
@@ -29487,9 +29487,12 @@ let ol = class extends kf {
29487
29487
  });
29488
29488
  u(this, "getDuration", () => this.getSpeededDuration(this.duration));
29489
29489
  u(this, "getProgress", () => {
29490
- var a;
29491
- const e = this.getPauseData(), i = 1 - ((a = e == null ? void 0 : e.playedProgress) != null ? a : 0), s = this.getDuration(), r = (performance.now() - this.playStartedTime) / s;
29492
- return 1 - i + r;
29490
+ var l;
29491
+ const e = this.getPauseData();
29492
+ let i = (l = e == null ? void 0 : e.playedProgress) != null ? l : 0;
29493
+ (i < 0 || i >= 1) && (i = 0);
29494
+ const s = 1 - i, o = this.getDuration(), a = (performance.now() - this.playStartedTime) / o;
29495
+ return 1 - s + a;
29493
29496
  });
29494
29497
  const s = {
29495
29498
  config: {
@@ -29518,7 +29521,10 @@ let ol = class extends kf {
29518
29521
  return new Promise((e, i) => F(this, null, function* () {
29519
29522
  var l;
29520
29523
  this.hooks.emit("play", { userAction: !0 });
29521
- const s = this.getPauseData(), o = (l = s == null ? void 0 : s.playedProgress) != null ? l : 0, r = Yr(this.curve, o, this.curveOffset);
29524
+ const s = this.getPauseData();
29525
+ let o = (l = s == null ? void 0 : s.playedProgress) != null ? l : 0;
29526
+ (o < 0 || o >= 1) && (o = 0);
29527
+ const r = Yr(this.curve, o, this.curveOffset);
29522
29528
  if (this.hooks.emit("progressChange", o), this.five.setState(fe(R({}, r), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
29523
29529
  const c = this.addInterruptListener(() => {
29524
29530
  this.state.playing && (this.hooks.emit("broke"), this.handlePause(), c(), i(new Error("broke")));