@realsee/dnalogel 3.44.5 → 3.46.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 (162) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Area.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Box.d.ts +1 -1
  4. package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
  5. package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
  6. package/dist/Sculpt/Meshes/Line.d.ts +8 -2
  7. package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
  8. package/dist/Sculpt/Meshes/Point.d.ts +1 -1
  9. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  10. package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
  11. package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
  12. package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
  13. package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
  14. package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
  15. package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
  16. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
  17. package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
  18. package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
  19. package/dist/Sculpt/index.d.ts +5 -0
  20. package/dist/Sculpt/typings/index.d.ts +11 -6
  21. package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
  22. package/dist/Sculpt/typings/utils.type.d.ts +2 -0
  23. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
  24. package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
  25. package/dist/index.cjs.js +56 -56
  26. package/dist/index.js +29820 -29686
  27. package/dist/index.umd.js +49 -49
  28. package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
  29. package/dist/shared-utils/tag.d.ts +6 -3
  30. package/libs/AreaMakerPlugin/Controller.js +150 -78
  31. package/libs/AreaMakerPlugin/index.js +76 -4
  32. package/libs/AreaMakerPlugin/utils/Item.js +190 -111
  33. package/libs/CSS3DRenderPlugin/Controller.js +89 -29
  34. package/libs/CSS3DRenderPlugin/index.js +75 -15
  35. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
  36. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
  37. package/libs/CruisePlugin/BaseController.js +121 -49
  38. package/libs/CruisePlugin/Move.js +73 -21
  39. package/libs/CruisePlugin/Work.js +98 -46
  40. package/libs/CruisePlugin/index.js +79 -27
  41. package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
  42. package/libs/CurrentPanoImagePlugin/index.js +76 -4
  43. package/libs/GuideLinePlugin/Controller.js +82 -30
  44. package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
  45. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  46. package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
  47. package/libs/GuideLinePlugin/index.js +79 -27
  48. package/libs/ModelMakerPlugin/Controller.js +140 -83
  49. package/libs/ModelMakerPlugin/index.js +75 -18
  50. package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
  51. package/libs/ModelTVVideoPlugin/index.js +68 -8
  52. package/libs/Object3DHelperPlugin/Controller.js +54 -31
  53. package/libs/Object3DHelperPlugin/index.js +35 -13
  54. package/libs/PanoCompassPlugin/Controller.js +97 -42
  55. package/libs/PanoCompassPlugin/index.js +71 -16
  56. package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
  57. package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
  58. package/libs/PanoDoorLabelPlugin/index.js +76 -4
  59. package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -89
  60. package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
  61. package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
  62. package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
  63. package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
  64. package/libs/PanoMeasurePlugin/Model/area.js +114 -38
  65. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
  66. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
  67. package/libs/PanoMeasurePlugin/index.js +77 -32
  68. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
  69. package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
  70. package/libs/PanoSpatialTagPlugin/index.js +66 -6
  71. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
  72. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
  73. package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
  74. package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
  75. package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
  76. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
  77. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
  78. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
  79. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
  80. package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
  81. package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
  82. package/libs/PanoTagPlugin/controller/index.js +113 -61
  83. package/libs/PanoTagPlugin/index.js +89 -37
  84. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
  85. package/libs/PanoVideoPlugin/Controller.js +137 -65
  86. package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
  87. package/libs/PanoVideoPlugin/index.js +82 -10
  88. package/libs/PipelinePlugin/Controller.js +199 -128
  89. package/libs/PipelinePlugin/index.js +76 -5
  90. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
  91. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
  92. package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
  93. package/libs/Sculpt/Meshes/Area.d.ts +1 -1
  94. package/libs/Sculpt/Meshes/Box.d.ts +1 -1
  95. package/libs/Sculpt/Meshes/Box.js +16 -15
  96. package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
  97. package/libs/Sculpt/Meshes/Circle.js +1 -1
  98. package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
  99. package/libs/Sculpt/Meshes/Cylinder.js +8 -7
  100. package/libs/Sculpt/Meshes/Line.d.ts +8 -2
  101. package/libs/Sculpt/Meshes/Line.js +93 -65
  102. package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
  103. package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
  104. package/libs/Sculpt/Meshes/Point.d.ts +1 -1
  105. package/libs/Sculpt/Meshes/Point.js +7 -6
  106. package/libs/Sculpt/Meshes/Polygon.js +1 -1
  107. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  108. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  109. package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
  110. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  111. package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
  112. package/libs/Sculpt/Objects/Box/index.js +41 -43
  113. package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
  114. package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
  115. package/libs/Sculpt/Objects/Line/Editor.js +62 -0
  116. package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
  117. package/libs/Sculpt/Objects/Line/index.js +107 -0
  118. package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
  119. package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
  120. package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
  121. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
  122. package/libs/Sculpt/Objects/Polygon/index.js +80 -80
  123. package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
  124. package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
  125. package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
  126. package/libs/Sculpt/Objects/Polyline/index.js +63 -58
  127. package/libs/Sculpt/Objects/Prism/index.js +56 -58
  128. package/libs/Sculpt/index.d.ts +5 -0
  129. package/libs/Sculpt/index.js +58 -48
  130. package/libs/Sculpt/typings/index.d.ts +11 -6
  131. package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
  132. package/libs/Sculpt/typings/utils.type.d.ts +2 -0
  133. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
  134. package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
  135. package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
  136. package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
  137. package/libs/base/BasePlugin.js +14 -13
  138. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
  139. package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
  140. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
  141. package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
  142. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
  143. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
  144. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
  145. package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
  146. package/libs/floorplan/index.js +1 -0
  147. package/libs/index.js +194 -192
  148. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
  149. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
  150. package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
  151. package/libs/shared-utils/Utils/WorkUtil.js +8 -7
  152. package/libs/shared-utils/five/index.js +3 -2
  153. package/libs/shared-utils/five/lookObject.js +3 -2
  154. package/libs/shared-utils/logger.js +1 -1
  155. package/libs/shared-utils/tag.d.ts +6 -3
  156. package/libs/shared-utils/tag.js +38 -24
  157. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +15 -15
  158. package/libs/shared-utils/three/index.js +1 -0
  159. package/package.json +1 -1
  160. package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
  161. package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
  162. /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
@@ -2,29 +2,29 @@ var C = Object.defineProperty, F = Object.defineProperties;
2
2
  var E = Object.getOwnPropertyDescriptors;
3
3
  var g = Object.getOwnPropertySymbols;
4
4
  var A = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var u = (d, n, t) => n in d ? C(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, l = (d, n) => {
5
+ var u = (d, n, t) => n in d ? C(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, p = (d, n) => {
6
6
  for (var t in n || (n = {}))
7
7
  A.call(n, t) && u(d, t, n[t]);
8
8
  if (g)
9
9
  for (var t of g(n))
10
10
  x.call(n, t) && u(d, t, n[t]);
11
11
  return d;
12
- }, m = (d, n) => F(d, E(n));
12
+ }, f = (d, n) => F(d, E(n));
13
13
  var o = (d, n, t) => (u(d, typeof n != "symbol" ? n + "" : n, t), t);
14
- var p = (d, n, t) => new Promise((e, i) => {
14
+ var c = (d, n, t) => new Promise((i, e) => {
15
15
  var s = (h) => {
16
16
  try {
17
17
  a(t.next(h));
18
- } catch (c) {
19
- i(c);
18
+ } catch (m) {
19
+ e(m);
20
20
  }
21
21
  }, r = (h) => {
22
22
  try {
23
23
  a(t.throw(h));
24
- } catch (c) {
25
- i(c);
24
+ } catch (m) {
25
+ e(m);
26
26
  }
27
- }, a = (h) => h.done ? e(h.value) : Promise.resolve(h.value).then(s, r);
27
+ }, a = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(s, r);
28
28
  a((t = t.apply(d, n)).next());
29
29
  });
30
30
  import * as S from "three";
@@ -41,6 +41,7 @@ import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCan
41
41
  import "hammerjs";
42
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
43
43
  import "@realsee/five/line";
44
+ import "../../Sculpt/utils/Modules/Global.js";
44
45
  import "../../shared-utils/three/THREESphere.js";
45
46
  import "animejs";
46
47
  import { isNil as k } from "../../shared-utils/isNil.js";
@@ -84,9 +85,78 @@ import "../../shared-utils/five/getFiveModel.js";
84
85
  import "../../shared-utils/url/absoluteUrl.js";
85
86
  import "../../shared-utils/nearlyEqual.js";
86
87
  import "../../shared-utils/to.js";
87
- class Nt extends M {
88
- constructor(t, e) {
89
- var h, c;
88
+ import "../../Sculpt/utils/Modules/Cursor.js";
89
+ import "../../Object3DHelperPlugin/Controller.js";
90
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
91
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
92
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
93
+ import "../../shared-utils/three/IObject3D.js";
94
+ import "../../shared-utils/three/boundingBox.js";
95
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
96
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
97
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
98
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
99
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
100
+ import "../../shared-utils/positionToVector3.js";
101
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
102
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
103
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
104
+ import "../../CSS3DRenderPlugin/utils/even.js";
105
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
106
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
107
+ import "../../shared-utils/three/centerPoint.js";
108
+ import "../../shared-utils/three/getObjectVisible.js";
109
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
110
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
111
+ import "../../shared-utils/util.js";
112
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
113
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
114
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
115
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
116
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
117
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
118
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
119
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
120
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
121
+ import "../../shared-utils/threex/domevents/index.js";
122
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
123
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
124
+ import "../../Sculpt/utils/three/rayOnLine.js";
125
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
126
+ import "../../shared-utils/Object3DHelper/index.js";
127
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
128
+ import "../../shared-utils/math/deg2Rad.js";
129
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
130
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
131
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
132
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
133
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
134
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
135
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
136
+ import "../../shared-utils/five/fiveModelLoad.js";
137
+ import "../../shared-utils/five/FiveDomEvents.js";
138
+ import "../../shared-utils/five/calculateThreeMouse.js";
139
+ import "../../shared-utils/three/THREERaycaster.js";
140
+ import "../../shared-utils/three/PointSelector/index.js";
141
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
142
+ import "../../shared-utils/three/Magnifier.js";
143
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
144
+ import "../../shared-utils/three/Assets/index.js";
145
+ import "../../shared-utils/three/PointSelector/utils/html.js";
146
+ import "../../shared-utils/five/initialCSS3DRender.js";
147
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
148
+ import "../../Sculpt/Meshes/Line.js";
149
+ import "../../Sculpt/typings/style.js";
150
+ import "../../shared-utils/five/FiveLine.js";
151
+ import "../../shared-utils/tag.js";
152
+ import "../../shared-utils/five/vector3ToScreen.js";
153
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
154
+ import "../../shared-utils/isTouchDevice.js";
155
+ import "../../shared-utils/five/getPosition.js";
156
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
157
+ class ie extends M {
158
+ constructor(t, i) {
159
+ var h, m;
90
160
  super(t);
91
161
  // =============== public properties =================
92
162
  o(this, "name", "topviewFloorplanPlugin");
@@ -116,13 +186,13 @@ class Nt extends M {
116
186
  o(this, "updateSize", () => {
117
187
  if (!this.data || !this.container || !this.wrapper || this.five.getCurrentState().mode !== "Topview")
118
188
  return !1;
119
- const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = D(this.five, this.wrapper, this.floorIndex, r), h = Math.ceil(i * a), c = Math.ceil(s * a);
120
- return this.size.width === h && this.size.height === c || (this.container.style.width = h + "px", this.container.style.height = c + "px", this.size = { width: h, height: c }), !0;
189
+ const { min: t, max: i } = this.data.bounding, e = i.x - t.x, s = i.y - t.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = D(this.five, this.wrapper, this.floorIndex, r), h = Math.ceil(e * a), m = Math.ceil(s * a);
190
+ return this.size.width === h && this.size.height === m || (this.container.style.width = h + "px", this.container.style.height = m + "px", this.size = { width: h, height: m }), !0;
121
191
  });
122
192
  /** 销毁插件 */
123
193
  o(this, "dispose", () => {
124
- var t, e;
125
- this.removeEventListener(), (t = this.app) == null || t.$destroy(), this.app = void 0, (e = this.container) == null || e.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
194
+ var t, i;
195
+ this.removeEventListener(), (t = this.app) == null || t.$destroy(), this.app = void 0, (i = this.container) == null || i.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
126
196
  });
127
197
  o(this, "highlight", (t) => {
128
198
  this.state.config.highlightEnable && (this.highlightData = t, this.render());
@@ -131,9 +201,9 @@ class Nt extends M {
131
201
  this.highlightData = {}, this.render();
132
202
  });
133
203
  o(this, "_disable", (t) => {
134
- var i, s;
135
- const { userAction: e } = t;
136
- (i = this.app) == null || i.$destroy(), this.app = void 0, (s = this.container) == null || s.remove(), this.removeEventListener(), this.hooks.emit("disable", { userAction: e });
204
+ var e, s;
205
+ const { userAction: i } = t;
206
+ (e = this.app) == null || e.$destroy(), this.app = void 0, (s = this.container) == null || s.remove(), this.removeEventListener(), this.hooks.emit("disable", { userAction: i });
137
207
  });
138
208
  /** modelLoaded 之后自动执行 append container 操作 */
139
209
  o(this, "onFiveModelLoaded", () => {
@@ -145,14 +215,14 @@ class Nt extends M {
145
215
  this.wrapper = t, t.append(this.container);
146
216
  });
147
217
  /** 非 Topview 态隐藏户型图 */
148
- o(this, "onFiveModeChange", (...[t, , , , e]) => {
149
- t !== "Topview" && this.state.visible && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
218
+ o(this, "onFiveModeChange", (...[t, , , , i]) => {
219
+ t !== "Topview" && this.state.visible && (this.updateState({ visible: !1 }, i), this._hide({ userAction: i }));
150
220
  });
151
221
  o(this, "onFivePanoArrived", (t) => {
152
- var e;
153
- (e = this.five) != null && e.work && (this.panoIndex = t, this.floorIndex = this.five.work.observers[t].floorIndex);
222
+ var i;
223
+ (i = this.five) != null && i.work && (this.panoIndex = t, this.floorIndex = this.five.work.observers[t].floorIndex);
154
224
  });
155
- o(this, "onFiveCameraUpdate", (t, e) => {
225
+ o(this, "onFiveCameraUpdate", (t, i) => {
156
226
  this.state.visible && (this.updatePosition(), this.updateSize());
157
227
  });
158
228
  o(this, "onFiveWantsGesture", (t) => {
@@ -165,27 +235,27 @@ class Nt extends M {
165
235
  });
166
236
  /** 动画结束后是 Topview 态就展示户型图 */
167
237
  o(this, "onFiveInitAnimationEnded", (...[, , t]) => {
168
- const { mode: e } = this.five.getCurrentState();
169
- e === "Topview" && !this.isHiddenByHideFunc && !this.state.visible && this.state.config.autoShowEnable && (this.updateState({ visible: !0 }, t), this._show({ userAction: t }));
238
+ const { mode: i } = this.five.getCurrentState();
239
+ i === "Topview" && !this.isHiddenByHideFunc && !this.state.visible && this.state.config.autoShowEnable && (this.updateState({ visible: !0 }, t), this._show({ userAction: t }));
170
240
  });
171
241
  o(this, "onModelShownFloorChange", (t) => {
172
242
  if (this.floorIndex !== t) {
173
243
  if (t === null) {
174
- const e = this.five.getCurrentState().panoIndex;
175
- this.floorIndex = this.five.work.observers[e].floorIndex;
244
+ const i = this.five.getCurrentState().panoIndex;
245
+ this.floorIndex = this.five.work.observers[i].floorIndex;
176
246
  return;
177
247
  }
178
248
  this.floorIndex = t, this.updateSize(), this.render();
179
249
  }
180
250
  });
181
- e != null && e.selector && (this.selector = e.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.defaultMissingFloorConfig = {
251
+ i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.defaultMissingFloorConfig = {
182
252
  imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
183
253
  imageWidth: 200,
184
254
  imageHeight: 120,
185
- text: (c = (h = e.i18n) == null ? void 0 : h.call(e, "暂无平面图")) != null ? c : "暂无平面图",
255
+ text: (m = (h = i.i18n) == null ? void 0 : h.call(i, "暂无平面图")) != null ? m : "暂无平面图",
186
256
  textFontSize: 14
187
257
  };
188
- const i = {
258
+ const e = {
189
259
  northDesc: "北",
190
260
  modelOpacity: 1,
191
261
  cameraEnable: !0,
@@ -202,33 +272,33 @@ class Nt extends M {
202
272
  cameraImageUrl: L,
203
273
  attachedTo: _.BOUNDING_CENTER,
204
274
  getLabelElement: void 0,
205
- missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
206
- i18n: (f) => f,
275
+ missingFloorConfig: p(p({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
276
+ i18n: (l) => l,
207
277
  adaptiveRoomLabelVisibleEnable: !0,
208
- getRoomAreaText: (f) => (f / 1e6).toFixed(1) + "㎡",
209
- getRoomDimensionText: (f, w) => (f / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
210
- getRuleDistanceText: (f) => f.toString()
211
- }, s = e ? T(e, ["selector", "scale"]) : {}, r = l(l({}, i.missingFloorConfig), s.missingFloorConfig), a = m(l(l({}, i), s), { missingFloorConfig: r });
278
+ getRoomAreaText: (l) => (l / 1e6).toFixed(1) + "㎡",
279
+ getRoomDimensionText: (l, w) => (l / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
280
+ getRuleDistanceText: (l) => l.toString()
281
+ }, s = i ? T(i, ["selector", "scale"]) : {}, r = p(p({}, e.missingFloorConfig), s.missingFloorConfig), a = f(p(p({}, e), s), { missingFloorConfig: r });
212
282
  this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
213
283
  }
214
- load(t, e, i = !0) {
215
- return p(this, null, function* () {
216
- function s(f) {
217
- return Object.prototype.hasOwnProperty.apply(f, ["version"]);
284
+ load(t, i, e = !0) {
285
+ return c(this, null, function* () {
286
+ function s(l) {
287
+ return Object.prototype.hasOwnProperty.apply(l, ["version"]);
218
288
  }
219
289
  const r = t;
220
290
  r && k(r.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
221
- const a = JSON.parse(JSON.stringify(t)), h = s(a) ? a.data : a, c = this.data;
222
- this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, c), e && this.updateState(e, i), this.render();
291
+ const a = JSON.parse(JSON.stringify(t)), h = s(a) ? a.data : a, m = this.data;
292
+ this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, m), i && this.updateState(i, e), this.render();
223
293
  });
224
294
  }
225
295
  /** 更新户型图位置 */
226
296
  updatePosition() {
227
297
  var a;
228
- const t = O(this.five, this.floorIndex, this.state.config.attachedTo), e = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new S.Vector3()).setY(t);
229
- if (!e)
298
+ const t = O(this.five, this.floorIndex, this.state.config.attachedTo), i = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new S.Vector3()).setY(t);
299
+ if (!i)
230
300
  return;
231
- const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, r = -(i.y - 1) / 2;
301
+ const e = i.clone().project(this.five.camera), s = (e.x + 1) / 2, r = -(e.y - 1) / 2;
232
302
  this.container.style.left = s * 100 + "%", this.container.style.top = r * 100 + "%";
233
303
  }
234
304
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -237,82 +307,82 @@ class Nt extends M {
237
307
  return t.appendChild(this.container), this.render(), this;
238
308
  }
239
309
  show() {
240
- return p(this, arguments, function* (t = {}) {
310
+ return c(this, arguments, function* (t = {}) {
241
311
  if (this.state.visible)
242
312
  return;
243
- const e = t.userAction !== void 0 ? t.userAction : !0;
244
- this.updateState({ visible: !0 }, e), this._show({ userAction: e });
313
+ const i = t.userAction !== void 0 ? t.userAction : !0;
314
+ this.updateState({ visible: !0 }, i), this._show({ userAction: i });
245
315
  });
246
316
  }
247
317
  hide() {
248
- return p(this, arguments, function* (t = {}) {
318
+ return c(this, arguments, function* (t = {}) {
249
319
  if (this.isHiddenByHideFunc = !0, !this.state.visible)
250
320
  return;
251
- const e = t.userAction !== void 0 ? t.userAction : !0;
252
- this.updateState({ visible: !1 }, e), this._hide({ userAction: e });
321
+ const i = t.userAction !== void 0 ? t.userAction : !0;
322
+ this.updateState({ visible: !1 }, i), this._hide({ userAction: i });
253
323
  });
254
324
  }
255
325
  enable(t = {}) {
256
326
  if (this.state.enabled)
257
327
  return;
258
- const e = t.userAction !== void 0 ? t.userAction : !0;
259
- this.updateState({ enabled: !0 }, t.userAction || e), this._enable({ userAction: e });
328
+ const i = t.userAction !== void 0 ? t.userAction : !0;
329
+ this.updateState({ enabled: !0 }, t.userAction || i), this._enable({ userAction: i });
260
330
  }
261
331
  disable(t = {}) {
262
332
  if (!this.state.enabled)
263
333
  return;
264
- const e = t.userAction !== void 0 ? t.userAction : !0;
265
- this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
334
+ const i = t.userAction !== void 0 ? t.userAction : !0;
335
+ this.updateState({ enabled: !1 }, t.userAction || i), this._disable({ userAction: i });
266
336
  }
267
337
  /** 更改插件 State */
268
- setState(t, e = {}) {
269
- const i = this.state, s = e.userAction !== void 0 ? e.userAction : !0;
270
- if (this.updateState(t, s), t.enabled !== void 0 && i.enabled !== t.enabled) {
338
+ setState(t, i = {}) {
339
+ const e = this.state, s = i.userAction !== void 0 ? i.userAction : !0;
340
+ if (this.updateState(t, s), t.enabled !== void 0 && e.enabled !== t.enabled) {
271
341
  const r = { userAction: s };
272
342
  t.enabled ? this._enable(r) : this._disable(r);
273
343
  }
274
- if (t.visible !== void 0 && i.visible !== t.visible) {
344
+ if (t.visible !== void 0 && e.visible !== t.visible) {
275
345
  const r = { userAction: s };
276
346
  t.visible ? this._show(r) : this._hide(r);
277
347
  }
278
348
  }
279
- changeConfigs(t, e = !0) {
280
- this.updateState({ config: t }, e), this.render();
349
+ changeConfigs(t, i = !0) {
350
+ this.updateState({ config: t }, i), this.render();
281
351
  }
282
352
  formatData(t) {
283
- return p(this, null, function* () {
353
+ return c(this, null, function* () {
284
354
  return yield v(t.data);
285
355
  });
286
356
  }
287
357
  _show(t) {
288
- return p(this, null, function* () {
358
+ return c(this, null, function* () {
289
359
  if (!this.state.enabled)
290
360
  return;
291
361
  this.isHiddenByHideFunc = !1;
292
- const { userAction: e } = t;
293
- this.hooks.emit("show", { userAction: e, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield P(this.five, ["Topview", void 0, void 0, e])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
294
- const i = 500, s = this.state.config.modelOpacity;
295
- b(this.five, s, i), this.hooks.emit("showAnimationEnded", { userAction: e, auto: !1 }), this.render();
362
+ const { userAction: i } = t;
363
+ this.hooks.emit("show", { userAction: i, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield P(this.five, ["Topview", void 0, void 0, i])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
364
+ const e = 500, s = this.state.config.modelOpacity;
365
+ b(this.five, s, e), this.hooks.emit("showAnimationEnded", { userAction: i, auto: !1 }), this.render();
296
366
  });
297
367
  }
298
368
  _hide(t) {
299
- return p(this, null, function* () {
369
+ return c(this, null, function* () {
300
370
  if (!this.state.enabled)
301
371
  return;
302
- const { userAction: e } = t;
303
- this.hooks.emit("hide", { userAction: e, auto: !1 });
304
- const i = 1, s = 0;
305
- b(this.five, i, s), this.render();
372
+ const { userAction: i } = t;
373
+ this.hooks.emit("hide", { userAction: i, auto: !1 });
374
+ const e = 1, s = 0;
375
+ b(this.five, e, s), this.render();
306
376
  });
307
377
  }
308
378
  _enable(t) {
309
- const { userAction: e } = t;
310
- this.addEventListener(), this.wrapper && this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e });
379
+ const { userAction: i } = t;
380
+ this.addEventListener(), this.wrapper && this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i });
311
381
  }
312
- updateState(t, e) {
382
+ updateState(t, i) {
313
383
  var a;
314
- const i = this.state, s = (a = t.config) != null && a.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, r = t.config ? m(l(l({}, i.config), t.config), { missingFloorConfig: s }) : i.config;
315
- this.state = m(l(l({}, this.state), t), { config: r }), !y(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
384
+ const e = this.state, s = (a = t.config) != null && a.missingFloorConfig ? p(p({}, e.config.missingFloorConfig), t.config.missingFloorConfig) : e.config.missingFloorConfig, r = t.config ? f(p(p({}, e.config), t.config), { missingFloorConfig: s }) : e.config;
385
+ this.state = f(p(p({}, this.state), t), { config: r }), !y(this.state, e, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
316
386
  }
317
387
  addEventListener() {
318
388
  if (!this.state.enabled || this.hasAddedEventListener)
@@ -342,7 +412,7 @@ class Nt extends M {
342
412
  render(t) {
343
413
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
344
414
  return;
345
- const e = m(l({}, this.state.config), {
415
+ const i = f(p({}, this.state.config), {
346
416
  visible: this.state.visible,
347
417
  duration: t != null ? t : 0,
348
418
  panoIndex: this.panoIndex,
@@ -352,10 +422,10 @@ class Nt extends M {
352
422
  highlightData: this.highlightData
353
423
  });
354
424
  if (this.app)
355
- return this.app.$set(e);
356
- this.app = new I({ target: this.container, intro: !0, props: e });
425
+ return this.app.$set(i);
426
+ this.app = new I({ target: this.container, intro: !0, props: i });
357
427
  }
358
428
  }
359
429
  export {
360
- Nt as Controller
430
+ ie as Controller
361
431
  };
@@ -41,23 +41,93 @@ import "../../shared-utils/Subscribe.js";
41
41
  import "hammerjs";
42
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
43
43
  import "@realsee/five/line";
44
+ import "../../Sculpt/utils/Modules/Global.js";
45
+ import "../../Sculpt/utils/Modules/Cursor.js";
46
+ import "../../Object3DHelperPlugin/Controller.js";
44
47
  import "../../shared-utils/three/THREESphere.js";
48
+ import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
49
+ import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
50
+ import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
51
+ import "../../shared-utils/three/IObject3D.js";
52
+ import "../../shared-utils/three/boundingBox.js";
53
+ import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
54
+ import "../../shared-utils/Object3DHelper/utils/direction.js";
55
+ import "../../shared-utils/Object3DHelper/Constants/color.js";
56
+ import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
57
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
58
+ import "../../shared-utils/positionToVector3.js";
59
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
60
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
61
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
62
+ import "../../CSS3DRenderPlugin/utils/even.js";
63
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
64
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
65
+ import "../../shared-utils/three/centerPoint.js";
66
+ import "../../shared-utils/three/getObjectVisible.js";
45
67
  import "animejs";
68
+ import "../../shared-utils/isNil.js";
69
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
46
70
  import "../../shared-utils/Utils/FiveUtil.js";
47
71
  import "../../shared-utils/Utils/BaseUtil.js";
48
72
  import "../../shared-utils/Utils/WorkUtil.js";
49
73
  import "../../shared-utils/five/transformPosition.js";
50
74
  import "../../shared-utils/five/getFiveModel.js";
51
75
  import "../../shared-utils/url/absoluteUrl.js";
52
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
76
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
77
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
78
+ import "../../shared-utils/util.js";
79
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
80
+ import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
81
+ import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
82
+ import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
83
+ import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
84
+ import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
85
+ import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
86
+ import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
87
+ import "../../shared-utils/Object3DHelper/Base/BaseController.js";
88
+ import "../../shared-utils/threex/domevents/index.js";
89
+ import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
90
+ import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
91
+ import "../../Sculpt/utils/three/rayOnLine.js";
92
+ import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
93
+ import "../../shared-utils/Object3DHelper/index.js";
94
+ import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
95
+ import "../../shared-utils/math/deg2Rad.js";
96
+ import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
97
+ import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
98
+ import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
99
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
100
+ import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
101
+ import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
102
+ import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
103
+ import "../../shared-utils/five/fiveModelLoad.js";
104
+ import "../../shared-utils/five/FiveDomEvents.js";
105
+ import "../../shared-utils/five/calculateThreeMouse.js";
106
+ import "../../shared-utils/three/THREERaycaster.js";
107
+ import "../../shared-utils/three/PointSelector/index.js";
108
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
109
+ import "../../shared-utils/three/Magnifier.js";
110
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
111
+ import "../../shared-utils/three/Assets/index.js";
112
+ import "../../shared-utils/three/PointSelector/utils/html.js";
113
+ import "../../shared-utils/five/initialCSS3DRender.js";
114
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
115
+ import "../../Sculpt/Meshes/Line.js";
116
+ import "../../Sculpt/typings/style.js";
117
+ import "../../shared-utils/five/FiveLine.js";
118
+ import "../../shared-utils/tag.js";
119
+ import "../../shared-utils/five/vector3ToScreen.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";
53
124
  import "../../shared-utils/five/changeMode.js";
54
125
  import "../../shared-utils/nearlyEqual.js";
55
126
  import "../../shared-utils/to.js";
56
127
  import "../../shared-utils/getPxmm.js";
57
128
  import "../../shared-utils/changeModelCanvasOpacity.js";
58
- import "../../shared-utils/isNil.js";
59
- const lo = (o, r) => new t(o, r);
129
+ const hr = (o, r) => new t(o, r);
60
130
  export {
61
- lo as TopviewFloorplanPlugin,
62
- lo as default
131
+ hr as TopviewFloorplanPlugin,
132
+ hr as default
63
133
  };
@@ -3,6 +3,7 @@ import "three";
3
3
  import "hammerjs";
4
4
  import "three/examples/jsm/renderers/CSS3DRenderer";
5
5
  import "@realsee/five/line";
6
+ import "../Sculpt/utils/Modules/Global.js";
6
7
  import "../shared-utils/three/THREESphere.js";
7
8
  import "animejs";
8
9
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";