@realsee/dnalogel 3.47.15 → 3.47.16

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.
@@ -19,8 +19,8 @@ import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
20
20
  import { centerPoint as C } from "../../shared-utils/three/centerPoint.js";
21
21
  import { LightTag as x } from "../../shared-utils/tag.js";
22
- import { removeAllTag as W } from "../utils/removeAllTag.js";
23
- import { getLengthHTML as v } from "../utils/Meshes/getLengthHTML.js";
22
+ import { removeAllTag as v } from "../utils/removeAllTag.js";
23
+ import { getLengthHTML as W } from "../utils/Meshes/getLengthHTML.js";
24
24
  import { applyObjectMatrixWorld as m } from "../../shared-utils/three/applyObjectMatrixWorld.js";
25
25
  import "../../shared-utils/three/THREESphere.js";
26
26
  import "animejs";
@@ -51,7 +51,7 @@ class M extends I {
51
51
  l(this, "name", "Line3");
52
52
  }
53
53
  }
54
- class X extends R {
54
+ class Q extends R {
55
55
  constructor(e) {
56
56
  var h, r, d, a, g;
57
57
  super();
@@ -83,7 +83,7 @@ class X extends R {
83
83
  resolution: t.resolution
84
84
  });
85
85
  this.line = new M(i, t), this.backLine = new M(i, n), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
86
- W(this);
86
+ v(this);
87
87
  });
88
88
  }
89
89
  get style() {
@@ -112,7 +112,8 @@ class X extends R {
112
112
  return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
113
113
  }
114
114
  get five() {
115
- return window.globalModules.five;
115
+ var e, i;
116
+ return (i = (e = window.globalModules) == null ? void 0 : e.five) != null ? i : window.$five;
116
117
  }
117
118
  updateMatrixWorld(e) {
118
119
  var i;
@@ -150,34 +151,29 @@ class X extends R {
150
151
  this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
151
152
  }
152
153
  updateLengthItems() {
153
- if (!this.five) {
154
- console.error("Five not found");
155
- return;
156
- }
157
154
  const e = () => {
158
- this.lengthDoms.forEach((i) => i.destroy()), this.lengthDoms = [];
155
+ this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = [];
159
156
  };
160
- if (!this.points || this.points.length < 2)
157
+ if (!this.points || this.points.length < 2 || !this.paramsStyle.lengthEnable)
161
158
  return e();
162
- if (this.paramsStyle.lengthEnable) {
163
- const i = m(this, this.points).map((t, n) => {
164
- if (n !== 0)
165
- return [m(this, this.points[n - 1]), t];
166
- }).filter(c);
167
- i.forEach(([t, n], h) => {
168
- var a;
169
- const r = C(t, n);
170
- this.lengthDoms[h] = (a = this.lengthDoms[h]) != null ? a : (() => {
171
- const g = new x(this.five);
172
- return g.intersectCheck = !1, g;
173
- })(), this.lengthDoms[h].setPosition(r, [t, n]);
174
- const d = t.distanceTo(n).toFixed(2);
175
- d === "0.00" ? this.lengthDoms[h].container.innerHTML = "" : this.lengthDoms[h].container.innerHTML = v(d + "m");
176
- }), this.lengthDoms.length > i.length && (this.lengthDoms.slice(i.length).forEach((t) => t.destroy()), this.lengthDoms.length = i.length);
177
- } else
178
- e();
159
+ if (!this.five)
160
+ return console.error("Five not found");
161
+ const i = m(this, this.points).map((t, n) => {
162
+ if (n !== 0)
163
+ return [m(this, this.points[n - 1]), t];
164
+ }).filter(c);
165
+ i.forEach(([t, n], h) => {
166
+ var a;
167
+ const r = C(t, n);
168
+ this.lengthDoms[h] = (a = this.lengthDoms[h]) != null ? a : (() => {
169
+ const g = new x(this.five);
170
+ return g.intersectCheck = !1, g;
171
+ })(), this.lengthDoms[h].setPosition(r, [t, n]);
172
+ const d = t.distanceTo(n).toFixed(2);
173
+ d === "0.00" ? this.lengthDoms[h].container.innerHTML = "" : this.lengthDoms[h].container.innerHTML = W(d + "m");
174
+ }), this.lengthDoms.length > i.length && (this.lengthDoms.slice(i.length).forEach((t) => t.destroy()), this.lengthDoms.length = i.length);
179
175
  }
180
176
  }
181
177
  export {
182
- X as LineMesh
178
+ Q as LineMesh
183
179
  };
@@ -23,7 +23,7 @@ import { applyObjectMatrixWorld as D } from "../../shared-utils/three/applyObjec
23
23
  const p = new l.BufferGeometry();
24
24
  p.name = "blankGeometry";
25
25
  p.isBlank = !0;
26
- class k extends A {
26
+ class R extends A {
27
27
  constructor(e) {
28
28
  super(e);
29
29
  r(this, "name", "PolygonMesh");
@@ -53,7 +53,8 @@ class k extends A {
53
53
  return this.geometryInfoNeedUpdate && (this._geometryInfo = _(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
54
54
  }
55
55
  get five() {
56
- return window.globalModules.five;
56
+ var e, o;
57
+ return (o = (e = window.globalModules) == null ? void 0 : e.five) != null ? o : window.$five;
57
58
  }
58
59
  updateMatrixWorld(e) {
59
60
  if (super.updateMatrixWorld(e), this.center) {
@@ -86,16 +87,14 @@ class k extends A {
86
87
  }
87
88
  updateAreaItems() {
88
89
  var s;
89
- if (!this.five) {
90
- console.error("Five not found");
91
- return;
92
- }
93
90
  const e = () => {
94
91
  var n;
95
92
  (n = this.areaDom) == null || n.destroy(), this.areaDom = void 0;
96
93
  };
97
94
  if (!this._paramsStyle.lengthEnable || !this.geometryInfo)
98
95
  return e();
96
+ if (!this.five)
97
+ return console.error("Five not found");
99
98
  this.areaDom = (s = this.areaDom) != null ? s : (() => {
100
99
  const n = new S(this.five);
101
100
  return n.intersectCheck = !1, n;
@@ -105,5 +104,5 @@ class k extends A {
105
104
  }
106
105
  }
107
106
  export {
108
- k as PolygonMesh
107
+ R as PolygonMesh
109
108
  };
@@ -17,7 +17,7 @@ let x = class {
17
17
  /**
18
18
  * @realsee/dnalogel 版本号
19
19
  */
20
- i(this, "VERSION", "3.47.15");
20
+ i(this, "VERSION", "3.47.16");
21
21
  i(this, "NAME");
22
22
  i(this, "five");
23
23
  i(this, "workUtil");
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.47.15",
3
+ "%c %c@realsee/dnalogel %cv3.47.16",
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.47.15",
3
+ "version": "3.47.16",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",