@realsee/dnalogel 3.45.0 → 3.46.1

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 (100) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +6 -1
  3. package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
  4. package/dist/index.cjs.js +53 -53
  5. package/dist/index.js +29600 -29557
  6. package/dist/index.umd.js +49 -49
  7. package/dist/shared-utils/tag.d.ts +6 -3
  8. package/libs/AreaMakerPlugin/Controller.js +151 -78
  9. package/libs/AreaMakerPlugin/index.js +77 -4
  10. package/libs/AreaMakerPlugin/utils/Item.js +191 -111
  11. package/libs/CSS3DRenderPlugin/Controller.js +90 -29
  12. package/libs/CSS3DRenderPlugin/index.js +76 -15
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
  15. package/libs/CruisePlugin/BaseController.js +122 -49
  16. package/libs/CruisePlugin/Move.js +74 -21
  17. package/libs/CruisePlugin/Work.js +99 -46
  18. package/libs/CruisePlugin/index.js +80 -27
  19. package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
  20. package/libs/CurrentPanoImagePlugin/index.js +77 -4
  21. package/libs/GuideLinePlugin/Controller.js +79 -26
  22. package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
  25. package/libs/GuideLinePlugin/index.js +80 -27
  26. package/libs/ModelMakerPlugin/Controller.js +140 -82
  27. package/libs/ModelMakerPlugin/index.js +76 -18
  28. package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
  29. package/libs/ModelTVVideoPlugin/index.js +69 -8
  30. package/libs/Object3DHelperPlugin/Controller.js +67 -43
  31. package/libs/Object3DHelperPlugin/index.js +36 -13
  32. package/libs/PanoCompassPlugin/Controller.js +98 -42
  33. package/libs/PanoCompassPlugin/index.js +72 -16
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
  35. package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
  36. package/libs/PanoDoorLabelPlugin/index.js +77 -4
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
  41. package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
  42. package/libs/PanoMeasurePlugin/Model/area.js +115 -38
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
  45. package/libs/PanoMeasurePlugin/index.js +77 -31
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
  48. package/libs/PanoSpatialTagPlugin/index.js +67 -6
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
  53. package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
  58. package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
  60. package/libs/PanoTagPlugin/controller/index.js +114 -61
  61. package/libs/PanoTagPlugin/index.js +90 -37
  62. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
  63. package/libs/PanoVideoPlugin/Controller.js +138 -65
  64. package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
  65. package/libs/PanoVideoPlugin/index.js +83 -10
  66. package/libs/PipelinePlugin/Controller.js +200 -128
  67. package/libs/PipelinePlugin/index.js +77 -5
  68. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
  69. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
  70. package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
  71. package/libs/Sculpt/Meshes/Box.js +6 -5
  72. package/libs/Sculpt/Meshes/Cylinder.js +7 -6
  73. package/libs/Sculpt/Meshes/Line.d.ts +6 -1
  74. package/libs/Sculpt/Meshes/Line.js +80 -57
  75. package/libs/Sculpt/Meshes/Point.js +6 -5
  76. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  77. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  78. package/libs/Sculpt/Objects/Base/index.js +20 -17
  79. package/libs/Sculpt/Objects/Line/Editor.js +11 -10
  80. package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
  81. package/libs/Sculpt/utils/removeAllTag.js +10 -0
  82. package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
  83. package/libs/base/BasePlugin.js +14 -13
  84. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
  85. package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
  86. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
  87. package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
  88. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
  90. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
  91. package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
  92. package/libs/floorplan/index.js +1 -0
  93. package/libs/index.js +193 -192
  94. package/libs/shared-utils/five/index.js +3 -2
  95. package/libs/shared-utils/five/lookObject.js +3 -2
  96. package/libs/shared-utils/logger.js +1 -1
  97. package/libs/shared-utils/tag.d.ts +6 -3
  98. package/libs/shared-utils/tag.js +38 -24
  99. package/libs/shared-utils/three/index.js +1 -0
  100. package/package.json +1 -1
@@ -6,12 +6,13 @@ export declare class LightTag {
6
6
  visible: boolean;
7
7
  enabled: boolean;
8
8
  wrapper: HTMLElement;
9
+ private tagWrapper;
9
10
  private five;
10
- private originPosition;
11
- private transformedPosition;
11
+ private originPosition?;
12
+ private transformedPosition?;
12
13
  private disposer;
13
14
  private config;
14
- constructor(five: Five, position: AnyPosition, config?: {
15
+ constructor(five: Five, position?: AnyPosition, config?: {
15
16
  wrapper?: HTMLElement;
16
17
  });
17
18
  show(): void;
@@ -20,7 +21,9 @@ export declare class LightTag {
20
21
  }): void;
21
22
  enable(): void;
22
23
  disable(): void;
24
+ destroy(): void;
23
25
  setTransformMatrix(matrix: THREE.Matrix4): void;
26
+ setPosition(position: THREE.Vector3): void;
24
27
  updateScreenPosition(): void;
25
28
  private onCameraUpdate;
26
29
  private onFiveEveryReady;
@@ -2,36 +2,37 @@ 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 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]);
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]);
8
8
  if (f)
9
- for (var t of f(o))
10
- _.call(o, t) && m(h, t, o[t]);
9
+ for (var t of f(n))
10
+ _.call(n, t) && l(h, t, n[t]);
11
11
  return h;
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) => {
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) => {
16
16
  try {
17
- c(t.next(n));
18
- } catch (l) {
19
- e(l);
17
+ d(t.next(s));
18
+ } catch (p) {
19
+ e(p);
20
20
  }
21
- }, a = (n) => {
21
+ }, r = (s) => {
22
22
  try {
23
- c(t.throw(n));
24
- } catch (l) {
25
- e(l);
23
+ d(t.throw(s));
24
+ } catch (p) {
25
+ e(p);
26
26
  }
27
- }, c = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(s, a);
28
- c((t = t.apply(h, o)).next());
27
+ }, d = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(o, r);
28
+ d((t = t.apply(h, n)).next());
29
29
  });
30
30
  import * as g from "three";
31
31
  import { Controller as k } from "../base/BasePluginWithData.js";
32
32
  import "hammerjs";
33
33
  import "three/examples/jsm/renderers/CSS3DRenderer";
34
34
  import "@realsee/five/line";
35
+ import "../Sculpt/utils/Modules/Global.js";
35
36
  import "../shared-utils/three/THREESphere.js";
36
37
  import "animejs";
37
38
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -45,6 +46,78 @@ import "../shared-utils/Utils/WorkUtil.js";
45
46
  import "../shared-utils/five/transformPosition.js";
46
47
  import "../shared-utils/five/getFiveModel.js";
47
48
  import "../shared-utils/url/absoluteUrl.js";
49
+ import "../Sculpt/utils/Modules/Cursor.js";
50
+ import "../Object3DHelperPlugin/Controller.js";
51
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
52
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
53
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
54
+ import "../shared-utils/three/IObject3D.js";
55
+ import "../shared-utils/three/boundingBox.js";
56
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
57
+ import "../shared-utils/Object3DHelper/utils/direction.js";
58
+ import "../shared-utils/Object3DHelper/Constants/color.js";
59
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
60
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
61
+ import "../shared-utils/positionToVector3.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/centerPoint.js";
69
+ import "../shared-utils/three/getObjectVisible.js";
70
+ import "../shared-utils/isNil.js";
71
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
72
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
73
+ import "../shared-utils/util.js";
74
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
75
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
76
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
77
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
78
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
79
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
80
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
81
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
82
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
83
+ import "../shared-utils/threex/domevents/index.js";
84
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
85
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
86
+ import "../Sculpt/utils/three/rayOnLine.js";
87
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
88
+ import "../shared-utils/Object3DHelper/index.js";
89
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
90
+ import "../shared-utils/math/rad2Deg.js";
91
+ import "../shared-utils/math/deg2Rad.js";
92
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
93
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
94
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
95
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
96
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
97
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
98
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
99
+ import "../shared-utils/five/fiveModelLoad.js";
100
+ import "../shared-utils/five/FiveDomEvents.js";
101
+ import "../shared-utils/five/calculateThreeMouse.js";
102
+ import "../shared-utils/three/THREERaycaster.js";
103
+ import "../shared-utils/three/PointSelector/index.js";
104
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
105
+ import "../shared-utils/three/Magnifier.js";
106
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
107
+ import "../shared-utils/three/Assets/index.js";
108
+ import "../shared-utils/three/PointSelector/utils/html.js";
109
+ import "../shared-utils/five/initialCSS3DRender.js";
110
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
111
+ import "../Sculpt/Meshes/Line.js";
112
+ import "../Sculpt/typings/style.js";
113
+ import "../shared-utils/five/FiveLine.js";
114
+ import "../shared-utils/tag.js";
115
+ import "../shared-utils/five/vector3ToScreen.js";
116
+ import "../Sculpt/utils/removeAllTag.js";
117
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
118
+ import "../shared-utils/isTouchDevice.js";
119
+ import "../shared-utils/five/getPosition.js";
120
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
48
121
  import "../shared-utils/isTruelyObject.js";
49
122
  import "../shared-utils/three/core/Object3D.js";
50
123
  import "../shared-utils/three/objects/LineSegments.js";
@@ -55,7 +128,7 @@ import "../vendor/svelte/internal/index.js";
55
128
  import "../components/AreaLabel/Assets/roomLabelBg.js";
56
129
  import "../shared-utils/math/planimetry.js";
57
130
  import "../shared-utils/dom/resizeObserver.js";
58
- class et extends k {
131
+ class Ce extends k {
59
132
  /** AreaMakerPlugin
60
133
  * @param `five` `<Five>` Five 实例
61
134
  * @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
@@ -65,68 +138,68 @@ class et extends k {
65
138
  super(t);
66
139
  // ==================== public properties ====================
67
140
  /** 插件当前状态 */
68
- r(this, "state");
141
+ a(this, "state");
69
142
  /** 标注模型 { id: item } 的映射表 */
70
- r(this, "itemMap");
143
+ a(this, "itemMap");
71
144
  /** 自定义 DOM */
72
- r(this, "itemRenderer");
145
+ a(this, "itemRenderer");
73
146
  /** 标注模型容器 */
74
- r(this, "modelGroup");
147
+ a(this, "modelGroup");
75
148
  /** 当前使用的数据 */
76
- r(this, "data");
149
+ a(this, "data");
77
150
  /** tag 容器 */
78
- r(this, "tagDomContainer");
151
+ a(this, "tagDomContainer");
79
152
  /** 查询问题使用的调试对象 */
80
- r(this, "checkMsg", {
153
+ a(this, "checkMsg", {
81
154
  childrenMountedState: ""
82
155
  });
83
156
  // ==================== private properties ====================
84
157
  /** 是否在 Five Change Mode 动画中 */
85
- r(this, "isInFiveChangeModeAnime", !1);
158
+ a(this, "isInFiveChangeModeAnime", !1);
86
159
  /** 子组件是否挂载 */
87
- r(this, "childrenMountedState", !1);
160
+ a(this, "childrenMountedState", !1);
88
161
  /** config 的原始值 */
89
- r(this, "_config");
162
+ a(this, "_config");
90
163
  /** disposed 的原始值 */
91
- r(this, "_disposed", !1);
164
+ a(this, "_disposed", !1);
92
165
  /** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
93
- r(this, "dispose", () => {
166
+ a(this, "dispose", () => {
94
167
  this.five.scene.remove(this.modelGroup);
95
168
  });
96
- r(this, "onFiveInitAnimationWillStart", () => {
169
+ a(this, "onFiveInitAnimationWillStart", () => {
97
170
  this.isInFiveChangeModeAnime = !0, this.updateChildrenMountedState();
98
171
  });
99
- r(this, "onFiveInitAnimationEnded", () => {
172
+ a(this, "onFiveInitAnimationEnded", () => {
100
173
  this.isInFiveChangeModeAnime = !1, this.updateChildrenMountedState();
101
174
  });
102
- r(this, "onFiveCameraUpdate", () => {
175
+ a(this, "onFiveCameraUpdate", () => {
103
176
  const t = this.five.camera;
104
- [...this.itemMap.values()].sort((e, s) => {
105
- const a = e.tagPosition.distanceTo(t.position);
106
- return s.tagPosition.distanceTo(t.position) - a;
107
- }).forEach((e, s) => {
108
- var a;
109
- (a = this.getMaskItemByID(e.id)) == null || a.setTagZIndex(s * 10);
177
+ [...this.itemMap.values()].sort((e, o) => {
178
+ const r = e.tagPosition.distanceTo(t.position);
179
+ return o.tagPosition.distanceTo(t.position) - r;
180
+ }).forEach((e, o) => {
181
+ var r;
182
+ (r = this.getMaskItemByID(e.id)) == null || r.setTagZIndex(o * 10);
110
183
  });
111
184
  });
112
- r(this, "onFiveModeChange", () => {
185
+ a(this, "onFiveModeChange", () => {
113
186
  this.updateChildrenMountedState();
114
187
  });
115
- r(this, "onMakerTagClick", (t) => {
188
+ a(this, "onMakerTagClick", (t) => {
116
189
  this.hooks.emit("wantsTap", { target: t.target, intersectObjects: [] });
117
190
  });
118
- r(this, "onWantsFiveTapGesture", (t) => {
119
- const i = Array.from(this.itemMap.values()).filter((n) => n.mounted && n.visible).map((n) => ({
120
- makerItem: n,
121
- intersects: n.modelGroup.getRaycastIntersects(t)
122
- })).filter(({ intersects: n }) => n.length > 0);
191
+ a(this, "onWantsFiveTapGesture", (t) => {
192
+ const i = Array.from(this.itemMap.values()).filter((s) => s.mounted && s.visible).map((s) => ({
193
+ makerItem: s,
194
+ intersects: s.modelGroup.getRaycastIntersects(t)
195
+ })).filter(({ intersects: s }) => s.length > 0);
123
196
  if (i.length === 0)
124
197
  return;
125
- const e = i.reduce((n, l) => {
126
- const v = n.intersects[0].distance, b = l.intersects[0].distance;
127
- return v < b ? n : l;
128
- }), s = this.fiveUtil.model.intersectRaycaster(t)[0];
129
- if (this.config.modelDepthTest && s && s.distance < e.intersects[0].distance)
198
+ const e = i.reduce((s, p) => {
199
+ const v = s.intersects[0].distance, b = p.intersects[0].distance;
200
+ return v < b ? s : p;
201
+ }), o = this.fiveUtil.model.intersectRaycaster(t)[0];
202
+ if (this.config.modelDepthTest && o && o.distance < e.intersects[0].distance)
130
203
  return;
131
204
  if (this.hooks.emit("wantsTap", {
132
205
  target: e.makerItem,
@@ -140,14 +213,14 @@ class et extends k {
140
213
  visible: !0
141
214
  };
142
215
  this.state = Object.assign(e, i == null ? void 0 : i.initialState);
143
- const s = d({
216
+ const o = m({
144
217
  modelDepthTest: !0
145
218
  }, i == null ? void 0 : i.config);
146
- this._config = s, this.modelGroup = new g.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
219
+ this._config = o, this.modelGroup = new g.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
147
220
  }
148
221
  /** 插件配置项 */
149
222
  get config() {
150
- return d({}, this._config);
223
+ return m({}, this._config);
151
224
  }
152
225
  /** 是否已经被销毁 */
153
226
  get disposed() {
@@ -155,11 +228,11 @@ class et extends k {
155
228
  }
156
229
  /** 加载数据,重复调用会使用新数据覆盖旧数据 */
157
230
  load(t) {
158
- return u(this, null, function* () {
231
+ return c(this, null, function* () {
159
232
  const i = this.data;
160
233
  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) => {
161
- const s = new D(this, e);
162
- s.itemRenderer = this.itemRenderer, this.modelGroup.add(s.modelGroup), this.itemMap.set(e.id, s), s.hooks.on("tagClick", this.onMakerTagClick);
234
+ const o = new D(this, e);
235
+ o.itemRenderer = this.itemRenderer, this.modelGroup.add(o.modelGroup), this.itemMap.set(e.id, o), o.hooks.on("tagClick", this.onMakerTagClick);
163
236
  }), this.updateChildrenMountedState();
164
237
  });
165
238
  }
@@ -194,12 +267,12 @@ class et extends k {
194
267
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
195
268
  */
196
269
  show(t) {
197
- return u(this, null, function* () {
270
+ return c(this, null, function* () {
198
271
  if (this.state.visible)
199
272
  return Promise.resolve();
200
273
  if (this.disposed)
201
274
  return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
202
- const i = d({ userAction: !0 }, t);
275
+ const i = m({ userAction: !0 }, t);
203
276
  this.updateState({ visible: !0 }, i.userAction), yield this._show(i);
204
277
  });
205
278
  }
@@ -208,10 +281,10 @@ class et extends k {
208
281
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
209
282
  */
210
283
  hide(t) {
211
- return u(this, null, function* () {
284
+ return c(this, null, function* () {
212
285
  if (this.state.visible === !1)
213
286
  return;
214
- const i = d({ userAction: !0 }, t);
287
+ const i = m({ userAction: !0 }, t);
215
288
  this.updateState({ visible: !1 }, i.userAction), yield this._hide(i);
216
289
  });
217
290
  }
@@ -258,10 +331,10 @@ class et extends k {
258
331
  const e = this.state;
259
332
  if (I(t, e, { deep: !0 }))
260
333
  return;
261
- const s = i.userAction !== void 0 ? i.userAction : !0;
262
- 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) {
263
- const a = { userAction: s, anime: { duration: 500 } };
264
- t.visible ? this._show(a) : this._hide(a);
334
+ const o = i.userAction !== void 0 ? i.userAction : !0;
335
+ 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) {
336
+ const r = { userAction: o, anime: { duration: 500 } };
337
+ t.visible ? this._show(r) : this._hide(r);
265
338
  }
266
339
  }
267
340
  /** 更改插件 Config
@@ -269,9 +342,9 @@ class et extends k {
269
342
  * @param `options` `<Option> | <undefined>`
270
343
  */
271
344
  updateConfig(t, i = {}) {
272
- var a;
273
- const e = this.config, s = d(d({}, e), t);
274
- this._config = s, this.hooks.emit("configChange", { prevConfig: e, config: s, userAction: (a = i.userAction) != null ? a : !0 });
345
+ var r;
346
+ const e = this.config, o = m(m({}, e), t);
347
+ this._config = o, this.hooks.emit("configChange", { prevConfig: e, config: o, userAction: (r = i.userAction) != null ? r : !0 });
275
348
  }
276
349
  /** 根据 ID 获取标注 */
277
350
  getMaskItemByID(t) {
@@ -283,12 +356,12 @@ class et extends k {
283
356
  }
284
357
  return i(t) ? {
285
358
  list: t.list.filter((e) => e.object_data.points.length >= 3).map((e) => {
286
- const s = new g.Shape(), a = e.object_data.points[0];
287
- 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), {
359
+ const o = new g.Shape(), r = e.object_data.points[0];
360
+ 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), {
288
361
  floor_index: e.object_data.floorIndex,
289
- object_data: p(d({}, e.object_data), {
290
- bottom_y: a[1] + e.object_data.fixedY,
291
- shape: s.toJSON(),
362
+ object_data: u(m({}, e.object_data), {
363
+ bottom_y: r[1] + e.object_data.fixedY,
364
+ shape: o.toJSON(),
292
365
  height: e.object_data.height + e.object_data.fixedHeight
293
366
  })
294
367
  });
@@ -310,7 +383,7 @@ class et extends k {
310
383
  }
311
384
  updateState(t, i) {
312
385
  const e = this.state;
313
- this.state = d(d({}, this.state), t), this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
386
+ this.state = m(m({}, this.state), t), this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
314
387
  }
315
388
  _enable(t) {
316
389
  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);
@@ -319,16 +392,16 @@ class et extends k {
319
392
  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);
320
393
  }
321
394
  _show(t) {
322
- return u(this, null, function* () {
395
+ return c(this, null, function* () {
323
396
  this.hooks.emit("show", t), this.five.needsRender = !0;
324
397
  });
325
398
  }
326
399
  _hide(t) {
327
- return u(this, null, function* () {
400
+ return c(this, null, function* () {
328
401
  this.hooks.emit("hide", t), this.five.needsRender = !0;
329
402
  });
330
403
  }
331
404
  }
332
405
  export {
333
- et as Controller
406
+ Ce as Controller
334
407
  };
@@ -6,15 +6,88 @@ import "../shared-utils/Subscribe.js";
6
6
  import "hammerjs";
7
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
8
  import "@realsee/five/line";
9
+ import "../Sculpt/utils/Modules/Global.js";
10
+ import "../Sculpt/utils/Modules/Cursor.js";
11
+ import "../Object3DHelperPlugin/Controller.js";
9
12
  import "../shared-utils/three/THREESphere.js";
13
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
14
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
15
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
16
+ import "../shared-utils/three/IObject3D.js";
17
+ import "../shared-utils/three/boundingBox.js";
18
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
19
+ import "../shared-utils/Object3DHelper/utils/direction.js";
20
+ import "../shared-utils/Object3DHelper/Constants/color.js";
21
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
22
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
23
+ import "../shared-utils/positionToVector3.js";
24
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
25
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
26
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
27
+ import "../CSS3DRenderPlugin/utils/even.js";
28
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
29
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
30
+ import "../shared-utils/three/centerPoint.js";
31
+ import "../shared-utils/three/getObjectVisible.js";
10
32
  import "animejs";
33
+ import "../shared-utils/isNil.js";
34
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
35
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
36
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
37
+ import "../shared-utils/util.js";
38
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
39
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
40
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
41
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
42
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
43
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
44
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
45
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
46
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
47
+ import "../shared-utils/threex/domevents/index.js";
48
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
49
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
50
+ import "../Sculpt/utils/three/rayOnLine.js";
51
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
52
+ import "../shared-utils/Object3DHelper/index.js";
53
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
54
+ import "../shared-utils/math/rad2Deg.js";
55
+ import "../shared-utils/math/deg2Rad.js";
56
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
57
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
58
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
59
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
60
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
61
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
62
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
63
+ import "../shared-utils/five/fiveModelLoad.js";
64
+ import "../shared-utils/five/getFiveModel.js";
65
+ import "../shared-utils/five/FiveDomEvents.js";
66
+ import "../shared-utils/five/calculateThreeMouse.js";
67
+ import "../shared-utils/three/THREERaycaster.js";
68
+ import "../shared-utils/three/PointSelector/index.js";
69
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
70
+ import "../shared-utils/three/Magnifier.js";
71
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
72
+ import "../shared-utils/three/Assets/index.js";
73
+ import "../shared-utils/three/PointSelector/utils/html.js";
74
+ import "../shared-utils/five/initialCSS3DRender.js";
75
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
76
+ import "../Sculpt/Meshes/Line.js";
77
+ import "../Sculpt/typings/style.js";
78
+ import "../shared-utils/five/FiveLine.js";
79
+ import "../shared-utils/tag.js";
80
+ import "../shared-utils/five/vector3ToScreen.js";
81
+ import "../Sculpt/utils/removeAllTag.js";
82
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
83
+ import "../shared-utils/isTouchDevice.js";
84
+ import "../shared-utils/five/getPosition.js";
85
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
11
86
  import "../shared-utils/Utils/FiveUtil.js";
12
87
  import "../shared-utils/Utils/BaseUtil.js";
13
88
  import "../shared-utils/Utils/WorkUtil.js";
14
89
  import "../shared-utils/five/transformPosition.js";
15
- import "../shared-utils/five/getFiveModel.js";
16
90
  import "../shared-utils/url/absoluteUrl.js";
17
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
18
91
  import "../shared-utils/equal.js";
19
92
  import "../shared-utils/isTruelyObject.js";
20
93
  import "./utils/Item.js";
@@ -27,7 +100,7 @@ import "../vendor/svelte/internal/index.js";
27
100
  import "../components/AreaLabel/Assets/roomLabelBg.js";
28
101
  import "../shared-utils/math/planimetry.js";
29
102
  import "../shared-utils/dom/resizeObserver.js";
30
- const E = (r, o) => new t(r, o);
103
+ const Zr = (r, o) => new t(r, o);
31
104
  export {
32
- E as AreaMakerPlugin
105
+ Zr as AreaMakerPlugin
33
106
  };