@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
@@ -11,19 +11,19 @@ var u = (h, n, e) => n in h ? P(h, n, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  var r = (h, n, e) => (u(h, typeof n != "symbol" ? n + "" : n, e), e);
13
13
  var d = (h, n, e) => new Promise((t, o) => {
14
- var i = (p) => {
14
+ var s = (p) => {
15
15
  try {
16
16
  m(e.next(p));
17
17
  } catch (c) {
18
18
  o(c);
19
19
  }
20
- }, s = (p) => {
20
+ }, i = (p) => {
21
21
  try {
22
22
  m(e.throw(p));
23
23
  } catch (c) {
24
24
  o(c);
25
25
  }
26
- }, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(i, s);
26
+ }, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(s, i);
27
27
  m((e = e.apply(h, n)).next());
28
28
  });
29
29
  import * as a from "three";
@@ -61,89 +61,42 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
61
61
  import "../shared-utils/three/centerPoint.js";
62
62
  import "../shared-utils/three/getObjectVisible.js";
63
63
  import "@realsee/five/line";
64
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
65
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
66
- import "../vendor/three/build/three.module.js";
64
+ import "../shared-utils/isNil.js";
67
65
  import "../shared-utils/three/core/Sphere.js";
68
66
  import "animejs";
69
- import "../shared-utils/isNil.js";
70
67
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
71
- import "../Sculpt/Meshes/Polygon.js";
72
- import "../shared-utils/three/generatePolygonGeometry.js";
73
- import "../shared-utils/three/earcut3D.js";
74
- import "earcut";
75
- import "../shared-utils/three/getNormal.js";
76
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
77
- import "../Sculpt/typings/style.js";
78
- import "../Sculpt/utils/three/ColoredMesh.js";
79
- import "../shared-utils/three/IObject3D.js";
80
- import "../Sculpt/utils/Modules/Global.js";
81
- import "../Sculpt/utils/Modules/Cursor.js";
82
- import "../Object3DHelperPlugin/Controller.js";
83
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
84
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
85
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
86
- import "../shared-utils/three/boundingBox.js";
87
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
88
- import "../shared-utils/Object3DHelper/utils/direction.js";
89
- import "../shared-utils/Object3DHelper/Constants/color.js";
90
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
91
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
68
+ import "../shared-utils/three/PointSelector/utils/html.js";
69
+ import "../shared-utils/five/initialCSS3DRender.js";
92
70
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
93
71
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
94
72
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
95
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
96
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
97
- import "../shared-utils/util.js";
98
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
99
- import "../shared-utils/three/PointSelector/utils/html.js";
100
- import "../shared-utils/five/initialCSS3DRender.js";
101
73
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
102
74
  import "../Sculpt/Meshes/Line.js";
75
+ import "../Sculpt/typings/style.js";
103
76
  import "../shared-utils/five/FiveLine.js";
77
+ import "../shared-utils/three/IObject3D.js";
104
78
  import "../Sculpt/utils/removeAllTag.js";
105
79
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
106
80
  import "../shared-utils/three/applyObjectMatrixWorld.js";
107
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
108
- import "../Sculpt/utils/three/rayOnLine.js";
81
+ import "../shared-utils/util.js";
82
+ import "../shared-utils/three/core/LineGeometry.js";
109
83
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
110
- import "../shared-utils/url/absoluteUrl.js";
111
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
112
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
113
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
114
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
115
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
116
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
117
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
118
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
119
- import "../shared-utils/threex/domevents/index.js";
120
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
121
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
122
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
123
- import "../shared-utils/Object3DHelper/index.js";
124
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
125
- import "../shared-utils/math/rad2Deg.js";
126
- import "../shared-utils/math/deg2Rad.js";
127
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
128
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
129
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
130
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
131
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
132
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
133
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
134
- import "../shared-utils/five/fiveModelLoad.js";
135
- import "../shared-utils/five/FiveDomEvents.js";
136
- import "../shared-utils/five/calculateThreeMouse.js";
137
84
  import "../shared-utils/isTouchDevice.js";
138
- import "../shared-utils/three/geometryUtil.js";
139
85
  import "../shared-utils/five/getPosition.js";
140
86
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
141
87
  import "../shared-utils/three/PointSelector/utils/contents.js";
88
+ import "../shared-utils/url/absoluteUrl.js";
142
89
  import "./Assets/roomInfoIcon.js";
143
90
  import "../CSS3DRenderPlugin/Controller.js";
91
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
92
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
93
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
94
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
95
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
96
+ import "../shared-utils/five/fiveModelLoad.js";
144
97
  import "../shared-utils/animationFrame/index.js";
145
98
  const g = { userAction: !0 };
146
- class kt extends A {
99
+ class Xe extends A {
147
100
  constructor(e, t) {
148
101
  super(e, t);
149
102
  /**
@@ -174,8 +127,8 @@ class kt extends A {
174
127
  * @todo 销毁贴图时,最好还是直接销毁贴图吧,this.compassMesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
175
128
  */
176
129
  r(this, "dispose", () => {
177
- var e, t, o, i;
178
- this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (i = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || i.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
130
+ var e, t, o, s;
131
+ this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (s = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || s.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
179
132
  });
180
133
  /**
181
134
  * 添加事件监听
@@ -220,12 +173,12 @@ class kt extends A {
220
173
  this.entryDoorMesh && (this.group.remove(this.entryDoorMesh), (e = this.entryDoorMesh.material.map) == null || e.dispose(), this.entryDoorMesh = null), this.roomInfoInstance && (this.roomInfoInstance.dispose(), this.roomInfoInstance = null), this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.dispose(), this.roomInfoWrapperInstance = null);
221
174
  });
222
175
  r(this, "onFivePanoWillArrive", (e) => {
223
- var t, o, i, s;
224
- e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (i = this.logoMeshTween) == null || i.dispose(), (s = this.logoMesh) == null || s.material.setValues({ opacity: 0 }));
176
+ var t, o, s, i;
177
+ e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (s = this.logoMeshTween) == null || s.dispose(), (i = this.logoMesh) == null || i.material.setValues({ opacity: 0 }));
225
178
  });
226
179
  r(this, "onFivePanoArrived", (e) => {
227
- var o, i, s, m, p, c, y, I;
228
- const t = (s = (i = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : i[e]) == null ? void 0 : s.standingPosition;
180
+ var o, s, i, m, p, c, y, I;
181
+ const t = (i = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : i.standingPosition;
229
182
  if (this.compassMesh && t && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((m = this.compassMeshTween) == null || m.dispose(), this.compassMeshTween = D(1e3).onUpdate(({ progress: v }) => {
230
183
  var l;
231
184
  (l = this.compassMesh) == null || l.material.setValues({ opacity: v }), this.five.needsRender = !0;
@@ -243,16 +196,16 @@ class kt extends A {
243
196
  this.roomInfoInstance && this.roomInfoWrapperInstance && t && (this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
244
197
  });
245
198
  r(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: t }) => {
246
- var o, i;
247
- this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (i = this.roomInfoInstance) == null || i.hide());
199
+ var o, s;
200
+ this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (s = this.roomInfoInstance) == null || s.hide());
248
201
  });
249
202
  // eslint-disable-next-line max-params
250
- r(this, "onFiveModeChange", (e, t, o, i, s) => {
203
+ r(this, "onFiveModeChange", (e, t, o, s, i) => {
251
204
  e !== t && this.setState(
252
205
  {
253
206
  visible: e === _.Mode.Panorama
254
207
  },
255
- { userAction: s }
208
+ { userAction: i }
256
209
  );
257
210
  });
258
211
  this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
@@ -316,11 +269,11 @@ class kt extends A {
316
269
  ), Promise.resolve();
317
270
  }
318
271
  setState(e, t = { userAction: !0 }) {
319
- var i, s;
272
+ var s, i;
320
273
  const o = JSON.parse(JSON.stringify(this.state));
321
274
  this.state = {
322
- visible: (i = e.visible) != null ? i : o.visible,
323
- enabled: (s = e.enabled) != null ? s : o.enabled,
275
+ visible: (s = e.visible) != null ? s : o.visible,
276
+ enabled: (i = e.enabled) != null ? i : o.enabled,
324
277
  config: f(f({}, o.config), e.config || {})
325
278
  }, this.hooks.emit("stateChange", {
326
279
  state: this.state,
@@ -330,8 +283,8 @@ class kt extends A {
330
283
  }
331
284
  load(e, t, o = !0) {
332
285
  return d(this, null, function* () {
333
- const i = yield this.formatData(e);
334
- JSON.stringify(this.data) !== JSON.stringify(i) && (this.hooks.emit("dataChange", i, this.data), this.data = f({}, i), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
286
+ const s = yield this.formatData(e);
287
+ JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = f({}, s), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
335
288
  });
336
289
  }
337
290
  formatData(e) {
@@ -343,22 +296,22 @@ class kt extends A {
343
296
  */
344
297
  init() {
345
298
  return d(this, null, function* () {
346
- var o, i, s, m;
347
- const e = (i = (o = this.data) == null ? void 0 : o.north_rad) != null ? i : null;
299
+ var o, s, i, m;
300
+ const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
348
301
  this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh && (this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh))), this._clearLogoIfNeed(), this.logoMesh = yield this.loadLogoMesh(), this.logoMesh && (this.logoMesh.rotateX(-Math.PI / 2), this.group.add(this.logoMesh));
349
- const t = (m = (s = this.data) == null ? void 0 : s.entrance) != null ? m : null;
302
+ const t = (m = (i = this.data) == null ? void 0 : i.entrance) != null ? m : null;
350
303
  this._clearEntryDoorIfNeed(), t !== null && (this.entryDoorMesh = yield this.loadEntryDoorMesh(), this.roomInfoWrapperInstance = this.loadRoomInfo(), this.roomInfoInstance = U(), this.entryDoorMesh.rotateX(-Math.PI / 2), this.roomInfoWrapperInstance && this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container), this.group.add(this.entryDoorMesh)), this.onFivePanoArrived(this.five.panoIndex || 0), this.five.needsRender = !0;
351
304
  });
352
305
  }
353
306
  loadCompassMesh() {
354
307
  return d(this, null, function* () {
355
- const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), i = new a.MeshBasicMaterial({
308
+ const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), s = new a.MeshBasicMaterial({
356
309
  map: t,
357
310
  transparent: !0,
358
311
  opacity: 0,
359
312
  depthTest: !1
360
- }), s = new a.Mesh(o, i);
361
- return s.name = "pano-compass-mesh", s;
313
+ }), i = new a.Mesh(o, s);
314
+ return i.name = "pano-compass-mesh", i;
362
315
  });
363
316
  }
364
317
  loadLogoMesh() {
@@ -367,24 +320,24 @@ class kt extends A {
367
320
  return;
368
321
  const e = this.state.config.logoURL, t = yield M(e);
369
322
  t.minFilter = a.NearestFilter, t.magFilter = a.NearestFilter;
370
- const o = new a.PlaneBufferGeometry(0.4, 0.4), i = new a.MeshBasicMaterial({
323
+ const o = new a.PlaneBufferGeometry(0.4, 0.4), s = new a.MeshBasicMaterial({
371
324
  map: t,
372
325
  opacity: 0,
373
326
  transparent: !0,
374
327
  depthTest: !1
375
- }), s = new a.Mesh(o, i);
376
- return s.name = "pano-compass-logo-mesh", s;
328
+ }), i = new a.Mesh(o, s);
329
+ return i.name = "pano-compass-logo-mesh", i;
377
330
  });
378
331
  }
379
332
  loadEntryDoorMesh() {
380
333
  return d(this, null, function* () {
381
- const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), i = new a.MeshBasicMaterial({
334
+ const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), s = new a.MeshBasicMaterial({
382
335
  map: t,
383
336
  transparent: !0,
384
337
  opacity: 0.8,
385
338
  depthTest: !1
386
- }), s = new a.Mesh(o, i);
387
- return s.name = "pano-compass-entry-door", s;
339
+ }), i = new a.Mesh(o, s);
340
+ return i.name = "pano-compass-entry-door", i;
388
341
  });
389
342
  }
390
343
  loadRoomInfo() {
@@ -398,5 +351,5 @@ class kt extends A {
398
351
  }
399
352
  }
400
353
  export {
401
- kt as PanoCompassController
354
+ Xe as PanoCompassController
402
355
  };
@@ -30,93 +30,46 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
30
30
  import "../shared-utils/three/centerPoint.js";
31
31
  import "../shared-utils/three/getObjectVisible.js";
32
32
  import "@realsee/five/line";
33
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
34
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
35
- import "../vendor/three/build/three.module.js";
33
+ import "../shared-utils/isNil.js";
36
34
  import "../shared-utils/three/core/Sphere.js";
37
35
  import "animejs";
38
- import "../shared-utils/isNil.js";
39
36
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
40
- import "../Sculpt/Meshes/Polygon.js";
41
- import "../shared-utils/three/generatePolygonGeometry.js";
42
- import "../shared-utils/three/earcut3D.js";
43
- import "earcut";
44
- import "../shared-utils/three/getNormal.js";
45
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
46
- import "../Sculpt/typings/style.js";
47
- import "../Sculpt/utils/three/ColoredMesh.js";
48
- import "../shared-utils/three/IObject3D.js";
49
- import "../Sculpt/utils/Modules/Global.js";
50
- import "../Sculpt/utils/Modules/Cursor.js";
51
- import "../Object3DHelperPlugin/Controller.js";
52
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
53
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
54
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
55
- import "../shared-utils/three/boundingBox.js";
56
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
57
- import "../shared-utils/Object3DHelper/utils/direction.js";
58
- import "../shared-utils/Object3DHelper/Constants/color.js";
59
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
60
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
37
+ import "../shared-utils/three/PointSelector/utils/html.js";
38
+ import "../shared-utils/five/initialCSS3DRender.js";
61
39
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
62
40
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
63
41
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
64
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
65
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
66
- import "../shared-utils/util.js";
67
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
68
- import "../shared-utils/three/PointSelector/utils/html.js";
69
- import "../shared-utils/five/initialCSS3DRender.js";
70
42
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
71
43
  import "../Sculpt/Meshes/Line.js";
44
+ import "../Sculpt/typings/style.js";
72
45
  import "../shared-utils/five/FiveLine.js";
46
+ import "../shared-utils/three/IObject3D.js";
73
47
  import "../Sculpt/utils/removeAllTag.js";
74
48
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
75
49
  import "../shared-utils/three/applyObjectMatrixWorld.js";
76
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
77
- import "../Sculpt/utils/three/rayOnLine.js";
50
+ import "../shared-utils/util.js";
51
+ import "../shared-utils/three/core/LineGeometry.js";
78
52
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
79
- import "../shared-utils/url/absoluteUrl.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 "../Object3DHelperPlugin/FiveControllerWrapper.js";
92
- import "../shared-utils/Object3DHelper/index.js";
93
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
94
- import "../shared-utils/math/rad2Deg.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
53
  import "../shared-utils/isTouchDevice.js";
107
- import "../shared-utils/three/geometryUtil.js";
108
54
  import "../shared-utils/five/getPosition.js";
109
55
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
110
56
  import "../shared-utils/three/PointSelector/utils/contents.js";
57
+ import "../shared-utils/url/absoluteUrl.js";
111
58
  import "./getRoomInfoInstance.js";
112
59
  import "./Assets/roomInfoIcon.js";
113
60
  import "../shared-utils/three/loadTexture.js";
114
61
  import "../CSS3DRenderPlugin/index.js";
115
62
  import "../CSS3DRenderPlugin/Controller.js";
63
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
64
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
65
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
66
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
67
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
68
+ import "../shared-utils/five/fiveModelLoad.js";
116
69
  import "../shared-utils/animationFrame/BetterTween.js";
117
70
  import "../shared-utils/animationFrame/index.js";
118
- const fr = (o, r) => new t(o, r);
71
+ const bo = (o, r) => new t(o, r);
119
72
  export {
120
- fr as PanoCompassPlugin,
121
- fr as default
73
+ bo as PanoCompassPlugin,
74
+ bo as default
122
75
  };
@@ -2,7 +2,8 @@ import { Group as g, Vector3 as r, Raycaster as C } from "three";
2
2
  import { createLine as u } from "../shared-utils/createLine/index.js";
3
3
  import "../shared-utils/five/FiveLine.js";
4
4
  import "@realsee/five/line";
5
- const U = (e) => {
5
+ import "../shared-utils/isNil.js";
6
+ const V = (e) => {
6
7
  const a = {
7
8
  intersection: null,
8
9
  disposers: []
@@ -56,6 +57,6 @@ const U = (e) => {
56
57
  return { intersection: z, pointAxesHelper: P, movePointTowardsCamera: x, destroy: w, dispose: H, canSeePoint: h };
57
58
  };
58
59
  export {
59
- U as PanoCursorRaycasterPlugin,
60
- U as default
60
+ V as PanoCursorRaycasterPlugin,
61
+ V as default
61
62
  };
@@ -2,15 +2,15 @@ var h = Object.defineProperty, l = Object.defineProperties;
2
2
  var d = Object.getOwnPropertyDescriptors;
3
3
  var a = Object.getOwnPropertySymbols;
4
4
  var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var e = (r, i, t) => i in r ? h(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, o = (r, i) => {
5
+ var p = (e, i, t) => i in e ? h(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, r = (e, i) => {
6
6
  for (var t in i || (i = {}))
7
- u.call(i, t) && e(r, t, i[t]);
7
+ u.call(i, t) && p(e, t, i[t]);
8
8
  if (a)
9
9
  for (var t of a(i))
10
- b.call(i, t) && e(r, t, i[t]);
11
- return r;
12
- }, p = (r, i) => l(r, d(i));
13
- var m = (r, i, t) => (e(r, typeof i != "symbol" ? i + "" : i, t), t);
10
+ b.call(i, t) && p(e, t, i[t]);
11
+ return e;
12
+ }, o = (e, i) => l(e, d(i));
13
+ var s = (e, i, t) => (p(e, typeof i != "symbol" ? i + "" : i, t), t);
14
14
  import { Five as v } from "@realsee/five";
15
15
  import { Controller as c } from "../base/BasePlugin.js";
16
16
  import "../shared-utils/Subscribe.js";
@@ -41,90 +41,37 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
41
41
  import "../shared-utils/three/centerPoint.js";
42
42
  import "../shared-utils/three/getObjectVisible.js";
43
43
  import "@realsee/five/line";
44
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
45
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
46
- import "../vendor/three/build/three.module.js";
44
+ import "../shared-utils/isNil.js";
47
45
  import "../shared-utils/three/core/Sphere.js";
48
46
  import "animejs";
49
- import "../shared-utils/isNil.js";
50
47
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
51
- import "../Sculpt/Meshes/Polygon.js";
52
- import "../shared-utils/three/generatePolygonGeometry.js";
53
- import "../shared-utils/three/earcut3D.js";
54
- import "earcut";
55
- import "../shared-utils/three/getNormal.js";
56
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
57
- import "../Sculpt/typings/style.js";
58
- import "../Sculpt/utils/three/ColoredMesh.js";
59
- import "../shared-utils/three/IObject3D.js";
60
- import "../Sculpt/utils/Modules/Global.js";
61
- import "../Sculpt/utils/Modules/Cursor.js";
62
- import "../Object3DHelperPlugin/Controller.js";
63
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
64
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
65
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
66
- import "../shared-utils/three/boundingBox.js";
67
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
68
- import "../shared-utils/Object3DHelper/utils/direction.js";
69
- import "../shared-utils/Object3DHelper/Constants/color.js";
70
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
71
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
48
+ import "../shared-utils/three/PointSelector/utils/html.js";
49
+ import "../shared-utils/five/initialCSS3DRender.js";
72
50
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
73
51
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
74
52
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
75
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
76
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
77
- import "../shared-utils/util.js";
78
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
79
- import "../shared-utils/three/PointSelector/utils/html.js";
80
- import "../shared-utils/five/initialCSS3DRender.js";
81
53
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
82
54
  import "../Sculpt/Meshes/Line.js";
55
+ import "../Sculpt/typings/style.js";
83
56
  import "../shared-utils/five/FiveLine.js";
57
+ import "../shared-utils/three/IObject3D.js";
84
58
  import "../Sculpt/utils/removeAllTag.js";
85
59
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
86
60
  import "../shared-utils/three/applyObjectMatrixWorld.js";
87
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
88
- import "../Sculpt/utils/three/rayOnLine.js";
61
+ import "../shared-utils/util.js";
62
+ import "../shared-utils/three/core/LineGeometry.js";
89
63
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
90
- import "../shared-utils/url/absoluteUrl.js";
91
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
92
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
93
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
94
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
95
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
96
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
97
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
98
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
99
- import "../shared-utils/threex/domevents/index.js";
100
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
101
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
102
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
103
- import "../shared-utils/Object3DHelper/index.js";
104
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
105
- import "../shared-utils/math/rad2Deg.js";
106
- import "../shared-utils/math/deg2Rad.js";
107
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
108
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
109
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
110
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
111
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
112
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
113
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
114
- import "../shared-utils/five/fiveModelLoad.js";
115
- import "../shared-utils/five/FiveDomEvents.js";
116
- import "../shared-utils/five/calculateThreeMouse.js";
117
64
  import "../shared-utils/isTouchDevice.js";
118
- import "../shared-utils/three/geometryUtil.js";
119
65
  import "../shared-utils/five/getPosition.js";
120
66
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
121
67
  import "../shared-utils/three/PointSelector/utils/contents.js";
122
- class Si extends c {
68
+ import "../shared-utils/url/absoluteUrl.js";
69
+ class Ct extends c {
123
70
  constructor(t) {
124
71
  super(t);
125
- m(this, "state");
126
- m(this, "container");
127
- m(this, "enabled");
72
+ s(this, "state");
73
+ s(this, "container");
74
+ s(this, "enabled");
128
75
  this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
129
76
  }
130
77
  /**
@@ -132,14 +79,14 @@ class Si extends c {
132
79
  * @param options
133
80
  */
134
81
  enable(t) {
135
- this.enabled = !0, this.updateState(p(o({}, t), { userAction: !0 }));
82
+ this.enabled = !0, this.updateState(o(r({}, t), { userAction: !0 }));
136
83
  }
137
84
  /**
138
85
  * 禁用组件
139
86
  * @param options
140
87
  */
141
88
  disable(t) {
142
- this.enabled = !1, this.updateState(p(o({}, t), { userAction: !0 }));
89
+ this.enabled = !1, this.updateState(o(r({}, t), { userAction: !0 }));
143
90
  }
144
91
  /**
145
92
  * 显示 UI
@@ -148,7 +95,7 @@ class Si extends c {
148
95
  */
149
96
  show(t) {
150
97
  if (this.state.enabled)
151
- return this.setState(p(o({}, this.state), { visible: !0 }), t), Promise.resolve();
98
+ return this.setState(o(r({}, this.state), { visible: !0 }), t), Promise.resolve();
152
99
  }
153
100
  /**
154
101
  * 隐藏 UI
@@ -157,7 +104,7 @@ class Si extends c {
157
104
  */
158
105
  hide(t) {
159
106
  if (this.state.enabled)
160
- return this.setState(p(o({}, this.state), { visible: !1 }), t), Promise.resolve();
107
+ return this.setState(o(r({}, this.state), { visible: !1 }), t), Promise.resolve();
161
108
  }
162
109
  /**
163
110
  * 销毁对象
@@ -171,11 +118,11 @@ class Si extends c {
171
118
  * @param options @BaseOptions 可选配置
172
119
  * @returns
173
120
  */
174
- setState(t, s) {
121
+ setState(t, m) {
175
122
  if (!this.enabled)
176
123
  return;
177
- const n = o({}, this.state);
178
- this.state = o(o(o({}, this.state), t), s), this.stateChangedCallback(n, s);
124
+ const n = r({}, this.state);
125
+ this.state = r(r(r({}, this.state), t), m), this.stateChangedCallback(n, m);
179
126
  }
180
127
  get visible() {
181
128
  return this.five.state.mode === v.Mode.Panorama;
@@ -184,9 +131,9 @@ class Si extends c {
184
131
  this.enabled && (this.container = t, this.render());
185
132
  }
186
133
  updateState(t) {
187
- this.setState(p(o({}, this.state), { enabled: this.enabled, visible: this.visible }), t);
134
+ this.setState(o(r({}, this.state), { enabled: this.enabled, visible: this.visible }), t);
188
135
  }
189
136
  }
190
137
  export {
191
- Si as BasePanoPluginController
138
+ Ct as BasePanoPluginController
192
139
  };