@realsee/dnalogel 3.47.9 → 3.47.10

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 wp from "earcut";
48
48
  import { GLTFLoader as Cp } from "@realsee/five/gltf-loader";
49
49
  function Pp() {
50
50
  console.debug(
51
- "%c %c@realsee/dnalogel %cv3.47.9",
51
+ "%c %c@realsee/dnalogel %cv3.47.10",
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",
@@ -2067,7 +2067,10 @@ class Dl {
2067
2067
  })(), s = (() => {
2068
2068
  if (this.positionsForRotate === void 0 || this.positionsForRotate.length !== 2)
2069
2069
  return 0;
2070
- const [o, r] = this.positionsForRotate, a = ya(this.five.camera, o, t), l = ya(this.five.camera, r, t), c = a.leftPx > l.leftPx ? l : a, h = a.leftPx > l.leftPx ? a : l, u = h.leftPx - c.leftPx, f = h.topPx - c.topPx;
2070
+ const [o, r] = this.positionsForRotate, a = ya(this.five.camera, o, t), l = ya(this.five.camera, r, t);
2071
+ if (!a || !l)
2072
+ return 0;
2073
+ const c = a.leftPx > l.leftPx ? l : a, h = a.leftPx > l.leftPx ? a : l, u = h.leftPx - c.leftPx, f = h.topPx - c.topPx;
2071
2074
  return Math.atan2(f, u) * (180 / Math.PI);
2072
2075
  })();
2073
2076
  this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${i})`, s && (this.container.style.transform += ` rotate(${s}deg)`);
@@ -2112,7 +2115,7 @@ let Bi = class {
2112
2115
  /**
2113
2116
  * @realsee/dnalogel 版本号
2114
2117
  */
2115
- d(this, "VERSION", "3.47.9");
2118
+ d(this, "VERSION", "3.47.10");
2116
2119
  d(this, "NAME");
2117
2120
  d(this, "five");
2118
2121
  d(this, "workUtil");
@@ -32030,7 +32033,12 @@ class bl extends vk {
32030
32033
  load(e) {
32031
32034
  return G(this, null, function* () {
32032
32035
  var s, o;
32033
- this.clearTags(), console.debug(Dg, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = Qe({}, this.config, {
32036
+ this.clearTags();
32037
+ try {
32038
+ console.debug(Dg, " load:", { data: JSON.parse(JSON.stringify(e)) });
32039
+ } catch (r) {
32040
+ }
32041
+ this.config = Qe({}, this.config, {
32034
32042
  globalConfig: (s = e.globalConfig) != null ? s : {},
32035
32043
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
32036
32044
  });
@@ -37788,7 +37796,7 @@ class wf extends jt {
37788
37796
  occlusionMode: this.occlusionMode
37789
37797
  }), i = this.edgePlanes[e]);
37790
37798
  const s = this.topPlane.points, o = this.bottomPlane.points, r = e === 3 ? 0 : e + 1;
37791
- i.setPoints([s[e], o[r], o[e]]), i.line.setPoints([s[e], o[e]]), this.addIfNotExists(i);
37799
+ i.setPoints([s[e], o[e], o[r]]), i.line.setPoints([s[e], o[e]]), this.addIfNotExists(i);
37792
37800
  }
37793
37801
  }
37794
37802
  setStyle(e) {