@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.
@@ -1,6 +1,6 @@
1
1
  var r = Object.defineProperty;
2
- var a = (n, o, e) => o in n ? r(n, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[o] = e;
3
- var s = (n, o, e) => (a(n, typeof o != "symbol" ? o + "" : o, e), e);
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(e) {
22
- super(e);
21
+ constructor(i) {
22
+ super(i);
23
23
  s(this, "type", "view");
24
24
  s(this, "hammer");
25
- s(this, "polylineRemoved", (e) => {
26
- e.lines.forEach((i) => this.removeLine(i)), this.hook.emit(
25
+ s(this, "polylineRemoved", (i) => {
26
+ i.lines.forEach((e) => this.removeLine(e)), this.hook.emit(
27
27
  "selectedChange",
28
- this.model.getAllLines().filter((i) => i.selected).map((i) => i)
28
+ this.model.getAllLines().filter((e) => e.selected).map((e) => e)
29
29
  );
30
30
  });
31
- s(this, "polylineAdded", (e) => {
32
- const { panoIndex: i, mode: t } = this.five.getCurrentState();
33
- e.lines.forEach((d) => {
34
- e.visibleFiveMode && !e.visibleFiveMode.includes(t) && (d.mesh.visible = !1), e.visiblePanoIndexes && !e.visiblePanoIndexes.includes(i) && (d.mesh.visible = !1), d.distanceItem.appendTo(this.container), d.distanceItem.update(this.five), this.group.add(d.mesh);
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", (e) => {
41
- this.model.polylines.forEach((i) => {
42
- i.visibleFiveMode && (i.visibleFiveMode.includes(e) || i.lines.forEach((t) => {
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 i = this.five.getCurrentState().mode;
47
- this.model.polylines.forEach((t) => {
48
- t.visibleFiveMode && t.visibleFiveMode.includes(i) && t.lines.forEach((d) => {
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", (e) => {
55
- this.model.polylines.forEach((i) => {
56
- i.visiblePanoIndexes && (i.visiblePanoIndexes.includes(e) || i.lines.forEach((t) => {
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", (e) => {
62
- this.model.polylines.forEach((i) => {
63
- i.visiblePanoIndexes && i.visiblePanoIndexes.includes(e) && i.lines.forEach((t) => {
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 i = this.five.getElement();
72
- if (i) {
73
- const t = new h(i);
71
+ const e = this.five.getElement();
72
+ if (e) {
73
+ const t = new h(e);
74
74
  this.hammer = t;
75
75
  }
76
- this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.onFiveModeChange(this.five.getCurrentState().mode), 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);
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 e;
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", []), (e = this.hammer) == null || e.destroy();
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 {
@@ -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.__SCLUPT_DEBUG__ = this, window.__SCLUPT_MODULES_DEBUG__ = a.modules;
79
+ }), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = a.modules;
80
80
  }
81
81
  get data() {
82
82
  return {
@@ -17,7 +17,7 @@ let x = class {
17
17
  /**
18
18
  * @realsee/dnalogel 版本号
19
19
  */
20
- i(this, "VERSION", "3.48.6");
20
+ i(this, "VERSION", "3.48.7");
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.48.6",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.48.6",
3
+ "version": "3.48.7",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",