@realsee/dnalogel 3.47.13 → 3.47.15

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 (101) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Line.d.ts +1 -0
  4. package/dist/Sculpt/Meshes/Polygon.d.ts +2 -1
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +18650 -18640
  7. package/dist/index.umd.js +47 -47
  8. package/libs/AreaMakerPlugin/Controller.js +78 -150
  9. package/libs/AreaMakerPlugin/index.js +3 -75
  10. package/libs/AreaMakerPlugin/utils/Item.js +111 -185
  11. package/libs/CSS3DRenderPlugin/Controller.js +29 -86
  12. package/libs/CSS3DRenderPlugin/index.js +12 -69
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
  15. package/libs/CruisePlugin/BaseController.js +50 -122
  16. package/libs/CruisePlugin/Move.js +21 -74
  17. package/libs/CruisePlugin/Work.js +46 -99
  18. package/libs/CruisePlugin/index.js +26 -79
  19. package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
  20. package/libs/CurrentPanoImagePlugin/index.js +4 -76
  21. package/libs/GuideLinePlugin/Controller.js +26 -79
  22. package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
  25. package/libs/GuideLinePlugin/index.js +26 -79
  26. package/libs/ModelMakerPlugin/Controller.js +83 -139
  27. package/libs/ModelMakerPlugin/index.js +16 -72
  28. package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
  29. package/libs/ModelTVVideoPlugin/index.js +7 -64
  30. package/libs/Object3DHelperPlugin/Controller.js +32 -56
  31. package/libs/Object3DHelperPlugin/index.js +12 -35
  32. package/libs/PanoCompassPlugin/Controller.js +37 -93
  33. package/libs/PanoCompassPlugin/index.js +11 -67
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
  35. package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
  36. package/libs/PanoDoorLabelPlugin/index.js +4 -76
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
  41. package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
  42. package/libs/PanoMeasurePlugin/Model/area.js +21 -91
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
  45. package/libs/PanoMeasurePlugin/index.js +25 -67
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
  48. package/libs/PanoSpatialTagPlugin/index.js +5 -62
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
  53. package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
  58. package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
  60. package/libs/PanoTagPlugin/controller/index.js +55 -108
  61. package/libs/PanoTagPlugin/index.js +31 -84
  62. package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  63. package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
  64. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
  65. package/libs/PanoVideoPlugin/Controller.js +64 -136
  66. package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
  67. package/libs/PanoVideoPlugin/index.js +8 -80
  68. package/libs/PipelinePlugin/Controller.js +128 -199
  69. package/libs/PipelinePlugin/index.js +5 -76
  70. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
  71. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
  72. package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
  73. package/libs/Sculpt/Meshes/Box.js +5 -6
  74. package/libs/Sculpt/Meshes/Cylinder.js +2 -3
  75. package/libs/Sculpt/Meshes/Line.d.ts +1 -0
  76. package/libs/Sculpt/Meshes/Line.js +50 -41
  77. package/libs/Sculpt/Meshes/Point.js +9 -10
  78. package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
  79. package/libs/Sculpt/Meshes/Polygon.js +47 -37
  80. package/libs/Sculpt/Meshes/Polyline.js +18 -16
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -4
  82. package/libs/Sculpt/Objects/Line/Editor.js +2 -3
  83. package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
  84. package/libs/Sculpt/utils/removeAllTag.js +4 -4
  85. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
  86. package/libs/base/BasePlugin.js +3 -4
  87. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
  88. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
  89. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
  90. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
  93. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
  94. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
  95. package/libs/floorplan/index.js +0 -1
  96. package/libs/index.js +62 -62
  97. package/libs/shared-utils/five/index.js +2 -3
  98. package/libs/shared-utils/five/lookObject.js +17 -18
  99. package/libs/shared-utils/logger.js +1 -1
  100. package/libs/shared-utils/three/index.js +0 -1
  101. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  var I = Object.defineProperty;
2
- var R = (p, h, t) => h in p ? I(p, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[h] = t;
3
- var o = (p, h, t) => (R(p, typeof h != "symbol" ? h + "" : h, t), t);
2
+ var R = (c, r, t) => r in c ? I(c, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[r] = t;
3
+ var s = (c, r, t) => (R(c, typeof r != "symbol" ? r + "" : r, t), t);
4
4
  import G from "hammerjs";
5
5
  import T from "../Modules/DeleteDom/index.js";
6
6
  import w from "../utils/isNDCPointInScreen.js";
@@ -41,120 +41,50 @@ import "../../shared-utils/Subscribe.js";
41
41
  import "../../shared-utils/Utils/WorkUtil.js";
42
42
  import "../../shared-utils/five/transformPosition.js";
43
43
  import "../../shared-utils/three/temp.js";
44
- import "../../Sculpt/utils/Modules/Global.js";
45
- import "../../Sculpt/utils/Modules/Cursor.js";
46
- import "../../Object3DHelperPlugin/Controller.js";
47
- import "../../base/BasePlugin.js";
48
44
  import "../../shared-utils/three/THREESphere.js";
49
45
  import "animejs";
50
- import "../../shared-utils/url/absoluteUrl.js";
46
+ import "../../shared-utils/isNil.js";
51
47
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
52
- import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
53
- import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
54
- import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
55
48
  import "../../shared-utils/three/IObject3D.js";
56
- import "../../shared-utils/three/boundingBox.js";
57
- import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
58
- import "../../shared-utils/Object3DHelper/utils/direction.js";
59
- import "../../shared-utils/Object3DHelper/Constants/color.js";
60
- import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
61
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
62
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
63
- import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
64
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
65
- import "../../CSS3DRenderPlugin/utils/even.js";
66
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
67
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
68
- import "../../shared-utils/three/getObjectVisible.js";
69
- import "../../shared-utils/isNil.js";
70
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
71
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
72
- import "../../shared-utils/util.js";
73
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
74
- import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
75
- import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
76
- import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
77
- import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
78
- import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
79
- import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
80
- import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
81
- import "../../shared-utils/Object3DHelper/Base/BaseController.js";
82
- import "../../shared-utils/threex/domevents/index.js";
83
- import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
84
- import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
85
- import "../../Sculpt/utils/three/rayOnLine.js";
86
- import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
87
- import "../../shared-utils/Object3DHelper/index.js";
88
- import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
89
- import "../../shared-utils/math/rad2Deg.js";
90
- import "../../shared-utils/math/deg2Rad.js";
91
- import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
92
- import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
93
- import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
94
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
95
- import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
96
- import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
97
- import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
98
- import "../../shared-utils/five/fiveModelLoad.js";
99
- import "../../shared-utils/five/FiveDomEvents.js";
100
- import "../../shared-utils/five/calculateThreeMouse.js";
101
- import "../../shared-utils/three/THREERaycaster.js";
102
- import "../../shared-utils/three/PointSelector/index.js";
103
- import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
104
- import "../../shared-utils/three/Magnifier.js";
105
- import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
106
- import "../../shared-utils/three/Assets/index.js";
107
- import "../../shared-utils/three/PointSelector/utils/html.js";
108
- import "../../shared-utils/five/initialCSS3DRender.js";
109
- import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
110
- import "../../Sculpt/Meshes/Line.js";
111
- import "../../Sculpt/typings/style.js";
112
- import "../../Sculpt/utils/removeAllTag.js";
113
- import "../../Sculpt/utils/Meshes/getLengthHTML.js";
114
- import "../../shared-utils/three/applyObjectMatrixWorld.js";
115
- import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
116
- import "../../shared-utils/isTouchDevice.js";
117
- import "../../shared-utils/five/getPosition.js";
118
- import "../../shared-utils/five/getRaycasterByNdcPosition.js";
119
49
  import "../../shared-utils/three/generatePolygonGeometry.js";
120
50
  import "../../shared-utils/three/earcut3D.js";
121
51
  import "earcut";
122
52
  import "../../shared-utils/three/getNormal.js";
123
53
  const E = () => !1;
124
- class Ze extends U {
54
+ class jt extends U {
125
55
  constructor(t) {
126
56
  super(t);
127
- o(this, "type", "watch");
128
- o(this, "deleteDom");
129
- o(this, "choose");
57
+ s(this, "type", "watch");
58
+ s(this, "deleteDom");
59
+ s(this, "choose");
130
60
  // tmd 真没时间改了,先这样吧,理解万岁
131
- o(this, "highlightedLines", []);
132
- o(this, "highlightedArea");
133
- o(this, "fiveElement");
134
- o(this, "editPointState");
135
- o(this, "hammer");
136
- o(this, "onPanStart", (t) => {
137
- var l;
61
+ s(this, "highlightedLines", []);
62
+ s(this, "highlightedArea");
63
+ s(this, "fiveElement");
64
+ s(this, "editPointState");
65
+ s(this, "hammer");
66
+ s(this, "onPanStart", (t) => {
67
+ var p;
138
68
  if (this.model.getAllLines().length === 0 || !this.fiveElement)
139
69
  return;
140
- const i = C(t).point, e = (l = j(this.five, this.model.getAllPoints(), i, 20)) == null ? void 0 : l.point;
70
+ const i = C(t).point, e = (p = j(this.five, this.model.getAllPoints(), i, 20)) == null ? void 0 : p.point;
141
71
  if (!e) {
142
72
  this.editPointState = void 0;
143
73
  return;
144
74
  }
145
- const n = this.model.polylines.find((a) => a.includes(e)), m = {
75
+ const n = this.model.polylines.find((a) => a.includes(e)), l = {
146
76
  point: e,
147
77
  associatedLines: n.lines
148
78
  };
149
79
  this.hook.emit("wantsDragLine", {
150
80
  point: e.id,
151
- lines: m.associatedLines.map(({ id: a }) => a)
152
- }) || (this.editPointState = m, this.magnifier.appendTo(this.container), this.magnifier.enable(), this.group.add(this.mouseGroup));
81
+ lines: l.associatedLines.map(({ id: a }) => a)
82
+ }) || (this.editPointState = l, this.magnifier.appendTo(this.container), this.magnifier.enable(), this.group.add(this.mouseGroup));
153
83
  });
154
- o(this, "onPanEnd", () => {
84
+ s(this, "onPanEnd", () => {
155
85
  this.editPointState && (this.editPointState.associatedLines.forEach((t) => t.mesh.setMaterial({ dashed: !1 })), this.highlightLines(this.editPointState.associatedLines), this.editPointState = void 0, this.magnifier.disable(), this.group.remove(this.mouseGroup));
156
86
  });
157
- o(this, "onPan", (t) => {
87
+ s(this, "onPan", (t) => {
158
88
  if (!this.editPointState || !this.fiveElement)
159
89
  return;
160
90
  const i = C(t).ndcPoint, e = new M();
@@ -162,15 +92,15 @@ class Ze extends U {
162
92
  const [n] = D(this.five).intersectRaycaster(e);
163
93
  n && this.onIntersectionUpdate(n);
164
94
  });
165
- o(this, "onIntersectionUpdate", (t, i) => {
95
+ s(this, "onIntersectionUpdate", (t, i) => {
166
96
  if (this.editPointState) {
167
97
  if (this.clearHighlightLines(), this.editPointState.point.position.copy(t.point), this.editPointState.associatedLines.forEach((e) => {
168
98
  e.mesh.setPoints(e.points[0].position.clone(), e.points[1].position.clone()), e.lightMesh.setPoints(e.points[0].position.clone(), e.points[1].position.clone()), e.mesh.setMaterial({ dashed: !0 });
169
99
  }), this.updateDistanceUI(), this.magnifier.renderWithPoint(t.point), this.mouseGroup.position.copy(t.point), i)
170
100
  this.mouseGroup.quaternion.copy(i.quaternion);
171
101
  else if (t.face) {
172
- const n = t.face.normal.clone().multiplyScalar(0.05), c = t.point.clone().add(n).clone().add(n);
173
- this.mouseGroup.lookAt(c);
102
+ const n = t.face.normal.clone().multiplyScalar(0.05), d = t.point.clone().add(n).clone().add(n);
103
+ this.mouseGroup.lookAt(d);
174
104
  }
175
105
  this.five.needsRender = !0, this.hook.emit(
176
106
  "selectedChange",
@@ -178,43 +108,43 @@ class Ze extends U {
178
108
  );
179
109
  }
180
110
  });
181
- o(this, "wantsPanGesture", () => {
111
+ s(this, "wantsPanGesture", () => {
182
112
  if (this.editPointState)
183
113
  return !1;
184
114
  });
185
- o(this, "wantsTapGesture", (t) => {
115
+ s(this, "wantsTapGesture", (t) => {
186
116
  var S;
187
- const i = this.model.areas.map((s) => t.intersectObject(s.polygon, !0)[0]).sort((s, r) => s.distance - r.distance), e = (S = i[0]) == null ? void 0 : S.object.parent;
117
+ const i = this.model.areas.map((o) => t.intersectObject(o.polygon, !0)[0]).sort((o, h) => o.distance - h.distance), e = (S = i[0]) == null ? void 0 : S.object.parent;
188
118
  if (e instanceof F) {
189
- const s = this.model.areas.find((r) => r.polygon === e);
190
- if (s) {
191
- const { x: r, y: u } = i[0].point.clone().project(this.five.camera), d = `${(r + 1) / 2 * 100}%`, g = `${(-u + 1) / 2 * 100}%`;
192
- return this.chooseArea(s, { left: d, top: g }), !1;
119
+ const o = this.model.areas.find((h) => h.polygon === e);
120
+ if (o) {
121
+ const { x: h, y: u } = i[0].point.clone().project(this.five.camera), m = `${(h + 1) / 2 * 100}%`, g = `${(-u + 1) / 2 * 100}%`;
122
+ return this.chooseArea(o, { left: m, top: g }), !1;
193
123
  }
194
124
  }
195
- const n = D(this.five), [m] = n.intersectRaycaster(t);
196
- if (!m)
125
+ const n = D(this.five), [l] = n.intersectRaycaster(t);
126
+ if (!l)
197
127
  return;
198
- const c = this.five.camera, l = m.point.clone().project(c), a = this.container.clientWidth, f = this.container.clientHeight, P = new L(l.x * a, l.y * f), v = this.model.getAllLines().map((s) => {
199
- const [r, u] = s.points, d = r.position.clone().project(c), g = u.position.clone().project(c);
200
- if (!w(d) && !w(g))
128
+ const d = this.five.camera, p = l.point.clone().project(d), a = this.container.clientWidth, f = this.container.clientHeight, P = new L(p.x * a, p.y * f), v = this.model.getAllLines().map((o) => {
129
+ const [h, u] = o.points, m = h.position.clone().project(d), g = u.position.clone().project(d);
130
+ if (!w(m) && !w(g))
201
131
  return null;
202
- const H = new L(d.x * a, d.y * f), k = new L(g.x * a, g.y * f);
203
- return { id: s.id, points: [H, k] };
204
- }).filter((s) => !!s);
132
+ const H = new L(m.x * a, m.y * f), k = new L(g.x * a, g.y * f);
133
+ return { id: o.id, points: [H, k] };
134
+ }).filter((o) => !!o);
205
135
  if (v.length === 0)
206
136
  return;
207
- const y = v.map((s) => {
208
- const r = b(P, s.points);
209
- return { id: s.id, distance: r.distanceTo(P) };
210
- }).sort((s, r) => s.distance - r.distance)[0];
137
+ const y = v.map((o) => {
138
+ const h = b(P, o.points);
139
+ return { id: o.id, distance: h.distanceTo(P) };
140
+ }).sort((o, h) => o.distance - h.distance)[0];
211
141
  if (y.distance > 20)
212
142
  return;
213
- const A = this.model.getAllLines().find(({ id: s }) => s === y.id);
143
+ const A = this.model.getAllLines().find(({ id: o }) => o === y.id);
214
144
  if (A)
215
145
  return this.chooseLine(A), !1;
216
146
  });
217
- o(this, "chooseLine", (t) => {
147
+ s(this, "chooseLine", (t) => {
218
148
  this.choose = "line";
219
149
  const i = t.getPolyline().lines;
220
150
  this.deleteDom.setLines(i).updatePosition().show(), this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
@@ -222,26 +152,26 @@ class Ze extends U {
222
152
  i.map((e) => e)
223
153
  );
224
154
  });
225
- o(this, "chooseArea", (t, i) => {
155
+ s(this, "chooseArea", (t, i) => {
226
156
  this.choose = t, this.deleteDom.updatePosition(i.left, `calc(${i.top} - 20px)`).show(), this.highlightArea(t);
227
157
  });
228
- o(this, "polylineRemoved", (t) => {
158
+ s(this, "polylineRemoved", (t) => {
229
159
  t.lines.forEach((i) => this.removeLine(i)), this.hook.emit(
230
160
  "selectedChange",
231
161
  this.model.getAllLines().filter((i) => i.selected).map((i) => i)
232
162
  );
233
163
  });
234
- o(this, "onCameraUpdate", () => {
164
+ s(this, "onCameraUpdate", () => {
235
165
  this.updateDistanceUI(), this.highlightedLines.length > 0 && this.deleteDom.updatePosition();
236
166
  });
237
- o(this, "deleteArea", (t) => {
167
+ s(this, "deleteArea", (t) => {
238
168
  this.unHighlightArea(t), t.dispose(), this.deleteDom.hide();
239
169
  });
240
- o(this, "deleteLine", () => {
170
+ s(this, "deleteLine", () => {
241
171
  const t = this.highlightedLines[0], i = this.model.getPolylineByLine(t);
242
172
  i && (this.model.removePolyline(i), this.highlightedLines = [], this.deleteDom.setLines([]).hide());
243
173
  });
244
- o(this, "cancelDeleteClickCallback", () => {
174
+ s(this, "cancelDeleteClickCallback", () => {
245
175
  this.deleteDom.hide(), this.clearHighlightLines(), this.unHighlightArea();
246
176
  });
247
177
  this.deleteDom = new T(this.five, {
@@ -294,5 +224,5 @@ class Ze extends U {
294
224
  }
295
225
  }
296
226
  export {
297
- Ze as default
227
+ jt as default
298
228
  };
@@ -1,7 +1,7 @@
1
1
  var x = Object.defineProperty;
2
2
  var I = Object.getOwnPropertySymbols;
3
3
  var D = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
- var c = (n, s, t) => s in n ? x(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t, h = (n, s) => {
4
+ var c = (n, s, t) => s in n ? x(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t, m = (n, s) => {
5
5
  for (var t in s || (s = {}))
6
6
  D.call(s, t) && c(n, t, s[t]);
7
7
  if (I)
@@ -10,10 +10,10 @@ var c = (n, s, t) => s in n ? x(n, s, { enumerable: !0, configurable: !0, writab
10
10
  return n;
11
11
  };
12
12
  var r = (n, s, t) => (c(n, typeof s != "symbol" ? s + "" : s, t), t);
13
- import m from "./EditController.js";
13
+ import h from "./EditController.js";
14
14
  import k from "./ViewController.js";
15
15
  import T from "./WatchController.js";
16
- import p from "./MixedController.js";
16
+ import a from "./MixedController.js";
17
17
  import { omit as G } from "../../shared-utils/filter.js";
18
18
  import { Group as S } from "three";
19
19
  import { Model as L } from "../Model/index.js";
@@ -26,7 +26,6 @@ import { Magnifier as V } from "../../shared-utils/three/Magnifier.js";
26
26
  import "three/examples/jsm/renderers/CSS3DRenderer";
27
27
  import "@realsee/five/line";
28
28
  import "../../shared-utils/tag.js";
29
- import "../../Sculpt/utils/Modules/Global.js";
30
29
  import "../../shared-utils/three/THREESphere.js";
31
30
  import "animejs";
32
31
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -76,61 +75,18 @@ import "../../shared-utils/Utils/BaseUtil.js";
76
75
  import "../../shared-utils/Utils/WorkUtil.js";
77
76
  import "../../shared-utils/five/transformPosition.js";
78
77
  import "../../shared-utils/three/temp.js";
79
- import "../../Sculpt/utils/Modules/Cursor.js";
80
- import "../../Object3DHelperPlugin/Controller.js";
81
- import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
82
- import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
83
- import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
84
- import "../../shared-utils/three/boundingBox.js";
85
- import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
86
- import "../../shared-utils/Object3DHelper/utils/direction.js";
87
- import "../../shared-utils/Object3DHelper/Constants/color.js";
88
- import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
89
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
78
+ import "../../shared-utils/three/PointSelector/utils/html.js";
79
+ import "../../shared-utils/five/initialCSS3DRender.js";
90
80
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
91
81
  import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
92
82
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
93
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
94
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
95
- import "../../shared-utils/util.js";
96
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
97
- import "../../shared-utils/url/absoluteUrl.js";
98
- import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
99
- import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
100
- import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
101
- import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
102
- import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
103
- import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
104
- import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
105
- import "../../shared-utils/Object3DHelper/Base/BaseController.js";
106
- import "../../shared-utils/threex/domevents/index.js";
107
- import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
108
- import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
109
- import "../../Sculpt/utils/three/rayOnLine.js";
110
- import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
111
- import "../../shared-utils/Object3DHelper/index.js";
112
- import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
113
- import "../../shared-utils/math/rad2Deg.js";
114
- import "../../shared-utils/math/deg2Rad.js";
115
- import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
116
- import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
117
- import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
118
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
119
- import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
120
- import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
121
- import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
122
- import "../../shared-utils/five/fiveModelLoad.js";
123
- import "../../shared-utils/five/FiveDomEvents.js";
124
- import "../../shared-utils/five/calculateThreeMouse.js";
125
- import "../../shared-utils/three/THREERaycaster.js";
126
- import "../../shared-utils/three/PointSelector/utils/html.js";
127
- import "../../shared-utils/five/initialCSS3DRender.js";
128
83
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
129
84
  import "../../Sculpt/Meshes/Line.js";
130
85
  import "../../Sculpt/typings/style.js";
131
86
  import "../../Sculpt/utils/removeAllTag.js";
132
87
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
133
88
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
89
+ import "../../shared-utils/util.js";
134
90
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
135
91
  import "../../shared-utils/five/getPosition.js";
136
92
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
@@ -145,6 +101,7 @@ import "../../shared-utils/getPointFromHammerEvent.js";
145
101
  import "../Modules/rangePiece/index.js";
146
102
  import "../../shared-utils/animationFrame/index.js";
147
103
  import "../../shared-utils/noop.js";
104
+ import "../../shared-utils/five/calculateThreeMouse.js";
148
105
  import "../../shared-utils/tap.js";
149
106
  import "../Modules/UIController/HTML.js";
150
107
  import "../Modules/UIController/mobileHTML.js";
@@ -164,8 +121,9 @@ import "../../vendor/svelte/transition/index.js";
164
121
  import "../../vendor/svelte/easing/index.js";
165
122
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
166
123
  import "../Components/Tip.js";
167
- class Oe extends H {
168
- constructor(t, i) {
124
+ import "../../shared-utils/url/absoluteUrl.js";
125
+ class $e extends H {
126
+ constructor(t, e) {
169
127
  var l, u, d, f, g, y, C, M, w, P, b, v;
170
128
  super(t);
171
129
  r(this, "state", { enabled: !0 });
@@ -192,10 +150,10 @@ class Oe extends H {
192
150
  * @description 还原点位展示和默认鼠标 UI
193
151
  */
194
152
  r(this, "disable", () => {
195
- var t, i, e, o;
196
- this.hasOpen = !1, this.state.enabled = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (i = this.useUIController) == null || i.hide(), (e = this.useGuideController) == null || e.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
153
+ var t, e, i, o;
154
+ this.hasOpen = !1, this.state.enabled = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (e = this.useUIController) == null || e.hide(), (i = this.useGuideController) == null || i.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
197
155
  });
198
- r(this, "getCurrentMode", () => this.controller instanceof m ? "Edit" : this.controller instanceof T ? "Watch" : this.controller instanceof p ? "Mixed" : this.controller instanceof k ? "View" : null);
156
+ r(this, "getCurrentMode", () => this.controller instanceof h ? "Edit" : this.controller instanceof T ? "Watch" : this.controller instanceof a ? "Mixed" : this.controller instanceof k ? "View" : null);
199
157
  /** 变更场景
200
158
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
201
159
  */
@@ -204,16 +162,16 @@ class Oe extends H {
204
162
  if (!this.hasOpen || this.getCurrentMode() === t)
205
163
  return;
206
164
  (o = this.controller) == null || o.dispose();
207
- const i = {
165
+ const e = {
208
166
  View: k,
209
167
  Watch: T,
210
- Edit: m,
211
- Mixed: p
168
+ Edit: h,
169
+ Mixed: a
212
170
  };
213
- if (!i[t])
171
+ if (!e[t])
214
172
  throw new Error("不存在的 Mode");
215
- const e = this.createControllerParams();
216
- this.controller = new i[t](e), this.hook.emit("modeChange", t);
173
+ const i = this.createControllerParams();
174
+ this.controller = new e[t](i), this.hook.emit("modeChange", t);
217
175
  });
218
176
  /**
219
177
  * @description: 切换测量的类型
@@ -221,28 +179,28 @@ class Oe extends H {
221
179
  r(this, "changeMeasureType", (t) => {
222
180
  this.currentMeasureType = t, this.hook.emit("measureTypeChange", t);
223
181
  });
224
- this.five = t, this.hook = this.hooks, this.params = i, this.config = G(i, ["openParams", "magnifierParams"]), this.model = new L(this.config), this.isMobile = (u = (l = i == null ? void 0 : i.openParams) == null ? void 0 : l.isMobile) != null ? u : !1, this.magnifier = new V(
182
+ this.five = t, this.hook = this.hooks, this.params = e, this.config = G(e, ["openParams", "magnifierParams"]), this.model = new L(this.config), this.isMobile = (u = (l = e == null ? void 0 : e.openParams) == null ? void 0 : l.isMobile) != null ? u : !1, this.magnifier = new V(
225
183
  t,
226
- (y = (g = i.magnifierParams) != null ? g : (f = (d = i.pointSelectorConfig) == null ? void 0 : d.helper) == null ? void 0 : f.magnifierParams) != null ? y : { width: 190, height: 190, scale: 2 }
227
- ), this.allowMeasureType = Array.from(new Set((M = (C = i.editParams) == null ? void 0 : C.allowMeasureType) != null ? M : ["line"])), this.currentMeasureType = (w = this.allowMeasureType[0]) != null ? w : "line", this.group = new S(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
228
- const e = (b = (P = i.editParams) == null ? void 0 : P.pointSelectorMode) != null ? b : K ? "fixed" : "cursor", o = (v = this.params.openParams) != null ? v : {};
184
+ (y = (g = e.magnifierParams) != null ? g : (f = (d = e.pointSelectorConfig) == null ? void 0 : d.helper) == null ? void 0 : f.magnifierParams) != null ? y : { width: 190, height: 190, scale: 2 }
185
+ ), this.allowMeasureType = Array.from(new Set((M = (C = e.editParams) == null ? void 0 : C.allowMeasureType) != null ? M : ["line"])), this.currentMeasureType = (w = this.allowMeasureType[0]) != null ? w : "line", this.group = new S(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
186
+ const i = (b = (P = e.editParams) == null ? void 0 : P.pointSelectorMode) != null ? b : K ? "fixed" : "cursor", o = (v = this.params.openParams) != null ? v : {};
229
187
  if (this.params.useUIController !== !1) {
230
- const a = h({
188
+ const p = m({
231
189
  container: this.container,
232
190
  openParams: o,
233
- i18n: i.i18n,
234
- pointSelectorMode: e,
191
+ i18n: e.i18n,
192
+ pointSelectorMode: i,
235
193
  useNewUI: this.allowMeasureType.length > 1
236
194
  }, U(this.params.useUIController));
237
- this.useUIController = new W(this, a);
195
+ this.useUIController = new W(this, p);
238
196
  }
239
197
  if (this.params.useGuideController !== !1) {
240
- const a = h({
198
+ const p = m({
241
199
  container: this.container,
242
- pointSelectorMode: e,
243
- i18n: i.i18n
200
+ pointSelectorMode: i,
201
+ i18n: e.i18n
244
202
  }, U(this.params.useGuideController));
245
- this.useGuideController = new A(this, a);
203
+ this.useGuideController = new A(this, p);
246
204
  }
247
205
  }
248
206
  appendTo(t) {
@@ -252,8 +210,8 @@ class Oe extends H {
252
210
  this.model.clear();
253
211
  }
254
212
  dispose() {
255
- var t, i;
256
- this.disable(), this.clear(), (t = this.useUIController) == null || t.dispose(), (i = this.magnifier) == null || i.dispose(), this.five.needsRender = !0;
213
+ var t, e;
214
+ this.disable(), this.clear(), (t = this.useUIController) == null || t.dispose(), (e = this.magnifier) == null || e.dispose(), this.five.needsRender = !0;
257
215
  }
258
216
  /** 加载数据
259
217
  * @description 数据加载时会覆盖当前已保存的数据
@@ -267,18 +225,18 @@ class Oe extends H {
267
225
  * @description 会隐藏当前 VR 内的点位展示
268
226
  */
269
227
  enable(t) {
270
- var i, e;
271
- this.hasOpen || (this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (i = this.useUIController) == null || i.show(), (e = this.useGuideController) == null || e.show(), this.shortcutKeyController = new B(this, this.five), this.hook.emit("enable", !0));
228
+ var e, i;
229
+ this.hasOpen || (this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (e = this.useUIController) == null || e.show(), (i = this.useGuideController) == null || i.show(), this.shortcutKeyController = new B(this, this.five), this.hook.emit("enable", !0));
272
230
  }
273
231
  /** 进入编辑模式 */
274
232
  edit(t) {
275
233
  t && this.changeMeasureType(t);
276
- const i = this.isMobile ? "Mixed" : "Edit";
277
- this.changeMode(i);
234
+ const e = this.isMobile ? "Mixed" : "Edit";
235
+ this.changeMode(e);
278
236
  }
279
237
  /** 撤销编辑 */
280
238
  revoke() {
281
- this.controller instanceof m && this.controller.revoke();
239
+ this.controller instanceof h && this.controller.revoke();
282
240
  }
283
241
  removePolyline(t) {
284
242
  this.model.removePolyline(t);
@@ -287,8 +245,8 @@ class Oe extends H {
287
245
  this.model.removeArea(t);
288
246
  }
289
247
  removePolylineByID(t) {
290
- const i = this.model.getPolylineByID(t);
291
- i && this.model.removePolyline(i);
248
+ const e = this.model.getPolylineByID(t);
249
+ e && this.model.removePolyline(e);
292
250
  }
293
251
  getPolylineByID(t) {
294
252
  return this.model.getPolylineByID(t);
@@ -301,8 +259,8 @@ class Oe extends H {
301
259
  highlightLine(t) {
302
260
  if (this.getCurrentMode() !== "Watch")
303
261
  return !1;
304
- const i = this.model.getLineByID(t);
305
- return i ? (this.controller.highlightLine(i), !0) : !1;
262
+ const e = this.model.getLineByID(t);
263
+ return e ? (this.controller.highlightLine(e), !0) : !1;
306
264
  }
307
265
  clearHighlightLines() {
308
266
  return this.getCurrentMode() !== "Watch" ? !1 : (this.controller.clearHighlightLines(), !0);
@@ -312,20 +270,20 @@ class Oe extends H {
312
270
  */
313
271
  save(t) {
314
272
  var o;
315
- if (!(this.controller instanceof m) && !(this.controller instanceof p))
273
+ if (!(this.controller instanceof h) && !(this.controller instanceof a))
316
274
  return this;
317
- const i = (o = t == null ? void 0 : t.mode) != null ? o : "View", e = this.controller.model.areas;
318
- return this.controller instanceof m ? this.controller.complete() : e.forEach((l) => {
275
+ const e = (o = t == null ? void 0 : t.mode) != null ? o : "View", i = this.controller.model.areas;
276
+ return this.controller instanceof h ? this.controller.complete() : i.forEach((l) => {
319
277
  l.showArea(), this.model.addArea(l);
320
- }), this.changeMode(i), this;
278
+ }), this.changeMode(e), this;
321
279
  }
322
280
  /** Mixed 模式才有用,添加起点 */
323
281
  addStartPoint() {
324
- this.controller instanceof p && this.hook.emit("willChangeState", "watching", "editing");
282
+ this.controller instanceof a && this.hook.emit("willChangeState", "watching", "editing");
325
283
  }
326
284
  /** Mixed 模式才有用,添加终点 */
327
285
  addEndPoint() {
328
- this.controller instanceof p && this.hook.emit("willChangeState", "editing", "watching");
286
+ this.controller instanceof a && this.hook.emit("willChangeState", "editing", "watching");
329
287
  }
330
288
  /** 导出数据 */
331
289
  toJson() {
@@ -339,20 +297,20 @@ class Oe extends H {
339
297
  changeIsMobile(t) {
340
298
  }
341
299
  changeConfigs(t) {
342
- var i, e;
343
- Object.assign(this.config, t), (i = this.controller) == null || i.updateDistanceUI(), (e = this.controller) == null || e.updateAreaUI();
300
+ var e, i;
301
+ Object.assign(this.config, t), (e = this.controller) == null || e.updateDistanceUI(), (i = this.controller) == null || i.updateAreaUI();
344
302
  }
345
303
  /** 设置线段的文本 */
346
- setCustomText(t, i) {
304
+ setCustomText(t, e) {
347
305
  var o;
348
- const e = this.model.getLineByID(t);
349
- if (!e)
306
+ const i = this.model.getLineByID(t);
307
+ if (!i)
350
308
  throw new Error("不存在的线段");
351
- e.setText(i), (o = this.controller) == null || o.updateDistanceUI();
309
+ i.setText(e), (o = this.controller) == null || o.updateDistanceUI();
352
310
  }
353
311
  createControllerParams() {
354
- var e, o;
355
- const t = (e = this.params.openParams) != null ? e : {}, i = (o = this.params.editParams) != null ? o : {};
312
+ var i, o;
313
+ const t = (i = this.params.openParams) != null ? i : {}, e = (o = this.params.editParams) != null ? o : {};
356
314
  return t.isMobile = this.isMobile, {
357
315
  five: this.five,
358
316
  hook: this.hook,
@@ -363,15 +321,15 @@ class Oe extends H {
363
321
  container: this.container,
364
322
  workUtil: this.workUtil,
365
323
  openParams: t,
366
- editParams: i,
324
+ editParams: e,
367
325
  pointSelectorConfig: this.params.pointSelectorConfig,
368
326
  magnifierParams: this.params.magnifierParams,
369
327
  getMeasureType: () => this.currentMeasureType,
370
- mouseGroup: O(h({}, t.crossHairParameter)),
328
+ mouseGroup: O(m({}, t.crossHairParameter)),
371
329
  userDistanceItemCreator: this.params.userDistanceItemCreator
372
330
  };
373
331
  }
374
332
  }
375
333
  export {
376
- Oe as default
334
+ $e as default
377
335
  };