@realsee/dnalogel 3.50.17-alpha.0 → 3.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
  3. package/dist/Sculpt/utils/export.d.ts +18 -0
  4. package/dist/index.cjs.js +207 -207
  5. package/dist/index.js +34866 -34775
  6. package/dist/index.umd.js +211 -211
  7. package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  8. package/dist/shared-utils/index.d.ts +1 -0
  9. package/dist/shared-utils/tag.d.ts +40 -1
  10. package/dist/shared-utils/three/temp.d.ts +2 -2
  11. package/libs/AreaMakerPlugin/Controller.js +100 -46
  12. package/libs/AreaMakerPlugin/index.js +64 -10
  13. package/libs/AreaMakerPlugin/utils/Item.js +156 -100
  14. package/libs/CSS3DRenderPlugin/Controller.js +93 -44
  15. package/libs/CSS3DRenderPlugin/index.js +62 -13
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
  18. package/libs/CruisePlugin/BaseController.js +143 -89
  19. package/libs/CruisePlugin/Move.js +83 -39
  20. package/libs/CruisePlugin/Work.js +95 -51
  21. package/libs/CruisePlugin/index.js +66 -22
  22. package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
  23. package/libs/CurrentPanoImagePlugin/index.js +63 -9
  24. package/libs/GuideLinePlugin/Controller.js +57 -13
  25. package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
  26. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
  27. package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
  28. package/libs/GuideLinePlugin/index.js +66 -22
  29. package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
  30. package/libs/ModelMakerPlugin/Controller.js +190 -129
  31. package/libs/ModelMakerPlugin/index.js +63 -21
  32. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  33. package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
  34. package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
  35. package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
  36. package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
  37. package/libs/ModelTVVideoPlugin/index.js +55 -6
  38. package/libs/Object3DHelperPlugin/Controller.js +42 -25
  39. package/libs/Object3DHelperPlugin/index.js +28 -12
  40. package/libs/PanoCompassPlugin/Controller.js +92 -44
  41. package/libs/PanoCompassPlugin/index.js +63 -15
  42. package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
  43. package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
  44. package/libs/PanoDoorLabelPlugin/index.js +63 -9
  45. package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
  46. package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
  47. package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
  48. package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
  49. package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
  50. package/libs/PanoMeasurePlugin/Model/area.js +72 -22
  51. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
  52. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
  53. package/libs/PanoMeasurePlugin/index.js +62 -16
  54. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
  55. package/libs/PanoRulerProPlugin/Controller.js +88 -33
  56. package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
  57. package/libs/PanoRulerProPlugin/index.js +64 -9
  58. package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
  59. package/libs/PanoSpatialTagPlugin/index.js +53 -4
  60. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
  61. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
  62. package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
  63. package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
  64. package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
  65. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
  66. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
  67. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
  68. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
  69. package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
  70. package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
  71. package/libs/PanoTagPlugin/controller/index.js +110 -72
  72. package/libs/PanoTagPlugin/index.js +72 -28
  73. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
  74. package/libs/PanoVideoPlugin/Controller.js +95 -41
  75. package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
  76. package/libs/PanoVideoPlugin/index.js +66 -12
  77. package/libs/PipelinePlugin/Controller.js +173 -119
  78. package/libs/PipelinePlugin/index.js +63 -9
  79. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
  80. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
  81. package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
  82. package/libs/Sculpt/Meshes/Box.js +3 -2
  83. package/libs/Sculpt/Meshes/Cylinder.js +10 -6
  84. package/libs/Sculpt/Meshes/Line.js +43 -38
  85. package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
  86. package/libs/Sculpt/Meshes/Point.js +24 -20
  87. package/libs/Sculpt/Meshes/Polygon.js +5 -2
  88. package/libs/Sculpt/Meshes/Prism.js +19 -16
  89. package/libs/Sculpt/Objects/Line/Editor.js +6 -5
  90. package/libs/Sculpt/index.js +15 -14
  91. package/libs/Sculpt/utils/export.d.ts +18 -0
  92. package/libs/Sculpt/utils/export.js +21 -0
  93. package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
  94. package/libs/base/BasePlugin.js +14 -10
  95. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
  96. package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
  97. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
  98. package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
  99. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
  101. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
  102. package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
  103. package/libs/floorplan/index.js +4 -0
  104. package/libs/index.js +208 -206
  105. package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  106. package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
  107. package/libs/shared-utils/five/index.js +6 -2
  108. package/libs/shared-utils/five/lookObject.js +31 -27
  109. package/libs/shared-utils/index.d.ts +1 -0
  110. package/libs/shared-utils/index.js +19 -17
  111. package/libs/shared-utils/logger.js +1 -1
  112. package/libs/shared-utils/tag.d.ts +40 -1
  113. package/libs/shared-utils/tag.js +139 -86
  114. package/libs/shared-utils/three/index.js +4 -0
  115. package/libs/shared-utils/three/temp.d.ts +2 -2
  116. package/libs/shared-utils/three/temp.js +4 -4
  117. package/package.json +1 -1
  118. package/README.md +0 -116
@@ -0,0 +1,2 @@
1
+ import type { Five } from '@realsee/five';
2
+ export declare function fiveEveryReadyListener(five: Five, callback: () => void): () => void;
@@ -7,3 +7,4 @@ export * from './uuid';
7
7
  export * from './url/absoluteUrl';
8
8
  export * from './animationFrame';
9
9
  export * from './equal';
10
+ export * from '../Sculpt/utils/export';
@@ -13,6 +13,16 @@ export declare class LightTag {
13
13
  container: HTMLDivElement;
14
14
  visible: boolean;
15
15
  enabled: boolean;
16
+ /**
17
+ * @description 标签的可见性数组
18
+ * ```
19
+ * [0] this.visible
20
+ * [1] 碰撞检测
21
+ * [2] 元素遮挡
22
+ * ```
23
+ */
24
+ visibles: boolean[];
25
+ get position(): THREE.Vector3;
16
26
  /**
17
27
  * @description 标签容器的父容器
18
28
  * @default this.five.getElement()?.parentElement
@@ -24,11 +34,16 @@ export declare class LightTag {
24
34
  * @default true
25
35
  */
26
36
  intersectCheck: boolean;
37
+ /**
38
+ * @description 用于碰撞检测的额外 Object3D
39
+ */
40
+ extraObjectsForIntersectCheck: THREE.Object3D[];
27
41
  /**
28
42
  * @description 模拟3D
29
43
  * @default true
30
44
  */
31
45
  simulate3D: boolean;
46
+ set needsRender(val: true);
32
47
  /**
33
48
  * @description 标签的容器,根据 namespace 区分
34
49
  */
@@ -41,16 +56,40 @@ export declare class LightTag {
41
56
  private fiveUtil;
42
57
  private disposers;
43
58
  constructor(five: Five, position?: AnyPosition, config?: LightTagConfig);
59
+ /**
60
+ * @description 显示标签
61
+ */
44
62
  show(): void;
63
+ /**
64
+ * @description 隐藏标签
65
+ */
45
66
  hide(): void;
67
+ /**
68
+ * @description 启用标签
69
+ */
46
70
  enable(): void;
71
+ /**
72
+ * @description 禁用标签
73
+ */
47
74
  disable(): void;
75
+ /**
76
+ * @description 销毁标签,并释放相关资源
77
+ */
48
78
  destroy(): void;
49
- setTransformMatrix(matrix: THREE.Matrix4): void;
79
+ /**
80
+ * @description 设置标签位置
81
+ * @param position 位置
82
+ * @param positionsForRotate 用于 css 旋转的斜线的两个端点
83
+ */
50
84
  setPosition(position: AnyPosition, positionsForRotate?: AnyPosition[]): void;
85
+ setTransformMatrix(matrix: THREE.Matrix4): void;
51
86
  updateScreenPosition(): void;
52
87
  private onCameraUpdate;
88
+ private onCameraFovUpdate;
53
89
  private onFiveEveryReady;
90
+ private updateVisible;
91
+ private applyVisible;
92
+ private updateIntersectCheckVisible;
54
93
  private addResizeListener;
55
94
  }
56
95
  export declare function tag(...params: ConstructorParameters<typeof LightTag>): LightTag;
@@ -1,2 +1,2 @@
1
- import * as THREE from 'three';
2
- export declare const _raycaster: THREE.Raycaster;
1
+ import { THREERaycaster } from './core/Raycaster';
2
+ export declare const _raycaster: THREERaycaster;
@@ -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 p = (h, n, t) => n in h ? M(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, d = (h, n) => {
6
- for (var t in n || (n = {}))
7
- A.call(n, t) && p(h, t, n[t]);
5
+ var l = (m, r, t) => r in m ? M(m, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[r] = t, h = (m, r) => {
6
+ for (var t in r || (r = {}))
7
+ A.call(r, t) && l(m, t, r[t]);
8
8
  if (f)
9
- for (var t of f(n))
10
- _.call(n, t) && p(h, t, n[t]);
11
- return h;
12
- }, u = (h, n) => C(h, S(n));
13
- var a = (h, n, t) => (p(h, typeof n != "symbol" ? n + "" : n, t), t);
14
- var l = (h, n, t) => new Promise((i, e) => {
9
+ for (var t of f(r))
10
+ _.call(r, t) && l(m, t, r[t]);
11
+ return m;
12
+ }, u = (m, r) => C(m, S(r));
13
+ var a = (m, r, t) => (l(m, typeof r != "symbol" ? r + "" : r, t), t);
14
+ var c = (m, r, t) => new Promise((i, e) => {
15
15
  var o = (s) => {
16
16
  try {
17
- m(t.next(s));
18
- } catch (c) {
19
- e(c);
17
+ p(t.next(s));
18
+ } catch (d) {
19
+ e(d);
20
20
  }
21
- }, r = (s) => {
21
+ }, n = (s) => {
22
22
  try {
23
- m(t.throw(s));
24
- } catch (c) {
25
- e(c);
23
+ p(t.throw(s));
24
+ } catch (d) {
25
+ e(d);
26
26
  }
27
- }, m = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(o, r);
28
- m((t = t.apply(h, n)).next());
27
+ }, p = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(o, n);
28
+ p((t = t.apply(m, r)).next());
29
29
  });
30
30
  import * as g from "three";
31
31
  import { Controller as k } from "../base/BasePluginWithData.js";
@@ -39,6 +39,10 @@ import "../shared-utils/three/core/Sphere.js";
39
39
  import "animejs";
40
40
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
41
41
  import { equal as I } from "../shared-utils/equal.js";
42
+ import "../Sculpt/Meshes/Polygon.js";
43
+ import "../Sculpt/utils/Modules/Global.js";
44
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
45
+ import "../Sculpt/utils/three/rayOnLine.js";
42
46
  import { AreaMakerItem as D } from "./utils/Item.js";
43
47
  import "../base/BasePlugin.js";
44
48
  import "../shared-utils/Subscribe.js";
@@ -51,7 +55,10 @@ import "../shared-utils/url/absoluteUrl.js";
51
55
  import "../shared-utils/positionToVector3.js";
52
56
  import "../shared-utils/five/vector3ToScreen.js";
53
57
  import "../shared-utils/three/temp.js";
58
+ import "../shared-utils/three/core/Raycaster.js";
54
59
  import "../shared-utils/dom/resizeObserver.js";
60
+ import "../shared-utils/five/fiveEveryReadyListener.js";
61
+ import "../shared-utils/throttle.js";
55
62
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
56
63
  import "../shared-utils/three/Magnifier.js";
57
64
  import "../shared-utils/three/PointSelector/utils/PointHelper.js";
@@ -84,6 +91,53 @@ import "../shared-utils/three/PointSelector/utils/contents.js";
84
91
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
85
92
  import "../vendor/three/build/three.module.js";
86
93
  import "../shared-utils/isTruelyObject.js";
94
+ import "../shared-utils/three/generatePolygonGeometry.js";
95
+ import "../shared-utils/three/earcut3D.js";
96
+ import "earcut";
97
+ import "../shared-utils/three/getNormal.js";
98
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
99
+ import "../Sculpt/utils/three/ColoredMesh.js";
100
+ import "../shared-utils/three/geometryUtil.js";
101
+ import "../Sculpt/utils/Modules/Cursor.js";
102
+ import "../Object3DHelperPlugin/Controller.js";
103
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
104
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
105
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
106
+ import "../shared-utils/three/boundingBox.js";
107
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
108
+ import "../shared-utils/Object3DHelper/utils/direction.js";
109
+ import "../shared-utils/Object3DHelper/Constants/color.js";
110
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
111
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
112
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
113
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
114
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
115
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
116
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
117
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
118
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
119
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
120
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
121
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
122
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
123
+ import "../shared-utils/threex/domevents/index.js";
124
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
125
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
126
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
127
+ import "../shared-utils/Object3DHelper/index.js";
128
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
129
+ import "../shared-utils/math/rad2Deg.js";
130
+ import "../shared-utils/math/deg2Rad.js";
131
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
132
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
133
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
134
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
135
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
136
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
137
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
138
+ import "../shared-utils/five/fiveModelLoad.js";
139
+ import "../shared-utils/five/FiveDomEvents.js";
140
+ import "../shared-utils/five/calculateThreeMouse.js";
87
141
  import "../shared-utils/three/core/Object3D.js";
88
142
  import "../shared-utils/three/core/LineSegments.js";
89
143
  import "../shared-utils/animationFrame/BetterTween.js";
@@ -92,7 +146,7 @@ import "../components/AreaLabel/LabelItem.js";
92
146
  import "../vendor/svelte/internal/index.js";
93
147
  import "../components/AreaLabel/Assets/roomLabelBg.js";
94
148
  import "../shared-utils/math/planimetry.js";
95
- class Ot extends k {
149
+ class Oe extends k {
96
150
  /** AreaMakerPlugin
97
151
  * @param `five` `<Five>` Five 实例
98
152
  * @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
@@ -139,11 +193,11 @@ class Ot extends k {
139
193
  a(this, "onFiveCameraUpdate", () => {
140
194
  const t = this.five.camera;
141
195
  [...this.itemMap.values()].sort((e, o) => {
142
- const r = e.tagPosition.distanceTo(t.position);
143
- return o.tagPosition.distanceTo(t.position) - r;
196
+ const n = e.tagPosition.distanceTo(t.position);
197
+ return o.tagPosition.distanceTo(t.position) - n;
144
198
  }).forEach((e, o) => {
145
- var r;
146
- (r = this.getMaskItemByID(e.id)) == null || r.setTagZIndex(o * 10);
199
+ var n;
200
+ (n = this.getMaskItemByID(e.id)) == null || n.setTagZIndex(o * 10);
147
201
  });
148
202
  });
149
203
  a(this, "onFiveModeChange", () => {
@@ -159,9 +213,9 @@ class Ot extends k {
159
213
  })).filter(({ intersects: s }) => s.length > 0);
160
214
  if (i.length === 0)
161
215
  return;
162
- const e = i.reduce((s, c) => {
163
- const v = s.intersects[0].distance, b = c.intersects[0].distance;
164
- return v < b ? s : c;
216
+ const e = i.reduce((s, d) => {
217
+ const v = s.intersects[0].distance, b = d.intersects[0].distance;
218
+ return v < b ? s : d;
165
219
  }), o = this.fiveUtil.model.intersectRaycaster(t)[0];
166
220
  if (this.config.modelDepthTest && o && o.distance < e.intersects[0].distance)
167
221
  return;
@@ -177,14 +231,14 @@ class Ot extends k {
177
231
  visible: !0
178
232
  };
179
233
  this.state = Object.assign(e, i == null ? void 0 : i.initialState);
180
- const o = d({
234
+ const o = h({
181
235
  modelDepthTest: !0
182
236
  }, i == null ? void 0 : i.config);
183
237
  this._config = o, this.modelGroup = new g.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
184
238
  }
185
239
  /** 插件配置项 */
186
240
  get config() {
187
- return d({}, this._config);
241
+ return h({}, this._config);
188
242
  }
189
243
  /** 是否已经被销毁 */
190
244
  get disposed() {
@@ -192,7 +246,7 @@ class Ot extends k {
192
246
  }
193
247
  /** 加载数据,重复调用会使用新数据覆盖旧数据 */
194
248
  load(t) {
195
- return l(this, null, function* () {
249
+ return c(this, null, function* () {
196
250
  const i = this.data;
197
251
  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) => {
198
252
  const o = new D(this, e);
@@ -231,12 +285,12 @@ class Ot extends k {
231
285
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
232
286
  */
233
287
  show(t) {
234
- return l(this, null, function* () {
288
+ return c(this, null, function* () {
235
289
  if (this.state.visible)
236
290
  return Promise.resolve();
237
291
  if (this.disposed)
238
292
  return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
239
- const i = d({ userAction: !0 }, t);
293
+ const i = h({ userAction: !0 }, t);
240
294
  this.updateState({ visible: !0 }, i.userAction), yield this._show(i);
241
295
  });
242
296
  }
@@ -245,10 +299,10 @@ class Ot extends k {
245
299
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
246
300
  */
247
301
  hide(t) {
248
- return l(this, null, function* () {
302
+ return c(this, null, function* () {
249
303
  if (this.state.visible === !1)
250
304
  return;
251
- const i = d({ userAction: !0 }, t);
305
+ const i = h({ userAction: !0 }, t);
252
306
  this.updateState({ visible: !1 }, i.userAction), yield this._hide(i);
253
307
  });
254
308
  }
@@ -297,8 +351,8 @@ class Ot extends k {
297
351
  return;
298
352
  const o = i.userAction !== void 0 ? i.userAction : !0;
299
353
  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) {
300
- const r = { userAction: o, anime: { duration: 500 } };
301
- t.visible ? this._show(r) : this._hide(r);
354
+ const n = { userAction: o, anime: { duration: 500 } };
355
+ t.visible ? this._show(n) : this._hide(n);
302
356
  }
303
357
  }
304
358
  /** 更改插件 Config
@@ -306,9 +360,9 @@ class Ot extends k {
306
360
  * @param `options` `<Option> | <undefined>`
307
361
  */
308
362
  updateConfig(t, i = {}) {
309
- var r;
310
- const e = this.config, o = d(d({}, e), t);
311
- this._config = o, this.hooks.emit("configChange", { prevConfig: e, config: o, userAction: (r = i.userAction) != null ? r : !0 });
363
+ var n;
364
+ const e = this.config, o = h(h({}, e), t);
365
+ this._config = o, this.hooks.emit("configChange", { prevConfig: e, config: o, userAction: (n = i.userAction) != null ? n : !0 });
312
366
  }
313
367
  /** 根据 ID 获取标注 */
314
368
  getMaskItemByID(t) {
@@ -320,11 +374,11 @@ class Ot extends k {
320
374
  }
321
375
  return i(t) ? {
322
376
  list: t.list.filter((e) => e.object_data.points.length >= 3).map((e) => {
323
- const o = new g.Shape(), r = e.object_data.points[0];
324
- 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(d({}, e), {
377
+ const o = new g.Shape(), n = e.object_data.points[0];
378
+ return o.moveTo(n[0], n[2]), e.object_data.points.slice(1).forEach((s) => o.lineTo(s[0], s[2])), o.lineTo(n[0], n[2]), u(h({}, e), {
325
379
  floor_index: e.object_data.floorIndex,
326
- object_data: u(d({}, e.object_data), {
327
- bottom_y: r[1] + e.object_data.fixedY,
380
+ object_data: u(h({}, e.object_data), {
381
+ bottom_y: n[1] + e.object_data.fixedY,
328
382
  shape: o.toJSON(),
329
383
  height: e.object_data.height + e.object_data.fixedHeight
330
384
  })
@@ -347,7 +401,7 @@ class Ot extends k {
347
401
  }
348
402
  updateState(t, i) {
349
403
  const e = this.state;
350
- this.state = d(d({}, this.state), t), this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
404
+ this.state = h(h({}, this.state), t), this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
351
405
  }
352
406
  _enable(t) {
353
407
  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);
@@ -356,16 +410,16 @@ class Ot extends k {
356
410
  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);
357
411
  }
358
412
  _show(t) {
359
- return l(this, null, function* () {
413
+ return c(this, null, function* () {
360
414
  this.hooks.emit("show", t), this.five.needsRender = !0;
361
415
  });
362
416
  }
363
417
  _hide(t) {
364
- return l(this, null, function* () {
418
+ return c(this, null, function* () {
365
419
  this.hooks.emit("hide", t), this.five.needsRender = !0;
366
420
  });
367
421
  }
368
422
  }
369
423
  export {
370
- Ot as Controller
424
+ Oe as Controller
371
425
  };
@@ -12,7 +12,10 @@ import "../shared-utils/Utils/BaseUtil.js";
12
12
  import "../shared-utils/Utils/WorkUtil.js";
13
13
  import "../shared-utils/five/transformPosition.js";
14
14
  import "../shared-utils/three/temp.js";
15
+ import "../shared-utils/three/core/Raycaster.js";
15
16
  import "../shared-utils/dom/resizeObserver.js";
17
+ import "../shared-utils/five/fiveEveryReadyListener.js";
18
+ import "../shared-utils/throttle.js";
16
19
  import "hammerjs";
17
20
  import "../shared-utils/three/PointSelector/index.js";
18
21
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -33,22 +36,73 @@ import "../shared-utils/three/core/Sphere.js";
33
36
  import "animejs";
34
37
  import "../shared-utils/isNil.js";
35
38
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
36
- import "../shared-utils/three/PointSelector/utils/html.js";
37
- import "../shared-utils/five/initialCSS3DRender.js";
39
+ import "../Sculpt/Meshes/Polygon.js";
40
+ import "../shared-utils/three/generatePolygonGeometry.js";
41
+ import "../shared-utils/three/earcut3D.js";
42
+ import "earcut";
43
+ import "../shared-utils/three/getNormal.js";
44
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
45
+ import "../Sculpt/typings/style.js";
46
+ import "../Sculpt/utils/three/ColoredMesh.js";
47
+ import "../shared-utils/three/IObject3D.js";
48
+ import "../Sculpt/utils/Modules/Global.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/boundingBox.js";
55
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
56
+ import "../shared-utils/Object3DHelper/utils/direction.js";
57
+ import "../shared-utils/Object3DHelper/Constants/color.js";
58
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
59
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
38
60
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
61
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
40
62
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
63
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
64
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
65
+ import "../shared-utils/util.js";
66
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
67
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
68
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
69
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
70
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
71
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
72
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
73
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
74
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
75
+ import "../shared-utils/threex/domevents/index.js";
76
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
77
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
78
+ import "../Sculpt/utils/three/rayOnLine.js";
79
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
80
+ import "../shared-utils/Object3DHelper/index.js";
81
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
82
+ import "../shared-utils/math/rad2Deg.js";
83
+ import "../shared-utils/math/deg2Rad.js";
84
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
85
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
86
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
87
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
88
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
89
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
90
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
91
+ import "../shared-utils/five/fiveModelLoad.js";
92
+ import "../shared-utils/five/FiveDomEvents.js";
93
+ import "../shared-utils/five/calculateThreeMouse.js";
94
+ import "../shared-utils/isTouchDevice.js";
95
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
96
+ import "../shared-utils/three/geometryUtil.js";
97
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
98
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
99
+ import "../shared-utils/three/PointSelector/utils/html.js";
100
+ import "../shared-utils/five/initialCSS3DRender.js";
41
101
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
42
102
  import "../Sculpt/Meshes/Line.js";
43
- import "../Sculpt/typings/style.js";
44
103
  import "../shared-utils/five/FiveLine.js";
45
- import "../shared-utils/three/IObject3D.js";
46
104
  import "../Sculpt/utils/removeAllTag.js";
47
- import "../Sculpt/utils/Meshes/getLengthHTML.js";
48
- import "../shared-utils/three/applyObjectMatrixWorld.js";
49
- import "../shared-utils/util.js";
50
105
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
51
- import "../shared-utils/isTouchDevice.js";
52
106
  import "../shared-utils/five/getPosition.js";
53
107
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
54
108
  import "../shared-utils/three/PointSelector/utils/contents.js";
@@ -64,7 +118,7 @@ import "../components/AreaLabel/LabelItem.js";
64
118
  import "../vendor/svelte/internal/index.js";
65
119
  import "../components/AreaLabel/Assets/roomLabelBg.js";
66
120
  import "../shared-utils/math/planimetry.js";
67
- const ur = (r, o) => new t(r, o);
121
+ const uo = (r, o) => new t(r, o);
68
122
  export {
69
- ur as AreaMakerPlugin
123
+ uo as AreaMakerPlugin
70
124
  };