@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.
@@ -373,7 +373,12 @@ class qo extends O {
373
373
  load(e) {
374
374
  return l(this, null, function* () {
375
375
  var i, o;
376
- this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = f({}, this.config, {
376
+ this.clearTags();
377
+ try {
378
+ console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) });
379
+ } catch (s) {
380
+ }
381
+ this.config = f({}, this.config, {
377
382
  globalConfig: (i = e.globalConfig) != null ? i : {},
378
383
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
379
384
  });
@@ -76,7 +76,7 @@ class w extends a {
76
76
  occlusionMode: this.occlusionMode
77
77
  }), o = this.edgePlanes[t]);
78
78
  const h = this.topPlane.points, n = this.bottomPlane.points, l = t === 3 ? 0 : t + 1;
79
- o.setPoints([h[t], n[l], n[t]]), o.line.setPoints([h[t], n[t]]), this.addIfNotExists(o);
79
+ o.setPoints([h[t], n[t], n[l]]), o.line.setPoints([h[t], n[t]]), this.addIfNotExists(o);
80
80
  }
81
81
  }
82
82
  setStyle(t) {
@@ -16,7 +16,7 @@ let c = class {
16
16
  /**
17
17
  * @realsee/dnalogel 版本号
18
18
  */
19
- e(this, "VERSION", "3.47.9");
19
+ e(this, "VERSION", "3.47.10");
20
20
  e(this, "NAME");
21
21
  e(this, "five");
22
22
  e(this, "workUtil");
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.47.9",
3
+ "%c %c@realsee/dnalogel %cv3.47.10",
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",
@@ -99,7 +99,10 @@ class E {
99
99
  })(), n = (() => {
100
100
  if (this.positionsForRotate === void 0 || this.positionsForRotate.length !== 2)
101
101
  return 0;
102
- const [r, a] = this.positionsForRotate, i = l(this.five.camera, r, t), c = l(this.five.camera, a, t), p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, P = f.topPx - p.topPx;
102
+ const [r, a] = this.positionsForRotate, i = l(this.five.camera, r, t), c = l(this.five.camera, a, t);
103
+ if (!i || !c)
104
+ return 0;
105
+ const p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, P = f.topPx - p.topPx;
103
106
  return Math.atan2(P, y) * (180 / Math.PI);
104
107
  })();
105
108
  this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${o})`, n && (this.container.style.transform += ` rotate(${n}deg)`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.47.9",
3
+ "version": "3.47.10",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",