@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
@@ -2,30 +2,30 @@ var M = Object.defineProperty, C = Object.defineProperties;
2
2
  var S = Object.getOwnPropertyDescriptors;
3
3
  var f = Object.getOwnPropertySymbols;
4
4
  var A = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
5
- var l = (h, n, t) => n in h ? M(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, m = (h, n) => {
6
- for (var t in n || (n = {}))
7
- A.call(n, t) && l(h, t, n[t]);
5
+ var m = (h, o, t) => o in h ? M(h, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[o] = t, d = (h, o) => {
6
+ for (var t in o || (o = {}))
7
+ A.call(o, t) && m(h, t, o[t]);
8
8
  if (f)
9
- for (var t of f(n))
10
- _.call(n, t) && l(h, t, n[t]);
9
+ for (var t of f(o))
10
+ _.call(o, t) && m(h, t, o[t]);
11
11
  return h;
12
- }, u = (h, n) => C(h, S(n));
13
- var a = (h, n, t) => (l(h, typeof n != "symbol" ? n + "" : n, t), t);
14
- var c = (h, n, t) => new Promise((i, e) => {
15
- var o = (s) => {
12
+ }, p = (h, o) => C(h, S(o));
13
+ var r = (h, o, t) => (m(h, typeof o != "symbol" ? o + "" : o, t), t);
14
+ var u = (h, o, t) => new Promise((i, e) => {
15
+ var s = (n) => {
16
16
  try {
17
- d(t.next(s));
18
- } catch (p) {
19
- e(p);
17
+ c(t.next(n));
18
+ } catch (l) {
19
+ e(l);
20
20
  }
21
- }, r = (s) => {
21
+ }, a = (n) => {
22
22
  try {
23
- d(t.throw(s));
24
- } catch (p) {
25
- e(p);
23
+ c(t.throw(n));
24
+ } catch (l) {
25
+ e(l);
26
26
  }
27
- }, d = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(o, r);
28
- d((t = t.apply(h, n)).next());
27
+ }, c = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(s, a);
28
+ c((t = t.apply(h, o)).next());
29
29
  });
30
30
  import * as g from "three";
31
31
  import { Controller as k } from "../base/BasePluginWithData.js";
@@ -33,7 +33,6 @@ import "hammerjs";
33
33
  import "three/examples/jsm/renderers/CSS3DRenderer";
34
34
  import "@realsee/five/line";
35
35
  import "../shared-utils/tag.js";
36
- import "../Sculpt/utils/Modules/Global.js";
37
36
  import "../shared-utils/three/THREESphere.js";
38
37
  import "animejs";
39
38
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -50,77 +49,6 @@ import "../shared-utils/url/absoluteUrl.js";
50
49
  import "../shared-utils/positionToVector3.js";
51
50
  import "../shared-utils/five/vector3ToScreen.js";
52
51
  import "../shared-utils/three/temp.js";
53
- import "../Sculpt/utils/Modules/Cursor.js";
54
- import "../Object3DHelperPlugin/Controller.js";
55
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
56
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
57
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
58
- import "../shared-utils/three/IObject3D.js";
59
- import "../shared-utils/three/boundingBox.js";
60
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
61
- import "../shared-utils/Object3DHelper/utils/direction.js";
62
- import "../shared-utils/Object3DHelper/Constants/color.js";
63
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
64
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
65
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
66
- import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
67
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
68
- import "../CSS3DRenderPlugin/utils/even.js";
69
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
70
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
71
- import "../shared-utils/three/centerPoint.js";
72
- import "../shared-utils/three/getObjectVisible.js";
73
- import "../shared-utils/isNil.js";
74
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
75
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
76
- import "../shared-utils/util.js";
77
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
78
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
79
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
80
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
81
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
82
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
83
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
84
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
85
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
86
- import "../shared-utils/threex/domevents/index.js";
87
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
88
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
89
- import "../Sculpt/utils/three/rayOnLine.js";
90
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
91
- import "../shared-utils/Object3DHelper/index.js";
92
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
93
- import "../shared-utils/math/rad2Deg.js";
94
- import "../shared-utils/math/deg2Rad.js";
95
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
96
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
97
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
98
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
99
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
100
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
101
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
102
- import "../shared-utils/five/fiveModelLoad.js";
103
- import "../shared-utils/five/FiveDomEvents.js";
104
- import "../shared-utils/five/calculateThreeMouse.js";
105
- import "../shared-utils/three/THREERaycaster.js";
106
- import "../shared-utils/three/PointSelector/index.js";
107
- import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
108
- import "../shared-utils/three/Magnifier.js";
109
- import "../shared-utils/three/PointSelector/utils/PointHelper.js";
110
- import "../shared-utils/three/Assets/index.js";
111
- import "../shared-utils/three/PointSelector/utils/html.js";
112
- import "../shared-utils/five/initialCSS3DRender.js";
113
- import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
114
- import "../Sculpt/Meshes/Line.js";
115
- import "../Sculpt/typings/style.js";
116
- import "../shared-utils/five/FiveLine.js";
117
- import "../Sculpt/utils/removeAllTag.js";
118
- import "../Sculpt/utils/Meshes/getLengthHTML.js";
119
- import "../shared-utils/three/applyObjectMatrixWorld.js";
120
- import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
121
- import "../shared-utils/isTouchDevice.js";
122
- import "../shared-utils/five/getPosition.js";
123
- import "../shared-utils/five/getRaycasterByNdcPosition.js";
124
52
  import "../shared-utils/isTruelyObject.js";
125
53
  import "../shared-utils/three/core/Object3D.js";
126
54
  import "../shared-utils/three/objects/LineSegments.js";
@@ -131,7 +59,7 @@ import "../vendor/svelte/internal/index.js";
131
59
  import "../components/AreaLabel/Assets/roomLabelBg.js";
132
60
  import "../shared-utils/math/planimetry.js";
133
61
  import "../shared-utils/dom/resizeObserver.js";
134
- class _e extends k {
62
+ class ot extends k {
135
63
  /** AreaMakerPlugin
136
64
  * @param `five` `<Five>` Five 实例
137
65
  * @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
@@ -141,68 +69,68 @@ class _e extends k {
141
69
  super(t);
142
70
  // ==================== public properties ====================
143
71
  /** 插件当前状态 */
144
- a(this, "state");
72
+ r(this, "state");
145
73
  /** 标注模型 { id: item } 的映射表 */
146
- a(this, "itemMap");
74
+ r(this, "itemMap");
147
75
  /** 自定义 DOM */
148
- a(this, "itemRenderer");
76
+ r(this, "itemRenderer");
149
77
  /** 标注模型容器 */
150
- a(this, "modelGroup");
78
+ r(this, "modelGroup");
151
79
  /** 当前使用的数据 */
152
- a(this, "data");
80
+ r(this, "data");
153
81
  /** tag 容器 */
154
- a(this, "tagDomContainer");
82
+ r(this, "tagDomContainer");
155
83
  /** 查询问题使用的调试对象 */
156
- a(this, "checkMsg", {
84
+ r(this, "checkMsg", {
157
85
  childrenMountedState: ""
158
86
  });
159
87
  // ==================== private properties ====================
160
88
  /** 是否在 Five Change Mode 动画中 */
161
- a(this, "isInFiveChangeModeAnime", !1);
89
+ r(this, "isInFiveChangeModeAnime", !1);
162
90
  /** 子组件是否挂载 */
163
- a(this, "childrenMountedState", !1);
91
+ r(this, "childrenMountedState", !1);
164
92
  /** config 的原始值 */
165
- a(this, "_config");
93
+ r(this, "_config");
166
94
  /** disposed 的原始值 */
167
- a(this, "_disposed", !1);
95
+ r(this, "_disposed", !1);
168
96
  /** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
169
- a(this, "dispose", () => {
97
+ r(this, "dispose", () => {
170
98
  this.five.scene.remove(this.modelGroup);
171
99
  });
172
- a(this, "onFiveInitAnimationWillStart", () => {
100
+ r(this, "onFiveInitAnimationWillStart", () => {
173
101
  this.isInFiveChangeModeAnime = !0, this.updateChildrenMountedState();
174
102
  });
175
- a(this, "onFiveInitAnimationEnded", () => {
103
+ r(this, "onFiveInitAnimationEnded", () => {
176
104
  this.isInFiveChangeModeAnime = !1, this.updateChildrenMountedState();
177
105
  });
178
- a(this, "onFiveCameraUpdate", () => {
106
+ r(this, "onFiveCameraUpdate", () => {
179
107
  const t = this.five.camera;
180
- [...this.itemMap.values()].sort((e, o) => {
181
- const r = e.tagPosition.distanceTo(t.position);
182
- return o.tagPosition.distanceTo(t.position) - r;
183
- }).forEach((e, o) => {
184
- var r;
185
- (r = this.getMaskItemByID(e.id)) == null || r.setTagZIndex(o * 10);
108
+ [...this.itemMap.values()].sort((e, s) => {
109
+ const a = e.tagPosition.distanceTo(t.position);
110
+ return s.tagPosition.distanceTo(t.position) - a;
111
+ }).forEach((e, s) => {
112
+ var a;
113
+ (a = this.getMaskItemByID(e.id)) == null || a.setTagZIndex(s * 10);
186
114
  });
187
115
  });
188
- a(this, "onFiveModeChange", () => {
116
+ r(this, "onFiveModeChange", () => {
189
117
  this.updateChildrenMountedState();
190
118
  });
191
- a(this, "onMakerTagClick", (t) => {
119
+ r(this, "onMakerTagClick", (t) => {
192
120
  this.hooks.emit("wantsTap", { target: t.target, intersectObjects: [] });
193
121
  });
194
- a(this, "onWantsFiveTapGesture", (t) => {
195
- const i = Array.from(this.itemMap.values()).filter((s) => s.mounted && s.visible).map((s) => ({
196
- makerItem: s,
197
- intersects: s.modelGroup.getRaycastIntersects(t)
198
- })).filter(({ intersects: s }) => s.length > 0);
122
+ r(this, "onWantsFiveTapGesture", (t) => {
123
+ const i = Array.from(this.itemMap.values()).filter((n) => n.mounted && n.visible).map((n) => ({
124
+ makerItem: n,
125
+ intersects: n.modelGroup.getRaycastIntersects(t)
126
+ })).filter(({ intersects: n }) => n.length > 0);
199
127
  if (i.length === 0)
200
128
  return;
201
- const e = i.reduce((s, p) => {
202
- const v = s.intersects[0].distance, b = p.intersects[0].distance;
203
- return v < b ? s : p;
204
- }), o = this.fiveUtil.model.intersectRaycaster(t)[0];
205
- if (this.config.modelDepthTest && o && o.distance < e.intersects[0].distance)
129
+ const e = i.reduce((n, l) => {
130
+ const v = n.intersects[0].distance, b = l.intersects[0].distance;
131
+ return v < b ? n : l;
132
+ }), s = this.fiveUtil.model.intersectRaycaster(t)[0];
133
+ if (this.config.modelDepthTest && s && s.distance < e.intersects[0].distance)
206
134
  return;
207
135
  if (this.hooks.emit("wantsTap", {
208
136
  target: e.makerItem,
@@ -216,14 +144,14 @@ class _e extends k {
216
144
  visible: !0
217
145
  };
218
146
  this.state = Object.assign(e, i == null ? void 0 : i.initialState);
219
- const o = m({
147
+ const s = d({
220
148
  modelDepthTest: !0
221
149
  }, i == null ? void 0 : i.config);
222
- this._config = o, this.modelGroup = new g.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
150
+ this._config = s, this.modelGroup = new g.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
223
151
  }
224
152
  /** 插件配置项 */
225
153
  get config() {
226
- return m({}, this._config);
154
+ return d({}, this._config);
227
155
  }
228
156
  /** 是否已经被销毁 */
229
157
  get disposed() {
@@ -231,11 +159,11 @@ class _e extends k {
231
159
  }
232
160
  /** 加载数据,重复调用会使用新数据覆盖旧数据 */
233
161
  load(t) {
234
- return c(this, null, function* () {
162
+ return u(this, null, function* () {
235
163
  const i = this.data;
236
164
  this.data = this.formatData(t), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.forEach((e) => e.unmount()), this.itemMap.clear(), this.childrenMountedState = !1, this.checkMsg.childrenMountedState = "", this.data.list.forEach((e) => {
237
- const o = new D(this, e);
238
- o.itemRenderer = this.itemRenderer, this.modelGroup.add(o.modelGroup), this.itemMap.set(e.id, o), o.hooks.on("tagClick", this.onMakerTagClick);
165
+ const s = new D(this, e);
166
+ s.itemRenderer = this.itemRenderer, this.modelGroup.add(s.modelGroup), this.itemMap.set(e.id, s), s.hooks.on("tagClick", this.onMakerTagClick);
239
167
  }), this.updateChildrenMountedState();
240
168
  });
241
169
  }
@@ -270,12 +198,12 @@ class _e extends k {
270
198
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
271
199
  */
272
200
  show(t) {
273
- return c(this, null, function* () {
201
+ return u(this, null, function* () {
274
202
  if (this.state.visible)
275
203
  return Promise.resolve();
276
204
  if (this.disposed)
277
205
  return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
278
- const i = m({ userAction: !0 }, t);
206
+ const i = d({ userAction: !0 }, t);
279
207
  this.updateState({ visible: !0 }, i.userAction), yield this._show(i);
280
208
  });
281
209
  }
@@ -284,10 +212,10 @@ class _e extends k {
284
212
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
285
213
  */
286
214
  hide(t) {
287
- return c(this, null, function* () {
215
+ return u(this, null, function* () {
288
216
  if (this.state.visible === !1)
289
217
  return;
290
- const i = m({ userAction: !0 }, t);
218
+ const i = d({ userAction: !0 }, t);
291
219
  this.updateState({ visible: !1 }, i.userAction), yield this._hide(i);
292
220
  });
293
221
  }
@@ -334,10 +262,10 @@ class _e extends k {
334
262
  const e = this.state;
335
263
  if (I(t, e, { deep: !0 }))
336
264
  return;
337
- const o = i.userAction !== void 0 ? i.userAction : !0;
338
- if (this.updateState(t, o), t.enabled !== void 0 && e.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: o }) : this._disable({ userAction: o })), t.visible !== void 0 && e.visible !== t.visible) {
339
- const r = { userAction: o, anime: { duration: 500 } };
340
- t.visible ? this._show(r) : this._hide(r);
265
+ const s = i.userAction !== void 0 ? i.userAction : !0;
266
+ if (this.updateState(t, s), t.enabled !== void 0 && e.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), t.visible !== void 0 && e.visible !== t.visible) {
267
+ const a = { userAction: s, anime: { duration: 500 } };
268
+ t.visible ? this._show(a) : this._hide(a);
341
269
  }
342
270
  }
343
271
  /** 更改插件 Config
@@ -345,9 +273,9 @@ class _e extends k {
345
273
  * @param `options` `<Option> | <undefined>`
346
274
  */
347
275
  updateConfig(t, i = {}) {
348
- var r;
349
- const e = this.config, o = m(m({}, e), t);
350
- this._config = o, this.hooks.emit("configChange", { prevConfig: e, config: o, userAction: (r = i.userAction) != null ? r : !0 });
276
+ var a;
277
+ const e = this.config, s = d(d({}, e), t);
278
+ this._config = s, this.hooks.emit("configChange", { prevConfig: e, config: s, userAction: (a = i.userAction) != null ? a : !0 });
351
279
  }
352
280
  /** 根据 ID 获取标注 */
353
281
  getMaskItemByID(t) {
@@ -359,12 +287,12 @@ class _e extends k {
359
287
  }
360
288
  return i(t) ? {
361
289
  list: t.list.filter((e) => e.object_data.points.length >= 3).map((e) => {
362
- const o = new g.Shape(), r = e.object_data.points[0];
363
- return o.moveTo(r[0], r[2]), e.object_data.points.slice(1).forEach((s) => o.lineTo(s[0], s[2])), o.lineTo(r[0], r[2]), u(m({}, e), {
290
+ const s = new g.Shape(), a = e.object_data.points[0];
291
+ return s.moveTo(a[0], a[2]), e.object_data.points.slice(1).forEach((n) => s.lineTo(n[0], n[2])), s.lineTo(a[0], a[2]), p(d({}, e), {
364
292
  floor_index: e.object_data.floorIndex,
365
- object_data: u(m({}, e.object_data), {
366
- bottom_y: r[1] + e.object_data.fixedY,
367
- shape: o.toJSON(),
293
+ object_data: p(d({}, e.object_data), {
294
+ bottom_y: a[1] + e.object_data.fixedY,
295
+ shape: s.toJSON(),
368
296
  height: e.object_data.height + e.object_data.fixedHeight
369
297
  })
370
298
  });
@@ -386,7 +314,7 @@ class _e extends k {
386
314
  }
387
315
  updateState(t, i) {
388
316
  const e = this.state;
389
- this.state = m(m({}, this.state), t), this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
317
+ this.state = d(d({}, this.state), t), this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
390
318
  }
391
319
  _enable(t) {
392
320
  this.hooks.emit("enable", { userAction: t.userAction }), this.five.scene.add(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture), this.five.on("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.on("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraUpdate", this.onFiveCameraUpdate);
@@ -395,16 +323,16 @@ class _e extends k {
395
323
  this.hooks.emit("disable", { userAction: t.userAction }), this.five.scene.remove(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture), this.five.off("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.off("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.off("modeChange", this.onFiveModeChange), this.five.off("cameraUpdate", this.onFiveCameraUpdate);
396
324
  }
397
325
  _show(t) {
398
- return c(this, null, function* () {
326
+ return u(this, null, function* () {
399
327
  this.hooks.emit("show", t), this.five.needsRender = !0;
400
328
  });
401
329
  }
402
330
  _hide(t) {
403
- return c(this, null, function* () {
331
+ return u(this, null, function* () {
404
332
  this.hooks.emit("hide", t), this.five.needsRender = !0;
405
333
  });
406
334
  }
407
335
  }
408
336
  export {
409
- _e as Controller
337
+ ot as Controller
410
338
  };
@@ -15,82 +15,10 @@ import "../shared-utils/Utils/BaseUtil.js";
15
15
  import "../shared-utils/Utils/WorkUtil.js";
16
16
  import "../shared-utils/five/transformPosition.js";
17
17
  import "../shared-utils/three/temp.js";
18
- import "../Sculpt/utils/Modules/Global.js";
19
- import "../Sculpt/utils/Modules/Cursor.js";
20
- import "../Object3DHelperPlugin/Controller.js";
21
18
  import "../shared-utils/three/THREESphere.js";
22
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
23
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
24
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
25
- import "../shared-utils/three/IObject3D.js";
26
- import "../shared-utils/three/boundingBox.js";
27
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
28
- import "../shared-utils/Object3DHelper/utils/direction.js";
29
- import "../shared-utils/Object3DHelper/Constants/color.js";
30
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
31
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
32
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
33
- import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
34
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
35
- import "../CSS3DRenderPlugin/utils/even.js";
36
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
37
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
38
- import "../shared-utils/three/centerPoint.js";
39
- import "../shared-utils/three/getObjectVisible.js";
40
19
  import "animejs";
41
- import "../shared-utils/isNil.js";
42
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
43
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
44
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
45
- import "../shared-utils/util.js";
46
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
47
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
48
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
49
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
50
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
51
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
52
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
53
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
54
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
55
- import "../shared-utils/threex/domevents/index.js";
56
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
57
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
58
- import "../Sculpt/utils/three/rayOnLine.js";
59
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
60
- import "../shared-utils/Object3DHelper/index.js";
61
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
62
- import "../shared-utils/math/rad2Deg.js";
63
- import "../shared-utils/math/deg2Rad.js";
64
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
65
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
66
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
67
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
68
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
69
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
70
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
71
- import "../shared-utils/five/fiveModelLoad.js";
72
- import "../shared-utils/five/FiveDomEvents.js";
73
- import "../shared-utils/five/calculateThreeMouse.js";
74
- import "../shared-utils/three/THREERaycaster.js";
75
- import "../shared-utils/three/PointSelector/index.js";
76
- import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
77
- import "../shared-utils/three/Magnifier.js";
78
- import "../shared-utils/three/PointSelector/utils/PointHelper.js";
79
- import "../shared-utils/three/Assets/index.js";
80
- import "../shared-utils/three/PointSelector/utils/html.js";
81
- import "../shared-utils/five/initialCSS3DRender.js";
82
- import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
83
- import "../Sculpt/Meshes/Line.js";
84
- import "../Sculpt/typings/style.js";
85
- import "../shared-utils/five/FiveLine.js";
86
- import "../Sculpt/utils/removeAllTag.js";
87
- import "../Sculpt/utils/Meshes/getLengthHTML.js";
88
- import "../shared-utils/three/applyObjectMatrixWorld.js";
89
- import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
90
- import "../shared-utils/isTouchDevice.js";
91
- import "../shared-utils/five/getPosition.js";
92
- import "../shared-utils/five/getRaycasterByNdcPosition.js";
93
20
  import "../shared-utils/url/absoluteUrl.js";
21
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
94
22
  import "../shared-utils/equal.js";
95
23
  import "../shared-utils/isTruelyObject.js";
96
24
  import "./utils/Item.js";
@@ -103,7 +31,7 @@ import "../vendor/svelte/internal/index.js";
103
31
  import "../components/AreaLabel/Assets/roomLabelBg.js";
104
32
  import "../shared-utils/math/planimetry.js";
105
33
  import "../shared-utils/dom/resizeObserver.js";
106
- const ro = (r, o) => new t(r, o);
34
+ const I = (r, o) => new t(r, o);
107
35
  export {
108
- ro as AreaMakerPlugin
36
+ I as AreaMakerPlugin
109
37
  };