@realsee/dnalogel 3.45.0 → 3.46.1

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