@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.
- package/CHANGELOG.md +4 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +1 -1
- package/dist/index.cjs.js +39 -39
- package/dist/index.js +1492 -1484
- package/dist/index.umd.js +33 -33
- package/libs/Sculpt/Meshes/Line.js +41 -38
- package/libs/Sculpt/Meshes/Polygon.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polygon.js +38 -34
- package/libs/Sculpt/Meshes/Polyline.js +22 -19
- package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
- package/libs/Sculpt/utils/removeAllTag.js +4 -4
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var k = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
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) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
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) => (
|
|
13
|
-
import * as
|
|
14
|
-
import { DEFAULT_LINE_COLOR as
|
|
15
|
-
import { LineGeometry as
|
|
16
|
-
import { anyPositionToVector3 as
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
70
|
-
color: new
|
|
71
|
-
linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r :
|
|
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
|
|
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
|
|
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
|
|
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
|
|
117
|
-
super.updateMatrixWorld(e)
|
|
118
|
-
|
|
119
|
-
|
|
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(
|
|
123
|
+
const i = e.map(w).filter(c);
|
|
123
124
|
if (this.points = i, i.length < 2) {
|
|
124
|
-
this.line.geometry = new
|
|
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
|
|
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 =
|
|
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 *
|
|
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 =
|
|
157
|
+
const i = m(this, this.points).map((t, n) => {
|
|
157
158
|
if (n !== 0)
|
|
158
|
-
return [
|
|
159
|
+
return [m(this, this.points[n - 1]), t];
|
|
159
160
|
}).filter(c);
|
|
160
161
|
i.forEach(([t, n], h) => {
|
|
161
|
-
var
|
|
162
|
+
var a;
|
|
162
163
|
const r = C(t, n);
|
|
163
|
-
this.lengthDoms[h] = (
|
|
164
|
-
const
|
|
165
|
-
return
|
|
166
|
-
})(), this.lengthDoms[h].setPosition(r, [t, n])
|
|
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
|
|
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
|
|
3
|
+
var m = Object.getOwnPropertySymbols;
|
|
4
4
|
var u = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
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) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
c.call(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) => (
|
|
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
|
|
19
|
-
import { getGeometryInfo as
|
|
20
|
-
import { LightTag as
|
|
21
|
-
import { globalModules as
|
|
22
|
-
import { getLengthHTML as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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, "
|
|
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(
|
|
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
|
-
|
|
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 =
|
|
54
|
+
return this.geometryInfoNeedUpdate && (this._geometryInfo = _(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
|
|
53
55
|
}
|
|
54
56
|
updateMatrixWorld(e) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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 =
|
|
63
|
+
this._paramsStyle = h(h({}, this._paramsStyle), e), super.setStyle(this._paramsStyle), this.updateAreaItems();
|
|
62
64
|
}
|
|
63
65
|
setPoints(e) {
|
|
64
|
-
var
|
|
65
|
-
const
|
|
66
|
-
this.points =
|
|
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
|
|
87
|
-
(
|
|
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
|
|
93
|
-
return
|
|
94
|
-
})(), this.areaDom.setPosition(this.center)
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
7
|
+
u.call(e, t) && m(s, t, e[t]);
|
|
8
8
|
if (a)
|
|
9
9
|
for (var t of a(e))
|
|
10
|
-
|
|
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
|
-
|
|
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 &&
|
|
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
|
|
25
|
-
import * as
|
|
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
|
|
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
|
|
36
|
+
import { LineWithDotsMesh as v } from "./LineWithDots.js";
|
|
36
37
|
import { closeVectors as w } from "../../shared-utils/three/closeVectors.js";
|
|
37
|
-
class g extends
|
|
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
|
|
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
|
|
91
|
+
const d = new v(c(h({}, this.style), {
|
|
89
92
|
pointVisibility: this.withDots ? { startPoint: r === 0, endPoint: !0 } : !1
|
|
90
93
|
}));
|
|
91
|
-
return
|
|
92
|
-
}).filter(
|
|
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
|
|
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
|
|
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
|
-
|
|
118
|
-
|
|
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: !
|
|
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
|
|
1
|
+
import { LightTag as e } from "../../shared-utils/tag.js";
|
|
2
2
|
function s(r) {
|
|
3
|
-
|
|
3
|
+
t(r), r.traverse((a) => t(a));
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
Array.isArray(r.lengthDoms) && r.lengthDoms[0] instanceof
|
|
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
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.47.
|
|
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",
|