@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
@@ -21,20 +21,20 @@ var j = (c, i) => {
21
21
  };
22
22
  var f = (c, i, e) => (M(c, typeof i != "symbol" ? i + "" : i, e), e);
23
23
  var y = (c, i, e) => new Promise((t, r) => {
24
- var o = (n) => {
24
+ var n = (s) => {
25
25
  try {
26
- s(e.next(n));
26
+ o(e.next(s));
27
27
  } catch (d) {
28
28
  r(d);
29
29
  }
30
- }, l = (n) => {
30
+ }, l = (s) => {
31
31
  try {
32
- s(e.throw(n));
32
+ o(e.throw(s));
33
33
  } catch (d) {
34
34
  r(d);
35
35
  }
36
- }, s = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(o, l);
37
- s((e = e.apply(c, i)).next());
36
+ }, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
37
+ o((e = e.apply(c, i)).next());
38
38
  });
39
39
  import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
40
40
  import { calculateTagConfig as w } from "../../utils/tag/calculateTagConfig.js";
@@ -47,21 +47,16 @@ import "../../../shared-utils/three/PointSelector/index.js";
47
47
  import "three/examples/jsm/renderers/CSS3DRenderer";
48
48
  import { centerPoint as ee } from "../../../shared-utils/three/centerPoint.js";
49
49
  import "@realsee/five/line";
50
- import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
51
- import { anyPositionToVector3 as A } from "../../../shared-utils/positionToVector3.js";
50
+ import { isNil as A, notNil as O } from "../../../shared-utils/isNil.js";
51
+ import { anyPositionToVector3 as R } from "../../../shared-utils/positionToVector3.js";
52
52
  import { toArray as ie } from "../../../shared-utils/util.js";
53
53
  import "../../../shared-utils/three/core/Sphere.js";
54
- import { blink as te, reblink as oe } from "../../../shared-utils/three/blink.js";
55
- import { vectorToCoordinates as ne } from "../../../shared-utils/vectorToCoordinate.js";
56
- import { transformPosition as O } from "../../../shared-utils/five/transformPosition.js";
57
- import { isNil as R, notNil as E } from "../../../shared-utils/isNil.js";
58
- import { lookPoint as se } from "../../../shared-utils/five/lookPoint.js";
54
+ import { blink as te, reblink as ne } from "../../../shared-utils/three/blink.js";
55
+ import { vectorToCoordinates as se } from "../../../shared-utils/vectorToCoordinate.js";
56
+ import { transformPosition as E } from "../../../shared-utils/five/transformPosition.js";
57
+ import { lookPoint as oe } from "../../../shared-utils/five/lookPoint.js";
59
58
  import { uuid as re } from "../../../shared-utils/uuid.js";
60
59
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
61
- import "../../../Sculpt/Meshes/Polygon.js";
62
- import "../../../Sculpt/utils/Modules/Global.js";
63
- import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
64
- import "../../../Sculpt/utils/three/rayOnLine.js";
65
60
  import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
66
61
  import { getTagPosition as L, getTagCenterPosition as $ } from "../../utils/tagPosition.js";
67
62
  import { checkRange as k } from "../../utils/checkRange.js";
@@ -106,64 +101,14 @@ import "../../../shared-utils/three/IObject3D.js";
106
101
  import "../../../Sculpt/utils/removeAllTag.js";
107
102
  import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
108
103
  import "../../../shared-utils/three/applyObjectMatrixWorld.js";
104
+ import "../../../shared-utils/three/core/LineGeometry.js";
109
105
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
110
106
  import "../../../shared-utils/isTouchDevice.js";
111
107
  import "../../../shared-utils/five/getPosition.js";
112
108
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
113
109
  import "../../../shared-utils/three/PointSelector/utils/contents.js";
114
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
115
- import "../../../vendor/three/build/three.module.js";
116
- import "../../../shared-utils/three/generatePolygonGeometry.js";
117
- import "../../../shared-utils/three/earcut3D.js";
118
- import "earcut";
119
- import "../../../shared-utils/three/getNormal.js";
120
- import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
121
- import "../../../Sculpt/utils/three/ColoredMesh.js";
122
- import "../../../shared-utils/three/geometryUtil.js";
123
- import "../../../Sculpt/utils/Modules/Cursor.js";
124
- import "../../../Object3DHelperPlugin/Controller.js";
125
- import "../../../base/BasePlugin.js";
126
- import "../../../shared-utils/url/absoluteUrl.js";
127
- import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
128
- import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
129
- import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
130
- import "../../../shared-utils/three/boundingBox.js";
131
- import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
132
- import "../../../shared-utils/Object3DHelper/utils/direction.js";
133
- import "../../../shared-utils/Object3DHelper/Constants/color.js";
134
- import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
135
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
136
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
137
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
138
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
139
- import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
140
- import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
141
- import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
142
- import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
143
- import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
144
- import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
145
- import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
146
- import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
147
- import "../../../shared-utils/threex/domevents/index.js";
148
- import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
149
- import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
150
- import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
151
- import "../../../shared-utils/Object3DHelper/index.js";
152
- import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
153
- import "../../../shared-utils/math/rad2Deg.js";
154
- import "../../../shared-utils/math/deg2Rad.js";
155
- import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
156
- import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
157
- import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
158
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
159
- import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
160
- import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
161
- import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
162
- import "../../../shared-utils/five/fiveModelLoad.js";
163
- import "../../../shared-utils/five/FiveDomEvents.js";
164
- import "../../../shared-utils/five/calculateThreeMouse.js";
165
110
  import "../../../shared-utils/formatRad.js";
166
- class Ft {
111
+ class Vi {
167
112
  constructor(i, e) {
168
113
  f(this, "plugin");
169
114
  f(this, "id");
@@ -193,26 +138,26 @@ class Ft {
193
138
  f(this, "computedConfig");
194
139
  f(this, "cache");
195
140
  f(this, "entryFromModel");
196
- var n, d, h, u;
141
+ var s, d, h, u;
197
142
  this.plugin = i;
198
143
  const t = Y(e);
199
144
  e.stickType = t;
200
- const r = JSON.parse(JSON.stringify(e.data)), o = (n = e.initialConfig) != null ? n : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
201
- e.initialConfig = o;
202
- const l = w(e, i.config), s = this.getConfig(e);
203
- e.config = s, this.id = (d = e.id) != null ? d : re(), this.enabled = (h = e.enabled) != null ? h : !0, this.contentType = e.contentType, this.data = (u = s.initialData) != null && u.important ? b(e.data, r, s.initialData) : b(e.data, s.initialData, r), this.state = p({
145
+ const r = JSON.parse(JSON.stringify(e.data)), n = (s = e.initialConfig) != null ? s : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
146
+ e.initialConfig = n;
147
+ const l = w(e, i.config), o = this.getConfig(e);
148
+ e.config = o, this.id = (d = e.id) != null ? d : re(), this.enabled = (h = e.enabled) != null ? h : !0, this.contentType = e.contentType, this.data = (u = o.initialData) != null && u.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
204
149
  visible: void 0,
205
150
  unfolded: !this.can("fold")
206
- }, s.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
151
+ }, o.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
207
152
  const a = e.originPosition;
208
153
  if (!a)
209
154
  return;
210
155
  const g = i.workUtil.transform;
211
- return Array.isArray(a) && a.length === 4 ? a.map(A).map((m) => O(m, g).toArray()) : O(A(a), g).toArray();
156
+ return Array.isArray(a) && a.length === 4 ? a.map(R).map((m) => E(m, g).toArray()) : E(R(a), g).toArray();
212
157
  })(), this.matrix = e.matrix ? (() => {
213
158
  const a = new B.Matrix4().fromArray(e.matrix);
214
159
  return a.premultiply(i.workUtil.transform), a.elements;
215
- })() : e.matrix, this.initialConfig = o, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new Q(), Object.keys(e).forEach((a) => {
160
+ })() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new Q(), Object.keys(e).forEach((a) => {
216
161
  this[a] === void 0 && e[a] !== void 0 && (this[a] = e[a]);
217
162
  });
218
163
  }
@@ -230,9 +175,9 @@ class Ft {
230
175
  return ee(...Array.isArray(i) ? i : [i]);
231
176
  }
232
177
  get currentConfig() {
233
- var r, o;
178
+ var r, n;
234
179
  const i = w(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (r = i.configWithFiveMode) == null ? void 0 : r[e];
235
- return (o = t != null ? t : i) != null ? o : {};
180
+ return (n = t != null ? t : i) != null ? n : {};
236
181
  }
237
182
  get currentVisible() {
238
183
  return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
@@ -257,17 +202,17 @@ class Ft {
257
202
  return;
258
203
  const t = (r = i == null ? void 0 : i.targetMode) != null ? r : this.five.state.mode;
259
204
  if (t === "Panorama") {
260
- const o = e == null ? void 0 : e.panoIndex;
261
- if (R(o))
205
+ const n = e == null ? void 0 : e.panoIndex;
206
+ if (A(n))
262
207
  return;
263
- const l = this.workUtil.getObserverPosition(o), s = this.centerPosition.clone().sub(l).normalize();
208
+ const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
264
209
  this.five.setState(p({
265
210
  mode: "Panorama",
266
211
  workCode: this.workUtil.workCode,
267
- panoIndex: o
268
- }, ne(s))), yield this.five.ready();
212
+ panoIndex: n
213
+ }, se(o))), yield this.five.ready();
269
214
  } else
270
- t === "Mapview" && (yield se(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
215
+ t === "Mapview" && (yield oe(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
271
216
  });
272
217
  }
273
218
  /**
@@ -275,8 +220,8 @@ class Ft {
275
220
  */
276
221
  blink(i) {
277
222
  return y(this, null, function* () {
278
- var s, n, d, h;
279
- const e = (s = this.enabled) != null ? s : !0, t = (n = this.state) == null ? void 0 : n.visible, r = e && t;
223
+ var o, s, d, h;
224
+ const e = (o = this.enabled) != null ? o : !0, t = (s = this.state) == null ? void 0 : s.visible, r = e && t;
280
225
  r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) => y(this, null, function* () {
281
226
  if (this.dom || this.contentDom) {
282
227
  u();
@@ -294,16 +239,16 @@ class Ft {
294
239
  this.mediaPlane && (u(), clearInterval(a));
295
240
  }, 16.7);
296
241
  }))), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
297
- const o = (() => {
242
+ const n = (() => {
298
243
  var a;
299
244
  const u = [];
300
245
  return u.push(this.dom), this.stickType !== "2DPoint" && u.push(this.contentDom), u.push((a = this.model) == null ? void 0 : a.object), u.push(this.mediaPlane), u.filter(Boolean);
301
246
  })();
302
- if (!o.length) {
247
+ if (!n.length) {
303
248
  console.warn("tagDom is empty");
304
249
  return;
305
250
  }
306
- yield (r ? te : oe)(o, p({
251
+ yield (r ? te : ne)(n, p({
307
252
  begin: () => {
308
253
  r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
309
254
  },
@@ -391,20 +336,20 @@ class Ft {
391
336
  this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
392
337
  }
393
338
  getConfig(i, e) {
394
- var l, s, n;
395
- const t = w(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, o = (s = t.configWithFiveMode) == null ? void 0 : s[r];
396
- return (n = o != null ? o : t) != null ? n : {};
339
+ var l, o, s;
340
+ const t = w(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (o = t.configWithFiveMode) == null ? void 0 : o[r];
341
+ return (s = n != null ? n : t) != null ? s : {};
397
342
  }
398
343
  getDistance(i, e = 3) {
399
- const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: o } = t, l = o === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, s = this.centerPosition;
400
- return !l || !s ? -1 : l.distanceTo(s);
344
+ const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, o = this.centerPosition;
345
+ return !l || !o ? -1 : l.distanceTo(o);
401
346
  }
402
347
  getVisible(i) {
403
348
  if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
404
349
  return !1;
405
350
  const e = p(p({}, this.five.getCurrentState()), i);
406
351
  let t = this.cache.getVisible(this, e);
407
- return R(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
352
+ return A(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
408
353
  }
409
354
  getUnfoldedByPanoIndex(i) {
410
355
  if (!this.currentVisible)
@@ -458,68 +403,68 @@ class Ft {
458
403
  return i != null ? i : "Dom";
459
404
  }
460
405
  computeVisible(i) {
461
- const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e, o = [];
406
+ const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e, n = [];
462
407
  return (() => {
463
408
  var d, u, a;
464
- const n = (d = this.getConfig().visibleConfig) != null ? d : {};
465
- if (typeof n == "function")
409
+ const s = (d = this.getConfig().visibleConfig) != null ? d : {};
410
+ if (typeof s == "function")
466
411
  return {
467
- value: n(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
468
- checkedList: o,
412
+ value: s(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
413
+ checkedList: n,
469
414
  reason: "config function result"
470
415
  };
471
416
  {
472
- if (n.keep === "hidden")
473
- return { value: !1, checkedList: o, reason: "config.keep is hidden" };
474
- if (n.keep === "visible")
475
- return { value: !0, checkedList: o, reason: "config.keep is visible" };
476
- const g = this.computeVisibleByFiveMode(n, r);
417
+ if (s.keep === "hidden")
418
+ return { value: !1, checkedList: n, reason: "config.keep is hidden" };
419
+ if (s.keep === "visible")
420
+ return { value: !0, checkedList: n, reason: "config.keep is visible" };
421
+ const g = this.computeVisibleByFiveMode(s, r);
477
422
  if ((g == null ? void 0 : g.value) === !1)
478
423
  return g;
479
- if (n.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
424
+ if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
480
425
  const h = this.computeVisibleByFloorIndex(), { value: m } = h, v = j(h, ["value"]);
481
426
  if (m === !1)
482
- return p({ value: !1, checkedList: o, reason: "followModelVisibility check failed" }, v);
427
+ return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
483
428
  }
484
- if (U(r) && n.visiblePanoIndex !== void 0 && n.visiblePanoIndex !== "all" && t !== void 0) {
485
- if (o.push("visiblePanoIndex"), Array.isArray(n.visiblePanoIndex) && !n.visiblePanoIndex.includes(t))
429
+ if (U(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
430
+ if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
486
431
  return {
487
432
  value: !1,
488
- checkedList: o,
489
- reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${n.visiblePanoIndex}`
433
+ checkedList: n,
434
+ reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${s.visiblePanoIndex}`
490
435
  };
491
- if (n.visiblePanoIndex === "current" && t !== ((u = this.fiveState) == null ? void 0 : u.panoIndex))
436
+ if (s.visiblePanoIndex === "current" && t !== ((u = this.fiveState) == null ? void 0 : u.panoIndex))
492
437
  return {
493
438
  value: !1,
494
- checkedList: o,
439
+ checkedList: n,
495
440
  reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(a = this.fiveState) == null ? void 0 : a.panoIndex}`
496
441
  };
497
442
  }
498
- if (n.visibleDistance !== void 0 && (o.push("visibleDistance"), n.visibleDistance !== "unLimited")) {
443
+ if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
499
444
  const m = this.getDistance(e, 1);
500
- if (k(m, n.visibleDistance) === !1)
445
+ if (k(m, s.visibleDistance) === !1)
501
446
  return {
502
447
  value: !1,
503
- checkedList: o,
448
+ checkedList: n,
504
449
  panoIndex: t,
505
- visibleDistance: n.visibleDistance,
506
- reason: `distance is not in visibleDistance. distance: ${m}, visibleDistance: ${n.visibleDistance.min} - ${n.visibleDistance.max}`
450
+ visibleDistance: s.visibleDistance,
451
+ reason: `distance is not in visibleDistance. distance: ${m}, visibleDistance: ${s.visibleDistance.min} - ${s.visibleDistance.max}`
507
452
  };
508
453
  }
509
- if (n.intersectRaycaster !== !1 && (typeof n.intersectRaycaster != "object" || n.intersectRaycaster.enabled !== !1)) {
510
- if (o.push("intersectRaycaster"), t === void 0)
454
+ if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
455
+ if (n.push("intersectRaycaster"), t === void 0)
511
456
  return {
512
457
  value: !1,
513
- checkedList: o,
458
+ checkedList: n,
514
459
  reason: `intersectRaycaster check failed: panoIndex is ${t}`
515
460
  };
516
461
  const m = this.computeVisibleByIntersect(t);
517
462
  if (m.value === !1)
518
- return Object.assign(m, { checkedList: o });
463
+ return Object.assign(m, { checkedList: n });
519
464
  }
520
465
  return {
521
466
  value: !0,
522
- checkedList: o,
467
+ checkedList: n,
523
468
  reason: "all check passed"
524
469
  };
525
470
  }
@@ -530,28 +475,28 @@ class Ft {
530
475
  */
531
476
  computeVisibleByFiveMode(i, e) {
532
477
  const t = () => {
533
- var l, s;
534
- let o = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
535
- if (o || (o = (s = (l = this.fiveState) == null ? void 0 : l.mode) != null ? s : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(o))
536
- return o.includes(e);
537
- if (o === "ModelLike")
478
+ var l, o;
479
+ let n = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
480
+ if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
481
+ return n.includes(e);
482
+ if (n === "ModelLike")
538
483
  return C(e);
539
- if (o === "PanoramaLike")
484
+ if (n === "PanoramaLike")
540
485
  return !U(e);
541
- if (o === "all")
486
+ if (n === "all")
542
487
  return !0;
543
- if (typeof o == "string")
544
- return o === e;
488
+ if (typeof n == "string")
489
+ return n === e;
545
490
  };
546
491
  if ((() => {
547
492
  var l;
548
- const o = t();
549
- if (E((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
550
- if (C(e) && o ? this.entryFromModel = !1 : this.entryFromModel = !0, C(e))
493
+ const n = t();
494
+ if (O((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
495
+ if (C(e) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, C(e))
551
496
  return !0;
552
497
  } else
553
498
  this.entryFromModel = !1;
554
- return o;
499
+ return n;
555
500
  })() === !1)
556
501
  return {
557
502
  value: !1,
@@ -562,19 +507,19 @@ class Ft {
562
507
  }
563
508
  /** 通过射线检测标签可用性 */
564
509
  computeVisibleByIntersect(i) {
565
- var n, d, h, u;
566
- const e = z(z((n = this.getConfig().visibleConfig) != null ? n : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = U(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
510
+ var s, d, h, u;
511
+ const e = z(z((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = U(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
567
512
  if (r === void 0)
568
513
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
569
- const o = ie(
514
+ const n = ie(
570
515
  (() => {
571
516
  var g;
572
517
  const a = (g = e.checkPoints) != null ? g : "center";
573
518
  return a === "center" ? $(this) : a === "corner" ? L(this) : Array.isArray(a) ? a : [];
574
519
  })()
575
520
  );
576
- let l = 0, s = 0;
577
- for (const a of o) {
521
+ let l = 0, o = 0;
522
+ for (const a of n) {
578
523
  const g = new B.Vector3().subVectors(a, r).normalize();
579
524
  let m;
580
525
  V.set(r, g);
@@ -586,15 +531,15 @@ class Ft {
586
531
  const _ = this.plugin.tags.filter(T).map((X) => {
587
532
  var F;
588
533
  return (F = X.model) == null ? void 0 : F.object;
589
- }).filter(E), [q] = V.intersectObjects(_, !0);
534
+ }).filter(O), [q] = V.intersectObjects(_, !0);
590
535
  return q;
591
536
  })(), J = r.distanceTo(a), W = (d = e.distanceAccuracy) != null ? d : 0.01;
592
- m = Math.min(m != null ? m : 1 / 0, (h = x == null ? void 0 : x.distance) != null ? h : 1 / 0), m + W >= J ? l++ : s++;
537
+ m = Math.min(m != null ? m : 1 / 0, (h = x == null ? void 0 : x.distance) != null ? h : 1 / 0), m + W >= J ? l++ : o++;
593
538
  const H = (u = e.needPassed) != null ? u : 1;
594
539
  if (l >= H)
595
540
  return { value: !0 };
596
541
  }
597
- return s === 0 ? { value: !0 } : {
542
+ return o === 0 ? { value: !0 } : {
598
543
  value: !1,
599
544
  reason: {
600
545
  type: "intersectRaycaster check failed",
@@ -605,12 +550,12 @@ class Ft {
605
550
  };
606
551
  }
607
552
  computeVisibleByFloorIndex() {
608
- var r, o, l, s, n, d, h;
553
+ var r, n, l, o, s, d, h;
609
554
  let i = 0;
610
555
  const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
611
- e !== void 0 ? i = (o = this.workUtil.getObserver(e)) == null ? void 0 : o.floorIndex : i = ae(
556
+ e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = ae(
612
557
  this.workUtil.work,
613
- (h = (d = (s = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : s.position) != null ? d : (n = this.mediaPlane) == null ? void 0 : n.position) != null ? h : $(this)
558
+ (h = (d = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? d : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? h : $(this)
614
559
  );
615
560
  const t = this.fiveUtil.model.shownFloor;
616
561
  return {
@@ -655,20 +600,20 @@ class Ft {
655
600
  return !1;
656
601
  }
657
602
  if (i.autoUnfold.strategy === "MinimumDistance") {
658
- const o = this.plugin.filterPointTag.filter((s) => s.currentVisible).filter((s) => {
659
- const n = this.computeTagProject();
660
- if (!n)
603
+ const n = this.plugin.filterPointTag.filter((o) => o.currentVisible).filter((o) => {
604
+ const s = this.computeTagProject();
605
+ if (!s)
661
606
  return !1;
662
- const { x: d, y: h, z: u } = n;
607
+ const { x: d, y: h, z: u } = s;
663
608
  return !(Math.abs(u) > 1 || Math.abs(d) > 1 || Math.abs(h) > 1);
664
- }).map((s) => ({ tag: s, id: s.id, tagConfig: s.getConfig().unfoldedConfig })).filter(({ tagConfig: s }) => {
665
- var n, d;
666
- return !(typeof s == "function" || s.keep || s.autoUnfold === !1 || ((n = s.autoUnfold) == null ? void 0 : n.enable) === !1 || ((d = s.autoUnfold) == null ? void 0 : d.strategy) !== "MinimumDistance");
667
- }).map((s) => I(p({}, s), { distance: s.tag.getDistance() })).filter(({ distance: s, tagConfig: n }) => {
668
- const d = n.autoUnfold.distance;
669
- return !(d && k(s, d) === !1);
670
- }).sort((s, n) => s.distance - n.distance).findIndex((s) => s.id === this.id);
671
- if (o === -1 || o <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
609
+ }).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
610
+ var s, d;
611
+ return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((d = o.autoUnfold) == null ? void 0 : d.strategy) !== "MinimumDistance");
612
+ }).map((o) => I(p({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
613
+ const d = s.autoUnfold.distance;
614
+ return !(d && k(o, d) === !1);
615
+ }).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
616
+ if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
672
617
  return !1;
673
618
  }
674
619
  return i.autoUnfold.strategy !== "FoldWhenMove";
@@ -686,14 +631,14 @@ class Ft {
686
631
  if (!e || !this.plugin.domEvents)
687
632
  return () => {
688
633
  };
689
- const r = () => !(!i.currentVisible || i.loading), o = (l) => {
634
+ const r = () => !(!i.currentVisible || i.loading), n = (l) => {
690
635
  if (!r())
691
636
  return !1;
692
637
  t(l.origDomEvent);
693
638
  };
694
- return this.plugin.domEvents.addEventListener(e, "click", o), () => {
639
+ return this.plugin.domEvents.addEventListener(e, "click", n), () => {
695
640
  var l;
696
- (l = this.plugin.domEvents) == null || l.removeEventListener(e, "click", o);
641
+ (l = this.plugin.domEvents) == null || l.removeEventListener(e, "click", n);
697
642
  };
698
643
  }
699
644
  whyHide() {
@@ -722,5 +667,5 @@ class Ft {
722
667
  }
723
668
  }
724
669
  export {
725
- Ft as BaseTag
670
+ Vi as BaseTag
726
671
  };