@realsee/dnalogel 3.46.0 → 3.47.0

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.
Files changed (110) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/Sculpt/Meshes/Polygon.d.ts +6 -0
  3. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +8 -0
  4. package/dist/Sculpt/Meshes/Polyline.d.ts +7 -0
  5. package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
  6. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +6 -0
  7. package/dist/index.cjs.js +54 -54
  8. package/dist/index.js +3645 -3592
  9. package/dist/index.umd.js +46 -46
  10. package/dist/shared-utils/five/getPosition.d.ts +2 -0
  11. package/dist/shared-utils/three/PointSelector/index.d.ts +14 -10
  12. package/dist/typings/typings.d.ts +2 -0
  13. package/libs/AreaMakerPlugin/Controller.js +3 -2
  14. package/libs/AreaMakerPlugin/index.js +3 -2
  15. package/libs/AreaMakerPlugin/utils/Item.js +3 -2
  16. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  17. package/libs/CSS3DRenderPlugin/index.js +6 -5
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
  19. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +3 -2
  20. package/libs/CruisePlugin/BaseController.js +5 -4
  21. package/libs/CruisePlugin/Move.js +3 -2
  22. package/libs/CruisePlugin/Work.js +3 -2
  23. package/libs/CruisePlugin/index.js +7 -6
  24. package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
  25. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  26. package/libs/GuideLinePlugin/Controller.js +5 -4
  27. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  29. package/libs/GuideLinePlugin/index.js +7 -6
  30. package/libs/ModelMakerPlugin/Controller.js +3 -2
  31. package/libs/ModelMakerPlugin/index.js +3 -2
  32. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  33. package/libs/ModelTVVideoPlugin/index.js +3 -2
  34. package/libs/Object3DHelperPlugin/Controller.js +19 -18
  35. package/libs/Object3DHelperPlugin/index.js +6 -5
  36. package/libs/PanoCompassPlugin/Controller.js +3 -2
  37. package/libs/PanoCompassPlugin/index.js +4 -3
  38. package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
  39. package/libs/PanoDoorLabelPlugin/Controller.js +21 -20
  40. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  41. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  42. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  43. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  44. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  45. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  46. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  47. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  48. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  49. package/libs/PanoMeasurePlugin/index.js +14 -13
  50. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  51. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  52. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  53. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +34 -33
  54. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  55. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  56. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  57. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  58. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +62 -61
  59. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  60. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  61. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  62. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  63. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  64. package/libs/PanoTagPlugin/controller/index.js +6 -5
  65. package/libs/PanoTagPlugin/index.js +12 -11
  66. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  67. package/libs/PanoVideoPlugin/Controller.js +3 -2
  68. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  69. package/libs/PanoVideoPlugin/index.js +6 -5
  70. package/libs/PipelinePlugin/Controller.js +3 -2
  71. package/libs/PipelinePlugin/index.js +4 -3
  72. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  73. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  74. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  75. package/libs/Sculpt/Meshes/Line.js +17 -14
  76. package/libs/Sculpt/Meshes/Polygon.d.ts +6 -0
  77. package/libs/Sculpt/Meshes/Polygon.js +7 -4
  78. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +8 -0
  79. package/libs/Sculpt/Meshes/PolygonWithEdge.js +38 -24
  80. package/libs/Sculpt/Meshes/Polyline.d.ts +7 -0
  81. package/libs/Sculpt/Meshes/Polyline.js +32 -23
  82. package/libs/Sculpt/Objects/Base/index.js +20 -17
  83. package/libs/Sculpt/Objects/Line/Editor.js +6 -6
  84. package/libs/Sculpt/Objects/Line/index.js +16 -16
  85. package/libs/Sculpt/Objects/Point/Editor.js +10 -10
  86. package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
  87. package/libs/Sculpt/Objects/Polygon/index.js +43 -37
  88. package/libs/Sculpt/Objects/Polyline/Editor.js +3 -3
  89. package/libs/Sculpt/Objects/Polyline/index.js +43 -43
  90. package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
  91. package/libs/Sculpt/utils/removeAllTag.js +10 -0
  92. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +6 -0
  93. package/libs/Sculpt/utils/three/ColoredMesh.js +39 -31
  94. package/libs/base/BasePlugin.js +1 -1
  95. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  96. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  97. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  98. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  99. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  101. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  102. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  103. package/libs/index.js +126 -125
  104. package/libs/shared-utils/five/getPosition.d.ts +2 -0
  105. package/libs/shared-utils/five/getPosition.js +25 -30
  106. package/libs/shared-utils/logger.js +1 -1
  107. package/libs/shared-utils/three/PointSelector/index.d.ts +14 -10
  108. package/libs/shared-utils/three/PointSelector/index.js +74 -57
  109. package/libs/typings/typings.d.ts +2 -0
  110. package/package.json +1 -1
@@ -1,31 +1,35 @@
1
- var P = Object.defineProperty, E = Object.defineProperties;
2
- var S = Object.getOwnPropertyDescriptors;
3
- var p = Object.getOwnPropertySymbols;
4
- var w = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
- var f = (o, s, e) => s in o ? P(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e, l = (o, s) => {
1
+ var v = Object.defineProperty, E = Object.defineProperties;
2
+ var w = Object.getOwnPropertyDescriptors;
3
+ var f = Object.getOwnPropertySymbols;
4
+ var S = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
5
+ var p = (n, s, e) => s in n ? v(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e, l = (n, s) => {
6
6
  for (var e in s || (s = {}))
7
- w.call(s, e) && f(o, e, s[e]);
8
- if (p)
9
- for (var e of p(s))
10
- C.call(s, e) && f(o, e, s[e]);
11
- return o;
12
- }, c = (o, s) => E(o, S(s));
13
- var i = (o, s, e) => (f(o, typeof s != "symbol" ? s + "" : s, e), e);
14
- import { PointSelectorHelper as y } from "./utils/PointSelectorHelper.js";
7
+ S.call(s, e) && p(n, e, s[e]);
8
+ if (f)
9
+ for (var e of f(s))
10
+ y.call(s, e) && p(n, e, s[e]);
11
+ return n;
12
+ }, m = (n, s) => E(n, w(s));
13
+ var i = (n, s, e) => (p(n, typeof s != "symbol" ? s + "" : s, e), e);
14
+ import { PointSelectorHelper as I } from "./utils/PointSelectorHelper.js";
15
15
  import { isTouchDevice as b } from "../../isTouchDevice.js";
16
- import H from "hammerjs";
17
- import { Subscribe as F } from "../../Subscribe.js";
18
- import { getIntersectByNdcPosition as d } from "../../five/getPosition.js";
19
- const h = () => !1;
20
- class M extends F {
16
+ import C from "hammerjs";
17
+ import * as u from "three";
18
+ import { Subscribe as H } from "../../Subscribe.js";
19
+ import { getIntersectByRaycaster as F, getVirtualIntersectByRaycaster as M } from "../../five/getPosition.js";
20
+ import { getRaycasterByNdcPosition as N } from "../../five/getRaycasterByNdcPosition.js";
21
+ const x = new u.Vector3(), d = () => !1;
22
+ class V extends H {
21
23
  constructor(e, t) {
22
- var a, u;
24
+ var a, o, c;
23
25
  super();
24
26
  /**
25
27
  * @description: 不在 five canvas 上时为 true
26
28
  */
27
29
  i(this, "outOfFive", !1);
28
30
  i(this, "enabled", !1);
31
+ i(this, "actionIfNoModelUnderMouse", "virtualPoint");
32
+ i(this, "plane");
29
33
  i(this, "pointSelectorHelper");
30
34
  /** @deprecated directly use `pointSelector.on/off` instead */
31
35
  i(this, "hook", this);
@@ -39,8 +43,9 @@ class M extends F {
39
43
  /** 吸附点的半径 */
40
44
  i(this, "adherePointsRadius", 0.1);
41
45
  i(this, "lastFiveHelperVisible");
46
+ i(this, "lastIntersection");
42
47
  i(this, "mousePosition");
43
- i(this, "config");
48
+ i(this, "config", {});
44
49
  /**
45
50
  * @description: 主动触发一次选点
46
51
  * @return: select 是否成功
@@ -63,26 +68,20 @@ class M extends F {
63
68
  this.pointSelectorHelper.hide(), this.outOfFive = !0, this.emit("intersectionUpdate", null);
64
69
  });
65
70
  i(this, "onTap", (e) => {
66
- if (e != null && e.center && (this.mousePosition = {
71
+ e != null && e.center && (this.mousePosition = {
67
72
  clientX: e.center.x,
68
73
  clientY: e.center.y
69
- }), !this.mouseNdcPosition)
70
- return;
71
- const t = d(this.five, this.mouseNdcPosition, { virtualPoint: this.virtualPoint });
72
- t != null && t.face && this.select(t);
74
+ }), this.select();
73
75
  });
74
76
  /**
75
77
  * 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
76
78
  * 2. 如果有长按点,把长按点位置更新为当前位置
77
79
  */
78
80
  i(this, "onPan", (e) => {
79
- if (!this.pressDown || (e != null && e.center && (this.mousePosition = {
81
+ this.pressDown && (e != null && e.center && (this.mousePosition = {
80
82
  clientX: e.center.x,
81
83
  clientY: e.center.y
82
- }), !this.mouseNdcPosition))
83
- return;
84
- const t = d(this.five, this.mouseNdcPosition, { virtualPoint: this.virtualPoint });
85
- t != null && t.face && this.updatePointSelectorHelperIntersect(t);
84
+ }), this.mouseNdcPosition && this.updateByNdcPosition(this.mouseNdcPosition));
86
85
  });
87
86
  /**
88
87
  * @description: 长按屏幕后,更新长按点的位置
@@ -93,8 +92,8 @@ class M extends F {
93
92
  clientY: e.center.y
94
93
  }), !this.mouseNdcPosition)
95
94
  return;
96
- const t = d(this.five, this.mouseNdcPosition, { virtualPoint: this.virtualPoint });
97
- t != null && t.face && (this.pressDown = !0, this.updatePointSelectorHelperIntersect(t));
95
+ const t = this.updateByNdcPosition(this.mouseNdcPosition);
96
+ this.pressDown = t;
98
97
  });
99
98
  /**
100
99
  * @description: 手指抬起后,重置pressDown状态
@@ -106,11 +105,34 @@ class M extends F {
106
105
  this.five.getElement() && (this.mousePosition = e, this.updateByNdcPosition(this.mouseNdcPosition));
107
106
  });
108
107
  /**
109
- * @description: 根据鼠标位置更新helper位置
108
+ * @description: 根据鼠标位置计算焦点位置并更新
110
109
  */
111
110
  i(this, "updateByNdcPosition", (e) => {
112
- const t = d(this.five, e, { virtualPoint: this.virtualPoint });
113
- this.updatePointSelectorHelperIntersect(t);
111
+ var h, a;
112
+ const t = N(this.five, e), r = F(this.five, t);
113
+ if (r)
114
+ return this.updatePointSelectorHelperIntersect(r), this.lastIntersection = r, !0;
115
+ if (this.plane) {
116
+ const o = t.ray.intersectPlane(this.plane, x);
117
+ if (o) {
118
+ const c = {
119
+ distance: this.five.camera.position.distanceTo(o),
120
+ point: o.clone(),
121
+ object: new u.Object3D(),
122
+ face: new u.Face3(0, 0, 0, this.plane.normal.clone()),
123
+ raycaster: t,
124
+ isVirtual: !0
125
+ };
126
+ return this.updatePointSelectorHelperIntersect(c), !0;
127
+ }
128
+ }
129
+ if (this.actionIfNoModelUnderMouse === "lastPoint")
130
+ return this.updatePointSelectorHelperIntersect(this.lastIntersection), !0;
131
+ if (this.actionIfNoModelUnderMouse === "virtualPoint") {
132
+ const o = M(t, (h = this.lastIntersection) == null ? void 0 : h.distance);
133
+ return o.face = new u.Face3(0, 0, 0, (a = this.lastIntersection) == null ? void 0 : a.face.normal), this.lastIntersection = o, this.updatePointSelectorHelperIntersect(o), !0;
134
+ } else if (this.actionIfNoModelUnderMouse === "disable")
135
+ return this.updatePointSelectorHelperIntersect(null), !1;
114
136
  });
115
137
  /**
116
138
  * @description: 更新 pointSelectorHelper 的焦点位置
@@ -122,24 +144,24 @@ class M extends F {
122
144
  }
123
145
  this.onEnter(), this.five.getElement().style.cursor = "";
124
146
  const t = l({}, e);
125
- let n = !1;
147
+ let r = !1;
126
148
  if (typeof this.adherePoints == "function" && typeof this.adherePointsRadius == "number") {
127
- for (const r of this.adherePoints({ intersection: e, pointSelectorInstance: this }))
128
- if (r.distanceTo(e.point) < this.adherePointsRadius) {
129
- t.point = r.clone(), n = !0;
149
+ for (const h of this.adherePoints({ intersection: e, pointSelectorInstance: this }))
150
+ if (h.distanceTo(e.point) < this.adherePointsRadius) {
151
+ t.point = h.clone(), r = !0;
130
152
  break;
131
153
  }
132
154
  }
133
- this.pointSelectorHelper.updateWithIntersect(t, { emitEvent: !1 }), this.emit("intersectionUpdate", t, n);
155
+ this.pointSelectorHelper.updateWithIntersect(t, { emitEvent: !1 }), this.emit("intersectionUpdate", t, r);
134
156
  });
135
157
  i(this, "mousePositionToNdcPosition", (e) => {
136
158
  const t = this.five.getElement();
137
159
  if (!t)
138
160
  return null;
139
- const { top: n, left: r, width: a, height: u } = t.getBoundingClientRect(), { clientX: m, clientY: v } = e;
161
+ const { top: r, left: h, width: a, height: o } = t.getBoundingClientRect(), { clientX: c, clientY: P } = e;
140
162
  return {
141
- x: (m - r) / a,
142
- y: 1 - (v - n) / u
163
+ x: (c - h) / a,
164
+ y: 1 - (P - r) / o
143
165
  };
144
166
  });
145
167
  i(this, "onFiveWantsPanGesture", () => {
@@ -152,15 +174,15 @@ class M extends F {
152
174
  i(this, "emitIntersectionUpdate", (e) => {
153
175
  this.emit("intersectionUpdate", e);
154
176
  });
155
- this.five = e, this.config = t != null ? t : {};
156
- const n = (a = t == null ? void 0 : t.mode) != null ? a : "auto";
157
- n === "auto" ? this.mode = b ? "fixed" : "cursor" : this.mode = n;
158
- const r = {
177
+ this.five = e, this.config = l(l({}, this.config), t), this.actionIfNoModelUnderMouse = (a = t == null ? void 0 : t.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
178
+ const r = (o = t == null ? void 0 : t.mode) != null ? o : "auto";
179
+ r === "auto" ? this.mode = b ? "fixed" : "cursor" : this.mode = r;
180
+ const h = {
159
181
  autoFixPCPosition: this.mode === "cursor",
160
182
  initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
161
183
  };
162
- this.pointSelectorHelper = new y(e, c(l({}, t == null ? void 0 : t.helper), {
163
- magnifierParams: l(l({}, r), (u = t == null ? void 0 : t.helper) == null ? void 0 : u.magnifierParams)
184
+ this.pointSelectorHelper = new I(this.five, m(l({}, t == null ? void 0 : t.helper), {
185
+ magnifierParams: l(l({}, h), (c = t == null ? void 0 : t.helper) == null ? void 0 : c.magnifierParams)
164
186
  })), this.pointSelectorHelper.hide();
165
187
  }
166
188
  get position() {
@@ -169,11 +191,6 @@ class M extends F {
169
191
  get mouseNdcPosition() {
170
192
  return this.mousePosition ? this.mousePositionToNdcPosition(this.mousePosition) : null;
171
193
  }
172
- get virtualPoint() {
173
- var t;
174
- const e = (t = this.config.virtualPoint) != null ? t : !0;
175
- return typeof e == "boolean" ? e : Array.isArray(e) ? e.includes(this.five.state.mode) : !0;
176
- }
177
194
  enable() {
178
195
  if (this.enabled)
179
196
  return;
@@ -181,14 +198,14 @@ class M extends F {
181
198
  const e = this.five.getElement();
182
199
  if (!e)
183
200
  throw new Error("five element not found");
184
- this.hammer || (this.hammer = new H(e)), this.mode === "cursor" ? (this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", h), this.five.on("wantsChangeMode", h), this.five.on("wantsTapGesture", h), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("wheel", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panoArrived", this.renderScreenCenter), this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, this.emit("enable");
201
+ this.hammer || (this.hammer = new C(e)), this.mode === "cursor" ? (this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", d), this.five.on("wantsChangeMode", d), this.five.on("wantsTapGesture", d), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("wheel", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panoArrived", this.renderScreenCenter), this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, this.emit("enable");
185
202
  }
186
203
  disable() {
187
204
  if (!this.enabled)
188
205
  return;
189
206
  this.enabled = !1, this.pointSelectorHelper.disable(), this.five.getElement().style.cursor = "";
190
207
  const e = this.five.getElement();
191
- this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", h), this.five.off("wantsChangeMode", h), this.five.off("wantsTapGesture", h), this.five.helperVisible = this.lastFiveHelperVisible, e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("wheel", this.updateByMousePosition), e == null || e.removeEventListener("mouseenter", this.onEnter), e == null || e.removeEventListener("mouseout", this.onLeave), this.hammer.off("tap", this.onTap), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panoArrived", this.renderScreenCenter), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate), this.emit("disable");
208
+ this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", d), this.five.off("wantsChangeMode", d), this.five.off("wantsTapGesture", d), this.five.helperVisible = this.lastFiveHelperVisible, e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("wheel", this.updateByMousePosition), e == null || e.removeEventListener("mouseenter", this.onEnter), e == null || e.removeEventListener("mouseout", this.onLeave), this.hammer.off("tap", this.onTap), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panoArrived", this.renderScreenCenter), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate), this.emit("disable");
192
209
  }
193
210
  dispose() {
194
211
  this.disable(), this.pointSelectorHelper.dispose();
@@ -198,5 +215,5 @@ class M extends F {
198
215
  }
199
216
  }
200
217
  export {
201
- M as PointSelector
218
+ V as PointSelector
202
219
  };
@@ -7,6 +7,8 @@ export interface Intersection {
7
7
  face?: {
8
8
  normal: THREE.Vector3;
9
9
  } | null;
10
+ /** 焦点距离 */
11
+ distance?: number;
10
12
  }
11
13
  export type PartialObjectDeep<ObjectType extends object> = {
12
14
  [KeyType in keyof ObjectType]?: PartialDeep<ObjectType[KeyType]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.46.0",
3
+ "version": "3.47.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",