@realsee/dnalogel 3.53.0 → 3.53.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/index.js CHANGED
@@ -48,7 +48,7 @@ import Vp from "earcut";
48
48
  import { GLTFLoader as Rp } from "@realsee/five/gltf-loader";
49
49
  function _p() {
50
50
  console.debug(
51
- "%c %c@realsee/dnalogel %cv3.53.0",
51
+ "%c %c@realsee/dnalogel %cv3.53.2",
52
52
  [
53
53
  "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=')",
54
54
  "background-repeat: no-repeat",
@@ -3562,6 +3562,7 @@ class s0 {
3562
3562
  d(this, "cancelRequestAnimationFrameId");
3563
3563
  d(this, "camera", new b.Camera());
3564
3564
  d(this, "domInited", !1);
3565
+ d(this, "canvasWrapper");
3565
3566
  d(this, "params");
3566
3567
  d(this, "_rendererCache");
3567
3568
  d(this, "_cameraCache");
@@ -3573,17 +3574,15 @@ class s0 {
3573
3574
  const i = this.five.camera.projectionMatrix.toArray().join(",") + this.five.camera.matrixWorld.toArray().join(",");
3574
3575
  if (i !== this._cameraCache && (this._cameraCache = i, this.camera.copy(this.five.camera)), this.renderer.render(this.scene, this.camera), !this.domInited) {
3575
3576
  const a = (s = this.five.getElement()) == null ? void 0 : s.parentElement;
3576
- if (a) {
3577
- const l = document.createElement("div");
3578
- l.classList.add("five-puppet"), l.style.position = "absolute", l.style.pointerEvents = "none", l.style.left = "0", l.style.top = "0", l.style.zIndex = `${(r = (o = this.params) == null ? void 0 : o.zIndex) != null ? r : 1}`, l.appendChild(this.renderer.domElement), a.appendChild(l), this.domInited = !0;
3579
- }
3577
+ a && (this.canvasWrapper = document.createElement("div"), this.canvasWrapper.classList.add("five-puppet"), this.canvasWrapper.style.position = "absolute", this.canvasWrapper.style.pointerEvents = "none", this.canvasWrapper.style.left = "0", this.canvasWrapper.style.top = "0", this.canvasWrapper.style.zIndex = `${(r = (o = this.params) == null ? void 0 : o.zIndex) != null ? r : 1}`, this.canvasWrapper.appendChild(this.renderer.domElement), a.appendChild(this.canvasWrapper), this.domInited = !0);
3580
3578
  }
3581
3579
  });
3582
3580
  d(this, "stopAnimate", () => {
3583
3581
  this.cancelRequestAnimationFrameId && cancelAnimationFrame(this.cancelRequestAnimationFrameId);
3584
3582
  });
3585
3583
  d(this, "destory", () => {
3586
- this.stopAnimate(), this.renderer.dispose(), this.renderer.domElement.remove();
3584
+ var t;
3585
+ this.stopAnimate(), this.renderer.dispose(), this.renderer.domElement.remove(), (t = this.canvasWrapper) == null || t.remove();
3587
3586
  });
3588
3587
  this.five = t, this.params = e, this.renderer = new vp({
3589
3588
  webgl2: !0,
@@ -9017,7 +9016,7 @@ let Hi = class {
9017
9016
  /**
9018
9017
  * @realsee/dnalogel 版本号
9019
9018
  */
9020
- d(this, "VERSION", "3.53.0");
9019
+ d(this, "VERSION", "3.53.2");
9021
9020
  d(this, "NAME");
9022
9021
  d(this, "five");
9023
9022
  d(this, "workUtil");
@@ -31025,6 +31024,7 @@ class Cl {
31025
31024
  d(this, "group", new b.Group());
31026
31025
  d(this, "meshWithDepthTest");
31027
31026
  d(this, "meshWithoutDepthTest");
31027
+ d(this, "visible", null);
31028
31028
  d(this, "five");
31029
31029
  d(this, "mode");
31030
31030
  d(this, "_curvePath", null);
@@ -31036,7 +31036,6 @@ class Cl {
31036
31036
  d(this, "width", 0.5);
31037
31037
  d(this, "unitLength", 0.5);
31038
31038
  d(this, "_visibleFloorIndexes", null);
31039
- d(this, "visible", null);
31040
31039
  /** Five Mode 是否满足 */
31041
31040
  d(this, "modeVisible", !1);
31042
31041
  /** 楼层是否满足展示条件 */
@@ -31091,8 +31090,8 @@ class Cl {
31091
31090
  });
31092
31091
  /** 更新可见性 */
31093
31092
  d(this, "updateVisible", () => {
31094
- const t = (() => !this.parent.visible || !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible && this.floorVisible)();
31095
- this.visible !== t && (this.visible = t, t ? this.doShow() : this.doHide());
31093
+ const t = (() => !this.parent.visible || !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.defaultVisible && this.floorVisible)();
31094
+ this.visible !== t && (this.visible = t, t && this.textureHasLoaded ? this.doShow() : this.doHide());
31096
31095
  });
31097
31096
  d(this, "onFlowAnimeUpdate", (t) => {
31098
31097
  const { progress: e } = t;