@realsee/dnalogel 3.51.0 → 3.52.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 (278) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/Object3DHelperPlugin/Controller.d.ts +9 -9
  3. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  4. package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
  5. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  6. package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -2
  7. package/dist/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  8. package/dist/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  9. package/dist/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  10. package/dist/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  11. package/dist/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  12. package/dist/Sculpt/Meshes/Box.d.ts +6 -24
  13. package/dist/Sculpt/Meshes/Circle.d.ts +0 -4
  14. package/dist/Sculpt/Meshes/Cylinder.d.ts +0 -1
  15. package/dist/Sculpt/Meshes/Line.d.ts +9 -22
  16. package/dist/Sculpt/Meshes/Polygon.d.ts +1 -5
  17. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  18. package/dist/Sculpt/Meshes/Prism.d.ts +29 -10
  19. package/dist/Sculpt/Meshes/Rectangle.d.ts +1 -5
  20. package/dist/Sculpt/Objects/Base/index.d.ts +3 -3
  21. package/dist/Sculpt/Objects/Box/index.d.ts +7 -2
  22. package/dist/Sculpt/Objects/Circle/index.d.ts +3 -0
  23. package/dist/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  24. package/dist/Sculpt/Objects/Line/index.d.ts +3 -0
  25. package/dist/Sculpt/Objects/Point/index.d.ts +3 -0
  26. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -0
  27. package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -0
  28. package/dist/Sculpt/Objects/Prism/index.d.ts +3 -0
  29. package/dist/Sculpt/Objects/Rectangle/index.d.ts +13 -2
  30. package/dist/Sculpt/index.d.ts +10 -19
  31. package/dist/Sculpt/typings/style.d.ts +6 -0
  32. package/dist/Sculpt/utils/export.d.ts +24 -18
  33. package/dist/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  34. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  35. package/dist/index.cjs.js +88 -3009
  36. package/dist/index.d.ts +79 -1
  37. package/dist/index.js +35141 -54254
  38. package/dist/index.umd.js +81 -3002
  39. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  40. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  41. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  42. package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  43. package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  44. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  45. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  46. package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  47. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  48. package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  49. package/dist/shared-utils/five/FiveLine.d.ts +18 -14
  50. package/dist/shared-utils/index.d.ts +0 -1
  51. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  52. package/dist/shared-utils/tag.d.ts +5 -7
  53. package/dist/shared-utils/three/boundingBox.d.ts +14 -20
  54. package/dist/shared-utils/three/core/LineGeometry.d.ts +13 -0
  55. package/dist/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  56. package/dist/shared-utils/three/geometryUtil.d.ts +8 -0
  57. package/dist/shared-utils/three/getNormal.d.ts +5 -2
  58. package/libs/AreaMakerPlugin/Controller.js +47 -100
  59. package/libs/AreaMakerPlugin/index.js +12 -65
  60. package/libs/AreaMakerPlugin/utils/Item.js +102 -157
  61. package/libs/CSS3DRenderPlugin/Controller.js +45 -93
  62. package/libs/CSS3DRenderPlugin/index.js +15 -63
  63. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +51 -106
  64. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +79 -131
  65. package/libs/CruisePlugin/BaseController.js +90 -143
  66. package/libs/CruisePlugin/Move.js +39 -83
  67. package/libs/CruisePlugin/Work.js +52 -96
  68. package/libs/CruisePlugin/index.js +23 -67
  69. package/libs/CurrentPanoImagePlugin/Controller.js +88 -141
  70. package/libs/CurrentPanoImagePlugin/index.js +11 -64
  71. package/libs/GuideLinePlugin/Controller.js +13 -57
  72. package/libs/GuideLinePlugin/GuideLineItem.js +20 -64
  73. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -8
  74. package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -59
  75. package/libs/GuideLinePlugin/index.js +23 -67
  76. package/libs/ModelMakerPlugin/Controller.js +125 -165
  77. package/libs/ModelMakerPlugin/index.js +23 -63
  78. package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
  79. package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
  80. package/libs/ModelMakerPlugin/item/polygonItem.js +6 -7
  81. package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
  82. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +2 -3
  83. package/libs/ModelTVVideoPlugin/Plugin.js +49 -97
  84. package/libs/ModelTVVideoPlugin/index.js +8 -56
  85. package/libs/Object3DHelperPlugin/Controller.d.ts +9 -9
  86. package/libs/Object3DHelperPlugin/Controller.js +105 -92
  87. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  88. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +35 -30
  89. package/libs/Object3DHelperPlugin/index.js +15 -30
  90. package/libs/PanoCompassPlugin/Controller.js +46 -93
  91. package/libs/PanoCompassPlugin/index.js +17 -64
  92. package/libs/PanoCursorRaycasterPlugin/index.js +4 -3
  93. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -80
  94. package/libs/PanoDoorLabelPlugin/Controller.js +80 -133
  95. package/libs/PanoDoorLabelPlugin/index.js +11 -64
  96. package/libs/PanoMeasurePlugin/Components/Controller0.js +79 -128
  97. package/libs/PanoMeasurePlugin/Components/Controller1.js +92 -141
  98. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
  99. package/libs/PanoMeasurePlugin/Controller/EditController.js +73 -122
  100. package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
  101. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
  102. package/libs/PanoMeasurePlugin/Controller/WatchController.js +72 -121
  103. package/libs/PanoMeasurePlugin/Controller/index.js +89 -135
  104. package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
  105. package/libs/PanoMeasurePlugin/Model/area.js +25 -74
  106. package/libs/PanoMeasurePlugin/Model/index.js +3 -2
  107. package/libs/PanoMeasurePlugin/Model/line.js +1 -0
  108. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  109. package/libs/PanoMeasurePlugin/Model/polygon.js +7 -7
  110. package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
  111. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -56
  112. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +17 -66
  113. package/libs/PanoMeasurePlugin/index.js +18 -64
  114. package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -2
  115. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -59
  116. package/libs/PanoMeasurePlugin/utils/line.js +3 -2
  117. package/libs/PanoRulerProPlugin/Controller.js +34 -89
  118. package/libs/PanoRulerProPlugin/RulerItems.js +92 -147
  119. package/libs/PanoRulerProPlugin/index.js +10 -65
  120. package/libs/PanoSpatialTagPlugin/Plugin.js +130 -178
  121. package/libs/PanoSpatialTagPlugin/index.js +6 -54
  122. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +61 -116
  123. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +138 -193
  124. package/libs/PanoTagPlugin/Components/Tag/index.js +140 -194
  125. package/libs/PanoTagPlugin/Components/TagContainer.js +58 -112
  126. package/libs/PanoTagPlugin/Components/TagItem.js +137 -191
  127. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +109 -164
  128. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -76
  129. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +33 -87
  130. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +39 -94
  131. package/libs/PanoTagPlugin/controller/TagRender.js +18 -62
  132. package/libs/PanoTagPlugin/controller/TagUtil.js +80 -124
  133. package/libs/PanoTagPlugin/controller/index.js +37 -81
  134. package/libs/PanoTagPlugin/index.js +28 -72
  135. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +14 -14
  136. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +22 -77
  137. package/libs/PanoVideoPlugin/Controller.js +43 -96
  138. package/libs/PanoVideoPlugin/VideoMeshController.js +64 -119
  139. package/libs/PanoVideoPlugin/index.js +14 -67
  140. package/libs/PipelinePlugin/Controller.js +123 -176
  141. package/libs/PipelinePlugin/index.js +11 -64
  142. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +15 -70
  143. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -58
  144. package/libs/PipelinePlugin/utils/Objects/Pipe.js +42 -97
  145. package/libs/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  146. package/libs/Sculpt/Editors/BoxMeshEditor.js +98 -0
  147. package/libs/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  148. package/libs/Sculpt/Editors/CircleMeshEditor.js +9 -0
  149. package/libs/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  150. package/libs/Sculpt/Editors/CylinderMeshEditor.js +41 -0
  151. package/libs/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  152. package/libs/Sculpt/Editors/PrismMeshEditor.js +43 -0
  153. package/libs/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  154. package/libs/Sculpt/Editors/RectangleMeshEditor.js +70 -0
  155. package/libs/Sculpt/Meshes/Box.d.ts +6 -24
  156. package/libs/Sculpt/Meshes/Box.js +22 -93
  157. package/libs/Sculpt/Meshes/Circle.d.ts +0 -4
  158. package/libs/Sculpt/Meshes/Circle.js +18 -27
  159. package/libs/Sculpt/Meshes/Cylinder.d.ts +0 -1
  160. package/libs/Sculpt/Meshes/Cylinder.js +17 -24
  161. package/libs/Sculpt/Meshes/Line.d.ts +9 -22
  162. package/libs/Sculpt/Meshes/Line.js +85 -104
  163. package/libs/Sculpt/Meshes/LineWithDots.js +10 -14
  164. package/libs/Sculpt/Meshes/Point.js +29 -34
  165. package/libs/Sculpt/Meshes/Polygon.d.ts +1 -5
  166. package/libs/Sculpt/Meshes/Polygon.js +40 -53
  167. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  168. package/libs/Sculpt/Meshes/Prism.d.ts +29 -10
  169. package/libs/Sculpt/Meshes/Prism.js +108 -84
  170. package/libs/Sculpt/Meshes/Rectangle.d.ts +1 -5
  171. package/libs/Sculpt/Meshes/Rectangle.js +12 -22
  172. package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
  173. package/libs/Sculpt/Objects/Base/index.d.ts +3 -3
  174. package/libs/Sculpt/Objects/Base/index.js +20 -25
  175. package/libs/Sculpt/Objects/Box/index.d.ts +7 -2
  176. package/libs/Sculpt/Objects/Box/index.js +72 -60
  177. package/libs/Sculpt/Objects/Circle/index.d.ts +3 -0
  178. package/libs/Sculpt/Objects/Circle/index.js +41 -37
  179. package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  180. package/libs/Sculpt/Objects/Cylinder/index.js +66 -62
  181. package/libs/Sculpt/Objects/Line/Editor.js +8 -10
  182. package/libs/Sculpt/Objects/Line/index.d.ts +3 -0
  183. package/libs/Sculpt/Objects/Line/index.js +45 -41
  184. package/libs/Sculpt/Objects/Point/index.d.ts +3 -0
  185. package/libs/Sculpt/Objects/Point/index.js +33 -29
  186. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -0
  187. package/libs/Sculpt/Objects/Polygon/index.js +67 -63
  188. package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -0
  189. package/libs/Sculpt/Objects/Polyline/index.js +46 -42
  190. package/libs/Sculpt/Objects/Prism/index.d.ts +3 -0
  191. package/libs/Sculpt/Objects/Prism/index.js +58 -53
  192. package/libs/Sculpt/Objects/Rectangle/index.d.ts +13 -2
  193. package/libs/Sculpt/Objects/Rectangle/index.js +143 -81
  194. package/libs/Sculpt/index.d.ts +10 -19
  195. package/libs/Sculpt/index.js +105 -107
  196. package/libs/Sculpt/typings/style.d.ts +6 -0
  197. package/libs/Sculpt/utils/export.d.ts +24 -18
  198. package/libs/Sculpt/utils/export.js +52 -19
  199. package/libs/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  200. package/libs/Sculpt/utils/sortPositionsByCameraPosition.js +9 -0
  201. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  202. package/libs/Sculpt/utils/three/ColoredMesh.js +40 -37
  203. package/libs/base/BasePlugin.js +10 -15
  204. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +96 -147
  205. package/libs/floorplan/MapviewFloorplanPlugin/index.js +12 -63
  206. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +53 -105
  207. package/libs/floorplan/ModelFloorplanPlugin/index.js +11 -63
  208. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +65 -118
  209. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +11 -64
  210. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +54 -106
  211. package/libs/floorplan/TopviewFloorplanPlugin/index.js +11 -63
  212. package/libs/floorplan/index.js +0 -5
  213. package/libs/index.d.ts +79 -1
  214. package/libs/index.js +229 -215
  215. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  216. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -122
  217. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  218. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +60 -39
  219. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +47 -47
  220. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  221. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +28 -28
  222. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  223. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +25 -18
  224. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  225. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +18 -14
  226. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  227. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -0
  228. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  229. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -1
  230. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  231. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +40 -28
  232. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  233. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  234. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +4 -4
  235. package/libs/shared-utils/five/FiveDomEvents.js +88 -88
  236. package/libs/shared-utils/five/FiveLine.d.ts +18 -14
  237. package/libs/shared-utils/five/FiveLine.js +31 -13
  238. package/libs/shared-utils/five/index.js +2 -7
  239. package/libs/shared-utils/five/lookObject.js +27 -32
  240. package/libs/shared-utils/index.d.ts +0 -1
  241. package/libs/shared-utils/index.js +31 -33
  242. package/libs/shared-utils/logger.js +1 -1
  243. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  244. package/libs/shared-utils/tag.d.ts +5 -7
  245. package/libs/shared-utils/tag.js +1 -1
  246. package/libs/shared-utils/three/boundingBox.d.ts +14 -20
  247. package/libs/shared-utils/three/core/LineGeometry.d.ts +13 -0
  248. package/libs/shared-utils/three/core/LineGeometry.js +26 -0
  249. package/libs/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  250. package/libs/shared-utils/three/core/PrismGeometry.js +42 -0
  251. package/libs/shared-utils/three/earcut3D.js +5 -5
  252. package/libs/shared-utils/three/geometryUtil.d.ts +8 -0
  253. package/libs/shared-utils/three/geometryUtil.js +3 -1
  254. package/libs/shared-utils/three/getNormal.d.ts +5 -2
  255. package/libs/shared-utils/three/getNormal.js +6 -5
  256. package/libs/shared-utils/three/index.js +0 -5
  257. package/package.json +1 -1
  258. package/dist/Sculpt/Objects/Box/Editor.d.ts +0 -5
  259. package/dist/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  260. package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  261. package/dist/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  262. package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  263. package/dist/Sculpt/utils/getBetterNormal.d.ts +0 -2
  264. package/libs/Sculpt/Objects/Box/Editor.d.ts +0 -5
  265. package/libs/Sculpt/Objects/Box/Editor.js +0 -44
  266. package/libs/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  267. package/libs/Sculpt/Objects/Circle/Editor.js +0 -9
  268. package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  269. package/libs/Sculpt/Objects/Cylinder/Editor.js +0 -41
  270. package/libs/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  271. package/libs/Sculpt/Objects/Prism/Editor.js +0 -44
  272. package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  273. package/libs/Sculpt/Objects/Rectangle/Editor.js +0 -9
  274. package/libs/Sculpt/utils/getBetterNormal.d.ts +0 -2
  275. package/libs/Sculpt/utils/getBetterNormal.js +0 -8
  276. package/libs/vendor/three/build/three.module.js +0 -19336
  277. package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +0 -28
  278. package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -69
@@ -2,7 +2,7 @@ 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, n, t) => n in d ? F(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, m = (d, n) => {
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
6
  for (var t in n || (n = {}))
7
7
  x.call(n, t) && v(d, t, n[t]);
8
8
  if (w)
@@ -11,20 +11,20 @@ var v = (d, n, t) => n in d ? F(d, n, { enumerable: !0, configurable: !0, writab
11
11
  return d;
12
12
  }, u = (d, n) => P(d, E(n));
13
13
  var o = (d, n, t) => (v(d, typeof n != "symbol" ? n + "" : n, t), t);
14
- var f = (d, n, t) => new Promise((i, e) => {
14
+ var f = (d, n, t) => new Promise((e, i) => {
15
15
  var r = (a) => {
16
16
  try {
17
17
  s(t.next(a));
18
- } catch (p) {
19
- e(p);
18
+ } catch (m) {
19
+ i(m);
20
20
  }
21
21
  }, h = (a) => {
22
22
  try {
23
23
  s(t.throw(a));
24
- } catch (p) {
25
- e(p);
24
+ } catch (m) {
25
+ i(m);
26
26
  }
27
- }, s = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(r, h);
27
+ }, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(r, h);
28
28
  s((t = t.apply(d, n)).next());
29
29
  });
30
30
  import * as b from "three";
@@ -45,16 +45,11 @@ import "hammerjs";
45
45
  import "../../shared-utils/three/PointSelector/index.js";
46
46
  import "three/examples/jsm/renderers/CSS3DRenderer";
47
47
  import "@realsee/five/line";
48
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
48
+ import { isNil as U } from "../../shared-utils/isNil.js";
49
49
  import "../../shared-utils/three/core/Sphere.js";
50
50
  import "animejs";
51
- import { isNil as U } from "../../shared-utils/isNil.js";
52
51
  import { waitFiveModelLoaded as z } from "../../shared-utils/five/fiveModelLoad.js";
53
52
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
54
- import "../../Sculpt/Meshes/Polygon.js";
55
- import "../../Sculpt/utils/Modules/Global.js";
56
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
57
- import "../../Sculpt/utils/three/rayOnLine.js";
58
53
  import "../../shared-utils/isTruelyObject.js";
59
54
  import "../../vendor/svelte/internal/index.js";
60
55
  import "../../vendor/svelte/transition/index.js";
@@ -124,69 +119,23 @@ import "../../Sculpt/utils/removeAllTag.js";
124
119
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
125
120
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
126
121
  import "../../shared-utils/util.js";
122
+ import "../../shared-utils/three/core/LineGeometry.js";
127
123
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
128
124
  import "../../shared-utils/isTouchDevice.js";
129
125
  import "../../shared-utils/five/getPosition.js";
130
126
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
131
127
  import "../../shared-utils/three/PointSelector/utils/contents.js";
132
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
133
- import "../../vendor/three/build/three.module.js";
134
- import "../../shared-utils/three/generatePolygonGeometry.js";
135
- import "../../shared-utils/three/earcut3D.js";
136
- import "earcut";
137
- import "../../shared-utils/three/getNormal.js";
138
- import "../../PanoMeasurePlugin/utils/isIntersecting.js";
139
- import "../../Sculpt/utils/three/ColoredMesh.js";
140
- import "../../shared-utils/three/geometryUtil.js";
141
- import "../../Sculpt/utils/Modules/Cursor.js";
142
- import "../../Object3DHelperPlugin/Controller.js";
143
- import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
144
- import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
145
- import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
146
- import "../../shared-utils/three/boundingBox.js";
147
- import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
148
- import "../../shared-utils/Object3DHelper/utils/direction.js";
149
- import "../../shared-utils/Object3DHelper/Constants/color.js";
150
- import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
151
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
152
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
153
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
154
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
155
- import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
156
- import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
157
- import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
158
- import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
159
- import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
160
- import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
161
- import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
162
- import "../../shared-utils/Object3DHelper/Base/BaseController.js";
163
- import "../../shared-utils/threex/domevents/index.js";
164
- import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
165
- import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
166
- import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
167
- import "../../shared-utils/Object3DHelper/index.js";
168
- import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
169
- import "../../shared-utils/math/deg2Rad.js";
170
- import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
171
- import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
172
- import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
173
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
174
- import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
175
- import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
176
- import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
177
- import "../../shared-utils/five/FiveDomEvents.js";
178
- import "../../shared-utils/five/calculateThreeMouse.js";
179
128
  function W(d) {
180
- const { latitude: n, longitude: t } = d, i = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, e = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
181
- return i || e;
129
+ 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);
130
+ return e || i;
182
131
  }
183
132
  function G(d) {
184
- const { latitude: n, longitude: t } = d, i = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, e = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
185
- return i && e;
133
+ 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);
134
+ return e && i;
186
135
  }
187
- class ye extends O {
188
- constructor(t, i) {
189
- var a, p;
136
+ class De extends O {
137
+ constructor(t, e) {
138
+ var a, m;
190
139
  super(t);
191
140
  // =============== public properties =================
192
141
  o(this, "name", "modelFloorplanPlugin");
@@ -220,8 +169,8 @@ class ye extends O {
220
169
  o(this, "highlightData", {});
221
170
  /** 销毁插件 */
222
171
  o(this, "dispose", () => {
223
- var t, i;
224
- 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");
172
+ var t, e;
173
+ 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");
225
174
  });
226
175
  /** 展示户型图
227
176
  * 1. show 函数大部分情况下需要耗时
@@ -235,22 +184,22 @@ class ye extends O {
235
184
  * @param opts.isAutoShow 是否是自动展示
236
185
  * @param opts.userAction 是否是用户行为
237
186
  */
238
- o(this, "show", (...i) => f(this, [...i], function* (t = {}) {
187
+ o(this, "show", (...e) => f(this, [...e], function* (t = {}) {
239
188
  if (!this.state.enabled || !this.showPromise && this.state.visible)
240
189
  return;
241
- const e = t.userAction !== void 0 ? t.userAction : !0;
242
- this.updateState({ visible: !0 }, e), this._show(t);
190
+ const i = t.userAction !== void 0 ? t.userAction : !0;
191
+ this.updateState({ visible: !0 }, i), this._show(t);
243
192
  }));
244
193
  /** 隐藏户型图 */
245
- o(this, "hide", (...i) => f(this, [...i], function* (t = {}) {
194
+ o(this, "hide", (...e) => f(this, [...e], function* (t = {}) {
246
195
  this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, t.userAction || !0), this._hide(t)));
247
196
  }));
248
197
  /** 更新户型图大小 */
249
198
  o(this, "updateSize", () => {
250
199
  if (!this.data || !this.container || !this.wrapper)
251
200
  return !1;
252
- const { min: t, max: i } = this.data.bounding, e = i.x - t.x, r = i.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(e * s), p = Math.ceil(r * s);
253
- 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;
201
+ 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);
202
+ 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;
254
203
  });
255
204
  o(this, "highlight", (t) => {
256
205
  this.state.config.highlightEnable && (this.highlightData = t, this.render());
@@ -259,13 +208,13 @@ class ye extends O {
259
208
  this.highlightData = {}, this.render();
260
209
  });
261
210
  o(this, "_disable", (t) => {
262
- var e, r, h;
263
- const { userAction: i } = t;
264
- this.hooks.emit("disable", { userAction: i }), (e = this.showRejection) == null || e.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();
211
+ var i, r, h;
212
+ const { userAction: e } = t;
213
+ 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();
265
214
  });
266
215
  o(this, "_enable", (t) => {
267
- const { userAction: i } = t;
268
- this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i }));
216
+ const { userAction: e } = t;
217
+ this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
269
218
  });
270
219
  o(this, "_show", (t) => f(this, null, function* () {
271
220
  var h;
@@ -277,47 +226,47 @@ class ye extends O {
277
226
  throw new Error(c.DataNotLoaded);
278
227
  if (this.showPromise)
279
228
  return this.showPromise;
280
- const i = {
229
+ const e = {
281
230
  floorIndex: this.floorIndex,
282
231
  modelOpacity: this.state.config.modelOpacity,
283
232
  immediately: !1,
284
233
  isAutoShow: !1,
285
234
  userAction: !0
286
- }, e = m(m({}, i), t), r = () => f(this, null, function* () {
287
- this.hooks.emit("show", { userAction: e.userAction, auto: e.isAutoShow });
235
+ }, i = l(l({}, e), t), r = () => f(this, null, function* () {
236
+ this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
288
237
  let s = !1, a;
289
238
  this.showRejection = (g) => {
290
239
  s = !0, a = g;
291
240
  };
292
- const [p] = yield M(R(this.five, this.showState, e.userAction));
293
- if (p)
294
- throw p;
241
+ const [m] = yield M(R(this.five, this.showState, i.userAction));
242
+ if (m)
243
+ throw m;
295
244
  if (s)
296
245
  throw a ? new Error(a) : new Error(c.UnknownError);
297
246
  if (!this.updateSize())
298
247
  throw new Error(c.UpdateSizeError);
299
- this.updatePosition(), this.floorIndex = e.floorIndex, this.fiveUtil.model.show(this.floorIndex);
248
+ this.updatePosition(), this.floorIndex = i.floorIndex, this.fiveUtil.model.show(this.floorIndex);
300
249
  });
301
250
  return this.isHiddenByHideFunc = !1, this.showPromise = r().then(() => {
302
251
  this.showPromise = void 0, this.showRejection = void 0;
303
- const s = e.modelOpacity, a = e.immediately ? 0 : H;
252
+ const s = i.modelOpacity, a = i.immediately ? 0 : H;
304
253
  A(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
305
- auto: e.isAutoShow,
306
- userAction: e.userAction
254
+ auto: i.isAutoShow,
255
+ userAction: i.userAction
307
256
  });
308
257
  }).catch((s) => {
309
- if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, e.userAction), !e.isAutoShow && s instanceof Error)
258
+ if (this.showPromise = void 0, this.showRejection = void 0, this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && s instanceof Error)
310
259
  throw s;
311
260
  }), this.showPromise;
312
261
  }));
313
262
  o(this, "_hide", (t) => {
314
263
  var r;
315
264
  (r = this.showRejection) == null || r.call(this, c.BreakOffByHide), this.showPromise = void 0;
316
- const e = m(m({}, {
265
+ const i = l(l({}, {
317
266
  userAction: !0,
318
267
  isAutoHide: !1
319
268
  }), t);
320
- A(this.five, 1, 0), this.hooks.emit("hide", { auto: e.isAutoHide, userAction: e.userAction }), this.render();
269
+ A(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
321
270
  });
322
271
  o(this, "handleClick", () => {
323
272
  if (!this.state.visible)
@@ -327,61 +276,61 @@ class ye extends O {
327
276
  });
328
277
  /** modelLoaded 之后自动执行 append container 操作 */
329
278
  o(this, "onFiveModelLoaded", () => {
330
- const i = this.five.model.bounding.getCenter(new b.Vector3());
331
- if (this.showState.offset = i, this.state.enabled === !1 || this.wrapper || !this.selector)
279
+ const e = this.five.model.bounding.getCenter(new b.Vector3());
280
+ if (this.showState.offset = e, this.state.enabled === !1 || this.wrapper || !this.selector)
332
281
  return;
333
- const e = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
334
- if (!e)
282
+ const i = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
283
+ if (!i)
335
284
  throw new Error("不正确的父容器选择器");
336
- this.wrapper = e, e.append(this.container);
285
+ this.wrapper = i, i.append(this.container);
337
286
  });
338
287
  /** 更改模型时,自动隐藏户型图 */
339
288
  o(this, "onFiveModeChange", (t) => {
340
289
  t !== this.showState.mode && (this.updateState({ visible: !1 }, !1), this._hide({ userAction: !1 }));
341
290
  });
342
291
  /** 惯性结束后,判断能否自动展示户型图 */
343
- o(this, "onFiveInteriaPan", (t, i) => {
344
- if (!i || this.state.visible || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
292
+ o(this, "onFiveInteriaPan", (t, e) => {
293
+ if (!e || this.state.visible || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
345
294
  return;
346
- const e = this.five.getCurrentState();
347
- e.mode === this.showState.mode && G(e) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 }));
295
+ const i = this.five.getCurrentState();
296
+ i.mode === this.showState.mode && G(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 }));
348
297
  });
349
298
  /** panoIndex 改变时,更新 floorIndex */
350
299
  o(this, "onFivePanoArrived", (t) => {
351
- var i;
352
- (i = this.five) != null && i.work && (this.panoIndex = t, this.floorIndex = this.workUtil.observers[t].floorIndex);
300
+ var e;
301
+ (e = this.five) != null && e.work && (this.panoIndex = t, this.floorIndex = this.workUtil.observers[t].floorIndex);
353
302
  });
354
303
  /** cameraUpdate 时判断户型图是否应该自动隐藏 */
355
- o(this, "onFiveCameraUpdate", (t, i) => {
304
+ o(this, "onFiveCameraUpdate", (t, e) => {
356
305
  if (!this.state.visible || this.showPromise)
357
306
  return;
358
- const e = this.five.getCurrentState();
359
- this.updatePosition(), this.updateSize(), W(e) && (this.updateState({ visible: !1 }, i), this._hide({ userAction: i }));
307
+ const i = this.five.getCurrentState();
308
+ this.updatePosition(), this.updateSize(), W(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
360
309
  });
361
310
  /** 户型图展示中,转动三维模型,结束时应该自动修复模型状态 */
362
- o(this, "onFiveWantsPanGesture", (t, i) => {
363
- if (this.five.getCurrentState().mode === this.showState.mode && this.state.config.autoShowEnable !== !1 && i && this.state.visible)
311
+ o(this, "onFiveWantsPanGesture", (t, e) => {
312
+ if (this.five.getCurrentState().mode === this.showState.mode && this.state.config.autoShowEnable !== !1 && e && this.state.visible)
364
313
  return this.five.updateCamera(C(this.showState, ["offset"]), 0), !1;
365
314
  });
366
315
  /** 阻止点击分间走点 */
367
316
  o(this, "onFiveWantsTapGesture", () => this.handleClick());
368
317
  /** 从 Panorama 切换到其他模态时,记录当前的相机水平视角 */
369
- o(this, "onFiveWantsChangeMode", (t, i) => {
370
- i === "Panorama" && t === this.showState.mode && (this.lastPanoramaLongitude = this.five.getCurrentState().longitude);
318
+ o(this, "onFiveWantsChangeMode", (t, e) => {
319
+ e === "Panorama" && t === this.showState.mode && (this.lastPanoramaLongitude = this.five.getCurrentState().longitude);
371
320
  });
372
321
  /** 模型楼层高亮改变时,自动进行楼层切换 */
373
322
  o(this, "onModelShownFloorChange", (t) => {
374
- var i;
323
+ var e;
375
324
  if (this.floorIndex !== t) {
376
325
  if (t === null) {
377
- const e = this.five.getCurrentState().panoIndex;
378
- this.floorIndex = (i = this.five.work) == null ? void 0 : i.observers[e].floorIndex;
326
+ const i = this.five.getCurrentState().panoIndex;
327
+ this.floorIndex = (e = this.five.work) == null ? void 0 : e.observers[i].floorIndex;
379
328
  return;
380
329
  }
381
330
  this.floorIndex = t, this.updateSize(), this.render();
382
331
  }
383
332
  });
384
- i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = {
333
+ e != null && e.selector && (this.selector = e.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = {
385
334
  mode: "Mapview",
386
335
  longitude: 0,
387
336
  latitude: Math.PI / 2
@@ -389,10 +338,10 @@ class ye extends O {
389
338
  imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
390
339
  imageWidth: 200,
391
340
  imageHeight: 120,
392
- text: (p = (a = i.i18n) == null ? void 0 : a.call(i, "暂无平面图")) != null ? p : "暂无平面图",
341
+ text: (m = (a = e.i18n) == null ? void 0 : a.call(e, "暂无平面图")) != null ? m : "暂无平面图",
393
342
  textFontSize: 14
394
343
  };
395
- const e = {
344
+ const i = {
396
345
  northDesc: "北",
397
346
  modelOpacity: 1,
398
347
  cameraEnable: !0,
@@ -409,23 +358,23 @@ class ye extends O {
409
358
  attachedTo: D.BOUNDING_CENTER,
410
359
  getLabelElement: void 0,
411
360
  adaptiveRoomLabelVisibleEnable: !0,
412
- missingFloorConfig: m(m({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
413
- i18n: (l) => l,
414
- getRoomAreaText: (l) => (l / 1e6).toFixed(1) + "㎡",
415
- getRoomDimensionText: (l, g) => (l / 1e3).toFixed(1) + "m × " + (g / 1e3).toFixed(1) + "m",
416
- getRuleDistanceText: (l) => l.toString()
417
- }, r = i ? C(i, ["selector", "scale"]) : {}, h = m(m({}, e.missingFloorConfig), r.missingFloorConfig), s = u(m(m({}, e), r), { missingFloorConfig: h });
361
+ missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
362
+ i18n: (p) => p,
363
+ getRoomAreaText: (p) => (p / 1e6).toFixed(1) + "㎡",
364
+ getRoomDimensionText: (p, g) => (p / 1e3).toFixed(1) + "m × " + (g / 1e3).toFixed(1) + "m",
365
+ getRuleDistanceText: (p) => p.toString()
366
+ }, r = e ? C(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), r.missingFloorConfig), s = u(l(l({}, i), r), { missingFloorConfig: h });
418
367
  this.state = { enabled: !0, visible: !1, config: s }, this.initContainer(), z(t).then(this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
419
368
  }
420
- load(t, i, e = !0) {
369
+ load(t, e, i = !0) {
421
370
  return f(this, null, function* () {
422
- function r(l) {
423
- return Object.prototype.hasOwnProperty.apply(l, ["version"]);
371
+ function r(p) {
372
+ return Object.prototype.hasOwnProperty.apply(p, ["version"]);
424
373
  }
425
374
  const h = t;
426
375
  h && U(h.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
427
- const s = JSON.parse(JSON.stringify(t)), a = r(s) ? s.data : s, p = this.data;
428
- this.data = yield S(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, p), i && this.updateState(i, e), this.render();
376
+ const s = JSON.parse(JSON.stringify(t)), a = r(s) ? s.data : s, m = this.data;
377
+ 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();
429
378
  });
430
379
  }
431
380
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -437,34 +386,34 @@ class ye extends O {
437
386
  enable(t = {}) {
438
387
  if (this.state.enabled)
439
388
  return;
440
- const i = t.userAction !== void 0 ? t.userAction : !0;
441
- this.updateState({ enabled: !0 }, t.userAction || i), this._enable({ userAction: i });
389
+ const e = t.userAction !== void 0 ? t.userAction : !0;
390
+ this.updateState({ enabled: !0 }, t.userAction || e), this._enable({ userAction: e });
442
391
  }
443
392
  /** 禁用插件 */
444
393
  disable(t = {}) {
445
394
  if (!this.state.enabled)
446
395
  return;
447
- const i = t.userAction !== void 0 ? t.userAction : !0;
448
- this.updateState({ enabled: !1 }, t.userAction || i), this._disable({ userAction: i });
396
+ const e = t.userAction !== void 0 ? t.userAction : !0;
397
+ this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
449
398
  }
450
399
  /** 更改插件 State */
451
- setState(t, i = {}) {
452
- const e = this.state, r = i.userAction !== void 0 ? i.userAction : !0;
453
- if (this.updateState(t, r), t.enabled !== void 0 && e.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: r }) : this._disable({ userAction: r })), t.visible !== void 0 && e.visible !== t.visible) {
400
+ setState(t, e = {}) {
401
+ const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
402
+ 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) {
454
403
  const h = { userAction: r };
455
404
  t.visible ? this._show(h) : this._hide(h);
456
405
  }
457
406
  }
458
- changeConfigs(t, i = !0) {
459
- this.updateState({ config: t }, i), this.render();
407
+ changeConfigs(t, e = !0) {
408
+ this.updateState({ config: t }, e), this.render();
460
409
  }
461
410
  /** 更新户型图位置 */
462
411
  updatePosition() {
463
412
  var s;
464
- const t = k(this.five, this.floorIndex, this.state.config.attachedTo), i = (s = this.fiveUtil.model) == null ? void 0 : s.bounding.getCenter(new b.Vector3()).setY(t);
465
- if (!i)
413
+ 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);
414
+ if (!e)
466
415
  return;
467
- const e = i.clone().project(this.five.camera), r = (e.x + 1) / 2, h = -(e.y - 1) / 2;
416
+ const i = e.clone().project(this.five.camera), r = (i.x + 1) / 2, h = -(i.y - 1) / 2;
468
417
  this.container.style.left = r * 100 + "%", this.container.style.top = h * 100 + "%";
469
418
  }
470
419
  formatData(t) {
@@ -472,10 +421,10 @@ class ye extends O {
472
421
  return yield S(t.data);
473
422
  });
474
423
  }
475
- updateState(t, i) {
424
+ updateState(t, e) {
476
425
  var s;
477
- const e = this.state, r = (s = t.config) != null && s.missingFloorConfig ? m(m({}, e.config.missingFloorConfig), t.config.missingFloorConfig) : e.config.missingFloorConfig, h = t.config ? u(m(m({}, e.config), t.config), { missingFloorConfig: r }) : e.config;
478
- this.state = u(m(m({}, this.state), t), { config: h }), !y(this.state, e, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
426
+ 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;
427
+ 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 });
479
428
  }
480
429
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
481
430
  *
@@ -504,7 +453,7 @@ class ye extends O {
504
453
  render(t) {
505
454
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
506
455
  return;
507
- const i = u(m({}, this.state.config), {
456
+ const e = u(l({}, this.state.config), {
508
457
  visible: this.state.visible,
509
458
  duration: t != null ? t : 0,
510
459
  panoIndex: this.panoIndex,
@@ -514,10 +463,10 @@ class ye extends O {
514
463
  highlightData: this.highlightData
515
464
  });
516
465
  if (this.app)
517
- return this.app.$set(i);
518
- this.app = new _({ target: this.container, intro: !0, props: i });
466
+ return this.app.$set(e);
467
+ this.app = new _({ target: this.container, intro: !0, props: e });
519
468
  }
520
469
  }
521
470
  export {
522
- ye as Controller
471
+ De as Controller
523
472
  };
@@ -65,91 +65,40 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
65
65
  import "../../shared-utils/three/centerPoint.js";
66
66
  import "../../shared-utils/three/getObjectVisible.js";
67
67
  import "@realsee/five/line";
68
- import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
69
- import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
70
- import "../../vendor/three/build/three.module.js";
68
+ import "../../shared-utils/isNil.js";
71
69
  import "../../shared-utils/three/core/Sphere.js";
72
70
  import "animejs";
73
- import "../../shared-utils/isNil.js";
74
71
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
75
- import "../../Sculpt/Meshes/Polygon.js";
76
- import "../../shared-utils/three/generatePolygonGeometry.js";
77
- import "../../shared-utils/three/earcut3D.js";
78
- import "earcut";
79
- import "../../shared-utils/three/getNormal.js";
80
- import "../../PanoMeasurePlugin/utils/isIntersecting.js";
81
- import "../../Sculpt/typings/style.js";
82
- import "../../Sculpt/utils/three/ColoredMesh.js";
83
- import "../../shared-utils/three/IObject3D.js";
84
- import "../../Sculpt/utils/Modules/Global.js";
85
- import "../../Sculpt/utils/Modules/Cursor.js";
86
- import "../../Object3DHelperPlugin/Controller.js";
87
- import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
88
- import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
89
- import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
90
- import "../../shared-utils/three/boundingBox.js";
91
- import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
92
- import "../../shared-utils/Object3DHelper/utils/direction.js";
93
- import "../../shared-utils/Object3DHelper/Constants/color.js";
94
- import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
95
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
72
+ import "../../shared-utils/three/PointSelector/utils/html.js";
73
+ import "../../shared-utils/five/initialCSS3DRender.js";
96
74
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
97
75
  import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
98
76
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
99
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
100
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
101
- import "../../shared-utils/util.js";
102
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
103
- import "../../shared-utils/three/PointSelector/utils/html.js";
104
- import "../../shared-utils/five/initialCSS3DRender.js";
105
77
  import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
106
78
  import "../../Sculpt/Meshes/Line.js";
79
+ import "../../Sculpt/typings/style.js";
107
80
  import "../../shared-utils/five/FiveLine.js";
81
+ import "../../shared-utils/three/IObject3D.js";
108
82
  import "../../Sculpt/utils/removeAllTag.js";
109
83
  import "../../Sculpt/utils/Meshes/getLengthHTML.js";
110
84
  import "../../shared-utils/three/applyObjectMatrixWorld.js";
111
- import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
112
- import "../../Sculpt/utils/three/rayOnLine.js";
85
+ import "../../shared-utils/util.js";
86
+ import "../../shared-utils/three/core/LineGeometry.js";
113
87
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
114
- import "../../shared-utils/url/absoluteUrl.js";
115
- import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
116
- import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
117
- import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
118
- import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
119
- import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
120
- import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
121
- import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
122
- import "../../shared-utils/Object3DHelper/Base/BaseController.js";
123
- import "../../shared-utils/threex/domevents/index.js";
124
- import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
125
- import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
126
- import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
127
- import "../../shared-utils/Object3DHelper/index.js";
128
- import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
129
- import "../../shared-utils/math/deg2Rad.js";
130
- import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
131
- import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
132
- import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
133
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
134
- import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
135
- import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
136
- import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
137
- import "../../shared-utils/five/fiveModelLoad.js";
138
- import "../../shared-utils/five/FiveDomEvents.js";
139
- import "../../shared-utils/five/calculateThreeMouse.js";
140
88
  import "../../shared-utils/isTouchDevice.js";
141
- import "../../shared-utils/three/geometryUtil.js";
142
89
  import "../../shared-utils/five/getPosition.js";
143
90
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
144
91
  import "../../shared-utils/three/PointSelector/utils/contents.js";
92
+ import "../../shared-utils/url/absoluteUrl.js";
145
93
  import "../../shared-utils/getPxmm.js";
146
94
  import "../utils/correctFiveState.js";
147
95
  import "../utils/constant.js";
148
96
  import "../../shared-utils/nearlyEqual.js";
149
97
  import "../../shared-utils/five/changeMode.js";
150
98
  import "../../shared-utils/changeModelCanvasOpacity.js";
151
- const Ur = (o, r) => new t(o, r);
99
+ import "../../shared-utils/five/fiveModelLoad.js";
100
+ const Xo = (o, r) => new t(o, r);
152
101
  export {
153
- Ur as MapviewFloorplanPlugin,
154
- Ur as default
102
+ Xo as MapviewFloorplanPlugin,
103
+ Xo as default
155
104
  };