@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.
- package/CHANGELOG.md +3 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.js +26 -31
- package/dist/index.umd.js +4 -4
- package/libs/Sculpt/Meshes/Line.js +25 -29
- package/libs/Sculpt/Meshes/Polygon.js +6 -7
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import Ip from "earcut";
|
|
|
48
48
|
import { GLTFLoader as Ep } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Mp() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.47.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.47.16",
|
|
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",
|
|
@@ -2209,7 +2209,8 @@ class Ut extends jt {
|
|
|
2209
2209
|
return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
|
|
2210
2210
|
}
|
|
2211
2211
|
get five() {
|
|
2212
|
-
|
|
2212
|
+
var e, i;
|
|
2213
|
+
return (i = (e = window.globalModules) == null ? void 0 : e.five) != null ? i : window.$five;
|
|
2213
2214
|
}
|
|
2214
2215
|
updateMatrixWorld(e) {
|
|
2215
2216
|
var i;
|
|
@@ -2247,32 +2248,27 @@ class Ut extends jt {
|
|
|
2247
2248
|
this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
|
|
2248
2249
|
}
|
|
2249
2250
|
updateLengthItems() {
|
|
2250
|
-
if (!this.five) {
|
|
2251
|
-
console.error("Five not found");
|
|
2252
|
-
return;
|
|
2253
|
-
}
|
|
2254
2251
|
const e = () => {
|
|
2255
|
-
this.lengthDoms.forEach((
|
|
2252
|
+
this.lengthDoms.forEach((s) => s.destroy()), this.lengthDoms = [];
|
|
2256
2253
|
};
|
|
2257
|
-
if (!this.points || this.points.length < 2)
|
|
2254
|
+
if (!this.points || this.points.length < 2 || !this.paramsStyle.lengthEnable)
|
|
2258
2255
|
return e();
|
|
2259
|
-
if (this.
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
}
|
|
2275
|
-
e();
|
|
2256
|
+
if (!this.five)
|
|
2257
|
+
return console.error("Five not found");
|
|
2258
|
+
const i = Fs(this, this.points).map((s, o) => {
|
|
2259
|
+
if (o !== 0)
|
|
2260
|
+
return [Fs(this, this.points[o - 1]), s];
|
|
2261
|
+
}).filter(ke);
|
|
2262
|
+
i.forEach(([s, o], r) => {
|
|
2263
|
+
var c;
|
|
2264
|
+
const a = ai(s, o);
|
|
2265
|
+
this.lengthDoms[r] = (c = this.lengthDoms[r]) != null ? c : (() => {
|
|
2266
|
+
const h = new Ys(this.five);
|
|
2267
|
+
return h.intersectCheck = !1, h;
|
|
2268
|
+
})(), this.lengthDoms[r].setPosition(a, [s, o]);
|
|
2269
|
+
const l = s.distanceTo(o).toFixed(2);
|
|
2270
|
+
l === "0.00" ? this.lengthDoms[r].container.innerHTML = "" : this.lengthDoms[r].container.innerHTML = Hf(l + "m");
|
|
2271
|
+
}), this.lengthDoms.length > i.length && (this.lengthDoms.slice(i.length).forEach((s) => s.destroy()), this.lengthDoms.length = i.length);
|
|
2276
2272
|
}
|
|
2277
2273
|
}
|
|
2278
2274
|
class Av extends bp {
|
|
@@ -8353,7 +8349,7 @@ let Ni = class {
|
|
|
8353
8349
|
/**
|
|
8354
8350
|
* @realsee/dnalogel 版本号
|
|
8355
8351
|
*/
|
|
8356
|
-
d(this, "VERSION", "3.47.
|
|
8352
|
+
d(this, "VERSION", "3.47.16");
|
|
8357
8353
|
d(this, "NAME");
|
|
8358
8354
|
d(this, "five");
|
|
8359
8355
|
d(this, "workUtil");
|
|
@@ -36922,7 +36918,8 @@ class pr extends Ic {
|
|
|
36922
36918
|
return this.geometryInfoNeedUpdate && (this._geometryInfo = Bm(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
|
|
36923
36919
|
}
|
|
36924
36920
|
get five() {
|
|
36925
|
-
|
|
36921
|
+
var e, i;
|
|
36922
|
+
return (i = (e = window.globalModules) == null ? void 0 : e.five) != null ? i : window.$five;
|
|
36926
36923
|
}
|
|
36927
36924
|
updateMatrixWorld(e) {
|
|
36928
36925
|
if (super.updateMatrixWorld(e), this.center) {
|
|
@@ -36955,16 +36952,14 @@ class pr extends Ic {
|
|
|
36955
36952
|
}
|
|
36956
36953
|
updateAreaItems() {
|
|
36957
36954
|
var s;
|
|
36958
|
-
if (!this.five) {
|
|
36959
|
-
console.error("Five not found");
|
|
36960
|
-
return;
|
|
36961
|
-
}
|
|
36962
36955
|
const e = () => {
|
|
36963
36956
|
var o;
|
|
36964
36957
|
(o = this.areaDom) == null || o.destroy(), this.areaDom = void 0;
|
|
36965
36958
|
};
|
|
36966
36959
|
if (!this._paramsStyle.lengthEnable || !this.geometryInfo)
|
|
36967
36960
|
return e();
|
|
36961
|
+
if (!this.five)
|
|
36962
|
+
return console.error("Five not found");
|
|
36968
36963
|
this.areaDom = (s = this.areaDom) != null ? s : (() => {
|
|
36969
36964
|
const o = new Ys(this.five);
|
|
36970
36965
|
return o.intersectCheck = !1, o;
|