@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
@@ -1,30 +1,30 @@
1
1
  var f = Object.defineProperty;
2
2
  var c = Object.getOwnPropertySymbols;
3
3
  var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var h = (r, t, i) => t in r ? f(r, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[t] = i, u = (r, t) => {
4
+ var h = (e, t, i) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, u = (e, t) => {
5
5
  for (var i in t || (t = {}))
6
- v.call(t, i) && h(r, i, t[i]);
6
+ v.call(t, i) && h(e, i, t[i]);
7
7
  if (c)
8
8
  for (var i of c(t))
9
- b.call(t, i) && h(r, i, t[i]);
10
- return r;
9
+ b.call(t, i) && h(e, i, t[i]);
10
+ return e;
11
11
  };
12
- var e = (r, t, i) => (h(r, typeof t != "symbol" ? t + "" : t, i), i);
13
- var n = (r, t, i) => new Promise((m, p) => {
14
- var s = (o) => {
12
+ var o = (e, t, i) => (h(e, typeof t != "symbol" ? t + "" : t, i), i);
13
+ var m = (e, t, i) => new Promise((p, s) => {
14
+ var a = (r) => {
15
15
  try {
16
- l(i.next(o));
16
+ l(i.next(r));
17
17
  } catch (d) {
18
- p(d);
18
+ s(d);
19
19
  }
20
- }, a = (o) => {
20
+ }, n = (r) => {
21
21
  try {
22
- l(i.throw(o));
22
+ l(i.throw(r));
23
23
  } catch (d) {
24
- p(d);
24
+ s(d);
25
25
  }
26
- }, l = (o) => o.done ? m(o.value) : Promise.resolve(o.value).then(s, a);
27
- l((i = i.apply(r, t)).next());
26
+ }, l = (r) => r.done ? p(r.value) : Promise.resolve(r.value).then(a, n);
27
+ l((i = i.apply(e, t)).next());
28
28
  });
29
29
  import I from "./RulerItems.js";
30
30
  import "../vendor/svelte/internal/index.js";
@@ -59,81 +59,26 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
59
59
  import "../shared-utils/three/centerPoint.js";
60
60
  import "../shared-utils/three/getObjectVisible.js";
61
61
  import "@realsee/five/line";
62
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
63
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
64
- import "../vendor/three/build/three.module.js";
62
+ import "../shared-utils/isNil.js";
65
63
  import "../shared-utils/three/core/Sphere.js";
66
64
  import "animejs";
67
- import "../shared-utils/isNil.js";
68
- import "../Sculpt/Meshes/Polygon.js";
69
- import "../shared-utils/three/generatePolygonGeometry.js";
70
- import "../shared-utils/three/earcut3D.js";
71
- import "earcut";
72
- import "../shared-utils/three/getNormal.js";
73
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
74
- import "../Sculpt/typings/style.js";
75
- import "../Sculpt/utils/three/ColoredMesh.js";
76
- import "../shared-utils/three/IObject3D.js";
77
- import "../Sculpt/utils/Modules/Global.js";
78
- import "../Sculpt/utils/Modules/Cursor.js";
79
- import "../Object3DHelperPlugin/Controller.js";
80
- import "../base/BasePlugin.js";
81
- import "../shared-utils/url/absoluteUrl.js";
82
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
83
- import "../Sculpt/utils/three/rayOnLine.js";
84
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
85
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
86
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
87
- import "../shared-utils/three/boundingBox.js";
88
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
89
- import "../shared-utils/Object3DHelper/utils/direction.js";
90
- import "../shared-utils/Object3DHelper/Constants/color.js";
91
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
92
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
65
+ import "../shared-utils/three/PointSelector/utils/html.js";
66
+ import "../shared-utils/five/initialCSS3DRender.js";
93
67
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
94
68
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
95
69
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
96
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
97
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
98
- import "../shared-utils/util.js";
99
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
100
- import "../shared-utils/three/PointSelector/utils/html.js";
101
- import "../shared-utils/five/initialCSS3DRender.js";
102
70
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
103
71
  import "../Sculpt/Meshes/Line.js";
72
+ import "../Sculpt/typings/style.js";
104
73
  import "../shared-utils/five/FiveLine.js";
74
+ import "../shared-utils/three/IObject3D.js";
105
75
  import "../Sculpt/utils/removeAllTag.js";
106
76
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
107
77
  import "../shared-utils/three/applyObjectMatrixWorld.js";
78
+ import "../shared-utils/util.js";
79
+ import "../shared-utils/three/core/LineGeometry.js";
108
80
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
109
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
110
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
111
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
112
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
113
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
114
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
115
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
116
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
117
- import "../shared-utils/threex/domevents/index.js";
118
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
119
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
120
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
121
- import "../shared-utils/Object3DHelper/index.js";
122
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
123
- import "../shared-utils/math/rad2Deg.js";
124
- import "../shared-utils/math/deg2Rad.js";
125
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
126
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
127
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
128
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
129
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
130
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
131
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
132
- import "../shared-utils/five/fiveModelLoad.js";
133
- import "../shared-utils/five/FiveDomEvents.js";
134
- import "../shared-utils/five/calculateThreeMouse.js";
135
81
  import "../shared-utils/isTouchDevice.js";
136
- import "../shared-utils/three/geometryUtil.js";
137
82
  import "../shared-utils/five/getPosition.js";
138
83
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
139
84
  import "../shared-utils/three/PointSelector/utils/contents.js";
@@ -141,13 +86,13 @@ import "../shared-utils/equal.js";
141
86
  import "../shared-utils/isTruelyObject.js";
142
87
  import "../shared-utils/math/planimetry.js";
143
88
  import "./RulerItem.js";
144
- class Ei {
89
+ class xt {
145
90
  constructor(t, i) {
146
- e(this, "five");
147
- e(this, "container", document.createElement("div"));
148
- e(this, "panoRulerProData");
149
- e(this, "rulerItems");
150
- e(this, "state", {
91
+ o(this, "five");
92
+ o(this, "container", document.createElement("div"));
93
+ o(this, "panoRulerProData");
94
+ o(this, "rulerItems");
95
+ o(this, "state", {
151
96
  enabled: !1,
152
97
  loaded: !1,
153
98
  options: {
@@ -155,17 +100,17 @@ class Ei {
155
100
  distanceText: (t) => `${t.toFixed(1)}m`
156
101
  }
157
102
  });
158
- var m, p;
103
+ var p, s;
159
104
  this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
160
105
  "style",
161
106
  "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
162
- ), i && (i.data && this.load(i.data), this.state.options = u(u({}, this.state.options), i.options || {}), (m = i.options) != null && m.className && this.container.classList.add((p = i.options) == null ? void 0 : p.className)), this.five.once("modelLoaded", () => n(this, null, function* () {
163
- var s, a;
164
- (a = (s = this.five.getElement()) == null ? void 0 : s.parentNode) == null || a.append(this.container);
107
+ ), i && (i.data && this.load(i.data), this.state.options = u(u({}, this.state.options), i.options || {}), (p = i.options) != null && p.className && this.container.classList.add((s = i.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => m(this, null, function* () {
108
+ var a, n;
109
+ (n = (a = this.five.getElement()) == null ? void 0 : a.parentNode) == null || n.append(this.container);
165
110
  })), this.five.once("dispose", () => this.dispose());
166
111
  }
167
112
  load(t) {
168
- return n(this, null, function* () {
113
+ return m(this, null, function* () {
169
114
  if (!this.five.work)
170
115
  return;
171
116
  const i = t.data;
@@ -181,7 +126,7 @@ class Ei {
181
126
  return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
182
127
  }
183
128
  render() {
184
- return n(this, null, function* () {
129
+ return m(this, null, function* () {
185
130
  var t;
186
131
  if (this.state.enabled) {
187
132
  if (!this.panoRulerProData || !this.container)
@@ -204,5 +149,5 @@ class Ei {
204
149
  }
205
150
  }
206
151
  export {
207
- Ei as default
152
+ xt as default
208
153
  };
@@ -1,20 +1,15 @@
1
- import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as ot, transition_out as k, detach as et, destroy_each as rt, onMount as nt, onDestroy as it, create_component as mt, mount_component as st, destroy_component as at, group_outros as pt } from "../vendor/svelte/internal/index.js";
2
- import { Five as ct } from "@realsee/five";
3
- import { nextFrame as lt } from "../shared-utils/animationFrame/index.js";
1
+ import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as ot, destroy_each as nt, onMount as rt, onDestroy as it, create_component as st, mount_component as at, destroy_component as ct, group_outros as mt } from "../vendor/svelte/internal/index.js";
2
+ import { Five as lt } from "@realsee/five";
3
+ import { nextFrame as pt } from "../shared-utils/animationFrame/index.js";
4
4
  import "../shared-utils/tag.js";
5
5
  import { Vector3 as M } from "three";
6
6
  import "hammerjs";
7
7
  import "../shared-utils/three/PointSelector/index.js";
8
8
  import "three/examples/jsm/renderers/CSS3DRenderer";
9
9
  import "@realsee/five/line";
10
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
11
10
  import "../shared-utils/three/core/Sphere.js";
12
11
  import "animejs";
13
12
  import { equal as z } from "../shared-utils/equal.js";
14
- import "../Sculpt/Meshes/Polygon.js";
15
- import "../Sculpt/utils/Modules/Global.js";
16
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
17
- import "../Sculpt/utils/three/rayOnLine.js";
18
13
  import { intersectionOfLine as ft } from "../shared-utils/math/planimetry.js";
19
14
  import { throttle as ut } from "../shared-utils/throttle.js";
20
15
  import ht from "./RulerItem.js";
@@ -55,170 +50,120 @@ import "../Sculpt/utils/removeAllTag.js";
55
50
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
56
51
  import "../shared-utils/three/applyObjectMatrixWorld.js";
57
52
  import "../shared-utils/util.js";
53
+ import "../shared-utils/three/core/LineGeometry.js";
58
54
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
59
55
  import "../shared-utils/isTouchDevice.js";
60
56
  import "../shared-utils/five/getPosition.js";
61
57
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
62
58
  import "../shared-utils/three/PointSelector/utils/contents.js";
63
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
64
- import "../vendor/three/build/three.module.js";
65
- import "../shared-utils/three/generatePolygonGeometry.js";
66
- import "../shared-utils/three/earcut3D.js";
67
- import "earcut";
68
- import "../shared-utils/three/getNormal.js";
69
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
70
- import "../Sculpt/utils/three/ColoredMesh.js";
71
- import "../shared-utils/three/geometryUtil.js";
72
- import "../Sculpt/utils/Modules/Cursor.js";
73
- import "../Object3DHelperPlugin/Controller.js";
74
- import "../base/BasePlugin.js";
75
- import "../shared-utils/url/absoluteUrl.js";
76
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
77
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
78
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
79
- import "../shared-utils/three/boundingBox.js";
80
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
81
- import "../shared-utils/Object3DHelper/utils/direction.js";
82
- import "../shared-utils/Object3DHelper/Constants/color.js";
83
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
84
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
85
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
86
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
87
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
88
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
89
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
90
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
91
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
92
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
93
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
94
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
95
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
96
- import "../shared-utils/threex/domevents/index.js";
97
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
98
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
99
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
100
- import "../shared-utils/Object3DHelper/index.js";
101
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
102
- import "../shared-utils/math/rad2Deg.js";
103
- import "../shared-utils/math/deg2Rad.js";
104
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
105
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
106
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
107
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
108
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
109
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
110
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
111
- import "../shared-utils/five/fiveModelLoad.js";
112
- import "../shared-utils/five/FiveDomEvents.js";
113
- import "../shared-utils/five/calculateThreeMouse.js";
114
59
  import "../shared-utils/isTruelyObject.js";
115
- function J(d, n, a) {
60
+ function J(d, r, c) {
116
61
  const t = d.slice();
117
- return t[12] = n[a], t;
62
+ return t[12] = r[c], t;
118
63
  }
119
64
  function K(d) {
120
- let n, a;
121
- return n = new ht({
65
+ let r, c;
66
+ return r = new ht({
122
67
  props: { rulerItemProp: (
123
68
  /*itemData*/
124
69
  d[12]
125
70
  ) }
126
71
  }), {
127
72
  c() {
128
- mt(n.$$.fragment);
73
+ st(r.$$.fragment);
129
74
  },
130
- m(t, o) {
131
- st(n, t, o), a = !0;
75
+ m(t, e) {
76
+ at(r, t, e), c = !0;
132
77
  },
133
- p(t, o) {
78
+ p(t, e) {
134
79
  const w = {};
135
- o & /*rulerItemProp*/
80
+ e & /*rulerItemProp*/
136
81
  1 && (w.rulerItemProp = /*itemData*/
137
- t[12]), n.$set(w);
82
+ t[12]), r.$set(w);
138
83
  },
139
84
  i(t) {
140
- a || (C(n.$$.fragment, t), a = !0);
85
+ c || (C(r.$$.fragment, t), c = !0);
141
86
  },
142
87
  o(t) {
143
- k(n.$$.fragment, t), a = !1;
88
+ k(r.$$.fragment, t), c = !1;
144
89
  },
145
90
  d(t) {
146
- at(n, t);
91
+ ct(r, t);
147
92
  }
148
93
  };
149
94
  }
150
95
  function dt(d) {
151
- let n, a, t = (
96
+ let r, c, t = (
152
97
  /*rulerItemProp*/
153
98
  d[0]
154
- ), o = [];
155
- for (let r = 0; r < t.length; r += 1)
156
- o[r] = K(J(d, t, r));
157
- const w = (r) => k(o[r], 1, 1, () => {
158
- o[r] = null;
99
+ ), e = [];
100
+ for (let n = 0; n < t.length; n += 1)
101
+ e[n] = K(J(d, t, n));
102
+ const w = (n) => k(e[n], 1, 1, () => {
103
+ e[n] = null;
159
104
  });
160
105
  return {
161
106
  c() {
162
- n = $("div");
163
- for (let r = 0; r < o.length; r += 1)
164
- o[r].c();
107
+ r = $("div");
108
+ for (let n = 0; n < e.length; n += 1)
109
+ e[n].c();
165
110
  },
166
- m(r, m) {
167
- tt(r, n, m);
168
- for (let e = 0; e < o.length; e += 1)
169
- o[e] && o[e].m(n, null);
170
- a = !0;
111
+ m(n, s) {
112
+ tt(n, r, s);
113
+ for (let o = 0; o < e.length; o += 1)
114
+ e[o] && e[o].m(r, null);
115
+ c = !0;
171
116
  },
172
- p(r, [m]) {
173
- if (m & /*rulerItemProp*/
117
+ p(n, [s]) {
118
+ if (s & /*rulerItemProp*/
174
119
  1) {
175
120
  t = /*rulerItemProp*/
176
- r[0];
177
- let e;
178
- for (e = 0; e < t.length; e += 1) {
179
- const A = J(r, t, e);
180
- o[e] ? (o[e].p(A, m), C(o[e], 1)) : (o[e] = K(A), o[e].c(), C(o[e], 1), o[e].m(n, null));
121
+ n[0];
122
+ let o;
123
+ for (o = 0; o < t.length; o += 1) {
124
+ const A = J(n, t, o);
125
+ e[o] ? (e[o].p(A, s), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(r, null));
181
126
  }
182
- for (pt(), e = t.length; e < o.length; e += 1)
183
- w(e);
184
- ot();
127
+ for (mt(), o = t.length; o < e.length; o += 1)
128
+ w(o);
129
+ et();
185
130
  }
186
131
  },
187
- i(r) {
188
- if (!a) {
189
- for (let m = 0; m < t.length; m += 1)
190
- C(o[m]);
191
- a = !0;
132
+ i(n) {
133
+ if (!c) {
134
+ for (let s = 0; s < t.length; s += 1)
135
+ C(e[s]);
136
+ c = !0;
192
137
  }
193
138
  },
194
- o(r) {
195
- o = o.filter(Boolean);
196
- for (let m = 0; m < o.length; m += 1)
197
- k(o[m]);
198
- a = !1;
139
+ o(n) {
140
+ e = e.filter(Boolean);
141
+ for (let s = 0; s < e.length; s += 1)
142
+ k(e[s]);
143
+ c = !1;
199
144
  },
200
- d(r) {
201
- r && et(n), rt(o, r);
145
+ d(n) {
146
+ n && ot(r), nt(e, n);
202
147
  }
203
148
  };
204
149
  }
205
- function gt(d, n, a) {
150
+ function gt(d, r, c) {
206
151
  var B, G, H, U;
207
- let { five: t } = n, { rulerDatas: o } = n, { options: w } = n, r = [];
208
- const m = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, e = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (s, p) => {
209
- const c = [
210
- [{ x: 0, y: 0 }, { x: m, y: 0 }],
211
- [{ x: 0, y: 0 }, { x: 0, y: e }],
212
- [{ x: m, y: 0 }, { x: m, y: e }],
213
- [{ x: 0, y: e }, { x: m, y: e }]
152
+ let { five: t } = r, { rulerDatas: e } = r, { options: w } = r, n = [];
153
+ const s = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, o = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (a, m) => {
154
+ const l = [
155
+ [{ x: 0, y: 0 }, { x: s, y: 0 }],
156
+ [{ x: 0, y: 0 }, { x: 0, y: o }],
157
+ [{ x: s, y: 0 }, { x: s, y: o }],
158
+ [{ x: 0, y: o }, { x: s, y: o }]
214
159
  ], f = [];
215
- for (let u = 0; u < c.length; u++) {
216
- const g = ft([s, p], [c[u][0], c[u][1]], !0);
160
+ for (let u = 0; u < l.length; u++) {
161
+ const g = ft([a, m], [l[u][0], l[u][1]], !0);
217
162
  g && f.push(g);
218
163
  }
219
164
  return f.length === 0 ? !1 : f;
220
- }, j = (s, p) => {
221
- const c = s.clone().project(t.camera), f = (c.x + 1) / 2 * m, u = (-c.y + 1) / 2 * e, g = p.clone().project(t.camera), L = (g.x + 1) / 2 * m, y = (-g.y + 1) / 2 * e, i = Math.sqrt(Math.pow(L - f, 2) + Math.pow(y - u, 2));
165
+ }, j = (a, m) => {
166
+ const l = a.clone().project(t.camera), f = (l.x + 1) / 2 * s, u = (-l.y + 1) / 2 * o, g = m.clone().project(t.camera), L = (g.x + 1) / 2 * s, y = (-g.y + 1) / 2 * o, i = Math.sqrt(Math.pow(L - f, 2) + Math.pow(y - u, 2));
222
167
  return {
223
168
  startLeft: f,
224
169
  startTop: u,
@@ -226,16 +171,16 @@ function gt(d, n, a) {
226
171
  endTop: y,
227
172
  distance: i
228
173
  };
229
- }, N = (s, p, c) => {
230
- const f = t.camera.position, u = t.camera.getWorldDirection(new M()), g = s.clone().sub(f).normalize().angleTo(u), L = p.clone().sub(f).normalize().angleTo(u), y = s.distanceTo(p), T = p.clone().sub(p.clone().sub(s).divide(new M(2, 2, 2))).distanceTo(f), { startLeft: h, startTop: x, endLeft: v, endTop: q, distance: D } = j(s, p), S = -((Math.PI / 2 - Math.atan2(v - h, x - q)) / Math.PI) * 180;
174
+ }, N = (a, m, l) => {
175
+ const f = t.camera.position, u = t.camera.getWorldDirection(new M()), g = a.clone().sub(f).normalize().angleTo(u), L = m.clone().sub(f).normalize().angleTo(u), y = a.distanceTo(m), T = m.clone().sub(m.clone().sub(a).divide(new M(2, 2, 2))).distanceTo(f), { startLeft: h, startTop: x, endLeft: v, endTop: q, distance: D } = j(a, m), S = -((Math.PI / 2 - Math.atan2(v - h, x - q)) / Math.PI) * 180;
231
176
  let P = !0;
232
- c || (P = !1), !z(s, c) && !z(p, c) && (P = !1), y < 0.3 && (P = !1), g > Math.PI / 2 && (P = !1), L > Math.PI / 2 && (P = !1), T / y > 8 && (P = !1);
177
+ l || (P = !1), !z(a, l) && !z(m, l) && (P = !1), y < 0.3 && (P = !1), g > Math.PI / 2 && (P = !1), L > Math.PI / 2 && (P = !1), T / y > 8 && (P = !1);
233
178
  let I = 50, b = D;
234
- const l = A({ x: ~~h, y: ~~x }, { x: ~~v, y: ~~q });
235
- if (l && l.length === 1 && (z(s, c) ? (b = Math.sqrt(Math.pow(l[0].x - h, 2) + Math.pow(l[0].y - x, 2)), I = b / D * 50) : z(p, c) && (b = Math.sqrt(Math.pow(l[0].x - v, 2) + Math.pow(l[0].y - q, 2)), I = 100 - b / D * 50)), l && l.length === 2) {
179
+ const p = A({ x: ~~h, y: ~~x }, { x: ~~v, y: ~~q });
180
+ if (p && p.length === 1 && (z(a, l) ? (b = Math.sqrt(Math.pow(p[0].x - h, 2) + Math.pow(p[0].y - x, 2)), I = b / D * 50) : z(m, l) && (b = Math.sqrt(Math.pow(p[0].x - v, 2) + Math.pow(p[0].y - q, 2)), I = 100 - b / D * 50)), p && p.length === 2) {
236
181
  const F = {
237
- x: (l[0].x + l[1].x) / 2,
238
- y: (l[0].y + l[1].y) / 2
182
+ x: (p[0].x + p[1].x) / 2,
183
+ y: (p[0].y + p[1].y) / 2
239
184
  };
240
185
  I = Math.sqrt(Math.pow(F.x - h, 2) + Math.pow(F.y - x, 2)) / D * 100;
241
186
  }
@@ -249,18 +194,18 @@ function gt(d, n, a) {
249
194
  ruleLength: y
250
195
  };
251
196
  }, _ = () => {
252
- const s = t.panoIndex, p = o.find((i) => i.panoIndex === s);
253
- if (!p)
254
- return a(0, r = []);
255
- if (t.currentMode !== ct.Mode.Panorama)
256
- return a(0, r = []);
257
- const c = t.camera.position, f = t.camera.getWorldDirection(new M()), u = p.lines.map((i) => new M(i.start[0], -i.start[1], -i.start[2])), g = p.lines.map((i) => new M(i.end[0], -i.end[1], -i.end[2])), [L] = u.concat(g).sort((i, T) => {
258
- const h = i.clone().setY(0).sub(c).normalize().angleTo(f.clone().setY(0)), x = T.clone().setY(0).sub(c).normalize().angleTo(f.clone().setY(0));
197
+ const a = t.panoIndex, m = e.find((i) => i.panoIndex === a);
198
+ if (!m)
199
+ return c(0, n = []);
200
+ if (t.currentMode !== lt.Mode.Panorama)
201
+ return c(0, n = []);
202
+ const l = t.camera.position, f = t.camera.getWorldDirection(new M()), u = m.lines.map((i) => new M(i.start[0], -i.start[1], -i.start[2])), g = m.lines.map((i) => new M(i.end[0], -i.end[1], -i.end[2])), [L] = u.concat(g).sort((i, T) => {
203
+ const h = i.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0)), x = T.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0));
259
204
  return h - x;
260
- }), y = p.lines.map((i) => {
261
- var b, l;
205
+ }), y = m.lines.map((i) => {
206
+ var b, p;
262
207
  const T = i.start, h = i.end, { startLeft: x, startTop: v, distance: q, deg: D, visible: V, labelOffset: S, ruleLength: P } = N(new M(T[0], -T[1], -T[2]), new M(h[0], -h[1], -h[2]), L), I = [];
263
- return i.children && ((b = i.children) == null ? void 0 : b.length) > 0 && ((l = i.children) == null || l.forEach((F) => {
208
+ return i.children && ((b = i.children) == null ? void 0 : b.length) > 0 && ((p = i.children) == null || p.forEach((F) => {
264
209
  const W = F.start, Y = F.end, { distance: O } = j(new M(W[0], -W[1], -W[2]), new M(Y[0], -Y[1], -Y[2]));
265
210
  I.push({ width: O, state: F.state });
266
211
  })), {
@@ -275,21 +220,21 @@ function gt(d, n, a) {
275
220
  labelElement: w.distanceText(P)
276
221
  };
277
222
  });
278
- a(0, r = y);
279
- }, E = () => lt(_), R = ut(_, 80);
280
- return nt(() => {
223
+ c(0, n = y);
224
+ }, E = () => pt(_), R = ut(_, 80);
225
+ return rt(() => {
281
226
  _(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
282
227
  }), it(() => {
283
228
  t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
284
- }), d.$$set = (s) => {
285
- "five" in s && a(1, t = s.five), "rulerDatas" in s && a(2, o = s.rulerDatas), "options" in s && a(3, w = s.options);
286
- }, [r, t, o, w];
229
+ }), d.$$set = (a) => {
230
+ "five" in a && c(1, t = a.five), "rulerDatas" in a && c(2, e = a.rulerDatas), "options" in a && c(3, w = a.options);
231
+ }, [n, t, e, w];
287
232
  }
288
- class De extends Q {
289
- constructor(n) {
290
- super(), X(this, n, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
233
+ class _e extends Q {
234
+ constructor(r) {
235
+ super(), X(this, r, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
291
236
  }
292
237
  }
293
238
  export {
294
- De as default
239
+ _e as default
295
240
  };
@@ -32,81 +32,26 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
32
32
  import "../shared-utils/three/centerPoint.js";
33
33
  import "../shared-utils/three/getObjectVisible.js";
34
34
  import "@realsee/five/line";
35
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
36
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
37
- import "../vendor/three/build/three.module.js";
35
+ import "../shared-utils/isNil.js";
38
36
  import "../shared-utils/three/core/Sphere.js";
39
37
  import "animejs";
40
- import "../shared-utils/isNil.js";
41
- import "../Sculpt/Meshes/Polygon.js";
42
- import "../shared-utils/three/generatePolygonGeometry.js";
43
- import "../shared-utils/three/earcut3D.js";
44
- import "earcut";
45
- import "../shared-utils/three/getNormal.js";
46
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
47
- import "../Sculpt/typings/style.js";
48
- import "../Sculpt/utils/three/ColoredMesh.js";
49
- import "../shared-utils/three/IObject3D.js";
50
- import "../Sculpt/utils/Modules/Global.js";
51
- import "../Sculpt/utils/Modules/Cursor.js";
52
- import "../Object3DHelperPlugin/Controller.js";
53
- import "../base/BasePlugin.js";
54
- import "../shared-utils/url/absoluteUrl.js";
55
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
56
- import "../Sculpt/utils/three/rayOnLine.js";
57
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
58
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
59
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
60
- import "../shared-utils/three/boundingBox.js";
61
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
62
- import "../shared-utils/Object3DHelper/utils/direction.js";
63
- import "../shared-utils/Object3DHelper/Constants/color.js";
64
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
65
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
38
+ import "../shared-utils/three/PointSelector/utils/html.js";
39
+ import "../shared-utils/five/initialCSS3DRender.js";
66
40
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
67
41
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
68
42
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
69
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
70
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
71
- import "../shared-utils/util.js";
72
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
73
- import "../shared-utils/three/PointSelector/utils/html.js";
74
- import "../shared-utils/five/initialCSS3DRender.js";
75
43
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
76
44
  import "../Sculpt/Meshes/Line.js";
45
+ import "../Sculpt/typings/style.js";
77
46
  import "../shared-utils/five/FiveLine.js";
47
+ import "../shared-utils/three/IObject3D.js";
78
48
  import "../Sculpt/utils/removeAllTag.js";
79
49
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
80
50
  import "../shared-utils/three/applyObjectMatrixWorld.js";
51
+ import "../shared-utils/util.js";
52
+ import "../shared-utils/three/core/LineGeometry.js";
81
53
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
82
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
83
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
84
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
85
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
86
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
87
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
88
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
89
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
90
- import "../shared-utils/threex/domevents/index.js";
91
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
92
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
93
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
94
- import "../shared-utils/Object3DHelper/index.js";
95
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
96
- import "../shared-utils/math/rad2Deg.js";
97
- import "../shared-utils/math/deg2Rad.js";
98
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
99
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
100
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
101
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
102
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
103
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
104
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
105
- import "../shared-utils/five/fiveModelLoad.js";
106
- import "../shared-utils/five/FiveDomEvents.js";
107
- import "../shared-utils/five/calculateThreeMouse.js";
108
54
  import "../shared-utils/isTouchDevice.js";
109
- import "../shared-utils/three/geometryUtil.js";
110
55
  import "../shared-utils/five/getPosition.js";
111
56
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
112
57
  import "../shared-utils/three/PointSelector/utils/contents.js";
@@ -114,8 +59,8 @@ import "../shared-utils/equal.js";
114
59
  import "../shared-utils/isTruelyObject.js";
115
60
  import "../shared-utils/math/planimetry.js";
116
61
  import "./RulerItem.js";
117
- const Po = (r, o) => new t(r, o);
62
+ const ar = (r, o) => new t(r, o);
118
63
  export {
119
- Po as PanoRulerProPlugin,
120
- Po as default
64
+ ar as PanoRulerProPlugin,
65
+ ar as default
121
66
  };