@realsee/dnalogel 3.47.13 → 3.47.14

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.
@@ -1,19 +1,19 @@
1
- var M = Object.defineProperty;
2
- var m = Object.getOwnPropertySymbols;
3
- var k = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
- var u = (o, s, e) => s in o ? M(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e, f = (o, s) => {
1
+ var _ = Object.defineProperty;
2
+ var b = Object.getOwnPropertySymbols;
3
+ var k = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
4
+ var f = (o, s, e) => s in o ? _(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e, y = (o, s) => {
5
5
  for (var e in s || (s = {}))
6
- k.call(s, e) && u(o, e, s[e]);
7
- if (m)
8
- for (var e of m(s))
9
- S.call(s, e) && u(o, e, s[e]);
6
+ k.call(s, e) && f(o, e, s[e]);
7
+ if (b)
8
+ for (var e of b(s))
9
+ p.call(s, e) && f(o, e, s[e]);
10
10
  return o;
11
11
  };
12
- var l = (o, s, e) => (u(o, typeof s != "symbol" ? s + "" : s, e), e);
13
- import * as g from "three";
14
- import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as p, DEFAULT_HIGHLIGHT_OPACITY as D } from "../typings/style.js";
15
- import { LineGeometry as y, LineMaterial as I, THREE_Line2 as w } from "../../shared-utils/five/FiveLine.js";
16
- import { anyPositionToVector3 as H } from "../../shared-utils/positionToVector3.js";
12
+ var l = (o, s, e) => (f(o, typeof s != "symbol" ? s + "" : s, e), e);
13
+ import * as u from "three";
14
+ import { DEFAULT_LINE_COLOR as D, DEFAULT_LINE_WIDTH as S, DEFAULT_HIGHLIGHT_OPACITY as T } from "../typings/style.js";
15
+ import { LineGeometry as L, LineMaterial as I, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
16
+ import { anyPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
17
17
  import { IObject3D as R } from "../../shared-utils/three/IObject3D.js";
18
18
  import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -22,7 +22,7 @@ import { LightTag as x } from "../../shared-utils/tag.js";
22
22
  import { globalModules as W } from "../utils/Modules/Global.js";
23
23
  import { removeAllTag as A } from "../utils/removeAllTag.js";
24
24
  import { getLengthHTML as O } from "../utils/Meshes/getLengthHTML.js";
25
- import { applyObjectMatrixWorld as T } from "../../shared-utils/three/applyObjectMatrixWorld.js";
25
+ import { applyObjectMatrixWorld as m } from "../../shared-utils/three/applyObjectMatrixWorld.js";
26
26
  import "../../shared-utils/three/THREESphere.js";
27
27
  import "animejs";
28
28
  import { notNil as c } from "../../shared-utils/isNil.js";
@@ -46,7 +46,7 @@ class E extends I {
46
46
  this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
47
47
  }
48
48
  }
49
- class _ extends w {
49
+ class M extends H {
50
50
  constructor(e, i) {
51
51
  super(e, i);
52
52
  l(this, "name", "Line3");
@@ -54,7 +54,7 @@ class _ extends w {
54
54
  }
55
55
  class $ extends R {
56
56
  constructor(e) {
57
- var h, r, d, a, L;
57
+ var h, r, d, a, g;
58
58
  super();
59
59
  l(this, "name", "LineMesh");
60
60
  l(this, "points");
@@ -66,15 +66,15 @@ class $ extends R {
66
66
  l(this, "paramsStyle", {});
67
67
  l(this, "lastRenderLengthItem");
68
68
  this.paramsStyle = e != null ? e : {};
69
- const i = new y(), t = new E({
70
- color: new g.Color((h = e == null ? void 0 : e.lineColor) != null ? h : b),
71
- linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : p,
69
+ const i = new L(), t = new E({
70
+ color: new u.Color((h = e == null ? void 0 : e.lineColor) != null ? h : D),
71
+ linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : S,
72
72
  dashScale: 40,
73
73
  opacity: (d = e == null ? void 0 : e.opacity) != null ? d : 1,
74
74
  transparent: !0,
75
75
  dashed: (a = e == null ? void 0 : e.dashed) != null ? a : !1
76
76
  }), n = new E({
77
- color: new g.Color((L = e == null ? void 0 : e.lineColor) != null ? L : b),
77
+ color: new u.Color((g = e == null ? void 0 : e.lineColor) != null ? g : D),
78
78
  linewidth: t.linewidth * 0.9,
79
79
  dashScale: t.dashScale,
80
80
  opacity: t.opacity * 0.8,
@@ -83,7 +83,7 @@ class $ extends R {
83
83
  transparent: !0,
84
84
  resolution: t.resolution
85
85
  });
86
- this.line = new _(i, t), this.backLine = new _(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
+ 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", () => {
87
87
  A(this);
88
88
  });
89
89
  }
@@ -101,7 +101,7 @@ class $ extends R {
101
101
  return this.line.material.linewidth;
102
102
  }
103
103
  get color() {
104
- return new g.Color(this.line.material.three_color);
104
+ return new u.Color(this.line.material.three_color);
105
105
  }
106
106
  get dashed() {
107
107
  return this.line.material.dashed;
@@ -113,20 +113,21 @@ class $ extends R {
113
113
  return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
114
114
  }
115
115
  updateMatrixWorld(e) {
116
- var t;
117
- super.updateMatrixWorld(e);
118
- const i = (t = this.points) == null ? void 0 : t.map((n) => n.toArray().join(",")).join(",");
119
- i !== this.lastRenderLengthItem && (this.updateLengthItems(), this.lastRenderLengthItem = i);
116
+ var i;
117
+ if (super.updateMatrixWorld(e), this.points) {
118
+ const t = (i = m(this, this.points)) == null ? void 0 : i.map((n) => n.toArray().join(",")).join(",");
119
+ t !== this.lastRenderLengthItem && (this.updateLengthItems(), this.lastRenderLengthItem = t);
120
+ }
120
121
  }
121
122
  setPoints(e) {
122
- const i = e.map(H).filter(c);
123
+ const i = e.map(w).filter(c);
123
124
  if (this.points = i, i.length < 2) {
124
- this.line.geometry = new y(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
125
+ this.line.geometry = new L(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
125
126
  return;
126
127
  }
127
128
  this.addIfNotExists(this.line, this.backLine);
128
129
  const t = i.flatMap((n) => [n.x, n.y, n.z]);
129
- t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new y(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
130
+ t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new L(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
130
131
  }
131
132
  setResolution(e, i) {
132
133
  const t = this.line.material.resolution;
@@ -136,12 +137,12 @@ class $ extends R {
136
137
  }
137
138
  setStyle(e) {
138
139
  var n, h, r;
139
- this.paramsStyle = f(f({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new g.Color(e.lineColor), this.backLine.material.three_color = new g.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.2), this.updateLengthItems();
140
+ this.paramsStyle = y(y({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new u.Color(e.lineColor), this.backLine.material.three_color = new u.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.2), this.updateLengthItems();
140
141
  const i = (n = e.occlusionVisibility) != null ? n : this.paramsStyle.occlusionVisibility, t = (r = (h = e.occlusionMode) != null ? h : this.paramsStyle.occlusionMode) != null ? r : "translucence";
141
142
  i ? t === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : t === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
142
143
  }
143
144
  highlight() {
144
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * D, this.backLine.material.opacity = this.backLine.material.opacity * D, this.needsRender = !0);
145
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * T, this.backLine.material.opacity = this.backLine.material.opacity * T, this.needsRender = !0);
145
146
  }
146
147
  unhighlight() {
147
148
  this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
@@ -153,17 +154,19 @@ class $ extends R {
153
154
  if (!this.points || this.points.length < 2)
154
155
  return e();
155
156
  if (this.paramsStyle.lengthEnable) {
156
- const i = T(this, this.points).map((t, n) => {
157
+ const i = m(this, this.points).map((t, n) => {
157
158
  if (n !== 0)
158
- return [T(this, this.points[n - 1]), t];
159
+ return [m(this, this.points[n - 1]), t];
159
160
  }).filter(c);
160
161
  i.forEach(([t, n], h) => {
161
- var d;
162
+ var a;
162
163
  const r = C(t, n);
163
- this.lengthDoms[h] = (d = this.lengthDoms[h]) != null ? d : (() => {
164
- const a = new x(W.five);
165
- return a.intersectCheck = !1, a;
166
- })(), this.lengthDoms[h].setPosition(r, [t, n]), this.lengthDoms[h].container.innerHTML = O(t.distanceTo(n).toFixed(2) + "m");
164
+ this.lengthDoms[h] = (a = this.lengthDoms[h]) != null ? a : (() => {
165
+ const g = new x(W.five);
166
+ return g.intersectCheck = !1, g;
167
+ })(), this.lengthDoms[h].setPosition(r, [t, n]);
168
+ const d = t.distanceTo(n).toFixed(2);
169
+ d === "0.00" ? this.lengthDoms[h].container.innerHTML = "" : this.lengthDoms[h].container.innerHTML = O(d + "m");
167
170
  }), this.lengthDoms.length > i.length && (this.lengthDoms.slice(i.length).forEach((t) => t.destroy()), this.lengthDoms.length = i.length);
168
171
  } else
169
172
  e();
@@ -32,7 +32,7 @@ export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
32
32
  private _geometryInfo;
33
33
  private opacityBeforeHighlight;
34
34
  private highlighted;
35
- private lastRenderLengthItem;
35
+ private lastRenderAreaItem;
36
36
  private areaDom?;
37
37
  constructor(params?: Partial<PolygonStyle & PolygonData>);
38
38
  updateMatrixWorld(force?: boolean): void;
@@ -1,29 +1,30 @@
1
1
  var d = Object.defineProperty, y = Object.defineProperties;
2
2
  var f = Object.getOwnPropertyDescriptors;
3
- var p = Object.getOwnPropertySymbols;
3
+ var m = Object.getOwnPropertySymbols;
4
4
  var u = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
5
- var h = (i, t, e) => t in i ? d(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, n = (i, t) => {
5
+ var a = (i, t, e) => t in i ? d(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, h = (i, t) => {
6
6
  for (var e in t || (t = {}))
7
- u.call(t, e) && h(i, e, t[e]);
8
- if (p)
9
- for (var e of p(t))
10
- c.call(t, e) && h(i, e, t[e]);
7
+ u.call(t, e) && a(i, e, t[e]);
8
+ if (m)
9
+ for (var e of m(t))
10
+ c.call(t, e) && a(i, e, t[e]);
11
11
  return i;
12
12
  }, g = (i, t) => y(i, f(t));
13
- var r = (i, t, e) => (h(i, typeof t != "symbol" ? t + "" : t, e), e);
13
+ var r = (i, t, e) => (a(i, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  import * as l from "three";
15
15
  import { generatePolygonGeometry as I } from "../../shared-utils/three/generatePolygonGeometry.js";
16
16
  import { DEFAULT_HIGHLIGHT_OPACITY as H } from "../typings/style.js";
17
17
  import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
18
- import { ColoredMesh as _ } from "../utils/three/ColoredMesh.js";
19
- import { getGeometryInfo as S } from "../../shared-utils/three/geometryUtil.js";
20
- import { LightTag as L } from "../../shared-utils/tag.js";
21
- import { globalModules as U } from "../utils/Modules/Global.js";
22
- import { getLengthHTML as A } from "../utils/Meshes/getLengthHTML.js";
23
- const a = new l.BufferGeometry();
24
- a.name = "blankGeometry";
25
- a.isBlank = !0;
26
- class E extends _ {
18
+ import { ColoredMesh as A } from "../utils/three/ColoredMesh.js";
19
+ import { getGeometryInfo as _ } from "../../shared-utils/three/geometryUtil.js";
20
+ import { LightTag as S } from "../../shared-utils/tag.js";
21
+ import { globalModules as M } from "../utils/Modules/Global.js";
22
+ import { getLengthHTML as D } from "../utils/Meshes/getLengthHTML.js";
23
+ import { applyObjectMatrixWorld as T } from "../../shared-utils/three/applyObjectMatrixWorld.js";
24
+ const p = new l.BufferGeometry();
25
+ p.name = "blankGeometry";
26
+ p.isBlank = !0;
27
+ class j extends A {
27
28
  constructor(e) {
28
29
  super(e);
29
30
  r(this, "name", "PolygonMesh");
@@ -35,35 +36,36 @@ class E extends _ {
35
36
  r(this, "_geometryInfo", null);
36
37
  r(this, "opacityBeforeHighlight");
37
38
  r(this, "highlighted", !1);
38
- r(this, "lastRenderLengthItem");
39
+ r(this, "lastRenderAreaItem");
39
40
  r(this, "areaDom");
40
41
  e != null && e.points && this.setPoints(e.points), this._paramsStyle = e != null ? e : {}, this.updateAreaItems();
41
42
  }
42
43
  get style() {
43
- return g(n({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
44
+ return g(h({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
44
45
  }
45
46
  get isBlank() {
46
47
  return !!this.geometry.isBlank;
47
48
  }
48
49
  get center() {
49
- return this.geometryInfo.center;
50
+ var e;
51
+ return (e = this.geometryInfo) == null ? void 0 : e.center;
50
52
  }
51
53
  get geometryInfo() {
52
- return this.geometryInfoNeedUpdate && (this._geometryInfo = S(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
54
+ return this.geometryInfoNeedUpdate && (this._geometryInfo = _(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
53
55
  }
54
56
  updateMatrixWorld(e) {
55
- var s;
56
- super.updateMatrixWorld(e);
57
- const o = (s = this.points) == null ? void 0 : s.map((m) => m.toArray().join(",")).join(",");
58
- o !== this.lastRenderLengthItem && (this.updateAreaItems(), this.lastRenderLengthItem = o);
57
+ if (super.updateMatrixWorld(e), this.center) {
58
+ const s = T(this, this.center).toArray().join(",");
59
+ s !== this.lastRenderAreaItem && (this.updateAreaItems(), this.lastRenderAreaItem = s);
60
+ }
59
61
  }
60
62
  setStyle(e) {
61
- this._paramsStyle = n(n({}, this._paramsStyle), e), super.setStyle(this._paramsStyle), this.updateAreaItems();
63
+ this._paramsStyle = h(h({}, this._paramsStyle), e), super.setStyle(this._paramsStyle), this.updateAreaItems();
62
64
  }
63
65
  setPoints(e) {
64
- var s;
65
- const o = e.map(P);
66
- this.points = o, this.geometry = (s = I(this.points)) != null ? s : a, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
66
+ var o;
67
+ const s = e.map(P);
68
+ this.points = s, this.geometry = (o = I(this.points)) != null ? o : p, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
67
69
  }
68
70
  /**
69
71
  * @description: 获取一个点投影在当前平面上的点
@@ -83,17 +85,19 @@ class E extends _ {
83
85
  updateAreaItems() {
84
86
  var o;
85
87
  const e = () => {
86
- var s;
87
- (s = this.areaDom) == null || s.destroy(), this.areaDom = void 0;
88
+ var n;
89
+ (n = this.areaDom) == null || n.destroy(), this.areaDom = void 0;
88
90
  };
89
91
  if (!this._paramsStyle.lengthEnable || !this.geometryInfo)
90
92
  return e();
91
93
  this.areaDom = (o = this.areaDom) != null ? o : (() => {
92
- const s = new L(U.five);
93
- return s.intersectCheck = !1, s;
94
- })(), this.areaDom.setPosition(this.center), this.areaDom.container.innerHTML = A(this.geometryInfo.area.toFixed(2) + "m²");
94
+ const n = new S(M.five);
95
+ return n.intersectCheck = !1, n;
96
+ })(), this.areaDom.setPosition(this.center);
97
+ const s = this.geometryInfo.area.toFixed(2);
98
+ s === "0.00" ? this.areaDom.container.innerHTML = "" : this.areaDom.container.innerHTML = D(s + "m²");
95
99
  }
96
100
  }
97
101
  export {
98
- E as PolygonMesh
102
+ j as PolygonMesh
99
103
  };
@@ -1,40 +1,41 @@
1
1
  var P = Object.defineProperty, S = Object.defineProperties;
2
2
  var M = Object.getOwnPropertyDescriptors;
3
3
  var a = Object.getOwnPropertySymbols;
4
- var y = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
+ var u = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
5
5
  var m = (s, e, t) => e in s ? P(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, h = (s, e) => {
6
6
  for (var t in e || (e = {}))
7
- y.call(e, t) && m(s, t, e[t]);
7
+ u.call(e, t) && m(s, t, e[t]);
8
8
  if (a)
9
9
  for (var t of a(e))
10
- d.call(e, t) && m(s, t, e[t]);
10
+ y.call(e, t) && m(s, t, e[t]);
11
11
  return s;
12
12
  }, c = (s, e) => S(s, M(e));
13
13
  var f = (s, e) => {
14
14
  var t = {};
15
15
  for (var i in s)
16
- y.call(s, i) && e.indexOf(i) < 0 && (t[i] = s[i]);
16
+ u.call(s, i) && e.indexOf(i) < 0 && (t[i] = s[i]);
17
17
  if (s != null && a)
18
18
  for (var i of a(s))
19
- e.indexOf(i) < 0 && d.call(s, i) && (t[i] = s[i]);
19
+ e.indexOf(i) < 0 && y.call(s, i) && (t[i] = s[i]);
20
20
  return t;
21
21
  };
22
22
  var l = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
23
23
  import { anyPositionToVector3 as b } from "../../shared-utils/positionToVector3.js";
24
- import { IObject3D as D } from "../../shared-utils/three/IObject3D.js";
25
- import * as E from "three";
24
+ import { IObject3D as E } from "../../shared-utils/three/IObject3D.js";
25
+ import * as D from "three";
26
26
  import "hammerjs";
27
27
  import "three/examples/jsm/renderers/CSS3DRenderer";
28
28
  import "@realsee/five/line";
29
29
  import "../../shared-utils/tag.js";
30
30
  import "../utils/Modules/Global.js";
31
+ import { removeAllTag as V } from "../utils/removeAllTag.js";
31
32
  import "../../shared-utils/three/THREESphere.js";
32
33
  import "animejs";
33
- import { notNil as V } from "../../shared-utils/isNil.js";
34
+ import { notNil as W } from "../../shared-utils/isNil.js";
34
35
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
35
- import { LineWithDotsMesh as W } from "./LineWithDots.js";
36
+ import { LineWithDotsMesh as v } from "./LineWithDots.js";
36
37
  import { closeVectors as w } from "../../shared-utils/three/closeVectors.js";
37
- class g extends D {
38
+ class g extends E {
38
39
  constructor(t) {
39
40
  super();
40
41
  l(this, "name", "PolylineBaseMesh");
@@ -42,7 +43,9 @@ class g extends D {
42
43
  l(this, "withDots");
43
44
  l(this, "paramsStyle");
44
45
  const r = t, { withDots: i, points: o } = r, n = f(r, ["withDots", "points"]);
45
- this.withDots = i != null ? i : !0, o && this.setPoints(o), n && this.setStyle(n);
46
+ this.withDots = i != null ? i : !0, o && this.setPoints(o), n && this.setStyle(n), this.addEventListener("removed", () => {
47
+ V(this);
48
+ });
46
49
  }
47
50
  get style() {
48
51
  var t;
@@ -57,7 +60,7 @@ class g extends D {
57
60
  }
58
61
  get lineColor() {
59
62
  var t, i, o;
60
- return (o = (t = this.lines[0]) == null ? void 0 : t.color) != null ? o : (i = this.paramsStyle) != null && i.lineColor ? new E.Color(this.paramsStyle.lineColor) : void 0;
63
+ return (o = (t = this.lines[0]) == null ? void 0 : t.color) != null ? o : (i = this.paramsStyle) != null && i.lineColor ? new D.Color(this.paramsStyle.lineColor) : void 0;
61
64
  }
62
65
  get lineWidth() {
63
66
  var t, i, o;
@@ -85,11 +88,11 @@ class g extends D {
85
88
  const p = o[r + 1];
86
89
  if (r !== 0 && p === void 0)
87
90
  return null;
88
- const u = new W(c(h({}, this.style), {
91
+ const d = new v(c(h({}, this.style), {
89
92
  pointVisibility: this.withDots ? { startPoint: r === 0, endPoint: !0 } : !1
90
93
  }));
91
- return u.setPoints([n, p]), u;
92
- }).filter(V), this.add(...this.lines);
94
+ return d.setPoints([n, p]), d;
95
+ }).filter(W), this.add(...this.lines);
93
96
  }
94
97
  setStyle(t) {
95
98
  this.paramsStyle = h(h({}, this.paramsStyle), t), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
@@ -101,19 +104,19 @@ class g extends D {
101
104
  this.lines.forEach((t) => t.unhighlight());
102
105
  }
103
106
  }
104
- class q extends g {
107
+ class z extends g {
105
108
  constructor(...t) {
106
109
  super(c(h({}, t[0]), { withDots: !1 }));
107
110
  l(this, "name", "PolylineMesh");
108
111
  }
109
112
  }
110
- class z extends g {
113
+ class G extends g {
111
114
  constructor(...t) {
112
115
  super(c(h({}, t[0]), { withDots: !0 }));
113
116
  l(this, "name", "PolylineWithDotsMesh");
114
117
  }
115
118
  }
116
119
  export {
117
- q as PolylineMesh,
118
- z as PolylineWithDotsMesh
120
+ z as PolylineMesh,
121
+ G as PolylineWithDotsMesh
119
122
  };
@@ -75,7 +75,7 @@ function J(s, t, e) {
75
75
  const a = s.parent;
76
76
  if (!a)
77
77
  return p(new Error("No container"));
78
- const m = (N = e == null ? void 0 : e.limit) != null ? N : "none", g = (T = e == null ? void 0 : e.drawMethod) != null ? T : "diagonal", l = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !1 })), h = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !1 })), y = new M(u(d({}, s.style), { dashed: !1, lengthEnable: !1 }));
78
+ const m = (N = e == null ? void 0 : e.limit) != null ? N : "none", g = (T = e == null ? void 0 : e.drawMethod) != null ? T : "diagonal", l = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !0 })), h = new M(u(d({}, s.style), { dashed: !0, lengthEnable: !1 })), y = new M(u(d({}, s.style), { dashed: !1, lengthEnable: !1 }));
79
79
  a.add(l, y, h), t.enable();
80
80
  const n = [];
81
81
  let i = new o.Vector3(), v = new o.Vector3();
@@ -1,9 +1,9 @@
1
- import { LightTag as a } from "../../shared-utils/tag.js";
1
+ import { LightTag as e } from "../../shared-utils/tag.js";
2
2
  function s(r) {
3
- e(r), r.traverse((t) => e(t));
3
+ t(r), r.traverse((a) => t(a));
4
4
  }
5
- function e(r) {
6
- Array.isArray(r.lengthDoms) && r.lengthDoms[0] instanceof a && r.lengthDoms.forEach((o) => o.destroy());
5
+ function t(r) {
6
+ Array.isArray(r.lengthDoms) && r.lengthDoms[0] instanceof e && r.lengthDoms.forEach((o) => o.destroy()), r.areaDom instanceof e && r.areaDom.destroy();
7
7
  }
8
8
  export {
9
9
  s as removeAllTag
@@ -18,7 +18,7 @@ let P = class {
18
18
  /**
19
19
  * @realsee/dnalogel 版本号
20
20
  */
21
- i(this, "VERSION", "3.47.13");
21
+ i(this, "VERSION", "3.47.14");
22
22
  i(this, "NAME");
23
23
  i(this, "five");
24
24
  i(this, "workUtil");
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.47.13",
3
+ "%c %c@realsee/dnalogel %cv3.47.14",
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.13",
3
+ "version": "3.47.14",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",