@realsee/dnalogel 3.50.14 → 3.50.15-alpha.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 (107) hide show
  1. package/README.md +116 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  3. package/dist/Sculpt/index.d.ts +2 -2
  4. package/dist/index.cjs.js +255 -255
  5. package/dist/index.js +2733 -2732
  6. package/dist/index.umd.js +251 -251
  7. package/dist/shared-utils/tag.d.ts +1 -1
  8. package/dist/shared-utils/three/index.d.ts +1 -0
  9. package/libs/AreaMakerPlugin/Controller.js +104 -74
  10. package/libs/AreaMakerPlugin/index.js +33 -3
  11. package/libs/AreaMakerPlugin/utils/Item.js +66 -36
  12. package/libs/CSS3DRenderPlugin/Controller.js +35 -15
  13. package/libs/CSS3DRenderPlugin/index.js +34 -14
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
  16. package/libs/CruisePlugin/BaseController.js +59 -29
  17. package/libs/CruisePlugin/Move.js +32 -13
  18. package/libs/CruisePlugin/Work.js +65 -46
  19. package/libs/CruisePlugin/index.js +37 -18
  20. package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
  21. package/libs/CurrentPanoImagePlugin/index.js +34 -4
  22. package/libs/GuideLinePlugin/Controller.js +59 -40
  23. package/libs/GuideLinePlugin/GuideLineItem.js +33 -14
  24. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  25. package/libs/GuideLinePlugin/GuideLineModeItem.js +33 -14
  26. package/libs/GuideLinePlugin/index.js +37 -18
  27. package/libs/ModelMakerPlugin/Controller.js +50 -32
  28. package/libs/ModelMakerPlugin/index.js +33 -15
  29. package/libs/ModelTVVideoPlugin/Plugin.js +47 -27
  30. package/libs/ModelTVVideoPlugin/index.js +23 -3
  31. package/libs/Object3DHelperPlugin/Controller.js +49 -30
  32. package/libs/Object3DHelperPlugin/index.js +36 -17
  33. package/libs/PanoCompassPlugin/Controller.js +33 -13
  34. package/libs/PanoCompassPlugin/index.js +34 -14
  35. package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
  36. package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
  37. package/libs/PanoDoorLabelPlugin/index.js +34 -4
  38. package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
  39. package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
  41. package/libs/PanoMeasurePlugin/Controller/index.js +15 -15
  42. package/libs/PanoMeasurePlugin/Model/area.js +41 -15
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
  45. package/libs/PanoMeasurePlugin/index.js +3 -3
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
  47. package/libs/PanoRulerProPlugin/Controller.js +60 -30
  48. package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
  49. package/libs/PanoRulerProPlugin/index.js +33 -3
  50. package/libs/PanoSpatialTagPlugin/Plugin.js +53 -33
  51. package/libs/PanoSpatialTagPlugin/index.js +21 -1
  52. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  53. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
  54. package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
  55. package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
  56. package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
  57. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
  58. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
  59. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
  60. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
  61. package/libs/PanoTagPlugin/controller/TagRender.js +47 -28
  62. package/libs/PanoTagPlugin/controller/TagUtil.js +32 -13
  63. package/libs/PanoTagPlugin/controller/index.js +45 -26
  64. package/libs/PanoTagPlugin/index.js +40 -21
  65. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
  66. package/libs/PanoVideoPlugin/Controller.js +91 -61
  67. package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
  68. package/libs/PanoVideoPlugin/index.js +36 -6
  69. package/libs/PipelinePlugin/Controller.js +80 -51
  70. package/libs/PipelinePlugin/index.js +34 -5
  71. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
  72. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
  73. package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
  74. package/libs/Sculpt/Meshes/Box.js +3 -2
  75. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  76. package/libs/Sculpt/Meshes/Line.js +9 -8
  77. package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
  78. package/libs/Sculpt/Meshes/Point.js +3 -2
  79. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  80. package/libs/Sculpt/Meshes/Prism.js +8 -7
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  82. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  83. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  84. package/libs/Sculpt/index.d.ts +2 -2
  85. package/libs/Sculpt/index.js +3 -2
  86. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
  87. package/libs/base/BasePlugin.js +4 -3
  88. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +88 -59
  89. package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
  90. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
  91. package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
  94. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
  95. package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
  96. package/libs/floorplan/index.js +1 -0
  97. package/libs/index.js +28 -28
  98. package/libs/shared-utils/five/index.js +3 -2
  99. package/libs/shared-utils/five/lookObject.js +3 -2
  100. package/libs/shared-utils/index.js +44 -42
  101. package/libs/shared-utils/logger.js +1 -1
  102. package/libs/shared-utils/tag.d.ts +1 -1
  103. package/libs/shared-utils/tag.js +41 -41
  104. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  105. package/libs/shared-utils/three/index.d.ts +1 -0
  106. package/libs/shared-utils/three/index.js +1 -0
  107. package/package.json +1 -1
@@ -2,30 +2,30 @@ var F = Object.defineProperty, P = Object.defineProperties;
2
2
  var E = Object.getOwnPropertyDescriptors;
3
3
  var w = Object.getOwnPropertySymbols;
4
4
  var x = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
- var v = (d, r, t) => r in d ? F(d, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[r] = t, l = (d, r) => {
6
- for (var t in r || (r = {}))
7
- x.call(r, t) && v(d, t, r[t]);
5
+ var v = (d, n, t) => n in d ? F(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, l = (d, n) => {
6
+ for (var t in n || (n = {}))
7
+ x.call(n, t) && v(d, t, n[t]);
8
8
  if (w)
9
- for (var t of w(r))
10
- I.call(r, t) && v(d, t, r[t]);
9
+ for (var t of w(n))
10
+ I.call(n, t) && v(d, t, n[t]);
11
11
  return d;
12
- }, p = (d, r) => P(d, E(r));
13
- var o = (d, r, t) => (v(d, typeof r != "symbol" ? r + "" : r, t), t);
14
- var u = (d, r, t) => new Promise((e, i) => {
15
- var n = (a) => {
12
+ }, u = (d, n) => P(d, E(n));
13
+ var o = (d, n, t) => (v(d, typeof n != "symbol" ? n + "" : n, t), t);
14
+ var f = (d, n, t) => new Promise((e, i) => {
15
+ var r = (a) => {
16
16
  try {
17
17
  s(t.next(a));
18
- } catch (f) {
19
- i(f);
18
+ } catch (m) {
19
+ i(m);
20
20
  }
21
21
  }, h = (a) => {
22
22
  try {
23
23
  s(t.throw(a));
24
- } catch (f) {
25
- i(f);
24
+ } catch (m) {
25
+ i(m);
26
26
  }
27
- }, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(n, h);
28
- s((t = t.apply(d, r)).next());
27
+ }, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(r, h);
28
+ s((t = t.apply(d, n)).next());
29
29
  });
30
30
  import * as b from "three";
31
31
  import { to as M } from "../../shared-utils/to.js";
@@ -39,9 +39,10 @@ import { Controller as O } from "../../base/BasePluginWithData.js";
39
39
  import { getPxmm as T, getAttachedY as k } from "../../shared-utils/getPxmm.js";
40
40
  import { correctFiveState as R } from "../utils/correctFiveState.js";
41
41
  import { changeModelCanvasOpacity as A } from "../../shared-utils/changeModelCanvasOpacity.js";
42
- import { FloorplanErrorType as m, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
42
+ import { FloorplanErrorType as c, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
43
43
  import "../../shared-utils/tag.js";
44
44
  import "hammerjs";
45
+ import "../../shared-utils/three/PointSelector/index.js";
45
46
  import "three/examples/jsm/renderers/CSS3DRenderer";
46
47
  import "@realsee/five/line";
47
48
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
@@ -93,19 +94,47 @@ import "../../shared-utils/positionToVector3.js";
93
94
  import "../../shared-utils/five/vector3ToScreen.js";
94
95
  import "../../shared-utils/three/temp.js";
95
96
  import "../../shared-utils/dom/resizeObserver.js";
97
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
98
+ import "../../shared-utils/three/Magnifier.js";
99
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
100
+ import "../../shared-utils/three/Assets/index.js";
101
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
102
+ import "../../CSS3DRenderPlugin/utils/even.js";
103
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
104
+ import "../../shared-utils/three/centerPoint.js";
105
+ import "../../shared-utils/three/getObjectVisible.js";
106
+ import "../../shared-utils/three/PointSelector/utils/html.js";
107
+ import "../../shared-utils/five/initialCSS3DRender.js";
108
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
109
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
110
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
111
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
112
+ import "../../Sculpt/Meshes/Line.js";
113
+ import "../../Sculpt/typings/style.js";
114
+ import "../../shared-utils/five/FiveLine.js";
115
+ import "../../shared-utils/three/IObject3D.js";
116
+ import "../../Sculpt/utils/removeAllTag.js";
117
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
118
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
119
+ import "../../shared-utils/util.js";
120
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
121
+ import "../../shared-utils/isTouchDevice.js";
122
+ import "../../shared-utils/five/getPosition.js";
123
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
124
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
96
125
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
97
126
  import "../../vendor/three/build/three.module.js";
98
127
  function W(d) {
99
- const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
128
+ const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
100
129
  return e || i;
101
130
  }
102
131
  function G(d) {
103
- const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
132
+ const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
104
133
  return e && i;
105
134
  }
106
- class ie extends O {
135
+ class Le extends O {
107
136
  constructor(t, e) {
108
- var a, f;
137
+ var a, m;
109
138
  super(t);
110
139
  // =============== public properties =================
111
140
  o(this, "name", "modelFloorplanPlugin");
@@ -154,22 +183,22 @@ class ie extends O {
154
183
  * @param opts.isAutoShow 是否是自动展示
155
184
  * @param opts.userAction 是否是用户行为
156
185
  */
157
- o(this, "show", (...e) => u(this, [...e], function* (t = {}) {
186
+ o(this, "show", (...e) => f(this, [...e], function* (t = {}) {
158
187
  if (!this.state.enabled || !this.showPromise && this.state.visible)
159
188
  return;
160
189
  const i = t.userAction !== void 0 ? t.userAction : !0;
161
190
  this.updateState({ visible: !0 }, i), this._show(t);
162
191
  }));
163
192
  /** 隐藏户型图 */
164
- o(this, "hide", (...e) => u(this, [...e], function* (t = {}) {
193
+ o(this, "hide", (...e) => f(this, [...e], function* (t = {}) {
165
194
  this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, t.userAction || !0), this._hide(t)));
166
195
  }));
167
196
  /** 更新户型图大小 */
168
197
  o(this, "updateSize", () => {
169
198
  if (!this.data || !this.container || !this.wrapper)
170
199
  return !1;
171
- const { min: t, max: e } = this.data.bounding, i = e.x - t.x, n = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, s = T(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), f = Math.ceil(n * s);
172
- return this.size.width === a && this.size.height === f || (this.container.style.width = a + "px", this.container.style.height = f + "px", this.size = { width: a, height: f }), !0;
200
+ const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, s = T(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), m = Math.ceil(r * s);
201
+ return this.size.width === a && this.size.height === m || (this.container.style.width = a + "px", this.container.style.height = m + "px", this.size = { width: a, height: m }), !0;
173
202
  });
174
203
  o(this, "highlight", (t) => {
175
204
  this.state.config.highlightEnable && (this.highlightData = t, this.render());
@@ -178,22 +207,22 @@ class ie extends O {
178
207
  this.highlightData = {}, this.render();
179
208
  });
180
209
  o(this, "_disable", (t) => {
181
- var i, n, h;
210
+ var i, r, h;
182
211
  const { userAction: e } = t;
183
- this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, m.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
212
+ this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (r = this.app) == null || r.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
184
213
  });
185
214
  o(this, "_enable", (t) => {
186
215
  const { userAction: e } = t;
187
216
  this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
188
217
  });
189
- o(this, "_show", (t) => u(this, null, function* () {
218
+ o(this, "_show", (t) => f(this, null, function* () {
190
219
  var h;
191
220
  if (!this.state.enabled)
192
221
  return;
193
222
  if (!((h = this.fiveUtil.model) != null && h.loaded))
194
- throw new Error(m.ModelNotLoaded);
223
+ throw new Error(c.ModelNotLoaded);
195
224
  if (!this.data)
196
- throw new Error(m.DataNotLoaded);
225
+ throw new Error(c.DataNotLoaded);
197
226
  if (this.showPromise)
198
227
  return this.showPromise;
199
228
  const e = {
@@ -202,22 +231,22 @@ class ie extends O {
202
231
  immediately: !1,
203
232
  isAutoShow: !1,
204
233
  userAction: !0
205
- }, i = l(l({}, e), t), n = () => u(this, null, function* () {
234
+ }, i = l(l({}, e), t), r = () => f(this, null, function* () {
206
235
  this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
207
236
  let s = !1, a;
208
237
  this.showRejection = (g) => {
209
238
  s = !0, a = g;
210
239
  };
211
- const [f] = yield M(R(this.five, this.showState, i.userAction));
212
- if (f)
213
- throw f;
240
+ const [m] = yield M(R(this.five, this.showState, i.userAction));
241
+ if (m)
242
+ throw m;
214
243
  if (s)
215
- throw a ? new Error(a) : new Error(m.UnknownError);
244
+ throw a ? new Error(a) : new Error(c.UnknownError);
216
245
  if (!this.updateSize())
217
- throw new Error(m.UpdateSizeError);
246
+ throw new Error(c.UpdateSizeError);
218
247
  this.updatePosition(), this.floorIndex = i.floorIndex, this.fiveUtil.model.show(this.floorIndex);
219
248
  });
220
- return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
249
+ return this.isHiddenByHideFunc = !1, this.showPromise = r().then(() => {
221
250
  this.showPromise = void 0, this.showRejection = void 0;
222
251
  const s = i.modelOpacity, a = i.immediately ? 0 : H;
223
252
  A(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
@@ -230,8 +259,8 @@ class ie extends O {
230
259
  }), this.showPromise;
231
260
  }));
232
261
  o(this, "_hide", (t) => {
233
- var n;
234
- (n = this.showRejection) == null || n.call(this, m.BreakOffByHide), this.showPromise = void 0;
262
+ var r;
263
+ (r = this.showRejection) == null || r.call(this, c.BreakOffByHide), this.showPromise = void 0;
235
264
  const i = l(l({}, {
236
265
  userAction: !0,
237
266
  isAutoHide: !1
@@ -308,7 +337,7 @@ class ie extends O {
308
337
  imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
309
338
  imageWidth: 200,
310
339
  imageHeight: 120,
311
- text: (f = (a = e.i18n) == null ? void 0 : a.call(e, "暂无平面图")) != null ? f : "暂无平面图",
340
+ text: (m = (a = e.i18n) == null ? void 0 : a.call(e, "暂无平面图")) != null ? m : "暂无平面图",
312
341
  textFontSize: 14
313
342
  };
314
343
  const i = {
@@ -329,22 +358,22 @@ class ie extends O {
329
358
  getLabelElement: void 0,
330
359
  adaptiveRoomLabelVisibleEnable: !0,
331
360
  missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
332
- i18n: (c) => c,
333
- getRoomAreaText: (c) => (c / 1e6).toFixed(1) + "㎡",
334
- getRoomDimensionText: (c, g) => (c / 1e3).toFixed(1) + "m × " + (g / 1e3).toFixed(1) + "m",
335
- getRuleDistanceText: (c) => c.toString()
336
- }, n = e ? C(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), n.missingFloorConfig), s = p(l(l({}, i), n), { missingFloorConfig: h });
361
+ i18n: (p) => p,
362
+ getRoomAreaText: (p) => (p / 1e6).toFixed(1) + "㎡",
363
+ getRoomDimensionText: (p, g) => (p / 1e3).toFixed(1) + "m × " + (g / 1e3).toFixed(1) + "m",
364
+ getRuleDistanceText: (p) => p.toString()
365
+ }, r = e ? C(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), r.missingFloorConfig), s = u(l(l({}, i), r), { missingFloorConfig: h });
337
366
  this.state = { enabled: !0, visible: !1, config: s }, this.initContainer(), z(t).then(this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
338
367
  }
339
368
  load(t, e, i = !0) {
340
- return u(this, null, function* () {
341
- function n(c) {
342
- return Object.prototype.hasOwnProperty.apply(c, ["version"]);
369
+ return f(this, null, function* () {
370
+ function r(p) {
371
+ return Object.prototype.hasOwnProperty.apply(p, ["version"]);
343
372
  }
344
373
  const h = t;
345
374
  h && U(h.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
346
- const s = JSON.parse(JSON.stringify(t)), a = n(s) ? s.data : s, f = this.data;
347
- this.data = yield S(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, f), e && this.updateState(e, i), this.render();
375
+ const s = JSON.parse(JSON.stringify(t)), a = r(s) ? s.data : s, m = this.data;
376
+ this.data = yield S(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, m), e && this.updateState(e, i), this.render();
348
377
  });
349
378
  }
350
379
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -368,9 +397,9 @@ class ie extends O {
368
397
  }
369
398
  /** 更改插件 State */
370
399
  setState(t, e = {}) {
371
- const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
372
- if (this.updateState(t, n), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: n }) : this._disable({ userAction: n })), t.visible !== void 0 && i.visible !== t.visible) {
373
- const h = { userAction: n };
400
+ const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
401
+ if (this.updateState(t, r), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: r }) : this._disable({ userAction: r })), t.visible !== void 0 && i.visible !== t.visible) {
402
+ const h = { userAction: r };
374
403
  t.visible ? this._show(h) : this._hide(h);
375
404
  }
376
405
  }
@@ -383,18 +412,18 @@ class ie extends O {
383
412
  const t = k(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.fiveUtil.model) == null ? void 0 : s.bounding.getCenter(new b.Vector3()).setY(t);
384
413
  if (!e)
385
414
  return;
386
- const i = e.clone().project(this.five.camera), n = (i.x + 1) / 2, h = -(i.y - 1) / 2;
387
- this.container.style.left = n * 100 + "%", this.container.style.top = h * 100 + "%";
415
+ const i = e.clone().project(this.five.camera), r = (i.x + 1) / 2, h = -(i.y - 1) / 2;
416
+ this.container.style.left = r * 100 + "%", this.container.style.top = h * 100 + "%";
388
417
  }
389
418
  formatData(t) {
390
- return u(this, null, function* () {
419
+ return f(this, null, function* () {
391
420
  return yield S(t.data);
392
421
  });
393
422
  }
394
423
  updateState(t, e) {
395
424
  var s;
396
- const i = this.state, n = (s = t.config) != null && s.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, h = t.config ? p(l(l({}, i.config), t.config), { missingFloorConfig: n }) : i.config;
397
- this.state = p(l(l({}, this.state), t), { config: h }), !y(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
425
+ const i = this.state, r = (s = t.config) != null && s.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, h = t.config ? u(l(l({}, i.config), t.config), { missingFloorConfig: r }) : i.config;
426
+ this.state = u(l(l({}, this.state), t), { config: h }), !y(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
398
427
  }
399
428
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
400
429
  *
@@ -423,7 +452,7 @@ class ie extends O {
423
452
  render(t) {
424
453
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
425
454
  return;
426
- const e = p(l({}, this.state.config), {
455
+ const e = u(l({}, this.state.config), {
427
456
  visible: this.state.visible,
428
457
  duration: t != null ? t : 0,
429
458
  panoIndex: this.panoIndex,
@@ -438,5 +467,5 @@ class ie extends O {
438
467
  }
439
468
  }
440
469
  export {
441
- ie as Controller
470
+ Le as Controller
442
471
  };
@@ -50,25 +50,54 @@ import "../../shared-utils/five/transformPosition.js";
50
50
  import "../../shared-utils/three/temp.js";
51
51
  import "../../shared-utils/dom/resizeObserver.js";
52
52
  import "hammerjs";
53
+ import "../../shared-utils/three/PointSelector/index.js";
54
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
55
+ import "../../shared-utils/three/Magnifier.js";
56
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
57
+ import "../../shared-utils/three/Assets/index.js";
58
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
53
59
  import "three/examples/jsm/renderers/CSS3DRenderer";
60
+ import "../../CSS3DRenderPlugin/utils/even.js";
61
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
62
+ import "../../shared-utils/three/centerPoint.js";
63
+ import "../../shared-utils/three/getObjectVisible.js";
54
64
  import "@realsee/five/line";
55
65
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
56
66
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
57
67
  import "../../vendor/three/build/three.module.js";
58
68
  import "../../shared-utils/three/core/Sphere.js";
59
69
  import "animejs";
60
- import "../../shared-utils/url/absoluteUrl.js";
70
+ import "../../shared-utils/isNil.js";
61
71
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
72
+ import "../../shared-utils/three/PointSelector/utils/html.js";
73
+ import "../../shared-utils/five/initialCSS3DRender.js";
74
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
75
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
76
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
77
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
78
+ import "../../Sculpt/Meshes/Line.js";
79
+ import "../../Sculpt/typings/style.js";
80
+ import "../../shared-utils/five/FiveLine.js";
81
+ import "../../shared-utils/three/IObject3D.js";
82
+ import "../../Sculpt/utils/removeAllTag.js";
83
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
84
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
85
+ import "../../shared-utils/util.js";
86
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
87
+ import "../../shared-utils/isTouchDevice.js";
88
+ import "../../shared-utils/five/getPosition.js";
89
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
90
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
91
+ import "../../shared-utils/url/absoluteUrl.js";
62
92
  import "../../shared-utils/getPxmm.js";
63
93
  import "../utils/correctFiveState.js";
64
94
  import "../utils/constant.js";
65
95
  import "../../shared-utils/nearlyEqual.js";
66
96
  import "../../shared-utils/five/changeMode.js";
67
97
  import "../../shared-utils/changeModelCanvasOpacity.js";
68
- import "../../shared-utils/isNil.js";
69
98
  import "../../shared-utils/five/fiveModelLoad.js";
70
- const Co = (o, r) => new t(o, r);
99
+ const Wo = (o, r) => new t(o, r);
71
100
  export {
72
- Co as MapviewFloorplanPlugin,
73
- Co as default
101
+ Wo as MapviewFloorplanPlugin,
102
+ Wo as default
74
103
  };
@@ -11,21 +11,21 @@ var v = (d, s, t) => s in d ? C(d, s, { enumerable: !0, configurable: !0, writab
11
11
  return d;
12
12
  }, g = (d, s) => S(d, E(s));
13
13
  var o = (d, s, t) => (v(d, typeof s != "symbol" ? s + "" : s, t), t);
14
- var c = (d, s, t) => new Promise((e, i) => {
15
- var n = (a) => {
14
+ var u = (d, s, t) => new Promise((e, i) => {
15
+ var r = (a) => {
16
16
  try {
17
- r(t.next(a));
17
+ n(t.next(a));
18
18
  } catch (f) {
19
19
  i(f);
20
20
  }
21
21
  }, h = (a) => {
22
22
  try {
23
- r(t.throw(a));
23
+ n(t.throw(a));
24
24
  } catch (f) {
25
25
  i(f);
26
26
  }
27
- }, r = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(n, h);
28
- r((t = t.apply(d, s)).next());
27
+ }, n = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(r, h);
28
+ n((t = t.apply(d, s)).next());
29
29
  });
30
30
  import { to as I } from "../../shared-utils/to.js";
31
31
  import { equal as M } from "../../shared-utils/equal.js";
@@ -38,10 +38,11 @@ import { FLOOR_PLAN_ATTACHED_TO as O } from "../constant.js";
38
38
  import { Controller as T } from "../../base/BasePluginWithData.js";
39
39
  import { correctFiveState as k } from "../utils/correctFiveState.js";
40
40
  import { changeModelCanvasOpacity as F } from "../../shared-utils/changeModelCanvasOpacity.js";
41
- import { FIVE_CAMERA_DEFAULT_FOV as R, FloorplanErrorType as p, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
41
+ import { FIVE_CAMERA_DEFAULT_FOV as R, FloorplanErrorType as m, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
42
42
  import "../../shared-utils/tag.js";
43
43
  import "three";
44
44
  import "hammerjs";
45
+ import "../../shared-utils/three/PointSelector/index.js";
45
46
  import "three/examples/jsm/renderers/CSS3DRenderer";
46
47
  import "@realsee/five/line";
47
48
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
@@ -92,6 +93,34 @@ import "../../shared-utils/positionToVector3.js";
92
93
  import "../../shared-utils/five/vector3ToScreen.js";
93
94
  import "../../shared-utils/three/temp.js";
94
95
  import "../../shared-utils/dom/resizeObserver.js";
96
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
97
+ import "../../shared-utils/three/Magnifier.js";
98
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
99
+ import "../../shared-utils/three/Assets/index.js";
100
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
101
+ import "../../CSS3DRenderPlugin/utils/even.js";
102
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
103
+ import "../../shared-utils/three/centerPoint.js";
104
+ import "../../shared-utils/three/getObjectVisible.js";
105
+ import "../../shared-utils/three/PointSelector/utils/html.js";
106
+ import "../../shared-utils/five/initialCSS3DRender.js";
107
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
108
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
109
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.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/three/IObject3D.js";
115
+ import "../../Sculpt/utils/removeAllTag.js";
116
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
117
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
118
+ import "../../shared-utils/util.js";
119
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
120
+ import "../../shared-utils/isTouchDevice.js";
121
+ import "../../shared-utils/five/getPosition.js";
122
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
123
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
95
124
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
96
125
  import "../../vendor/three/build/three.module.js";
97
126
  function W(d) {
@@ -102,9 +131,9 @@ function z(d) {
102
131
  const { latitude: s, longitude: t } = d, e = Math.abs(s - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
103
132
  return e && i;
104
133
  }
105
- class ee extends T {
134
+ class _e extends T {
106
135
  constructor(t, e) {
107
- var a, f, m;
136
+ var a, f, c;
108
137
  super(t);
109
138
  // =============== public properties =================
110
139
  o(this, "name", "modelFloorplanPlugin");
@@ -153,21 +182,21 @@ class ee extends T {
153
182
  * @param opts.isAutoShow 是否是自动展示
154
183
  * @param opts.userAction 是否是用户行为
155
184
  */
156
- o(this, "show", (...e) => c(this, [...e], function* (t = {}) {
185
+ o(this, "show", (...e) => u(this, [...e], function* (t = {}) {
157
186
  if (!this.state.enabled || !this.showPromise && this.state.visible)
158
187
  return;
159
188
  const i = t.userAction !== void 0 ? t.userAction : !0;
160
189
  this.updateState({ visible: !0 }, i), this._show(t);
161
190
  }));
162
191
  /** 隐藏户型图 */
163
- o(this, "hide", (...e) => c(this, [...e], function* (t = {}) {
192
+ o(this, "hide", (...e) => u(this, [...e], function* (t = {}) {
164
193
  this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, t.userAction || !0), this._hide(t)));
165
194
  }));
166
195
  /** 更新户型图大小 */
167
196
  o(this, "updateSize", () => {
168
197
  if (!this.data || !this.container || !this.wrapper)
169
198
  return !1;
170
- const { min: t, max: e } = this.data.bounding, i = e.x - t.x, n = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = D(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * r), f = Math.ceil(n * r);
199
+ const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, n = D(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * n), f = Math.ceil(r * n);
171
200
  return this.size.width === a && this.size.height === f || (this.container.style.width = a + "px", this.container.style.height = f + "px", this.size = { width: a, height: f }), !0;
172
201
  });
173
202
  o(this, "highlight", (t) => {
@@ -177,22 +206,22 @@ class ee extends T {
177
206
  this.highlightData = {}, this.render();
178
207
  });
179
208
  o(this, "_disable", (t) => {
180
- var i, n, h;
209
+ var i, r, h;
181
210
  const { userAction: e } = t;
182
- this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, p.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
211
+ this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, m.BreakOffByDisable), this.showPromise = void 0, (r = this.app) == null || r.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
183
212
  });
184
213
  o(this, "_enable", (t) => {
185
214
  const { userAction: e } = t;
186
215
  this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
187
216
  });
188
- o(this, "_show", (t) => c(this, null, function* () {
217
+ o(this, "_show", (t) => u(this, null, function* () {
189
218
  var h;
190
219
  if (!this.state.enabled)
191
220
  return;
192
221
  if (!((h = this.five.model) != null && h.loaded))
193
- throw new Error(p.ModelNotLoaded);
222
+ throw new Error(m.ModelNotLoaded);
194
223
  if (!this.data)
195
- throw new Error(p.DataNotLoaded);
224
+ throw new Error(m.DataNotLoaded);
196
225
  if (this.showPromise)
197
226
  return this.showPromise;
198
227
  const e = {
@@ -201,36 +230,36 @@ class ee extends T {
201
230
  immediately: !1,
202
231
  isAutoShow: !1,
203
232
  userAction: !0
204
- }, i = l(l({}, e), t), n = () => c(this, null, function* () {
233
+ }, i = l(l({}, e), t), r = () => u(this, null, function* () {
205
234
  this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
206
- let r = !1, a;
207
- this.showRejection = (u) => {
208
- r = !0, a = u;
235
+ let n = !1, a;
236
+ this.showRejection = (p) => {
237
+ n = !0, a = p;
209
238
  };
210
239
  const [f] = yield I(k(this.five, this.showState, i.userAction));
211
240
  if (f)
212
241
  throw f;
213
- if (r)
214
- throw a ? new Error(a) : new Error(p.UnknownError);
242
+ if (n)
243
+ throw a ? new Error(a) : new Error(m.UnknownError);
215
244
  if (!this.updateSize())
216
- throw new Error(p.UpdateSizeError);
245
+ throw new Error(m.UpdateSizeError);
217
246
  this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
218
247
  });
219
- return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
248
+ return this.isHiddenByHideFunc = !1, this.showPromise = r().then(() => {
220
249
  this.showPromise = void 0, this.showRejection = void 0;
221
- const r = i.modelOpacity, a = i.immediately ? 0 : H;
222
- F(this.five, r, a), this.render(a), this.hooks.emit("showAnimationEnded", {
250
+ const n = i.modelOpacity, a = i.immediately ? 0 : H;
251
+ F(this.five, n, a), this.render(a), this.hooks.emit("showAnimationEnded", {
223
252
  auto: i.isAutoShow,
224
253
  userAction: i.userAction
225
254
  });
226
- }).catch((r) => {
227
- if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && r instanceof Error)
228
- throw r;
255
+ }).catch((n) => {
256
+ if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && n instanceof Error)
257
+ throw n;
229
258
  }), this.showPromise;
230
259
  }));
231
260
  o(this, "_hide", (t) => {
232
- var n;
233
- (n = this.showRejection) == null || n.call(this, p.BreakOffByHide), this.showPromise = void 0;
261
+ var r;
262
+ (r = this.showRejection) == null || r.call(this, m.BreakOffByHide), this.showPromise = void 0;
234
263
  const i = l(l({}, {
235
264
  userAction: !0,
236
265
  isAutoHide: !1
@@ -311,7 +340,7 @@ class ee extends T {
311
340
  imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
312
341
  imageWidth: 200,
313
342
  imageHeight: 120,
314
- text: (m = (f = e.i18n) == null ? void 0 : f.call(e, "暂无平面图")) != null ? m : "暂无平面图",
343
+ text: (c = (f = e.i18n) == null ? void 0 : f.call(e, "暂无平面图")) != null ? c : "暂无平面图",
315
344
  textFontSize: 14
316
345
  };
317
346
  const i = {
@@ -332,21 +361,21 @@ class ee extends T {
332
361
  attachedTo: O.BOUNDING_CENTER,
333
362
  getLabelElement: void 0,
334
363
  missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
335
- i18n: (u) => u,
336
- getRoomAreaText: (u) => (u / 1e6).toFixed(1) + "㎡",
337
- getRoomDimensionText: (u, A) => (u / 1e3).toFixed(1) + "m × " + (A / 1e3).toFixed(1) + "m",
338
- getRuleDistanceText: (u) => u.toString()
339
- }, n = e ? L(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), n.missingFloorConfig), r = g(l(l({}, i), n), { missingFloorConfig: h });
340
- this.state = { enabled: !0, visible: !1, config: r }, this.initContainer(), t.once("dispose", this.dispose), this.addEventListener();
364
+ i18n: (p) => p,
365
+ getRoomAreaText: (p) => (p / 1e6).toFixed(1) + "㎡",
366
+ getRoomDimensionText: (p, A) => (p / 1e3).toFixed(1) + "m × " + (A / 1e3).toFixed(1) + "m",
367
+ getRuleDistanceText: (p) => p.toString()
368
+ }, r = e ? L(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), r.missingFloorConfig), n = g(l(l({}, i), r), { missingFloorConfig: h });
369
+ this.state = { enabled: !0, visible: !1, config: n }, this.initContainer(), t.once("dispose", this.dispose), this.addEventListener();
341
370
  }
342
371
  load(t, e, i = !0) {
343
- return c(this, null, function* () {
344
- function n(m) {
345
- return Object.prototype.hasOwnProperty.apply(m, ["version"]);
372
+ return u(this, null, function* () {
373
+ function r(c) {
374
+ return Object.prototype.hasOwnProperty.apply(c, ["version"]);
346
375
  }
347
376
  const h = t;
348
377
  h && G(h.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
349
- const r = JSON.parse(JSON.stringify(t)), a = n(r) ? r.data : r, f = this.data;
378
+ const n = JSON.parse(JSON.stringify(t)), a = r(n) ? n.data : n, f = this.data;
350
379
  this.data = yield b(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, f), e && this.updateState(e, i), this.render();
351
380
  });
352
381
  }
@@ -371,9 +400,9 @@ class ee extends T {
371
400
  }
372
401
  /** 更改插件 State */
373
402
  setState(t, e = {}) {
374
- const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
375
- if (this.updateState(t, n), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: n }) : this._disable({ userAction: n })), t.visible !== void 0 && i.visible !== t.visible) {
376
- const h = { userAction: n };
403
+ const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
404
+ if (this.updateState(t, r), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: r }) : this._disable({ userAction: r })), t.visible !== void 0 && i.visible !== t.visible) {
405
+ const h = { userAction: r };
377
406
  t.visible ? this._show(h) : this._hide(h);
378
407
  }
379
408
  this.render();
@@ -382,13 +411,13 @@ class ee extends T {
382
411
  this.updateState({ config: t }, e), this.render();
383
412
  }
384
413
  formatData(t) {
385
- return c(this, null, function* () {
414
+ return u(this, null, function* () {
386
415
  return yield b(t.data);
387
416
  });
388
417
  }
389
418
  updateState(t, e) {
390
- var r;
391
- const i = this.state, n = (r = t.config) != null && r.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, h = t.config ? g(l(l({}, i.config), t.config), { missingFloorConfig: n }) : i.config;
419
+ var n;
420
+ const i = this.state, r = (n = t.config) != null && n.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, h = t.config ? g(l(l({}, i.config), t.config), { missingFloorConfig: r }) : i.config;
392
421
  this.state = g(l(l({}, this.state), t), { config: h }), !M(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
393
422
  }
394
423
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
@@ -433,5 +462,5 @@ class ee extends T {
433
462
  }
434
463
  }
435
464
  export {
436
- ee as Controller
465
+ _e as Controller
437
466
  };