@realsee/dnalogel 3.48.6 → 3.48.7
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 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.js +12 -12
- package/dist/index.umd.js +4 -4
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +32 -32
- package/libs/Sculpt/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var s = (
|
|
2
|
+
var n = (a, o, i) => o in a ? r(a, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[o] = i;
|
|
3
|
+
var s = (a, o, i) => (n(a, typeof o != "symbol" ? o + "" : o, i), i);
|
|
4
4
|
import h from "hammerjs";
|
|
5
5
|
import v from "./BaseController.js";
|
|
6
6
|
import "three";
|
|
@@ -18,49 +18,49 @@ import "../../shared-utils/three/centerPoint.js";
|
|
|
18
18
|
import "../Model/point.js";
|
|
19
19
|
import "../utils/ironbox.js";
|
|
20
20
|
class R extends v {
|
|
21
|
-
constructor(
|
|
22
|
-
super(
|
|
21
|
+
constructor(i) {
|
|
22
|
+
super(i);
|
|
23
23
|
s(this, "type", "view");
|
|
24
24
|
s(this, "hammer");
|
|
25
|
-
s(this, "polylineRemoved", (
|
|
26
|
-
|
|
25
|
+
s(this, "polylineRemoved", (i) => {
|
|
26
|
+
i.lines.forEach((e) => this.removeLine(e)), this.hook.emit(
|
|
27
27
|
"selectedChange",
|
|
28
|
-
this.model.getAllLines().filter((
|
|
28
|
+
this.model.getAllLines().filter((e) => e.selected).map((e) => e)
|
|
29
29
|
);
|
|
30
30
|
});
|
|
31
|
-
s(this, "polylineAdded", (
|
|
32
|
-
const { panoIndex:
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
s(this, "polylineAdded", (i) => {
|
|
32
|
+
const { panoIndex: e, mode: t } = this.five.getCurrentState();
|
|
33
|
+
i.lines.forEach((d) => {
|
|
34
|
+
i.visibleFiveMode && !i.visibleFiveMode.includes(t) && (d.mesh.visible = !1), i.visiblePanoIndexes && !i.visiblePanoIndexes.includes(e) && (d.mesh.visible = !1), d.distanceItem.appendTo(this.container), d.distanceItem.update(this.five), this.group.add(d.mesh);
|
|
35
35
|
}), this.updateDistanceUI();
|
|
36
36
|
});
|
|
37
37
|
s(this, "onCameraUpdate", () => {
|
|
38
38
|
this.updateDistanceUI();
|
|
39
39
|
});
|
|
40
|
-
s(this, "onFiveModeChange", (
|
|
41
|
-
this.model.polylines.forEach((
|
|
42
|
-
|
|
40
|
+
s(this, "onFiveModeChange", (i) => {
|
|
41
|
+
i !== "Panorama" && (this.model.polylines.forEach((e) => {
|
|
42
|
+
e.visibleFiveMode && !e.visibleFiveMode.includes(i) && e.lines.forEach((t) => {
|
|
43
43
|
t.mesh.visible = !1, t.distanceItem.update(this.five);
|
|
44
|
-
})
|
|
44
|
+
});
|
|
45
45
|
}), this.five.ready().then(() => {
|
|
46
|
-
const
|
|
47
|
-
this.model.polylines.forEach((t) => {
|
|
48
|
-
t.visibleFiveMode && t.visibleFiveMode.includes(
|
|
46
|
+
const e = this.five.getCurrentState().mode;
|
|
47
|
+
e !== "Panorama" && this.model.polylines.forEach((t) => {
|
|
48
|
+
t.visibleFiveMode && t.visibleFiveMode.includes(e) && t.lines.forEach((d) => {
|
|
49
49
|
d.mesh.visible = !0, d.distanceItem.update(this.five);
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
|
-
});
|
|
52
|
+
}));
|
|
53
53
|
});
|
|
54
|
-
s(this, "onFivePanoWillArrive", (
|
|
55
|
-
this.model.polylines.forEach((
|
|
56
|
-
|
|
54
|
+
s(this, "onFivePanoWillArrive", (i) => {
|
|
55
|
+
this.model.polylines.forEach((e) => {
|
|
56
|
+
(e.visiblePanoIndexes && !e.visiblePanoIndexes.includes(i) || e.visibleFiveMode && !e.visibleFiveMode.includes(this.five.getCurrentState().mode)) && e.lines.forEach((t) => {
|
|
57
57
|
t.mesh.visible = !1, t.distanceItem.update(this.five);
|
|
58
|
-
})
|
|
58
|
+
});
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
s(this, "onFivePanoArrived", (
|
|
62
|
-
this.model.polylines.forEach((
|
|
63
|
-
|
|
61
|
+
s(this, "onFivePanoArrived", (i) => {
|
|
62
|
+
this.model.polylines.forEach((e) => {
|
|
63
|
+
e.visiblePanoIndexes && e.visiblePanoIndexes.includes(i) && e.visibleFiveMode && e.visibleFiveMode.includes(this.five.getCurrentState().mode) && e.lines.forEach((t) => {
|
|
64
64
|
t.mesh.visible = !0, t.distanceItem.update(this.five);
|
|
65
65
|
});
|
|
66
66
|
});
|
|
@@ -68,16 +68,16 @@ class R extends v {
|
|
|
68
68
|
this.model.getAllLines().forEach((t) => {
|
|
69
69
|
t.distanceItem.appendTo(this.container), t.distanceItem.update(this.five), this.group.add(t.mesh), t.mesh.updateMatrixWorld();
|
|
70
70
|
});
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
73
|
-
const t = new h(
|
|
71
|
+
const e = this.five.getElement();
|
|
72
|
+
if (e) {
|
|
73
|
+
const t = new h(e);
|
|
74
74
|
this.hammer = t;
|
|
75
75
|
}
|
|
76
|
-
this.
|
|
76
|
+
this.onFiveModeChange(this.five.getCurrentState().mode), this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("modeChange", this.onFiveModeChange), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
|
|
77
77
|
}
|
|
78
78
|
dispose() {
|
|
79
|
-
var
|
|
80
|
-
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("modeChange", this.onFiveModeChange), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (
|
|
79
|
+
var i;
|
|
80
|
+
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("modeChange", this.onFiveModeChange), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (i = this.hammer) == null || i.destroy();
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
export {
|
package/libs/Sculpt/index.js
CHANGED
|
@@ -76,7 +76,7 @@ const a = class extends S {
|
|
|
76
76
|
var s;
|
|
77
77
|
const l = H((s = n == null ? void 0 : n[0]) == null ? void 0 : s.object, (o) => o.isSculptObject);
|
|
78
78
|
return l ? this.emit("click", l) : !1;
|
|
79
|
-
}), window.
|
|
79
|
+
}), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = a.modules;
|
|
80
80
|
}
|
|
81
81
|
get data() {
|
|
82
82
|
return {
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.48.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.48.7",
|
|
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",
|