@realsee/dnalogel 3.49.7-alpha.0 → 3.49.7

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 zE from "earcut";
48
48
  import { GLTFLoader as BE } from "@realsee/five/gltf-loader";
49
49
  function NE() {
50
50
  console.debug(
51
- "%c %c@realsee/dnalogel %cv3.49.7-alpha.0",
51
+ "%c %c@realsee/dnalogel %cv3.49.7",
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",
@@ -21392,6 +21392,11 @@ class Sc {
21392
21392
  * @default true
21393
21393
  */
21394
21394
  v(this, "intersectCheck", !0);
21395
+ /**
21396
+ * @description 模拟3D
21397
+ * @default true
21398
+ */
21399
+ v(this, "simulate3D", !1);
21395
21400
  v(this, "tagWrapper");
21396
21401
  v(this, "five");
21397
21402
  v(this, "originPosition");
@@ -21466,6 +21471,8 @@ class Sc {
21466
21471
  return;
21467
21472
  }
21468
21473
  const i = (() => {
21474
+ if (!this.simulate3D)
21475
+ return 1;
21469
21476
  const s = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), o = this.transformedPosition.distanceTo(this.five.camera.position);
21470
21477
  return Math.max(Math.min(1 - s * o / 40, 1), 0.5);
21471
21478
  })(), r = (() => {
@@ -21676,7 +21683,7 @@ class Oi extends ti {
21676
21683
  const a = lr(r, s);
21677
21684
  this.lengthDoms[o] = (c = this.lengthDoms[o]) != null ? c : (() => {
21678
21685
  const h = new Sc(this.five);
21679
- return h.intersectCheck = !1, h;
21686
+ return h.intersectCheck = !1, h.simulate3D = !0, h;
21680
21687
  })(), this.lengthDoms[o].setPosition(a, [r, s]);
21681
21688
  const l = r.distanceTo(s).toFixed(2);
21682
21689
  this.lengthDoms[o].lengthDom !== l && (this.lengthDoms[o].lengthDom = l, l === "0.00" ? this.lengthDoms[o].container.innerHTML = "" : this.lengthDoms[o].container.innerHTML = nx(l + "m"));
@@ -27761,7 +27768,7 @@ let ws = class {
27761
27768
  /**
27762
27769
  * @realsee/dnalogel 版本号
27763
27770
  */
27764
- v(this, "VERSION", "3.49.7-alpha.0");
27771
+ v(this, "VERSION", "3.49.7");
27765
27772
  v(this, "NAME");
27766
27773
  v(this, "five");
27767
27774
  v(this, "workUtil");
@@ -48669,18 +48676,21 @@ class B8 extends $g {
48669
48676
  t.target === "TagPoint" && this.unfoldAndFoldOthers();
48670
48677
  }
48671
48678
  updateVisible() {
48679
+ if (typeof window.requestIdleCallback == "undefined") {
48680
+ super.updateVisible();
48681
+ return;
48682
+ }
48672
48683
  const t = () => {
48673
48684
  this.requestIdleCallbackId && cancelIdleCallback(this.requestIdleCallbackId), this.requestIdleCallbackId = requestIdleCallback(() => {
48674
48685
  super.updateVisible();
48675
48686
  });
48676
48687
  };
48677
- typeof window.requestIdleCallback == "undefined" && super.updateVisible();
48678
48688
  let i = !1;
48679
48689
  requestIdleCallback(() => {
48680
48690
  i = !0;
48681
48691
  }), t(), setTimeout(() => {
48682
- i || super.updateVisible();
48683
- }, 50);
48692
+ i || (this.requestIdleCallbackId && cancelIdleCallback(this.requestIdleCallbackId), super.updateVisible());
48693
+ }, 200);
48684
48694
  }
48685
48695
  applyVisible() {
48686
48696
  var t, i, r, s;
@@ -56561,7 +56571,7 @@ class yd extends hv {
56561
56571
  return console.error("Five not found");
56562
56572
  this.areaDom = (r = this.areaDom) != null ? r : (() => {
56563
56573
  const s = new Sc(this.five);
56564
- return s.intersectCheck = !1, s;
56574
+ return s.intersectCheck = !1, s.simulate3D = !0, s;
56565
56575
  })(), this.areaDom.setPosition(this.center);
56566
56576
  const i = this.geometryInfo.area.toFixed(2);
56567
56577
  i === "0.00" ? this.areaDom.container.innerHTML = "" : this.areaDom.container.innerHTML = nx(i + "m²");