@realsee/dnalogel 3.53.1 → 3.53.3

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.
@@ -190,6 +190,7 @@ class R {
190
190
  i(this, "group", new h.Group());
191
191
  i(this, "meshWithDepthTest");
192
192
  i(this, "meshWithoutDepthTest");
193
+ i(this, "visible", null);
193
194
  i(this, "five");
194
195
  i(this, "mode");
195
196
  i(this, "_curvePath", null);
@@ -201,7 +202,6 @@ class R {
201
202
  i(this, "width", 0.5);
202
203
  i(this, "unitLength", 0.5);
203
204
  i(this, "_visibleFloorIndexes", null);
204
- i(this, "visible", null);
205
205
  /** Five Mode 是否满足 */
206
206
  i(this, "modeVisible", !1);
207
207
  /** 楼层是否满足展示条件 */
@@ -256,8 +256,8 @@ class R {
256
256
  });
257
257
  /** 更新可见性 */
258
258
  i(this, "updateVisible", () => {
259
- const e = (() => !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)();
260
- this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
259
+ const e = (() => !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)();
260
+ this.visible = e, e && this.textureHasLoaded ? this.doShow() : this.doHide();
261
261
  });
262
262
  i(this, "onFlowAnimeUpdate", (e) => {
263
263
  const { progress: t } = e;
@@ -534,7 +534,7 @@ class R {
534
534
  }
535
535
  doShow() {
536
536
  var e, t;
537
- this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.group), (e = this.startTagContainer) == null || e.plugin.show(), (t = this.endTagContainer) == null || t.plugin.show(), this.five.needsRender = !0;
537
+ this.mode === "model" && !this.flowAnime.isPlaying() && this.flowAnime.play(), this.five.scene.add(this.group), (e = this.startTagContainer) == null || e.plugin.show(), (t = this.endTagContainer) == null || t.plugin.show(), this.five.needsRender = !0;
538
538
  }
539
539
  doHide() {
540
540
  var e, t;
@@ -32,6 +32,7 @@ declare class GuideLineModeItem {
32
32
  readonly group: THREE.Group;
33
33
  readonly meshWithDepthTest: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
34
34
  readonly meshWithoutDepthTest: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
35
+ visible: boolean | null;
35
36
  private five;
36
37
  private mode;
37
38
  private _curvePath;
@@ -43,7 +44,6 @@ declare class GuideLineModeItem {
43
44
  private width;
44
45
  private unitLength;
45
46
  private _visibleFloorIndexes;
46
- private visible;
47
47
  /** Five Mode 是否满足 */
48
48
  private modeVisible;
49
49
  /** 楼层是否满足展示条件 */
@@ -19,7 +19,7 @@ let b = class {
19
19
  /**
20
20
  * @realsee/dnalogel 版本号
21
21
  */
22
- i(this, "VERSION", "3.53.1");
22
+ i(this, "VERSION", "3.53.3");
23
23
  i(this, "NAME");
24
24
  i(this, "five");
25
25
  i(this, "workUtil");
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.53.1",
3
+ "%c %c@realsee/dnalogel %cv3.53.3",
4
4
  [
5
5
  "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=')",
6
6
  "background-repeat: no-repeat",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.53.1",
3
+ "version": "3.53.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",