@realsee/dnalogel 2.3.5-dev.4 → 2.3.5-dev.5

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 (370) hide show
  1. package/dist/PanoTagPlugin/controller/index.d.ts +2 -2
  2. package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.js +3 -6
  5. package/dist/index.umd.js +1 -1
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/CSS3DRender.html +31 -31
  8. package/docs/classes/CruisePluginController.html +24 -24
  9. package/docs/classes/Magnifier.html +16 -16
  10. package/docs/classes/ModelRoomLabelController.html +11 -11
  11. package/docs/classes/Object3DHelperController.html +24 -24
  12. package/docs/classes/PaintBrush.html +15 -15
  13. package/docs/classes/PanoTagPluginController.html +41 -41
  14. package/docs/classes/Util.BetterTween.html +8 -8
  15. package/docs/classes/Util.FivePointSelector.html +12 -12
  16. package/docs/classes/Util.Interval.html +12 -12
  17. package/docs/classes/Util.Magnifier.html +17 -17
  18. package/docs/classes/Util.PointDomHelper.html +11 -11
  19. package/docs/classes/Util.PointHelper.html +11 -11
  20. package/docs/classes/Util.Rectangle.html +13 -13
  21. package/docs/enums/CameraMovementEffect.html +7 -7
  22. package/docs/enums/ContentType.html +16 -16
  23. package/docs/enums/DIRECTION.html +9 -9
  24. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  25. package/docs/enums/DimensionType.html +7 -7
  26. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  27. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  28. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  29. package/docs/enums/PointType.html +7 -7
  30. package/docs/enums/Rotation.html +8 -8
  31. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  32. package/docs/functions/CameraMovementPlugin.html +5 -4
  33. package/docs/functions/CruisePlugin.html +5 -4
  34. package/docs/functions/GuideLinePlugin.html +6 -5
  35. package/docs/functions/ItemLabelPlugin.html +5 -4
  36. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  37. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  38. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  39. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  40. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  41. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  42. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  43. package/docs/functions/ModelViewPlugin.html +5 -4
  44. package/docs/functions/Object3DHelperPlugin.html +5 -4
  45. package/docs/functions/PanoCompassPlugin.html +5 -4
  46. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  47. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  48. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  49. package/docs/functions/PanoMeasurePlugin.html +5 -4
  50. package/docs/functions/PanoRulerPlugin.html +5 -4
  51. package/docs/functions/PanoRulerProPlugin.html +5 -4
  52. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  53. package/docs/functions/PanoTagPlugin.html +5 -4
  54. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  55. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  56. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  57. package/docs/functions/Util.getFrameTime.html +5 -5
  58. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  59. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  60. package/docs/functions/Util.isNil.html +5 -5
  61. package/docs/functions/Util.nextFrame.html +5 -5
  62. package/docs/functions/Util.notNil.html +5 -5
  63. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  64. package/docs/functions/Util.tweenProgress.html +5 -5
  65. package/docs/functions/pluginFlag.html +6 -5
  66. package/docs/index.html +5 -4
  67. package/docs/interfaces/AddTagConfig.html +6 -6
  68. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  69. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  70. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  71. package/docs/interfaces/EventMap.html +15 -15
  72. package/docs/interfaces/FloorplanBounding.html +8 -8
  73. package/docs/interfaces/FloorplanData.html +10 -10
  74. package/docs/interfaces/FloorplanEntrance.html +11 -11
  75. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  76. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  77. package/docs/interfaces/FloorplanFloorData.html +9 -9
  78. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  79. package/docs/interfaces/FloorplanObserver.html +9 -9
  80. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  81. package/docs/interfaces/FloorplanPosition.html +7 -7
  82. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  83. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  84. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  85. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  86. package/docs/interfaces/FloorplanServerData.html +7 -7
  87. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  88. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  89. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  90. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  91. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  92. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  93. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  94. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  95. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  96. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  97. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  98. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  99. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  100. package/docs/interfaces/LineJson.html +7 -7
  101. package/docs/interfaces/MinMax.html +7 -7
  102. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  103. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  104. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  105. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  106. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  107. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  108. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  109. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  110. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  111. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  112. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  113. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  114. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  115. package/docs/interfaces/Object3DHelperState.html +8 -8
  116. package/docs/interfaces/OpenParameter.html +7 -7
  117. package/docs/interfaces/PaintBrushAction.html +12 -12
  118. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  119. package/docs/interfaces/PaintBrushState.html +10 -10
  120. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  121. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  122. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  123. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  124. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  125. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  126. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  127. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  128. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  129. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  130. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  131. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  132. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  133. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  134. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  135. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  136. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  137. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  138. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  139. package/docs/interfaces/Point.html +8 -8
  140. package/docs/interfaces/PointJson.html +8 -8
  141. package/docs/interfaces/Room.html +9 -9
  142. package/docs/interfaces/RoomInfo.html +7 -7
  143. package/docs/interfaces/RoomLabel.html +14 -14
  144. package/docs/interfaces/RoomRules.html +6 -5
  145. package/docs/interfaces/Rooms.html +6 -5
  146. package/docs/interfaces/Scissor.html +9 -9
  147. package/docs/interfaces/State.html +8 -8
  148. package/docs/interfaces/TagCache.html +10 -10
  149. package/docs/interfaces/TagConfig.html +10 -10
  150. package/docs/interfaces/TagIconUrl.html +9 -9
  151. package/docs/interfaces/Tags.html +9 -9
  152. package/docs/interfaces/TemporaryState.html +6 -6
  153. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  154. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  155. package/docs/modules/Util.html +5 -5
  156. package/docs/modules.html +6 -4
  157. package/docs/types/ArrayPosition.html +6 -5
  158. package/docs/types/CSS3DRenderExportType.html +6 -5
  159. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  160. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  161. package/docs/types/Color.html +6 -5
  162. package/docs/types/ContentTypeConfigKey.html +6 -5
  163. package/docs/types/ContentTypeMap.html +6 -5
  164. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  165. package/docs/types/Create3DElementReturnType.html +6 -5
  166. package/docs/types/CruisePluginExportType.html +6 -5
  167. package/docs/types/Direction-1.html +6 -5
  168. package/docs/types/Direction4.html +6 -5
  169. package/docs/types/FloorplanRuleLabels.html +6 -5
  170. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  171. package/docs/types/GuideLinePluginExportType.html +6 -5
  172. package/docs/types/HelperEventMap.html +6 -5
  173. package/docs/types/LoadTagConfig.html +248 -0
  174. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  175. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  176. package/docs/types/MediaData.html +6 -5
  177. package/docs/types/MediaStore.html +6 -5
  178. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  179. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  180. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  181. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  182. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  183. package/docs/types/MoveArgs.html +6 -5
  184. package/docs/types/MoveOpts.html +6 -5
  185. package/docs/types/Object3DHelperEventMap.html +6 -5
  186. package/docs/types/ObjectFit.html +6 -5
  187. package/docs/types/PaintBrushEventMap.html +6 -5
  188. package/docs/types/PanoCompassPluginData.html +6 -5
  189. package/docs/types/PanoCompassPluginExportType.html +6 -5
  190. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  191. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  192. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  193. package/docs/types/PanoIndex.html +6 -5
  194. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  195. package/docs/types/PanoMeasureReturnType.html +6 -5
  196. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  197. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  198. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  199. package/docs/types/PlaneTag.html +6 -5
  200. package/docs/types/PlaneTagElement.html +6 -5
  201. package/docs/types/Point2DElement.html +6 -5
  202. package/docs/types/Point2DTag.html +6 -5
  203. package/docs/types/Point3DElement.html +6 -5
  204. package/docs/types/Point3DTag.html +6 -5
  205. package/docs/types/PointTag.html +6 -5
  206. package/docs/types/PointTagElement.html +6 -5
  207. package/docs/types/Position.html +6 -5
  208. package/docs/types/RotateArgs.html +6 -5
  209. package/docs/types/RotateOpts.html +6 -5
  210. package/docs/types/RuleLabelsKey.html +6 -5
  211. package/docs/types/RuleLabelsValue.html +6 -5
  212. package/docs/types/StickType.html +6 -5
  213. package/docs/types/Tag.html +6 -5
  214. package/docs/types/Tag2D.html +6 -5
  215. package/docs/types/Tag3D.html +6 -5
  216. package/docs/types/TagContentType.html +6 -5
  217. package/docs/types/TagDimensionType.html +6 -5
  218. package/docs/types/TagElement.html +6 -5
  219. package/docs/types/TagEvents.html +6 -5
  220. package/docs/types/TagHooks.html +6 -5
  221. package/docs/types/TagIconSize.html +6 -5
  222. package/docs/types/TagId.html +6 -5
  223. package/docs/types/TagPointType.html +6 -5
  224. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  225. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  226. package/docs/types/WorkCode.html +6 -5
  227. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  228. package/docs/variables/PLUGIN.html +6 -5
  229. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  230. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  231. package/docs/variables/VERSION.html +6 -5
  232. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  233. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  234. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  235. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
  236. package/libs/CSS3DRenderPlugin/Controller.js +2 -2
  237. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
  238. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
  239. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
  240. package/libs/CSS3DRenderPlugin/utils/index.js +12 -0
  241. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +2 -1
  242. package/libs/CSS3DRenderPlugin/utils/random.js +6 -1
  243. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +3 -2
  244. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +2 -1
  245. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +6 -4
  246. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
  247. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
  248. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
  249. package/libs/CruisePlugin/Controller.js +1 -1
  250. package/libs/CruisePlugin/utils/coordinatesAngle.js +3 -2
  251. package/libs/CruisePlugin/utils/linerValue.js +4 -4
  252. package/libs/GuideLinePlugin/Controller.js +1 -1
  253. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
  254. package/libs/GuideLinePlugin/utils/getPoint.d.ts +3 -0
  255. package/libs/GuideLinePlugin/utils/getPoint.js +18 -0
  256. package/libs/Object3DHelperPlugin/Controller.js +2 -2
  257. package/libs/PanoMeasurePlugin/Controller/BaseController.js +25 -15
  258. package/libs/PanoMeasurePlugin/Controller/EditController.js +21 -9
  259. package/libs/PanoMeasurePlugin/Controller/MixedController.js +23 -10
  260. package/libs/PanoMeasurePlugin/Controller/ViewController.js +25 -14
  261. package/libs/PanoMeasurePlugin/Controller/WatchController.js +44 -29
  262. package/libs/PanoMeasurePlugin/Controller/index.js +58 -21
  263. package/libs/PanoMeasurePlugin/Model/index.js +47 -40
  264. package/libs/PanoMeasurePlugin/Model/line.js +15 -11
  265. package/libs/PanoMeasurePlugin/Model/point.js +5 -5
  266. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
  267. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
  268. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  269. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
  270. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  271. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
  272. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
  273. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
  274. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
  275. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  276. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +24 -16
  277. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +4 -3
  278. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +8 -5
  279. package/libs/PanoMeasurePlugin/index.js +2 -2
  280. package/libs/PanoMeasurePlugin/typings/data.js +1 -0
  281. package/libs/PanoMeasurePlugin/typings/event.type.js +1 -0
  282. package/libs/PanoMeasurePlugin/typings/index.js +1 -0
  283. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  284. package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
  285. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
  286. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  287. package/libs/PanoMeasurePlugin/utils/clearGroup.js +6 -0
  288. package/libs/PanoMeasurePlugin/utils/constants.js +15 -16
  289. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
  290. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +7 -6
  291. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
  292. package/libs/PanoMeasurePlugin/utils/line.js +1 -0
  293. package/libs/PanoMeasurePlugin/utils/math.js +2 -1
  294. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
  295. package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
  296. package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
  297. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
  298. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  299. package/libs/PanoTagPlugin/Components/Common/Audio.js +24 -24
  300. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +20 -18
  301. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +31 -29
  302. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +19 -19
  303. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +25 -24
  304. package/libs/PanoTagPlugin/Components/Common/Media.js +47 -39
  305. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  306. package/libs/PanoTagPlugin/Components/Common/Shadow.js +10 -9
  307. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +24 -21
  308. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +37 -27
  309. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +25 -25
  310. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +26 -26
  311. package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
  312. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +22 -18
  313. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +54 -43
  314. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +83 -61
  315. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  316. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +103 -81
  317. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +17 -13
  318. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +5 -3
  319. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +74 -56
  320. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +27 -23
  321. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +51 -39
  322. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +69 -52
  323. package/libs/PanoTagPlugin/Components/Tag/index.js +119 -79
  324. package/libs/PanoTagPlugin/Components/TagContainer.js +132 -81
  325. package/libs/PanoTagPlugin/Components/TagItem.js +110 -63
  326. package/libs/PanoTagPlugin/controller/TagCacheController.js +3 -2
  327. package/libs/PanoTagPlugin/controller/TagComputer.js +9 -6
  328. package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
  329. package/libs/PanoTagPlugin/controller/index.js +131 -61
  330. package/libs/PanoTagPlugin/index.js +2 -2
  331. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  332. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  333. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  334. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  335. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  336. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  337. package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
  338. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  339. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  340. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  341. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  342. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  343. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  344. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  345. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  346. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  347. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  348. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  349. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  350. package/libs/PanoTagPlugin/mocks/v2/mock1.d.ts +128 -0
  351. package/libs/PanoTagPlugin/mocks/v2/mock1.js +114 -0
  352. package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
  353. package/libs/PanoTagPlugin/typings/index.js +7 -1
  354. package/libs/PanoTagPlugin/typings/tag/Tag.js +4 -1
  355. package/libs/PanoTagPlugin/utils/constants.js +2 -1
  356. package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
  357. package/libs/PanoTagPlugin/utils/getImageInfo.js +16 -15
  358. package/libs/PanoTagPlugin/utils/index.js +35 -0
  359. package/libs/PanoTagPlugin/utils/px2rem.js +3 -3
  360. package/libs/PanoTagPlugin/utils/search.js +27 -9
  361. package/libs/PanoTagPlugin/utils/tag/format.js +1 -1
  362. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +22 -6
  363. package/libs/PanoTagPlugin/utils/timeToString.js +4 -4
  364. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  365. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +10 -6
  366. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  367. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +83 -74
  368. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  369. package/libs/index.js +7 -7
  370. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
- var t = (o, n, e) => new Promise((c, l) => {
2
- var i = (d) => {
1
+ var t = (o, n, e) => new Promise((u, r) => {
2
+ var c = (d) => {
3
3
  try {
4
- r(e.next(d));
5
- } catch (a) {
6
- l(a);
4
+ a(e.next(d));
5
+ } catch (l) {
6
+ r(l);
7
7
  }
8
- }, m = (d) => {
8
+ }, f = (d) => {
9
9
  try {
10
- r(e.throw(d));
11
- } catch (a) {
12
- l(a);
10
+ a(e.throw(d));
11
+ } catch (l) {
12
+ r(l);
13
13
  }
14
- }, r = (d) => d.done ? c(d.value) : Promise.resolve(d.value).then(i, m);
15
- r((e = e.apply(o, n)).next());
14
+ }, a = (d) => d.done ? u(d.value) : Promise.resolve(d.value).then(c, f);
15
+ a((e = e.apply(o, n)).next());
16
16
  });
17
- function f(o) {
17
+ function m(o) {
18
18
  return t(this, null, function* () {
19
19
  return new Promise((n) => {
20
20
  var e;
@@ -27,5 +27,5 @@ function f(o) {
27
27
  });
28
28
  }
29
29
  export {
30
- f as fiveModelLoaded
30
+ m as default
31
31
  };
@@ -35,7 +35,7 @@ import { safeCall as $ } from "./utils/safeCall.js";
35
35
  import { equal as _ } from "../shared-utils/equal.js";
36
36
  import { vectorToCoordinates as R } from "./utils/vectorToCoordinates.js";
37
37
  import * as N from "three";
38
- import { linerValue as j } from "./utils/linerValue.js";
38
+ import j from "./utils/linerValue.js";
39
39
  import { sleep as H } from "./utils/sleep.js";
40
40
  import "../base/BasePlugin.js";
41
41
  import "../shared-utils/Subscribe.js";
@@ -1,6 +1,7 @@
1
1
  import { coordinatesToVector as o } from "./coordinatesToVector.js";
2
- function s(n, t) {
3
- const e = o(n), r = o(t);
2
+ import "three";
3
+ function s(t, n) {
4
+ const e = o(t), r = o(n);
4
5
  return e.angleTo(r);
5
6
  }
6
7
  export {
@@ -1,7 +1,7 @@
1
- function u(n, c, t, e) {
2
- const o = -n / t, r = n;
3
- return o * e + r;
1
+ function u(n, r, t, e) {
2
+ const a = -n / t, o = n;
3
+ return a * e + o;
4
4
  }
5
5
  export {
6
- u as linerValue
6
+ u as default
7
7
  };
@@ -28,7 +28,7 @@ var u = (n, s, e) => new Promise((i, t) => {
28
28
  });
29
29
  import { Controller as $ } from "../base/BasePluginWithData.js";
30
30
  import * as b from "three";
31
- import { getLineGeometries as y } from "./utils/getLineGeometries.js";
31
+ import y from "./utils/getLineGeometries.js";
32
32
  import { getArrowMaterial as M } from "./utils/getArrowMaterial.js";
33
33
  import { notNil as w } from "../shared-utils/isNil.js";
34
34
  import { equal as N } from "../shared-utils/equal.js";
@@ -60,5 +60,5 @@ function B(i, r, p) {
60
60
  return n.setAttribute("position", new T.BufferAttribute(a, 3)), n.setAttribute("uv", new T.BufferAttribute(l, 2)), n.setIndex(new T.BufferAttribute(o, 1)), n;
61
61
  }
62
62
  export {
63
- X as getLineGeometries
63
+ X as default
64
64
  };
@@ -0,0 +1,3 @@
1
+ import * as THREE from 'three';
2
+ export default function getPoint(position?: THREE.Vector3, colorIndex?: number): THREE.Mesh<THREE.SphereGeometry, THREE.MeshBasicMaterial>;
3
+ export declare function getAllMesh(): any[];
@@ -0,0 +1,18 @@
1
+ import * as e from "three";
2
+ const o = [];
3
+ function c(r = new e.Vector3(1, 1, 1), a = 0) {
4
+ const n = new e.SphereGeometry(0.02, 16, 16), t = [
5
+ new e.MeshBasicMaterial({ color: 16776960 }),
6
+ new e.MeshBasicMaterial({ color: 16711935 }),
7
+ new e.MeshBasicMaterial({ color: 16711680 }),
8
+ new e.MeshBasicMaterial({ color: 65535 })
9
+ ][a], s = new e.Mesh(n, t);
10
+ return t.depthTest = !1, t.transparent = !0, t.opacity = 0.6, t.side = e.DoubleSide, s.position.copy(r), o.push(s), s;
11
+ }
12
+ function l() {
13
+ return o;
14
+ }
15
+ export {
16
+ c as default,
17
+ l as getAllMesh
18
+ };
@@ -38,8 +38,8 @@ import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
38
38
  import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
39
39
  import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
40
40
  import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
41
- import { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
- import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
41
+ import $ from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
+ import W from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
43
  import "../shared-utils/Subscribe.js";
44
44
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
45
45
  import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
@@ -1,10 +1,20 @@
1
- var m = Object.defineProperty;
2
- var a = (i, e, o) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[e] = o;
1
+ var u = Object.defineProperty;
2
+ var a = (i, e, o) => e in i ? u(i, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[e] = o;
3
3
  var t = (i, e, o) => (a(i, typeof e != "symbol" ? e + "" : e, o), o);
4
- import { Line as l } from "../Model/line.js";
5
- import { Point as d } from "../Model/point.js";
6
- import { preventDefault as r } from "../utils/ironbox.js";
7
- class G {
4
+ import l from "../Model/line.js";
5
+ import m from "../Model/point.js";
6
+ import { preventDefault as n } from "../utils/ironbox.js";
7
+ import "../../shared-utils/uuid.js";
8
+ import "../Model/polyline.js";
9
+ import "../utils/line.js";
10
+ import "@realsee/five/line";
11
+ import "../utils/constants.js";
12
+ import "three";
13
+ import "@realsee/five";
14
+ import "../utils/distanceDom.js";
15
+ import "../utils/isNDCPointInScreen.js";
16
+ import "../../shared-utils/removeArrayItem.js";
17
+ class H {
8
18
  constructor(e) {
9
19
  t(this, "model");
10
20
  t(this, "five");
@@ -22,10 +32,10 @@ class G {
22
32
  t(this, "updateDistanceUI", () => {
23
33
  this.dashed.distanceItem.update(this.five), this.model.lines.forEach((e) => e.distanceItem.update(this.five));
24
34
  });
25
- var s, n;
26
- this.five = e.five, this.hook = e.hook, this.model = e.model, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.isMobile = (n = (s = e.openParams) == null ? void 0 : s.isMobile) != null ? n : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new l(new d([0, 0, 0]), new d([0, 0, 0]), this.model), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
35
+ var s, r;
36
+ this.five = e.five, this.hook = e.hook, this.model = e.model, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.isMobile = (r = (s = e.openParams) == null ? void 0 : s.isMobile) != null ? r : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new l(new m([0, 0, 0]), new m([0, 0, 0]), this.model), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
27
37
  const o = this.five.getElement();
28
- o && (o.addEventListener("touchstart", r), o.addEventListener("contextmenu", r));
38
+ o && (o.addEventListener("touchstart", n), o.addEventListener("contextmenu", n));
29
39
  }
30
40
  removeLine(e) {
31
41
  this.group.remove(e.mesh, e.lightMesh), e.distanceItem.remove(), this.five.needsRender = !0;
@@ -33,21 +43,21 @@ class G {
33
43
  updateMouseGroup(e, o) {
34
44
  if (!e)
35
45
  return this.mouseGroup;
36
- const s = this.fiveHelper.getAdsorbentPoint(e), n = s || e.point;
37
- if (this.mouseGroup.position.copy(n), o)
46
+ const s = this.fiveHelper.getAdsorbentPoint(e), r = s || e.point;
47
+ if (this.mouseGroup.position.copy(r), o)
38
48
  this.mouseGroup.quaternion.copy(o.quaternion);
39
49
  else if (e.face) {
40
- const h = e.face.normal.clone().multiplyScalar(0.05), u = e.point.clone().add(h).clone().add(h);
41
- this.mouseGroup.lookAt(u);
50
+ const h = e.face.normal.clone().multiplyScalar(0.05), d = e.point.clone().add(h).clone().add(h);
51
+ this.mouseGroup.lookAt(d);
42
52
  }
43
53
  return this.mouseGroup;
44
54
  }
45
55
  dispose() {
46
56
  this.disposed = !0, this.magnifier.remove(), this.model.lines.forEach((o) => this.removeLine(o));
47
57
  const e = this.five.getElement();
48
- e && (e.removeEventListener("touchstart", r), e.removeEventListener("contextmenu", r));
58
+ e && (e.removeEventListener("touchstart", n), e.removeEventListener("contextmenu", n));
49
59
  }
50
60
  }
51
61
  export {
52
- G as BaseController
62
+ H as default
53
63
  };
@@ -1,14 +1,26 @@
1
- var p = Object.defineProperty;
2
- var m = (h, n, e) => n in h ? p(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
1
+ var d = Object.defineProperty;
2
+ var m = (h, n, e) => n in h ? d(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
3
3
  var s = (h, n, e) => (m(h, typeof n != "symbol" ? n + "" : n, e), e);
4
4
  import u from "hammerjs";
5
5
  import { Model as f } from "../Model/index.js";
6
- import { Line as l } from "../Model/line.js";
7
- import { Point as d } from "../Model/point.js";
6
+ import l from "../Model/line.js";
7
+ import p from "../Model/point.js";
8
8
  import { throttle as v } from "../../shared-utils/throttle.js";
9
- import { BaseController as c } from "./BaseController.js";
9
+ import c from "./BaseController.js";
10
10
  import { getIntersectionFromEvent as r } from "../utils/getIntersectionFromEvent.js";
11
- class A extends c {
11
+ import "@realsee/five";
12
+ import "../../shared-utils/removeArrayItem.js";
13
+ import "../Model/polyline.js";
14
+ import "../../shared-utils/uuid.js";
15
+ import "../utils/line.js";
16
+ import "@realsee/five/line";
17
+ import "../utils/constants.js";
18
+ import "three";
19
+ import "../utils/distanceDom.js";
20
+ import "../utils/isNDCPointInScreen.js";
21
+ import "../utils/ironbox.js";
22
+ import "../utils/getPointFromHammerEvent.js";
23
+ class q extends c {
12
24
  constructor(e) {
13
25
  var i;
14
26
  super(e);
@@ -48,7 +60,7 @@ class A extends c {
48
60
  const [t] = r(this.five, e);
49
61
  if (!t || !t.face)
50
62
  return;
51
- const i = new d(t.point);
63
+ const i = new p(t.point);
52
64
  this.pressPoint = i, this.onIntersectionUpdate(t);
53
65
  });
54
66
  s(this, "onPan", (e) => {
@@ -64,7 +76,7 @@ class A extends c {
64
76
  this.hasAppendDashed || (this.dashed.distanceItem.appendTo(this.container), this.group.add(this.dashed.mesh)), this.hasAppendDashed = !0;
65
77
  const [t] = r(this.five, e);
66
78
  this.updateMouseGroup(t);
67
- const i = new d(this.mouseGroup.position), o = this.lastPoint;
79
+ const i = new p(this.mouseGroup.position), o = this.lastPoint;
68
80
  if (i && (this.lastPoint = i), i && o) {
69
81
  const a = new l(o, i, this.model);
70
82
  a.distanceItem.appendTo(this.container), this.model.addLine(a), this.group.add(a.mesh), a.distanceItem.update(this.five);
@@ -98,5 +110,5 @@ class A extends c {
98
110
  }
99
111
  }
100
112
  export {
101
- A as EditController
113
+ q as default
102
114
  };
@@ -2,14 +2,27 @@ var b = Object.defineProperty;
2
2
  var k = (h, n, e) => n in h ? b(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
3
3
  var t = (h, n, e) => (k(h, typeof n != "symbol" ? n + "" : n, e), e);
4
4
  import { Model as S } from "../Model/index.js";
5
- import { Line as T } from "../Model/line.js";
6
- import { BaseController as D } from "./BaseController.js";
7
- import { DeleteDom as M } from "../Modules/DeleteDom/index.js";
5
+ import T from "../Model/line.js";
6
+ import D from "./BaseController.js";
7
+ import M from "../Modules/DeleteDom/index.js";
8
8
  import { findAssociatedLines as G } from "../utils/findAssociatedLines.js";
9
9
  import { Vector2 as m } from "three";
10
- import { isNDCPointInScreen as v } from "../utils/isNDCPointInScreen.js";
10
+ import v from "../utils/isNDCPointInScreen.js";
11
11
  import { closestPointOnLine as N } from "../utils/math.js";
12
- class V extends D {
12
+ import "../Model/point.js";
13
+ import "../../shared-utils/uuid.js";
14
+ import "../../shared-utils/removeArrayItem.js";
15
+ import "@realsee/five";
16
+ import "../Model/polyline.js";
17
+ import "../utils/line.js";
18
+ import "@realsee/five/line";
19
+ import "../utils/constants.js";
20
+ import "../utils/distanceDom.js";
21
+ import "../utils/ironbox.js";
22
+ import "../Modules/DeleteDom/_Assets/delete.svg.js";
23
+ import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
24
+ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
25
+ class $ extends D {
13
26
  constructor(e) {
14
27
  super(e);
15
28
  t(this, "state", "watching");
@@ -32,18 +45,18 @@ class V extends D {
32
45
  const [i] = this.five.model.intersectRaycaster(e);
33
46
  if (!i)
34
47
  return;
35
- const o = this.five.camera, f = i.point.clone().project(o), d = this.container.clientWidth, r = this.container.clientHeight, p = new m(f.x * d, f.y * r), g = this.model.lines.map((s) => {
48
+ const o = this.five.camera, p = i.point.clone().project(o), r = this.container.clientWidth, d = this.container.clientHeight, f = new m(p.x * r, p.y * d), g = this.model.lines.map((s) => {
36
49
  const [a, L] = s.points, l = a.position.clone().project(o), c = L.position.clone().project(o);
37
50
  if (!v(l) && !v(c))
38
51
  return null;
39
- const C = new m(l.x * d, l.y * r), w = new m(c.x * d, c.y * r);
52
+ const C = new m(l.x * r, l.y * d), w = new m(c.x * r, c.y * d);
40
53
  return { id: s.id, points: [C, w] };
41
54
  }).filter((s) => !!s);
42
55
  if (g.length === 0)
43
56
  return;
44
57
  const u = g.map((s) => {
45
- const a = N(p, s.points);
46
- return { id: s.id, distance: a.distanceTo(p) };
58
+ const a = N(f, s.points);
59
+ return { id: s.id, distance: a.distanceTo(f) };
47
60
  }).sort((s, a) => s.distance - a.distance)[0];
48
61
  if (u.distance > 20)
49
62
  return;
@@ -121,5 +134,5 @@ class V extends D {
121
134
  }
122
135
  }
123
136
  export {
124
- V as MixedController
137
+ $ as default
125
138
  };
@@ -2,12 +2,23 @@ var P = Object.defineProperty;
2
2
  var y = (h, n, e) => n in h ? P(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
3
3
  var o = (h, n, e) => (y(h, typeof n != "symbol" ? n + "" : n, e), e);
4
4
  import T from "hammerjs";
5
- import { Vector2 as g } from "three";
5
+ import { Vector2 as p } from "three";
6
6
  import { closestPointOnLine as H } from "../utils/math.js";
7
- import { isNDCPointInScreen as L } from "../utils/isNDCPointInScreen.js";
7
+ import L from "../utils/isNDCPointInScreen.js";
8
8
  import { findAssociatedLines as k } from "../utils/findAssociatedLines.js";
9
- import { BaseController as E } from "./BaseController.js";
10
- class M extends E {
9
+ import E from "./BaseController.js";
10
+ import "../Model/line.js";
11
+ import "../../shared-utils/uuid.js";
12
+ import "../Model/polyline.js";
13
+ import "../utils/line.js";
14
+ import "@realsee/five/line";
15
+ import "../utils/constants.js";
16
+ import "@realsee/five";
17
+ import "../utils/distanceDom.js";
18
+ import "../Model/point.js";
19
+ import "../../shared-utils/removeArrayItem.js";
20
+ import "../utils/ironbox.js";
21
+ class K extends E {
11
22
  constructor(e) {
12
23
  super(e);
13
24
  o(this, "type", "view");
@@ -19,24 +30,24 @@ class M extends E {
19
30
  const [t] = this.five.model.intersectRaycaster(e);
20
31
  if (!t)
21
32
  return;
22
- const i = this.five.camera, f = t.point.clone().project(i), c = this.container.clientWidth, a = this.container.clientHeight, p = new g(f.x * c, f.y * a), u = this.model.lines.map((s) => {
23
- const [r, w] = s.points, l = r.position.clone().project(i), m = w.position.clone().project(i);
24
- if (!L(l) && !L(m))
33
+ const i = this.five.camera, g = t.point.clone().project(i), c = this.container.clientWidth, a = this.container.clientHeight, f = new p(g.x * c, g.y * a), u = this.model.lines.map((s) => {
34
+ const [r, w] = s.points, m = r.position.clone().project(i), l = w.position.clone().project(i);
35
+ if (!L(m) && !L(l))
25
36
  return null;
26
- const C = new g(
27
- l.x * c,
28
- l.y * a
29
- ), R = new g(
37
+ const C = new p(
30
38
  m.x * c,
31
39
  m.y * a
40
+ ), R = new p(
41
+ l.x * c,
42
+ l.y * a
32
43
  );
33
44
  return { id: s.id, points: [C, R] };
34
45
  }).filter((s) => !!s);
35
46
  if (u.length === 0)
36
47
  return;
37
48
  const v = u.map((s) => {
38
- const r = H(p, s.points);
39
- return { id: s.id, distance: r.distanceTo(p) };
49
+ const r = H(f, s.points);
50
+ return { id: s.id, distance: r.distanceTo(f) };
40
51
  }).sort((s, r) => s.distance - r.distance)[0], d = v.distance > 20 ? void 0 : this.model.lines.find(({ id: s }) => s === v.id);
41
52
  if (this.highlightedLines.length > 0 && !d)
42
53
  return this.clearHighlightLines(), !1;
@@ -86,5 +97,5 @@ class M extends E {
86
97
  }
87
98
  }
88
99
  export {
89
- M as ViewController
100
+ K as default
90
101
  };
@@ -1,16 +1,31 @@
1
1
  var w = Object.defineProperty;
2
- var y = (r, h, e) => h in r ? w(r, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[h] = e;
3
- var s = (r, h, e) => (y(r, typeof h != "symbol" ? h + "" : h, e), e);
2
+ var y = (a, h, e) => h in a ? w(a, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[h] = e;
3
+ var s = (a, h, e) => (y(a, typeof h != "symbol" ? h + "" : h, e), e);
4
4
  import E from "hammerjs";
5
- import { DeleteDom as G } from "../Modules/DeleteDom/index.js";
6
- import { isNDCPointInScreen as L } from "../utils/isNDCPointInScreen.js";
7
- import { BaseController as R } from "./BaseController.js";
5
+ import G from "../Modules/DeleteDom/index.js";
6
+ import L from "../utils/isNDCPointInScreen.js";
7
+ import R from "./BaseController.js";
8
8
  import { Raycaster as T, Vector2 as f } from "three";
9
9
  import { closestPointOnLine as H } from "../utils/math.js";
10
10
  import { findClosestPoint as I } from "../utils/findClosestPoint.js";
11
11
  import { findAssociatedLines as v } from "../utils/findAssociatedLines.js";
12
12
  import { getPointFromHammerEvent as C } from "../utils/getPointFromHammerEvent.js";
13
- class B extends R {
13
+ import "../Modules/DeleteDom/_Assets/delete.svg.js";
14
+ import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
15
+ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
16
+ import "../Model/line.js";
17
+ import "../../shared-utils/uuid.js";
18
+ import "../Model/polyline.js";
19
+ import "../utils/line.js";
20
+ import "@realsee/five/line";
21
+ import "../utils/constants.js";
22
+ import "@realsee/five";
23
+ import "../utils/distanceDom.js";
24
+ import "../Model/point.js";
25
+ import "../../shared-utils/removeArrayItem.js";
26
+ import "../utils/ironbox.js";
27
+ import "../utils/ndc2Screen.js";
28
+ class oe extends R {
14
29
  constructor(e) {
15
30
  super(e);
16
31
  s(this, "type", "watch");
@@ -20,22 +35,22 @@ class B extends R {
20
35
  s(this, "editPointState");
21
36
  s(this, "hammer");
22
37
  s(this, "onPanStart", (e) => {
23
- var a;
38
+ var r;
24
39
  if (this.model.points.length === 0 || !this.fiveElement)
25
40
  return;
26
- const i = C(e).point, t = (a = I(this.five, this.model.points, i, 20)) == null ? void 0 : a.point;
41
+ const i = C(e).point, t = (r = I(this.five, this.model.points, i, 20)) == null ? void 0 : r.point;
27
42
  if (!t) {
28
43
  this.editPointState = void 0;
29
44
  return;
30
45
  }
31
- const n = {
46
+ const o = {
32
47
  point: t,
33
48
  associatedLines: v(t.lines[0])
34
49
  };
35
50
  this.hook.emit("wantsDragLine", {
36
51
  point: t.id,
37
- lines: n.associatedLines.map(({ id: l }) => l)
38
- }) || (this.editPointState = n, this.magnifier.appendTo(this.container), this.group.add(this.mouseGroup));
52
+ lines: o.associatedLines.map(({ id: l }) => l)
53
+ }) || (this.editPointState = o, this.magnifier.appendTo(this.container), this.group.add(this.mouseGroup));
39
54
  });
40
55
  s(this, "onPanEnd", () => {
41
56
  !this.editPointState || (this.editPointState.point.lines.forEach((e) => e.mesh.setMaterial({ dashed: !1 })), this.highlightLines(this.editPointState.associatedLines), this.editPointState = void 0, this.magnifier.remove(), this.group.remove(this.mouseGroup));
@@ -45,8 +60,8 @@ class B extends R {
45
60
  return;
46
61
  const i = C(e).ndcPoint, t = new T();
47
62
  t.setFromCamera(i, this.five.camera);
48
- const [n] = this.five.model.intersectRaycaster(t);
49
- !n || this.onIntersectionUpdate(n);
63
+ const [o] = this.five.model.intersectRaycaster(t);
64
+ !o || this.onIntersectionUpdate(o);
50
65
  });
51
66
  s(this, "onIntersectionUpdate", (e, i) => {
52
67
  if (!!this.editPointState) {
@@ -55,8 +70,8 @@ class B extends R {
55
70
  }), this.updateDistanceUI(), this.magnifier.renderWithPoint(e.point), this.mouseGroup.position.copy(e.point), i)
56
71
  this.mouseGroup.quaternion.copy(i.quaternion);
57
72
  else if (e.face) {
58
- const n = e.face.normal.clone().multiplyScalar(0.05), a = e.point.clone().add(n).clone().add(n);
59
- this.mouseGroup.lookAt(a);
73
+ const o = e.face.normal.clone().multiplyScalar(0.05), r = e.point.clone().add(o).clone().add(o);
74
+ this.mouseGroup.lookAt(r);
60
75
  }
61
76
  this.five.needsRender = !0, this.hook.emit(
62
77
  "selectedChange",
@@ -72,28 +87,28 @@ class B extends R {
72
87
  const [i] = this.five.model.intersectRaycaster(e);
73
88
  if (!i)
74
89
  return;
75
- const t = this.five.camera, n = i.point.clone().project(t), c = this.container.clientWidth, a = this.container.clientHeight, l = new f(n.x * c, n.y * a), g = this.model.lines.map((o) => {
76
- const [d, S] = o.points, m = d.position.clone().project(t), p = S.position.clone().project(t);
90
+ const t = this.five.camera, o = i.point.clone().project(t), c = this.container.clientWidth, r = this.container.clientHeight, l = new f(o.x * c, o.y * r), u = this.model.lines.map((n) => {
91
+ const [d, S] = n.points, m = d.position.clone().project(t), p = S.position.clone().project(t);
77
92
  if (!L(m) && !L(p))
78
93
  return null;
79
94
  const k = new f(
80
95
  m.x * c,
81
- m.y * a
96
+ m.y * r
82
97
  ), D = new f(
83
98
  p.x * c,
84
- p.y * a
99
+ p.y * r
85
100
  );
86
- return { id: o.id, points: [k, D] };
87
- }).filter((o) => !!o);
88
- if (g.length === 0)
101
+ return { id: n.id, points: [k, D] };
102
+ }).filter((n) => !!n);
103
+ if (u.length === 0)
89
104
  return;
90
- const u = g.map((o) => {
91
- const d = H(l, o.points);
92
- return { id: o.id, distance: d.distanceTo(l) };
93
- }).sort((o, d) => o.distance - d.distance)[0];
94
- if (u.distance > 20)
105
+ const g = u.map((n) => {
106
+ const d = H(l, n.points);
107
+ return { id: n.id, distance: d.distanceTo(l) };
108
+ }).sort((n, d) => n.distance - d.distance)[0];
109
+ if (g.distance > 20)
95
110
  return;
96
- const P = this.model.lines.find(({ id: o }) => o === u.id);
111
+ const P = this.model.lines.find(({ id: n }) => n === g.id);
97
112
  if (!!P)
98
113
  return this.chooseLine(P), !1;
99
114
  });
@@ -150,5 +165,5 @@ class B extends R {
150
165
  }
151
166
  }
152
167
  export {
153
- B as WatchController
168
+ oe as default
154
169
  };