@realsee/dnalogel 3.47.13 → 3.47.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Line.d.ts +1 -0
  4. package/dist/Sculpt/Meshes/Polygon.d.ts +2 -1
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +18650 -18640
  7. package/dist/index.umd.js +47 -47
  8. package/libs/AreaMakerPlugin/Controller.js +78 -150
  9. package/libs/AreaMakerPlugin/index.js +3 -75
  10. package/libs/AreaMakerPlugin/utils/Item.js +111 -185
  11. package/libs/CSS3DRenderPlugin/Controller.js +29 -86
  12. package/libs/CSS3DRenderPlugin/index.js +12 -69
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
  15. package/libs/CruisePlugin/BaseController.js +50 -122
  16. package/libs/CruisePlugin/Move.js +21 -74
  17. package/libs/CruisePlugin/Work.js +46 -99
  18. package/libs/CruisePlugin/index.js +26 -79
  19. package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
  20. package/libs/CurrentPanoImagePlugin/index.js +4 -76
  21. package/libs/GuideLinePlugin/Controller.js +26 -79
  22. package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
  25. package/libs/GuideLinePlugin/index.js +26 -79
  26. package/libs/ModelMakerPlugin/Controller.js +83 -139
  27. package/libs/ModelMakerPlugin/index.js +16 -72
  28. package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
  29. package/libs/ModelTVVideoPlugin/index.js +7 -64
  30. package/libs/Object3DHelperPlugin/Controller.js +32 -56
  31. package/libs/Object3DHelperPlugin/index.js +12 -35
  32. package/libs/PanoCompassPlugin/Controller.js +37 -93
  33. package/libs/PanoCompassPlugin/index.js +11 -67
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
  35. package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
  36. package/libs/PanoDoorLabelPlugin/index.js +4 -76
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
  41. package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
  42. package/libs/PanoMeasurePlugin/Model/area.js +21 -91
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
  45. package/libs/PanoMeasurePlugin/index.js +25 -67
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
  48. package/libs/PanoSpatialTagPlugin/index.js +5 -62
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
  53. package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
  58. package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
  60. package/libs/PanoTagPlugin/controller/index.js +55 -108
  61. package/libs/PanoTagPlugin/index.js +31 -84
  62. package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  63. package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
  64. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
  65. package/libs/PanoVideoPlugin/Controller.js +64 -136
  66. package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
  67. package/libs/PanoVideoPlugin/index.js +8 -80
  68. package/libs/PipelinePlugin/Controller.js +128 -199
  69. package/libs/PipelinePlugin/index.js +5 -76
  70. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
  71. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
  72. package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
  73. package/libs/Sculpt/Meshes/Box.js +5 -6
  74. package/libs/Sculpt/Meshes/Cylinder.js +2 -3
  75. package/libs/Sculpt/Meshes/Line.d.ts +1 -0
  76. package/libs/Sculpt/Meshes/Line.js +50 -41
  77. package/libs/Sculpt/Meshes/Point.js +9 -10
  78. package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
  79. package/libs/Sculpt/Meshes/Polygon.js +47 -37
  80. package/libs/Sculpt/Meshes/Polyline.js +18 -16
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -4
  82. package/libs/Sculpt/Objects/Line/Editor.js +2 -3
  83. package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
  84. package/libs/Sculpt/utils/removeAllTag.js +4 -4
  85. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
  86. package/libs/base/BasePlugin.js +3 -4
  87. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
  88. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
  89. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
  90. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
  93. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
  94. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
  95. package/libs/floorplan/index.js +0 -1
  96. package/libs/index.js +62 -62
  97. package/libs/shared-utils/five/index.js +2 -3
  98. package/libs/shared-utils/five/lookObject.js +17 -18
  99. package/libs/shared-utils/logger.js +1 -1
  100. package/libs/shared-utils/three/index.js +0 -1
  101. package/package.json +1 -1
@@ -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 f = (d, s, t) => new Promise((e, i) => {
15
- var r = (a) => {
14
+ var c = (d, s, t) => new Promise((e, i) => {
15
+ var n = (a) => {
16
16
  try {
17
- n(t.next(a));
18
- } catch (p) {
19
- i(p);
17
+ r(t.next(a));
18
+ } catch (f) {
19
+ i(f);
20
20
  }
21
21
  }, h = (a) => {
22
22
  try {
23
- n(t.throw(a));
24
- } catch (p) {
25
- i(p);
23
+ r(t.throw(a));
24
+ } catch (f) {
25
+ i(f);
26
26
  }
27
- }, n = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(r, h);
28
- n((t = t.apply(d, s)).next());
27
+ }, r = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(n, h);
28
+ r((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,13 +38,12 @@ 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 u, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
41
+ import { FIVE_CAMERA_DEFAULT_FOV as R, FloorplanErrorType as p, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
42
42
  import "three";
43
43
  import "hammerjs";
44
44
  import "three/examples/jsm/renderers/CSS3DRenderer";
45
45
  import "@realsee/five/line";
46
46
  import "../../shared-utils/tag.js";
47
- import "../../Sculpt/utils/Modules/Global.js";
48
47
  import "../../shared-utils/three/THREESphere.js";
49
48
  import "animejs";
50
49
  import { isNil as G } from "../../shared-utils/isNil.js";
@@ -91,75 +90,6 @@ import "../../shared-utils/five/changeMode.js";
91
90
  import "../../shared-utils/positionToVector3.js";
92
91
  import "../../shared-utils/five/vector3ToScreen.js";
93
92
  import "../../shared-utils/three/temp.js";
94
- import "../../Sculpt/utils/Modules/Cursor.js";
95
- import "../../Object3DHelperPlugin/Controller.js";
96
- import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
97
- import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
98
- import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
99
- import "../../shared-utils/three/IObject3D.js";
100
- import "../../shared-utils/three/boundingBox.js";
101
- import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
102
- import "../../shared-utils/Object3DHelper/utils/direction.js";
103
- import "../../shared-utils/Object3DHelper/Constants/color.js";
104
- import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
105
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
106
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
107
- import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
108
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
109
- import "../../CSS3DRenderPlugin/utils/even.js";
110
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
111
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
112
- import "../../shared-utils/three/centerPoint.js";
113
- import "../../shared-utils/three/getObjectVisible.js";
114
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
115
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
116
- import "../../shared-utils/util.js";
117
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
118
- import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
119
- import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
120
- import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
121
- import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
122
- import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
123
- import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
124
- import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
125
- import "../../shared-utils/Object3DHelper/Base/BaseController.js";
126
- import "../../shared-utils/threex/domevents/index.js";
127
- import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
128
- import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
129
- import "../../Sculpt/utils/three/rayOnLine.js";
130
- import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
131
- import "../../shared-utils/Object3DHelper/index.js";
132
- import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
133
- import "../../shared-utils/math/deg2Rad.js";
134
- import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
135
- import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
136
- import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
137
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
138
- import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
139
- import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
140
- import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
141
- import "../../shared-utils/five/fiveModelLoad.js";
142
- import "../../shared-utils/five/FiveDomEvents.js";
143
- import "../../shared-utils/five/calculateThreeMouse.js";
144
- import "../../shared-utils/three/THREERaycaster.js";
145
- import "../../shared-utils/three/PointSelector/index.js";
146
- import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
147
- import "../../shared-utils/three/Magnifier.js";
148
- import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
149
- import "../../shared-utils/three/Assets/index.js";
150
- import "../../shared-utils/three/PointSelector/utils/html.js";
151
- import "../../shared-utils/five/initialCSS3DRender.js";
152
- import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
153
- import "../../Sculpt/Meshes/Line.js";
154
- import "../../Sculpt/typings/style.js";
155
- import "../../shared-utils/five/FiveLine.js";
156
- import "../../Sculpt/utils/removeAllTag.js";
157
- import "../../Sculpt/utils/Meshes/getLengthHTML.js";
158
- import "../../shared-utils/three/applyObjectMatrixWorld.js";
159
- import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
160
- import "../../shared-utils/isTouchDevice.js";
161
- import "../../shared-utils/five/getPosition.js";
162
- import "../../shared-utils/five/getRaycasterByNdcPosition.js";
163
93
  function W(d) {
164
94
  const { latitude: s, longitude: t } = d, e = Math.abs(s - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
165
95
  return e || i;
@@ -168,9 +98,9 @@ function z(d) {
168
98
  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);
169
99
  return e && i;
170
100
  }
171
- class fi extends T {
101
+ class Xt extends T {
172
102
  constructor(t, e) {
173
- var a, p, c;
103
+ var a, f, m;
174
104
  super(t);
175
105
  // =============== public properties =================
176
106
  o(this, "name", "modelFloorplanPlugin");
@@ -219,22 +149,22 @@ class fi extends T {
219
149
  * @param opts.isAutoShow 是否是自动展示
220
150
  * @param opts.userAction 是否是用户行为
221
151
  */
222
- o(this, "show", (...e) => f(this, [...e], function* (t = {}) {
152
+ o(this, "show", (...e) => c(this, [...e], function* (t = {}) {
223
153
  if (!this.state.enabled || !this.showPromise && this.state.visible)
224
154
  return;
225
155
  const i = t.userAction !== void 0 ? t.userAction : !0;
226
156
  this.updateState({ visible: !0 }, i), this._show(t);
227
157
  }));
228
158
  /** 隐藏户型图 */
229
- o(this, "hide", (...e) => f(this, [...e], function* (t = {}) {
159
+ o(this, "hide", (...e) => c(this, [...e], function* (t = {}) {
230
160
  this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, t.userAction || !0), this._hide(t)));
231
161
  }));
232
162
  /** 更新户型图大小 */
233
163
  o(this, "updateSize", () => {
234
164
  if (!this.data || !this.container || !this.wrapper)
235
165
  return !1;
236
- 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), p = Math.ceil(r * n);
237
- return this.size.width === a && this.size.height === p || (this.container.style.width = a + "px", this.container.style.height = p + "px", this.size = { width: a, height: p }), !0;
166
+ 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);
167
+ 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;
238
168
  });
239
169
  o(this, "highlight", (t) => {
240
170
  this.state.config.highlightEnable && (this.highlightData = t, this.render());
@@ -243,22 +173,22 @@ class fi extends T {
243
173
  this.highlightData = {}, this.render();
244
174
  });
245
175
  o(this, "_disable", (t) => {
246
- var i, r, h;
176
+ var i, n, h;
247
177
  const { userAction: e } = t;
248
- this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, u.BreakOffByDisable), this.showPromise = void 0, (r = this.app) == null || r.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
178
+ 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();
249
179
  });
250
180
  o(this, "_enable", (t) => {
251
181
  const { userAction: e } = t;
252
182
  this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
253
183
  });
254
- o(this, "_show", (t) => f(this, null, function* () {
184
+ o(this, "_show", (t) => c(this, null, function* () {
255
185
  var h;
256
186
  if (!this.state.enabled)
257
187
  return;
258
188
  if (!((h = this.five.model) != null && h.loaded))
259
- throw new Error(u.ModelNotLoaded);
189
+ throw new Error(p.ModelNotLoaded);
260
190
  if (!this.data)
261
- throw new Error(u.DataNotLoaded);
191
+ throw new Error(p.DataNotLoaded);
262
192
  if (this.showPromise)
263
193
  return this.showPromise;
264
194
  const e = {
@@ -267,36 +197,36 @@ class fi extends T {
267
197
  immediately: !1,
268
198
  isAutoShow: !1,
269
199
  userAction: !0
270
- }, i = l(l({}, e), t), r = () => f(this, null, function* () {
200
+ }, i = l(l({}, e), t), n = () => c(this, null, function* () {
271
201
  this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
272
- let n = !1, a;
273
- this.showRejection = (m) => {
274
- n = !0, a = m;
202
+ let r = !1, a;
203
+ this.showRejection = (u) => {
204
+ r = !0, a = u;
275
205
  };
276
- const [p] = yield I(k(this.five, this.showState, i.userAction));
277
- if (p)
278
- throw p;
279
- if (n)
280
- throw a ? new Error(a) : new Error(u.UnknownError);
206
+ const [f] = yield I(k(this.five, this.showState, i.userAction));
207
+ if (f)
208
+ throw f;
209
+ if (r)
210
+ throw a ? new Error(a) : new Error(p.UnknownError);
281
211
  if (!this.updateSize())
282
- throw new Error(u.UpdateSizeError);
212
+ throw new Error(p.UpdateSizeError);
283
213
  this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
284
214
  });
285
- return this.isHiddenByHideFunc = !1, this.showPromise = r().then(() => {
215
+ return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
286
216
  this.showPromise = void 0, this.showRejection = void 0;
287
- const n = i.modelOpacity, a = i.immediately ? 0 : H;
288
- F(this.five, n, a), this.render(a), this.hooks.emit("showAnimationEnded", {
217
+ const r = i.modelOpacity, a = i.immediately ? 0 : H;
218
+ F(this.five, r, a), this.render(a), this.hooks.emit("showAnimationEnded", {
289
219
  auto: i.isAutoShow,
290
220
  userAction: i.userAction
291
221
  });
292
- }).catch((n) => {
293
- if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && n instanceof Error)
294
- throw n;
222
+ }).catch((r) => {
223
+ if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && r instanceof Error)
224
+ throw r;
295
225
  }), this.showPromise;
296
226
  }));
297
227
  o(this, "_hide", (t) => {
298
- var r;
299
- (r = this.showRejection) == null || r.call(this, u.BreakOffByHide), this.showPromise = void 0;
228
+ var n;
229
+ (n = this.showRejection) == null || n.call(this, p.BreakOffByHide), this.showPromise = void 0;
300
230
  const i = l(l({}, {
301
231
  userAction: !0,
302
232
  isAutoHide: !1
@@ -377,7 +307,7 @@ class fi extends T {
377
307
  imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
378
308
  imageWidth: 200,
379
309
  imageHeight: 120,
380
- text: (c = (p = e.i18n) == null ? void 0 : p.call(e, "暂无平面图")) != null ? c : "暂无平面图",
310
+ text: (m = (f = e.i18n) == null ? void 0 : f.call(e, "暂无平面图")) != null ? m : "暂无平面图",
381
311
  textFontSize: 14
382
312
  };
383
313
  const i = {
@@ -398,22 +328,22 @@ class fi extends T {
398
328
  attachedTo: O.BOUNDING_CENTER,
399
329
  getLabelElement: void 0,
400
330
  missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
401
- i18n: (m) => m,
402
- getRoomAreaText: (m) => (m / 1e6).toFixed(1) + "㎡",
403
- getRoomDimensionText: (m, A) => (m / 1e3).toFixed(1) + "m × " + (A / 1e3).toFixed(1) + "m",
404
- getRuleDistanceText: (m) => m.toString()
405
- }, r = e ? L(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), r.missingFloorConfig), n = g(l(l({}, i), r), { missingFloorConfig: h });
406
- this.state = { enabled: !0, visible: !1, config: n }, this.initContainer(), t.once("dispose", this.dispose), this.addEventListener();
331
+ i18n: (u) => u,
332
+ getRoomAreaText: (u) => (u / 1e6).toFixed(1) + "㎡",
333
+ getRoomDimensionText: (u, A) => (u / 1e3).toFixed(1) + "m × " + (A / 1e3).toFixed(1) + "m",
334
+ getRuleDistanceText: (u) => u.toString()
335
+ }, n = e ? L(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), n.missingFloorConfig), r = g(l(l({}, i), n), { missingFloorConfig: h });
336
+ this.state = { enabled: !0, visible: !1, config: r }, this.initContainer(), t.once("dispose", this.dispose), this.addEventListener();
407
337
  }
408
338
  load(t, e, i = !0) {
409
- return f(this, null, function* () {
410
- function r(c) {
411
- return Object.prototype.hasOwnProperty.apply(c, ["version"]);
339
+ return c(this, null, function* () {
340
+ function n(m) {
341
+ return Object.prototype.hasOwnProperty.apply(m, ["version"]);
412
342
  }
413
343
  const h = t;
414
344
  h && G(h.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
415
- const n = JSON.parse(JSON.stringify(t)), a = r(n) ? n.data : n, p = this.data;
416
- this.data = yield b(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, p), e && this.updateState(e, i), this.render();
345
+ const r = JSON.parse(JSON.stringify(t)), a = n(r) ? r.data : r, f = this.data;
346
+ 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();
417
347
  });
418
348
  }
419
349
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -437,9 +367,9 @@ class fi extends T {
437
367
  }
438
368
  /** 更改插件 State */
439
369
  setState(t, e = {}) {
440
- const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
441
- 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) {
442
- const h = { userAction: r };
370
+ const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
371
+ 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) {
372
+ const h = { userAction: n };
443
373
  t.visible ? this._show(h) : this._hide(h);
444
374
  }
445
375
  this.render();
@@ -448,13 +378,13 @@ class fi extends T {
448
378
  this.updateState({ config: t }, e), this.render();
449
379
  }
450
380
  formatData(t) {
451
- return f(this, null, function* () {
381
+ return c(this, null, function* () {
452
382
  return yield b(t.data);
453
383
  });
454
384
  }
455
385
  updateState(t, e) {
456
- var n;
457
- 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;
386
+ var r;
387
+ 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;
458
388
  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 });
459
389
  }
460
390
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
@@ -499,5 +429,5 @@ class fi extends T {
499
429
  }
500
430
  }
501
431
  export {
502
- fi as Controller
432
+ Xt as Controller
503
433
  };
@@ -52,88 +52,18 @@ import "../../shared-utils/Utils/BaseUtil.js";
52
52
  import "../../shared-utils/Utils/WorkUtil.js";
53
53
  import "../../shared-utils/five/transformPosition.js";
54
54
  import "../../shared-utils/three/temp.js";
55
- import "../../Sculpt/utils/Modules/Global.js";
56
- import "../../Sculpt/utils/Modules/Cursor.js";
57
- import "../../Object3DHelperPlugin/Controller.js";
58
55
  import "../../shared-utils/three/THREESphere.js";
59
- import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
60
- import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
61
- import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
62
- import "../../shared-utils/three/IObject3D.js";
63
- import "../../shared-utils/three/boundingBox.js";
64
- import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
65
- import "../../shared-utils/Object3DHelper/utils/direction.js";
66
- import "../../shared-utils/Object3DHelper/Constants/color.js";
67
- import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
68
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
69
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
70
- import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
71
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
72
- import "../../CSS3DRenderPlugin/utils/even.js";
73
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
74
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
75
- import "../../shared-utils/three/centerPoint.js";
76
- import "../../shared-utils/three/getObjectVisible.js";
77
56
  import "animejs";
78
- import "../../shared-utils/isNil.js";
79
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
80
57
  import "../../shared-utils/url/absoluteUrl.js";
81
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
82
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
83
- import "../../shared-utils/util.js";
84
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
85
- import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
86
- import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
87
- import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
88
- import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
89
- import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
90
- import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
91
- import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
92
- import "../../shared-utils/Object3DHelper/Base/BaseController.js";
93
- import "../../shared-utils/threex/domevents/index.js";
94
- import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
95
- import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
96
- import "../../Sculpt/utils/three/rayOnLine.js";
97
- import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
98
- import "../../shared-utils/Object3DHelper/index.js";
99
- import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
100
- import "../../shared-utils/math/deg2Rad.js";
101
- import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
102
- import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
103
- import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
104
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
105
- import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
106
- import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
107
- import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
108
- import "../../shared-utils/five/fiveModelLoad.js";
109
- import "../../shared-utils/five/FiveDomEvents.js";
110
- import "../../shared-utils/five/calculateThreeMouse.js";
111
- import "../../shared-utils/three/THREERaycaster.js";
112
- import "../../shared-utils/three/PointSelector/index.js";
113
- import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
114
- import "../../shared-utils/three/Magnifier.js";
115
- import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
116
- import "../../shared-utils/three/Assets/index.js";
117
- import "../../shared-utils/three/PointSelector/utils/html.js";
118
- import "../../shared-utils/five/initialCSS3DRender.js";
119
- import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
120
- import "../../Sculpt/Meshes/Line.js";
121
- import "../../Sculpt/typings/style.js";
122
- import "../../shared-utils/five/FiveLine.js";
123
- import "../../Sculpt/utils/removeAllTag.js";
124
- import "../../Sculpt/utils/Meshes/getLengthHTML.js";
125
- import "../../shared-utils/three/applyObjectMatrixWorld.js";
126
- import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
127
- import "../../shared-utils/isTouchDevice.js";
128
- import "../../shared-utils/five/getPosition.js";
129
- import "../../shared-utils/five/getRaycasterByNdcPosition.js";
58
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
130
59
  import "../utils/correctFiveState.js";
131
60
  import "../utils/constant.js";
132
61
  import "../../shared-utils/nearlyEqual.js";
133
62
  import "../../shared-utils/five/changeMode.js";
134
63
  import "../../shared-utils/changeModelCanvasOpacity.js";
135
- const Ar = (o, r) => new t(o, r);
64
+ import "../../shared-utils/isNil.js";
65
+ const co = (o, r) => new t(o, r);
136
66
  export {
137
- Ar as ModelFloorplanPlugin,
138
- Ar as default
67
+ co as ModelFloorplanPlugin,
68
+ co as default
139
69
  };