@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
@@ -2,30 +2,30 @@ var C = Object.defineProperty, F = Object.defineProperties;
2
2
  var E = Object.getOwnPropertyDescriptors;
3
3
  var g = Object.getOwnPropertySymbols;
4
4
  var A = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var u = (d, n, t) => n in d ? C(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, l = (d, n) => {
6
- for (var t in n || (n = {}))
7
- A.call(n, t) && u(d, t, n[t]);
5
+ var u = (p, s, t) => s in p ? C(p, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[s] = t, d = (p, s) => {
6
+ for (var t in s || (s = {}))
7
+ A.call(s, t) && u(p, t, s[t]);
8
8
  if (g)
9
- for (var t of g(n))
10
- x.call(n, t) && u(d, t, n[t]);
11
- return d;
12
- }, f = (d, n) => F(d, E(n));
13
- var o = (d, n, t) => (u(d, typeof n != "symbol" ? n + "" : n, t), t);
14
- var c = (d, n, t) => new Promise((i, e) => {
15
- var s = (h) => {
9
+ for (var t of g(s))
10
+ x.call(s, t) && u(p, t, s[t]);
11
+ return p;
12
+ }, f = (p, s) => F(p, E(s));
13
+ var o = (p, s, t) => (u(p, typeof s != "symbol" ? s + "" : s, t), t);
14
+ var c = (p, s, t) => new Promise((i, e) => {
15
+ var r = (h) => {
16
16
  try {
17
17
  a(t.next(h));
18
- } catch (p) {
19
- e(p);
18
+ } catch (m) {
19
+ e(m);
20
20
  }
21
- }, r = (h) => {
21
+ }, n = (h) => {
22
22
  try {
23
23
  a(t.throw(h));
24
- } catch (p) {
25
- e(p);
24
+ } catch (m) {
25
+ e(m);
26
26
  }
27
- }, a = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(s, r);
28
- a((t = t.apply(d, n)).next());
27
+ }, a = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(r, n);
28
+ a((t = t.apply(p, s)).next());
29
29
  });
30
30
  import * as S from "three";
31
31
  import { equal as y } from "../../shared-utils/equal.js";
@@ -48,6 +48,10 @@ import "../../shared-utils/three/core/Sphere.js";
48
48
  import "animejs";
49
49
  import { isNil as k } from "../../shared-utils/isNil.js";
50
50
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
51
+ import "../../Sculpt/Meshes/Polygon.js";
52
+ import "../../Sculpt/utils/Modules/Global.js";
53
+ import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
54
+ import "../../Sculpt/utils/three/rayOnLine.js";
51
55
  import "../../shared-utils/isTruelyObject.js";
52
56
  import "../../vendor/svelte/internal/index.js";
53
57
  import "../../vendor/svelte/transition/index.js";
@@ -90,7 +94,10 @@ import "../../shared-utils/to.js";
90
94
  import "../../shared-utils/positionToVector3.js";
91
95
  import "../../shared-utils/five/vector3ToScreen.js";
92
96
  import "../../shared-utils/three/temp.js";
97
+ import "../../shared-utils/three/core/Raycaster.js";
93
98
  import "../../shared-utils/dom/resizeObserver.js";
99
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
100
+ import "../../shared-utils/throttle.js";
94
101
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
95
102
  import "../../shared-utils/three/Magnifier.js";
96
103
  import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
@@ -121,9 +128,55 @@ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
121
128
  import "../../shared-utils/three/PointSelector/utils/contents.js";
122
129
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
123
130
  import "../../vendor/three/build/three.module.js";
124
- class Ei extends M {
131
+ import "../../shared-utils/three/generatePolygonGeometry.js";
132
+ import "../../shared-utils/three/earcut3D.js";
133
+ import "earcut";
134
+ import "../../shared-utils/three/getNormal.js";
135
+ import "../../PanoMeasurePlugin/utils/isIntersecting.js";
136
+ import "../../Sculpt/utils/three/ColoredMesh.js";
137
+ import "../../shared-utils/three/geometryUtil.js";
138
+ import "../../Sculpt/utils/Modules/Cursor.js";
139
+ import "../../Object3DHelperPlugin/Controller.js";
140
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
141
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
142
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
143
+ import "../../shared-utils/three/boundingBox.js";
144
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
145
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
146
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
147
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
148
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
149
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
150
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
151
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
152
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
153
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
154
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
155
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
156
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
157
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
158
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
159
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
160
+ import "../../shared-utils/threex/domevents/index.js";
161
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
162
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
163
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
164
+ import "../../shared-utils/Object3DHelper/index.js";
165
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
166
+ import "../../shared-utils/math/deg2Rad.js";
167
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
168
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
169
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
170
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
171
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
172
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
173
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
174
+ import "../../shared-utils/five/fiveModelLoad.js";
175
+ import "../../shared-utils/five/FiveDomEvents.js";
176
+ import "../../shared-utils/five/calculateThreeMouse.js";
177
+ class Fe extends M {
125
178
  constructor(t, i) {
126
- var h, p;
179
+ var h, m;
127
180
  super(t);
128
181
  // =============== public properties =================
129
182
  o(this, "name", "topviewFloorplanPlugin");
@@ -153,8 +206,8 @@ class Ei extends M {
153
206
  o(this, "updateSize", () => {
154
207
  if (!this.data || !this.container || !this.wrapper || this.five.getCurrentState().mode !== "Topview")
155
208
  return !1;
156
- const { min: t, max: i } = this.data.bounding, e = i.x - t.x, s = i.y - t.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = D(this.five, this.wrapper, this.floorIndex, r), h = Math.ceil(e * a), p = Math.ceil(s * a);
157
- return this.size.width === h && this.size.height === p || (this.container.style.width = h + "px", this.container.style.height = p + "px", this.size = { width: h, height: p }), !0;
209
+ const { min: t, max: i } = this.data.bounding, e = i.x - t.x, r = i.y - t.y, n = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = D(this.five, this.wrapper, this.floorIndex, n), h = Math.ceil(e * a), m = Math.ceil(r * a);
210
+ return this.size.width === h && this.size.height === m || (this.container.style.width = h + "px", this.container.style.height = m + "px", this.size = { width: h, height: m }), !0;
158
211
  });
159
212
  /** 销毁插件 */
160
213
  o(this, "dispose", () => {
@@ -168,9 +221,9 @@ class Ei extends M {
168
221
  this.highlightData = {}, this.render();
169
222
  });
170
223
  o(this, "_disable", (t) => {
171
- var e, s;
224
+ var e, r;
172
225
  const { userAction: i } = t;
173
- (e = this.app) == null || e.$destroy(), this.app = void 0, (s = this.container) == null || s.remove(), this.removeEventListener(), this.hooks.emit("disable", { userAction: i });
226
+ (e = this.app) == null || e.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener(), this.hooks.emit("disable", { userAction: i });
174
227
  });
175
228
  /** modelLoaded 之后自动执行 append container 操作 */
176
229
  o(this, "onFiveModelLoaded", () => {
@@ -219,7 +272,7 @@ class Ei extends M {
219
272
  imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
220
273
  imageWidth: 200,
221
274
  imageHeight: 120,
222
- text: (p = (h = i.i18n) == null ? void 0 : h.call(i, "暂无平面图")) != null ? p : "暂无平面图",
275
+ text: (m = (h = i.i18n) == null ? void 0 : h.call(i, "暂无平面图")) != null ? m : "暂无平面图",
223
276
  textFontSize: 14
224
277
  };
225
278
  const e = {
@@ -239,24 +292,24 @@ class Ei extends M {
239
292
  cameraImageUrl: L,
240
293
  attachedTo: _.BOUNDING_CENTER,
241
294
  getLabelElement: void 0,
242
- missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
243
- i18n: (m) => m,
295
+ missingFloorConfig: d(d({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
296
+ i18n: (l) => l,
244
297
  adaptiveRoomLabelVisibleEnable: !0,
245
- getRoomAreaText: (m) => (m / 1e6).toFixed(1) + "㎡",
246
- getRoomDimensionText: (m, w) => (m / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
247
- getRuleDistanceText: (m) => m.toString()
248
- }, s = i ? T(i, ["selector", "scale"]) : {}, r = l(l({}, e.missingFloorConfig), s.missingFloorConfig), a = f(l(l({}, e), s), { missingFloorConfig: r });
298
+ getRoomAreaText: (l) => (l / 1e6).toFixed(1) + "㎡",
299
+ getRoomDimensionText: (l, w) => (l / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
300
+ getRuleDistanceText: (l) => l.toString()
301
+ }, r = i ? T(i, ["selector", "scale"]) : {}, n = d(d({}, e.missingFloorConfig), r.missingFloorConfig), a = f(d(d({}, e), r), { missingFloorConfig: n });
249
302
  this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
250
303
  }
251
304
  load(t, i, e = !0) {
252
305
  return c(this, null, function* () {
253
- function s(m) {
254
- return Object.prototype.hasOwnProperty.apply(m, ["version"]);
306
+ function r(l) {
307
+ return Object.prototype.hasOwnProperty.apply(l, ["version"]);
255
308
  }
256
- const r = t;
257
- r && k(r.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
258
- const a = JSON.parse(JSON.stringify(t)), h = s(a) ? a.data : a, p = this.data;
259
- this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, p), i && this.updateState(i, e), this.render();
309
+ const n = t;
310
+ n && k(n.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
311
+ const a = JSON.parse(JSON.stringify(t)), h = r(a) ? a.data : a, m = this.data;
312
+ this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, m), i && this.updateState(i, e), this.render();
260
313
  });
261
314
  }
262
315
  /** 更新户型图位置 */
@@ -265,8 +318,8 @@ class Ei extends M {
265
318
  const t = O(this.five, this.floorIndex, this.state.config.attachedTo), i = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new S.Vector3()).setY(t);
266
319
  if (!i)
267
320
  return;
268
- const e = i.clone().project(this.five.camera), s = (e.x + 1) / 2, r = -(e.y - 1) / 2;
269
- this.container.style.left = s * 100 + "%", this.container.style.top = r * 100 + "%";
321
+ const e = i.clone().project(this.five.camera), r = (e.x + 1) / 2, n = -(e.y - 1) / 2;
322
+ this.container.style.left = r * 100 + "%", this.container.style.top = n * 100 + "%";
270
323
  }
271
324
  /** 把插件的渲染DOM插入到对应的容器中去 */
272
325
  appendTo(t) {
@@ -303,14 +356,14 @@ class Ei extends M {
303
356
  }
304
357
  /** 更改插件 State */
305
358
  setState(t, i = {}) {
306
- const e = this.state, s = i.userAction !== void 0 ? i.userAction : !0;
307
- if (this.updateState(t, s), t.enabled !== void 0 && e.enabled !== t.enabled) {
308
- const r = { userAction: s };
309
- t.enabled ? this._enable(r) : this._disable(r);
359
+ const e = this.state, r = i.userAction !== void 0 ? i.userAction : !0;
360
+ if (this.updateState(t, r), t.enabled !== void 0 && e.enabled !== t.enabled) {
361
+ const n = { userAction: r };
362
+ t.enabled ? this._enable(n) : this._disable(n);
310
363
  }
311
364
  if (t.visible !== void 0 && e.visible !== t.visible) {
312
- const r = { userAction: s };
313
- t.visible ? this._show(r) : this._hide(r);
365
+ const n = { userAction: r };
366
+ t.visible ? this._show(n) : this._hide(n);
314
367
  }
315
368
  }
316
369
  changeConfigs(t, i = !0) {
@@ -328,8 +381,8 @@ class Ei extends M {
328
381
  this.isHiddenByHideFunc = !1;
329
382
  const { userAction: i } = t;
330
383
  this.hooks.emit("show", { userAction: i, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield P(this.five, ["Topview", void 0, void 0, i])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
331
- const e = 500, s = this.state.config.modelOpacity;
332
- b(this.five, s, e), this.hooks.emit("showAnimationEnded", { userAction: i, auto: !1 }), this.render();
384
+ const e = 500, r = this.state.config.modelOpacity;
385
+ b(this.five, r, e), this.hooks.emit("showAnimationEnded", { userAction: i, auto: !1 }), this.render();
333
386
  });
334
387
  }
335
388
  _hide(t) {
@@ -338,8 +391,8 @@ class Ei extends M {
338
391
  return;
339
392
  const { userAction: i } = t;
340
393
  this.hooks.emit("hide", { userAction: i, auto: !1 });
341
- const e = 1, s = 0;
342
- b(this.five, e, s), this.render();
394
+ const e = 1, r = 0;
395
+ b(this.five, e, r), this.render();
343
396
  });
344
397
  }
345
398
  _enable(t) {
@@ -348,8 +401,8 @@ class Ei extends M {
348
401
  }
349
402
  updateState(t, i) {
350
403
  var a;
351
- const e = this.state, s = (a = t.config) != null && a.missingFloorConfig ? l(l({}, e.config.missingFloorConfig), t.config.missingFloorConfig) : e.config.missingFloorConfig, r = t.config ? f(l(l({}, e.config), t.config), { missingFloorConfig: s }) : e.config;
352
- this.state = f(l(l({}, this.state), t), { config: r }), !y(this.state, e, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
404
+ const e = this.state, r = (a = t.config) != null && a.missingFloorConfig ? d(d({}, e.config.missingFloorConfig), t.config.missingFloorConfig) : e.config.missingFloorConfig, n = t.config ? f(d(d({}, e.config), t.config), { missingFloorConfig: r }) : e.config;
405
+ this.state = f(d(d({}, this.state), t), { config: n }), !y(this.state, e, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
353
406
  }
354
407
  addEventListener() {
355
408
  if (!this.state.enabled || this.hasAddedEventListener)
@@ -379,7 +432,7 @@ class Ei extends M {
379
432
  render(t) {
380
433
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
381
434
  return;
382
- const i = f(l({}, this.state.config), {
435
+ const i = f(d({}, this.state.config), {
383
436
  visible: this.state.visible,
384
437
  duration: t != null ? t : 0,
385
438
  panoIndex: this.panoIndex,
@@ -394,5 +447,5 @@ class Ei extends M {
394
447
  }
395
448
  }
396
449
  export {
397
- Ei as Controller
450
+ Fe as Controller
398
451
  };
@@ -47,7 +47,10 @@ import "../../shared-utils/Utils/BaseUtil.js";
47
47
  import "../../shared-utils/Utils/WorkUtil.js";
48
48
  import "../../shared-utils/five/transformPosition.js";
49
49
  import "../../shared-utils/three/temp.js";
50
+ import "../../shared-utils/three/core/Raycaster.js";
50
51
  import "../../shared-utils/dom/resizeObserver.js";
52
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
53
+ import "../../shared-utils/throttle.js";
51
54
  import "hammerjs";
52
55
  import "../../shared-utils/three/PointSelector/index.js";
53
56
  import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -68,33 +71,83 @@ import "../../shared-utils/three/core/Sphere.js";
68
71
  import "animejs";
69
72
  import "../../shared-utils/isNil.js";
70
73
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
71
- import "../../shared-utils/three/PointSelector/utils/html.js";
72
- import "../../shared-utils/five/initialCSS3DRender.js";
74
+ import "../../Sculpt/Meshes/Polygon.js";
75
+ import "../../shared-utils/three/generatePolygonGeometry.js";
76
+ import "../../shared-utils/three/earcut3D.js";
77
+ import "earcut";
78
+ import "../../shared-utils/three/getNormal.js";
79
+ import "../../PanoMeasurePlugin/utils/isIntersecting.js";
80
+ import "../../Sculpt/typings/style.js";
81
+ import "../../Sculpt/utils/three/ColoredMesh.js";
82
+ import "../../shared-utils/three/IObject3D.js";
83
+ import "../../Sculpt/utils/Modules/Global.js";
84
+ import "../../Sculpt/utils/Modules/Cursor.js";
85
+ import "../../Object3DHelperPlugin/Controller.js";
86
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
87
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
88
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
89
+ import "../../shared-utils/three/boundingBox.js";
90
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
91
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
92
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
93
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
94
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
73
95
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
74
96
  import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
75
97
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
98
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
99
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
100
+ import "../../shared-utils/util.js";
101
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
102
+ import "../../shared-utils/three/PointSelector/utils/html.js";
103
+ import "../../shared-utils/five/initialCSS3DRender.js";
76
104
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
77
105
  import "../../Sculpt/Meshes/Line.js";
78
- import "../../Sculpt/typings/style.js";
79
106
  import "../../shared-utils/five/FiveLine.js";
80
- import "../../shared-utils/three/IObject3D.js";
81
107
  import "../../Sculpt/utils/removeAllTag.js";
82
108
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
83
109
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
84
- import "../../shared-utils/util.js";
110
+ import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
111
+ import "../../Sculpt/utils/three/rayOnLine.js";
85
112
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
113
+ import "../../shared-utils/url/absoluteUrl.js";
114
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
115
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
116
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
117
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
118
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
119
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
120
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
121
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
122
+ import "../../shared-utils/threex/domevents/index.js";
123
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
124
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
125
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
126
+ import "../../shared-utils/Object3DHelper/index.js";
127
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
128
+ import "../../shared-utils/math/deg2Rad.js";
129
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
130
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
131
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
132
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
133
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
134
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
135
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
136
+ import "../../shared-utils/five/fiveModelLoad.js";
137
+ import "../../shared-utils/five/FiveDomEvents.js";
138
+ import "../../shared-utils/five/calculateThreeMouse.js";
86
139
  import "../../shared-utils/isTouchDevice.js";
140
+ import "../../shared-utils/three/geometryUtil.js";
87
141
  import "../../shared-utils/five/getPosition.js";
88
142
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
89
143
  import "../../shared-utils/three/PointSelector/utils/contents.js";
90
- import "../../shared-utils/url/absoluteUrl.js";
91
144
  import "../../shared-utils/five/changeMode.js";
92
145
  import "../../shared-utils/nearlyEqual.js";
93
146
  import "../../shared-utils/to.js";
94
147
  import "../../shared-utils/getPxmm.js";
95
148
  import "../../shared-utils/changeModelCanvasOpacity.js";
96
- const So = (o, r) => new t(o, r);
149
+ const Rr = (o, r) => new t(o, r);
97
150
  export {
98
- So as TopviewFloorplanPlugin,
99
- So as default
151
+ Rr as TopviewFloorplanPlugin,
152
+ Rr as default
100
153
  };
@@ -9,4 +9,8 @@ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
9
9
  import "../shared-utils/three/core/Sphere.js";
10
10
  import "animejs";
11
11
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
12
+ import "../Sculpt/Meshes/Polygon.js";
13
+ import "../Sculpt/utils/Modules/Global.js";
14
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
15
+ import "../Sculpt/utils/three/rayOnLine.js";
12
16
  import "../shared-utils/nearlyEqual.js";