@realsee/dnalogel 2.21.0-dev.0 → 2.21.0-dev.2

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 (354) hide show
  1. package/dist/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
  2. package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
  3. package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
  4. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
  5. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +3 -5
  6. package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  7. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  8. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +4 -3
  9. package/dist/PanoMeasurePlugin/typings/data.d.ts +7 -2
  10. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
  11. package/dist/index.cjs.js +58 -58
  12. package/dist/index.js +6221 -5669
  13. package/dist/index.umd.js +45 -45
  14. package/dist/shared-utils/isTouchDevice.d.ts +1 -0
  15. package/dist/shared-utils/three/PointSelector.d.ts +32 -0
  16. package/dist/shared-utils/three/PointSelectorHelper.d.ts +50 -0
  17. package/dist/shared-utils/three/index.d.ts +1 -1
  18. package/docs/assets/search.js +1 -1
  19. package/docs/classes/CSS3DRender.html +5 -4
  20. package/docs/classes/CruisePluginController.html +5 -4
  21. package/docs/classes/GuideLineItem.GuideLineItem.html +5 -4
  22. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -4
  23. package/docs/classes/Magnifier.html +5 -4
  24. package/docs/classes/ModelRoomLabelController.html +5 -4
  25. package/docs/classes/Object3DHelperController.html +5 -4
  26. package/docs/classes/PaintBrush.html +5 -4
  27. package/docs/classes/PanoMeasurePluginLine.html +5 -4
  28. package/docs/classes/PanoMeasurePluginModel.html +5 -4
  29. package/docs/classes/PanoMeasurePluginPoint.html +9 -8
  30. package/docs/classes/PanoMeasurePluginPolyline.html +14 -13
  31. package/docs/classes/PanoTagPluginController.html +5 -4
  32. package/docs/classes/Util.BetterTween.html +5 -4
  33. package/docs/classes/Util.Interval.html +5 -4
  34. package/docs/classes/Util.Magnifier.html +5 -4
  35. package/docs/classes/Util.PointDomHelper.html +5 -4
  36. package/docs/classes/Util.PointHelper.html +5 -4
  37. package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +96 -26
  38. package/docs/classes/Util.Rectangle.html +5 -4
  39. package/docs/enums/CameraMovementEffect.html +5 -4
  40. package/docs/enums/ContentType.html +5 -4
  41. package/docs/enums/DIRECTION.html +5 -4
  42. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -4
  43. package/docs/enums/DimensionType.html +5 -4
  44. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -4
  45. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -4
  46. package/docs/enums/PaintBrushTypeEnum.html +5 -4
  47. package/docs/enums/PointType.html +5 -4
  48. package/docs/enums/Rotation.html +5 -4
  49. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  50. package/docs/functions/CameraMovementPlugin.html +5 -4
  51. package/docs/functions/CruisePlugin.html +5 -4
  52. package/docs/functions/GuideLinePlugin.html +5 -4
  53. package/docs/functions/ItemLabelPlugin.html +5 -4
  54. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  55. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  56. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  57. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  58. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  59. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  60. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  61. package/docs/functions/ModelViewPlugin.html +5 -4
  62. package/docs/functions/Object3DHelperPlugin.html +5 -4
  63. package/docs/functions/PanoCompassPlugin.html +5 -4
  64. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  65. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  66. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  67. package/docs/functions/PanoMeasurePlugin.html +5 -4
  68. package/docs/functions/PanoRulerPlugin.html +5 -4
  69. package/docs/functions/PanoRulerProPlugin.html +5 -4
  70. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  71. package/docs/functions/PanoTagPlugin.html +5 -4
  72. package/docs/functions/PanoVideoPlugin.html +5 -4
  73. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  74. package/docs/functions/Util.getCoordsFromClient.html +5 -4
  75. package/docs/functions/Util.getCoordsFromElement.html +5 -4
  76. package/docs/functions/Util.getFrameTime.html +5 -4
  77. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -4
  78. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -4
  79. package/docs/functions/Util.isAbsoluteURL.html +5 -4
  80. package/docs/functions/Util.isModelLike.html +5 -4
  81. package/docs/functions/Util.isNil.html +5 -4
  82. package/docs/functions/Util.isPanoramaLike.html +5 -4
  83. package/docs/functions/Util.nextFrame.html +5 -4
  84. package/docs/functions/Util.notNil.html +5 -4
  85. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -4
  86. package/docs/functions/Util.tweenProgress.html +5 -4
  87. package/docs/functions/Util.uuid.html +5 -4
  88. package/docs/functions/pluginFlag.html +5 -4
  89. package/docs/index.html +6 -5
  90. package/docs/interfaces/AddTagConfig.html +5 -4
  91. package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -4
  92. package/docs/interfaces/CSS3DRenderPluginState.html +5 -4
  93. package/docs/interfaces/CameraMovementPluginExportType.html +5 -4
  94. package/docs/interfaces/CruisePluginTypes.Config.html +5 -4
  95. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +5 -4
  96. package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -4
  97. package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -4
  98. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -4
  99. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -4
  100. package/docs/interfaces/CruisePluginTypes.PluginData.html +5 -4
  101. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -4
  102. package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -4
  103. package/docs/interfaces/EventMap.html +5 -4
  104. package/docs/interfaces/FloorplanBounding.html +5 -4
  105. package/docs/interfaces/FloorplanData.html +5 -4
  106. package/docs/interfaces/FloorplanEntrance.html +5 -4
  107. package/docs/interfaces/FloorplanExtraObject.html +5 -4
  108. package/docs/interfaces/FloorplanExtraObject3D.html +5 -4
  109. package/docs/interfaces/FloorplanFloorData.html +5 -4
  110. package/docs/interfaces/FloorplanImagePosition.html +5 -4
  111. package/docs/interfaces/FloorplanObserver.html +5 -4
  112. package/docs/interfaces/FloorplanOutlineItem.html +5 -4
  113. package/docs/interfaces/FloorplanPosition.html +5 -4
  114. package/docs/interfaces/FloorplanRoomItem.html +5 -4
  115. package/docs/interfaces/FloorplanRoomLabelItem.html +5 -4
  116. package/docs/interfaces/FloorplanServerBounding.html +5 -4
  117. package/docs/interfaces/FloorplanServerComputedData.html +5 -4
  118. package/docs/interfaces/FloorplanServerData.html +5 -4
  119. package/docs/interfaces/FloorplanServerDoorItem.html +5 -4
  120. package/docs/interfaces/FloorplanServerDoorPosition.html +5 -4
  121. package/docs/interfaces/FloorplanServerEntrance.html +5 -4
  122. package/docs/interfaces/FloorplanServerFloorData.html +5 -4
  123. package/docs/interfaces/FloorplanServerImagePosition.html +5 -4
  124. package/docs/interfaces/FloorplanServerObserver.html +5 -4
  125. package/docs/interfaces/FloorplanServerOutlineItem.html +5 -4
  126. package/docs/interfaces/FloorplanServerPosition.html +5 -4
  127. package/docs/interfaces/FloorplanServerRoomItem.html +5 -4
  128. package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -4
  129. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -4
  130. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +5 -4
  131. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -4
  132. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -4
  133. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -4
  134. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +5 -4
  135. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -4
  136. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +5 -4
  137. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +5 -4
  138. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +5 -4
  139. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -4
  140. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -4
  141. package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -4
  142. package/docs/interfaces/GuideLinePluginType.Route.html +5 -4
  143. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -4
  144. package/docs/interfaces/HelperOffset.html +5 -4
  145. package/docs/interfaces/ImagePlaneGroup.html +5 -4
  146. package/docs/interfaces/ItemLabelPluginData.html +5 -4
  147. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -4
  148. package/docs/interfaces/ItemLabelPluginParametersType.html +5 -4
  149. package/docs/interfaces/MinMax.html +5 -4
  150. package/docs/interfaces/ModelChassisCompassPluginData.html +5 -4
  151. package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -4
  152. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -4
  153. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -4
  154. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -4
  155. package/docs/interfaces/ModelItemLabelPluginData.html +5 -4
  156. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -4
  157. package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -4
  158. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -4
  159. package/docs/interfaces/ModelTVVideoPluginData.html +5 -4
  160. package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -4
  161. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -4
  162. package/docs/interfaces/ModelViewPluginExportType.html +5 -4
  163. package/docs/interfaces/Object3DHelperState.html +5 -4
  164. package/docs/interfaces/ObjectHelperControllers.html +5 -4
  165. package/docs/interfaces/PaintBrushAction.html +5 -4
  166. package/docs/interfaces/PaintBrushConfigs.html +5 -4
  167. package/docs/interfaces/PaintBrushState.html +5 -4
  168. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -4
  169. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -4
  170. package/docs/interfaces/PanoMeasureParameterType.html +5 -4
  171. package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -4
  172. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -4
  173. package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -4
  174. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -4
  175. package/docs/interfaces/PanoRulerPluginExportType.html +5 -4
  176. package/docs/interfaces/PanoRulerPluginOptions.html +5 -4
  177. package/docs/interfaces/PanoRulerPluginParameterType.html +5 -4
  178. package/docs/interfaces/PanoRulerProPluginExportType.html +5 -4
  179. package/docs/interfaces/PanoRulerProPluginOptions.html +5 -4
  180. package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -4
  181. package/docs/interfaces/PanoRulerProPluginState.html +5 -4
  182. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -4
  183. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -4
  184. package/docs/interfaces/PanoSpatialTagPluginData.html +5 -4
  185. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -4
  186. package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -4
  187. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -4
  188. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -4
  189. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -4
  190. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -4
  191. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -4
  192. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -4
  193. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -4
  194. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -4
  195. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -4
  196. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -4
  197. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -4
  198. package/docs/interfaces/Point.html +5 -4
  199. package/docs/interfaces/Room.html +5 -4
  200. package/docs/interfaces/RoomInfo.html +5 -4
  201. package/docs/interfaces/RoomLabel.html +5 -4
  202. package/docs/interfaces/RoomRules.html +5 -4
  203. package/docs/interfaces/Rooms.html +5 -4
  204. package/docs/interfaces/Scissor.html +5 -4
  205. package/docs/interfaces/State.html +5 -4
  206. package/docs/interfaces/TagCacheInterface.html +5 -4
  207. package/docs/interfaces/TagConfig.html +5 -4
  208. package/docs/interfaces/TagGLTFObjectGroup.html +5 -4
  209. package/docs/interfaces/TagIconUrl.html +5 -4
  210. package/docs/interfaces/TagObjectGroup.html +5 -4
  211. package/docs/interfaces/TagStyle.html +5 -4
  212. package/docs/interfaces/Tags.html +5 -4
  213. package/docs/interfaces/TemporaryState.html +5 -4
  214. package/docs/interfaces/Util.MagnifierParameter.html +5 -4
  215. package/docs/interfaces/Util.MouseGroupParameter.html +5 -4
  216. package/docs/interfaces/Util.PointIntersection.html +407 -0
  217. package/docs/modules/CruisePluginTypes.html +5 -4
  218. package/docs/modules/GuideLineItem.html +5 -4
  219. package/docs/modules/GuideLineModeItem.html +5 -4
  220. package/docs/modules/GuideLinePluginType.html +5 -4
  221. package/docs/modules/PanoVideoPluginType.html +5 -4
  222. package/docs/modules/Util.html +7 -5
  223. package/docs/modules.html +6 -5
  224. package/docs/types/ArrayPosition.html +5 -4
  225. package/docs/types/AudioAppearance.html +5 -4
  226. package/docs/types/AudioTagTypeConfigKey.html +5 -4
  227. package/docs/types/CSS3DRenderExportType.html +5 -4
  228. package/docs/types/CSS3DRenderPluginExportType.html +5 -4
  229. package/docs/types/CSS3DRenderPluginParameterType.html +5 -4
  230. package/docs/types/ClassFunctionParameters.html +5 -4
  231. package/docs/types/Color.html +5 -4
  232. package/docs/types/ContentTypeConfigKey.html +5 -4
  233. package/docs/types/ContentTypeConfigKeySplit.html +5 -4
  234. package/docs/types/ContentTypeMap.html +5 -4
  235. package/docs/types/Create3DDomContainerReturnType.html +5 -4
  236. package/docs/types/Create3DElementReturnType.html +5 -4
  237. package/docs/types/CruisePluginExportType.html +5 -4
  238. package/docs/types/CruisePluginTypes.CruiseData.html +5 -4
  239. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -4
  240. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -4
  241. package/docs/types/DeprecatedTagProperty.html +5 -4
  242. package/docs/types/Direction-1.html +5 -4
  243. package/docs/types/Direction4.html +5 -4
  244. package/docs/types/ElementRenderer.html +5 -4
  245. package/docs/types/FloorplanRuleLabels.html +5 -4
  246. package/docs/types/FloorplanServerRuleLabels.html +5 -4
  247. package/docs/types/GuideLinePluginExportType.html +5 -4
  248. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -4
  249. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -4
  250. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -4
  251. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -4
  252. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -4
  253. package/docs/types/GuideLinePluginType.PathItem.html +5 -4
  254. package/docs/types/GuideLinePluginType.PluginData.html +5 -4
  255. package/docs/types/HelperEventMap.html +5 -4
  256. package/docs/types/LoadTagConfig.html +5 -4
  257. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -4
  258. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -4
  259. package/docs/types/MediaData.html +5 -4
  260. package/docs/types/MediaStore.html +5 -4
  261. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -4
  262. package/docs/types/ModelFloorplanPluginParameterType.html +5 -4
  263. package/docs/types/ModelFloorplanPluginReturnType.html +5 -4
  264. package/docs/types/ModelRoomLabelPluginParameters.html +5 -4
  265. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -4
  266. package/docs/types/MoveArgs.html +5 -4
  267. package/docs/types/MoveOpts.html +5 -4
  268. package/docs/types/Object3DHelperEventMap.html +5 -4
  269. package/docs/types/ObjectFit.html +5 -4
  270. package/docs/types/PaintBrushEventMap.html +5 -4
  271. package/docs/types/PanoCompassPluginData.html +5 -4
  272. package/docs/types/PanoCompassPluginExportType.html +5 -4
  273. package/docs/types/PanoCompassPluginParameterType.html +5 -4
  274. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -4
  275. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -4
  276. package/docs/types/PanoIndex.html +5 -4
  277. package/docs/types/PanoMeasurePluginEvent.html +5 -4
  278. package/docs/types/PanoMeasureReturnType.html +5 -4
  279. package/docs/types/PanoSpatialTagPluginId.html +5 -4
  280. package/docs/types/PanoTagPluginExportInterface.html +5 -4
  281. package/docs/types/PanoTagPluginParamsInterface.html +5 -4
  282. package/docs/types/PanoVideoPluginParameterType.html +5 -4
  283. package/docs/types/PanoVideoPluginReturnType.html +5 -4
  284. package/docs/types/PartialObjectDeep.html +5 -4
  285. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -4
  286. package/docs/types/PlaneTag.html +5 -4
  287. package/docs/types/Point2DTag.html +5 -4
  288. package/docs/types/Point3DTag.html +5 -4
  289. package/docs/types/PointTag.html +5 -4
  290. package/docs/types/PointTagInstance.html +5 -4
  291. package/docs/types/Position.html +5 -4
  292. package/docs/types/RotateArgs.html +5 -4
  293. package/docs/types/RotateOpts.html +5 -4
  294. package/docs/types/RuleLabelsKey.html +5 -4
  295. package/docs/types/RuleLabelsValue.html +5 -4
  296. package/docs/types/StickType.html +5 -4
  297. package/docs/types/Tag.html +5 -4
  298. package/docs/types/Tag2D.html +5 -4
  299. package/docs/types/Tag3D.html +5 -4
  300. package/docs/types/TagContentType.html +5 -4
  301. package/docs/types/TagDimensionType.html +5 -4
  302. package/docs/types/TagElement.html +5 -4
  303. package/docs/types/TagEvents.html +5 -4
  304. package/docs/types/TagGLTFObject.html +5 -4
  305. package/docs/types/TagHooks.html +5 -4
  306. package/docs/types/TagId.html +5 -4
  307. package/docs/types/TagInstance.html +5 -4
  308. package/docs/types/TagPointType.html +5 -4
  309. package/docs/types/TagRendererMap.html +5 -4
  310. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -4
  311. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -4
  312. package/docs/types/WorkCode.html +5 -4
  313. package/docs/variables/FLOOR_TYPE_MAP.html +5 -4
  314. package/docs/variables/PLUGIN.html +5 -4
  315. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -4
  316. package/docs/variables/ROOM_TYPE_MAP.html +5 -4
  317. package/docs/variables/itemLabelPluginServerParams.html +5 -4
  318. package/docs/variables/modelItemLabelPluginServerParams.html +5 -4
  319. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -4
  320. package/libs/PanoMeasurePlugin/Components/Common/Exit.js +42 -0
  321. package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
  322. package/libs/PanoMeasurePlugin/Components/Controller0.js +81 -68
  323. package/libs/PanoMeasurePlugin/Components/Controller1.js +195 -97
  324. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
  325. package/libs/PanoMeasurePlugin/Controller/BaseController.js +7 -6
  326. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +3 -5
  327. package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -95
  328. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  329. package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  330. package/libs/PanoMeasurePlugin/Controller/index.js +65 -49
  331. package/libs/PanoMeasurePlugin/Model/point.js +17 -12
  332. package/libs/PanoMeasurePlugin/Model/polygon.js +11 -10
  333. package/libs/PanoMeasurePlugin/Model/polyline.js +6 -6
  334. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  335. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +4 -3
  336. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +99 -31
  337. package/libs/PanoMeasurePlugin/index.js +46 -31
  338. package/libs/PanoMeasurePlugin/typings/data.d.ts +7 -2
  339. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
  340. package/libs/base/BasePlugin.js +1 -1
  341. package/libs/index.js +120 -115
  342. package/libs/shared-utils/index.js +6 -6
  343. package/libs/shared-utils/isTouchDevice.d.ts +1 -0
  344. package/libs/shared-utils/isTouchDevice.js +4 -0
  345. package/libs/shared-utils/logger.js +1 -1
  346. package/libs/shared-utils/three/PointSelector.d.ts +32 -0
  347. package/libs/shared-utils/three/PointSelector.js +68 -0
  348. package/libs/shared-utils/three/PointSelectorHelper.d.ts +50 -0
  349. package/libs/shared-utils/three/PointSelectorHelper.js +100 -0
  350. package/libs/shared-utils/three/index.d.ts +1 -1
  351. package/package.json +1 -1
  352. package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
  353. package/libs/shared-utils/three/FivePointSelector.d.ts +0 -36
  354. package/libs/shared-utils/three/FivePointSelector.js +0 -49
@@ -10,11 +10,11 @@ export default class EditController extends BaseController {
10
10
  /** 拖动的控制点 */
11
11
  private pressPoint?;
12
12
  private hasAppendDashed;
13
- private hasAppendMouseGroup;
14
13
  private fiveElement?;
15
14
  /** 上一个端点位置 */
16
15
  private lastPoint;
17
16
  private hammer?;
17
+ private pointSelector;
18
18
  /** 根据 intersection 更新放大镜和吸附点 */
19
19
  private onIntersectionUpdate;
20
20
  constructor(params: ControllerParams);
@@ -30,6 +30,7 @@ export default class EditController extends BaseController {
30
30
  * @description: 测距的撤销功能
31
31
  */
32
32
  revokeLine: (_polyline?: Polyline) => void;
33
+ selectPoint(): void;
33
34
  private onMouseLeave;
34
35
  /** 编辑线条发生改变时通知外部 */
35
36
  private onLineChanged;
@@ -43,12 +44,9 @@ export default class EditController extends BaseController {
43
44
  /**
44
45
  * 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
45
46
  * 2. 把上一个点的位置更新为当前点的位置
46
- * 3. 清除 mouseGroup 和 magnifier
47
+ * 3. 清除 pointSelector
47
48
  */
48
49
  private onTap;
49
- private onWantsTapGesture;
50
- /** 编辑时取消走点 */
51
- private onWantsToMoveToPano;
52
50
  /** 存在长按点时不能移动全景 */
53
51
  private onWantsPanGesture;
54
52
  /** 移动全景时更新 distanceItem 在屏幕上的位置 */
@@ -1,15 +1,16 @@
1
- var y = Object.defineProperty;
2
- var T = (r, a, i) => a in r ? y(r, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[a] = i;
3
- var s = (r, a, i) => (T(r, typeof a != "symbol" ? a + "" : a, i), i);
1
+ var g = Object.defineProperty;
2
+ var y = (h, r, t) => r in h ? g(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t;
3
+ var o = (h, r, t) => (y(h, typeof r != "symbol" ? r + "" : r, t), t);
4
4
  import C from "hammerjs";
5
- import G from "../Model/line.js";
5
+ import k from "../Model/line.js";
6
6
  import c from "../Model/point.js";
7
- import { throttle as A } from "../../shared-utils/throttle.js";
8
- import M from "./BaseController.js";
7
+ import { throttle as L } from "../../shared-utils/throttle.js";
8
+ import I from "./BaseController.js";
9
9
  import { getIntersectionFromEvent as f } from "../utils/getIntersectionFromEvent.js";
10
- import { Polyline as v } from "../Model/polyline.js";
11
- import P from "../Model/area.js";
12
- import g from "../utils/isIntersecting.js";
10
+ import { Polyline as u } from "../Model/polyline.js";
11
+ import v from "../Model/area.js";
12
+ import P from "../utils/isIntersecting.js";
13
+ import { PointSelector as A } from "../../shared-utils/three/PointSelector.js";
13
14
  import "../../shared-utils/uuid.js";
14
15
  import "../utils/line.js";
15
16
  import "@realsee/five/line";
@@ -29,182 +30,210 @@ import "earcut";
29
30
  import "../utils/dom/areaDom.js";
30
31
  import "../utils/geometryUtil.js";
31
32
  import "../../shared-utils/three/centerPoint.js";
32
- class ee extends M {
33
- constructor(i) {
34
- var o;
35
- super(i);
36
- s(this, "type", "edit");
37
- s(this, "polyline");
38
- s(this, "area");
33
+ import "../../shared-utils/three/PointSelectorHelper.js";
34
+ import "../../shared-utils/three/Magnifier.js";
35
+ import "../../shared-utils/three/getIntersect.js";
36
+ import "../../shared-utils/three/PointHelper.js";
37
+ import "../../shared-utils/three/Assets/index.js";
38
+ import "../../shared-utils/three/PointDomHelper.js";
39
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
40
+ import "../Modules/rangePiece/html.js";
41
+ import "../../CSS3DRenderPlugin/index.js";
42
+ import "../../CSS3DRenderPlugin/Controller.js";
43
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
44
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
45
+ import "three/examples/jsm/renderers/CSS3DRenderer";
46
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
47
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
48
+ import "../../CSS3DRenderPlugin/utils/even.js";
49
+ import "../../shared-utils/Subscribe.js";
50
+ import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
51
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
52
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
53
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
54
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
55
+ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
56
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
57
+ import "../../shared-utils/isAbsoluteURL.js";
58
+ import "../../shared-utils/animationFrame/BetterTween.js";
59
+ import "../../shared-utils/animationFrame/index.js";
60
+ import "../../shared-utils/isTouchDevice.js";
61
+ class we extends I {
62
+ constructor(t) {
63
+ var s;
64
+ super(t);
65
+ o(this, "type", "edit");
66
+ o(this, "polyline");
67
+ o(this, "area");
39
68
  /** 拖动的控制点 */
40
- s(this, "pressPoint");
41
- s(this, "hasAppendDashed", !1);
42
- s(this, "hasAppendMouseGroup", !1);
43
- s(this, "fiveElement");
69
+ o(this, "pressPoint");
70
+ o(this, "hasAppendDashed", !1);
71
+ o(this, "fiveElement");
44
72
  /** 上一个端点位置 */
45
- s(this, "lastPoint", null);
46
- s(this, "hammer");
73
+ o(this, "lastPoint", null);
74
+ o(this, "hammer");
75
+ o(this, "pointSelector");
47
76
  /** 根据 intersection 更新放大镜和吸附点 */
48
- s(this, "onIntersectionUpdate", A((i, e) => {
49
- var t;
50
- this.hasAppendMouseGroup === !1 && (this.group.add(this.mouseGroup), this.magnifier.appendTo(this.container), this.magnifier.enable(), this.hasAppendMouseGroup = !0);
51
- const o = this.updateMouseGroup(i, e).position;
52
- (t = this.pressPoint) == null || t.position.copy(o), this.updateDashed(), requestAnimationFrame(() => this.magnifier.renderWithPoint(this.mouseGroup.position)), this.five.needsRender = !0;
77
+ o(this, "onIntersectionUpdate", L((t) => {
78
+ var s;
79
+ const e = t.point;
80
+ (s = this.pressPoint) == null || s.position.copy(e), this.updateDashed(), this.five.needsRender = !0;
53
81
  }, 20));
54
82
  /** 撤销编辑 */
55
- s(this, "revoke", () => {
83
+ o(this, "revoke", () => {
56
84
  this.currentMeasureType === "area" ? this.revokeArea() : this.currentMeasureType === "line" && this.revokeLine();
57
85
  });
58
86
  /**
59
87
  * @description: 测面积的撤销功能
60
88
  */
61
- s(this, "revokeArea", () => {
62
- this.area.points.length !== 0 && (this.revokeLine(this.area.polyline), this.area.points.pop(), this.area.refresh());
89
+ o(this, "revokeArea", () => {
90
+ this.area.points.length !== 0 && (this.revokeLine(this.area.polyline), this.area.points.pop(), this.area.refresh(), this.five.needsRender = !0);
63
91
  });
64
92
  /**
65
93
  * @description: 测距的撤销功能
66
94
  */
67
- s(this, "revokeLine", (i) => {
68
- const e = i || this.polyline;
95
+ o(this, "revokeLine", (t) => {
96
+ const e = t || this.polyline;
69
97
  if (e.lines.length === 0 && this.lastPoint) {
70
98
  this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.remove(), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.needsRender = !0;
71
99
  return;
72
100
  }
73
101
  if (e.lines.length === 0 && !this.lastPoint || !this.lastPoint)
74
102
  return;
75
- const o = e.lines[e.lines.length - 1], t = o.findAnotherPoint(this.lastPoint);
76
- t && (this.lastPoint = t, this.hook.emit("anchorChange", t.position), this.group.remove(o.mesh), e.removeLine(o), this.hasAppendMouseGroup = !1, this.mouseGroup.position.copy(this.lastPoint.position), this.group.remove(this.mouseGroup), o.distanceItem.remove(), this.updateDashed(), this.magnifier.disable(), this.five.needsRender = !0);
103
+ const s = e.lines[e.lines.length - 1], i = s.findAnotherPoint(this.lastPoint);
104
+ i && (this.lastPoint = i, this.hook.emit("anchorChange", i.position), this.group.remove(s.mesh), e.removeLine(s), s.distanceItem.remove(), this.updateDashed(), this.five.needsRender = !0);
77
105
  });
78
- s(this, "onMouseLeave", () => {
79
- this.magnifier.disable(), this.group.remove(this.mouseGroup), this.hasAppendMouseGroup = !1, this.lastPoint && (this.mouseGroup.position.copy(this.lastPoint.position), this.updateDashed()), this.area.hideArea();
106
+ o(this, "onMouseLeave", () => {
107
+ this.lastPoint && (this.pointSelector.position.point.copy(this.lastPoint.position), this.updateDashed()), this.area.hideArea();
80
108
  });
81
109
  /** 编辑线条发生改变时通知外部 */
82
- s(this, "onLineChanged", () => {
110
+ o(this, "onLineChanged", () => {
83
111
  this.hook.emit("editedPolylineChange", this.polyline);
84
112
  });
85
- s(this, "onPress", (i) => {
86
- const [e] = f(this.five, i);
113
+ o(this, "onPress", (t) => {
114
+ const [e] = f(this.five, t);
87
115
  if (!(e != null && e.face))
88
116
  return;
89
- const o = new c(e.point);
90
- this.pressPoint = o, this.onIntersectionUpdate(e);
117
+ const s = new c(e.point);
118
+ this.pressPoint = s, this.onIntersectionUpdate(e);
91
119
  });
92
120
  /**
93
121
  * 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
94
122
  * 2. 如果有长按点,把长按点位置更新为当前位置
95
123
  */
96
- s(this, "onPan", (i) => {
124
+ o(this, "onPan", (t) => {
97
125
  if (!this.pressPoint)
98
126
  return;
99
- const [e] = f(this.five, i);
127
+ const [e] = f(this.five, t);
100
128
  e != null && e.face && this.onIntersectionUpdate(e);
101
129
  });
102
- s(this, "onPanEnd", (i) => {
103
- this.pressPoint && this.onTap(i);
130
+ o(this, "onPanEnd", () => {
131
+ this.pressPoint && this.onTap();
104
132
  });
105
133
  /**
106
134
  * 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
107
135
  * 2. 把上一个点的位置更新为当前点的位置
108
- * 3. 清除 mouseGroup 和 magnifier
136
+ * 3. 清除 pointSelector
109
137
  */
110
- s(this, "onTap", (i) => {
111
- var p, l, m, u;
138
+ o(this, "onTap", () => {
139
+ var i, a, d, l;
112
140
  this.hasAppendDashed || (this.dashed.distanceItem.appendTo(this.container), this.group.add(this.dashed.mesh), this.currentMeasureType === "area" && this.group.add(this.perpendicularDashed.mesh)), this.hasAppendDashed = !0;
113
- const [e] = f(this.five, i);
114
- this.updateMouseGroup(e);
115
- const o = (() => {
141
+ const t = (() => {
116
142
  if (this.currentMeasureType === "area")
117
- return this.area.projectPoint(this.mouseGroup.position);
143
+ return this.area.projectPoint(this.pointSelector.position.point);
118
144
  if (this.currentMeasureType === "line")
119
- return this.mouseGroup.position;
145
+ return this.pointSelector.position.point;
120
146
  })();
121
- if (!o)
147
+ if (!t)
122
148
  return;
123
- const t = new c(o), h = this.lastPoint;
124
- if (this.lastPoint = t, this.currentMeasureType === "line") {
125
- if (t && h) {
126
- const d = new G(h, t, this.model);
127
- d.distanceItem.setCanSelect(!1), d.distanceItem.appendTo(this.container), this.polyline.addLine(d), this.group.add(d.mesh), d.distanceItem.update(this.five);
149
+ const e = new c(t), s = this.lastPoint;
150
+ if (this.lastPoint = e, this.currentMeasureType === "line") {
151
+ if (e && s) {
152
+ const p = new k(s, e, this.model);
153
+ p.distanceItem.setCanSelect(!1), p.distanceItem.appendTo(this.container), this.polyline.addLine(p), this.group.add(p.mesh), p.distanceItem.update(this.five);
128
154
  }
129
- const n = (l = (p = this.editParams) == null ? void 0 : p.autoEndConfig) == null ? void 0 : l.line;
130
- typeof n == "number" && (this.polyline.getPointLength() >= n ? (this.hook.emit("complete"), this.polyline = new v({ model: this.model }), this.model.addPolyline(this.polyline), this.lastPoint = void 0) : this.polyline.getPointLength() === n - 1 && this.hook.emit("readyComplete"));
155
+ const n = (a = (i = this.editParams) == null ? void 0 : i.autoEndConfig) == null ? void 0 : a.line;
156
+ typeof n == "number" && (this.polyline.getPointLength() >= n ? (this.hook.emit("complete"), this.polyline = new u({ model: this.model }), this.model.addPolyline(this.polyline), this.lastPoint = void 0) : this.polyline.getPointLength() === n - 1 && this.hook.emit("readyComplete"));
131
157
  } else if (this.currentMeasureType === "area") {
132
- this.area.addPoints(t.position);
133
- const n = (u = (m = this.editParams) == null ? void 0 : m.autoEndConfig) == null ? void 0 : u.area;
134
- typeof n == "number" && (this.area.points.length >= n ? (this.hook.emit("complete"), this.area = new P(void 0, {
158
+ this.area.addPoints(e.position);
159
+ const n = (l = (d = this.editParams) == null ? void 0 : d.autoEndConfig) == null ? void 0 : l.area;
160
+ typeof n == "number" && (this.area.points.length >= n ? (this.hook.emit("complete"), this.area = new v(void 0, {
135
161
  five: this.five,
136
162
  model: this.model,
137
163
  meshContainer: this.group,
138
164
  domContainer: this.container
139
165
  }), this.model.addArea(this.area), this.lastPoint = void 0) : this.area.points.length === n - 1 && this.hook.emit("readyComplete"));
140
166
  }
141
- this.pressPoint = void 0, this.hasAppendMouseGroup = !1, this.magnifier.disable(), this.group.remove(this.mouseGroup), this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", t.position);
167
+ this.pressPoint = void 0, this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", e.position);
142
168
  });
143
- s(this, "onWantsTapGesture", () => !1);
144
- /** 编辑时取消走点 */
145
- s(this, "onWantsToMoveToPano", () => !1);
146
169
  /** 存在长按点时不能移动全景 */
147
- s(this, "onWantsPanGesture", () => this.pressPoint ? !1 : void 0);
170
+ o(this, "onWantsPanGesture", () => this.pressPoint ? !1 : void 0);
148
171
  /** 移动全景时更新 distanceItem 在屏幕上的位置 */
149
- s(this, "onCameraUpdate", () => {
172
+ o(this, "onCameraUpdate", () => {
150
173
  this.updateDistanceUI();
151
174
  });
152
175
  /** 更新虚线 */
153
- s(this, "updateDashed", () => {
176
+ o(this, "updateDashed", () => {
154
177
  if (!this.lastPoint)
155
178
  return;
156
- const i = this.lastPoint.position, e = (() => {
179
+ const t = this.lastPoint.position, e = (() => {
157
180
  if (this.currentMeasureType === "area")
158
- return this.area.projectPoint(this.mouseGroup.position);
181
+ return this.area.projectPoint(this.pointSelector.position.point);
159
182
  if (this.currentMeasureType === "line")
160
- return this.mouseGroup.position;
183
+ return this.pointSelector.position.point;
161
184
  })();
162
- if (this.dashed.setPoints(i, e), this.dashed.distanceItem.update(this.five), this.hook.emit("editedDashedLineChange", this.dashed), this.currentMeasureType === "area") {
185
+ if (this.dashed.setPoints(t, e), this.dashed.distanceItem.update(this.five), this.hook.emit("editedDashedLineChange", this.dashed), this.currentMeasureType === "area") {
163
186
  this.area.areaItem.setCanSelect(!1);
164
- const o = this.mouseGroup.position;
187
+ const s = this.pointSelector.position.point;
165
188
  if (this.area.points.length >= 2) {
166
- const p = this.area.polyline.lines.map((n) => ({ start: n.points[0].position, end: n.points[1].position })), l = g({ start: i, end: e }, p), m = g({ start: e, end: this.area.points[0] }, p);
167
- if (l || m)
189
+ const d = this.area.polyline.lines.map((m) => ({ start: m.points[0].position, end: m.points[1].position })), l = P({ start: t, end: e }, d), n = P({ start: e, end: this.area.points[0] }, d);
190
+ if (l || n)
168
191
  this.area.hideArea(), this.hook.emit("allowAddPointStateChange", "forbid");
169
192
  else {
170
193
  this.area.showArea();
171
- const n = [...this.area.points, e];
172
- this.area.polygon.updatePoints(n), this.area.areaItem.updateArea(this.five), this.hook.emit("allowAddPointStateChange", "allow");
194
+ const m = [...this.area.points, e];
195
+ this.area.polygon.updatePoints(m), this.area.areaItem.updateArea(this.five), this.hook.emit("allowAddPointStateChange", "allow");
173
196
  }
174
197
  } else
175
198
  this.area.hideArea();
176
- const t = o, h = e;
177
- this.perpendicularDashed.setPoints(t, h), this.perpendicularDashed.distanceItem.update(this.five);
199
+ const i = s, a = e;
200
+ this.perpendicularDashed.setPoints(i, a), this.perpendicularDashed.distanceItem.update(this.five);
178
201
  }
179
202
  });
180
- this.polyline = new v({ model: this.model }), this.area = new P(void 0, {
203
+ this.pointSelector = new A(this.five, {
204
+ mode: this.editParams.pointSelectorMode,
205
+ pointSelectorHelperParams: { magnifierParams: this.magnifierParams }
206
+ }), this.pointSelector.enable(), this.polyline = new u({ model: this.model }), this.area = new v(void 0, {
181
207
  five: this.five,
182
208
  model: this.model,
183
209
  meshContainer: this.group,
184
210
  domContainer: this.container
185
- }), this.model.addPolyline(this.polyline), this.model.addArea(this.area), this.model.getAllLines().forEach((t) => {
186
- t.distanceItem.appendTo(this.container), t.distanceItem.update(this.five), this.group.add(t.mesh);
187
- }), this.model.getAllAreas().forEach((t) => {
188
- t.areaItem.appendTo(this.container), t.areaItem.updateDomPosition(this.five), t.areaItem.setCanSelect(!0), this.group.add(t.polygon), t.polyline.lines.forEach((h) => {
189
- h.distanceItem.appendTo(this.container), h.distanceItem.update(this.five), this.group.add(h.mesh);
211
+ }), this.model.addPolyline(this.polyline), this.model.addArea(this.area), this.model.getAllLines().forEach((i) => {
212
+ i.distanceItem.appendTo(this.container), i.distanceItem.update(this.five), this.group.add(i.mesh);
213
+ }), this.model.getAllAreas().forEach((i) => {
214
+ i.areaItem.appendTo(this.container), i.areaItem.updateDomPosition(this.five), i.areaItem.setCanSelect(!0), this.group.add(i.polygon), i.polyline.lines.forEach((a) => {
215
+ a.distanceItem.appendTo(this.container), a.distanceItem.update(this.five), this.group.add(a.mesh);
190
216
  });
191
- }), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsPanGesture", this.onWantsPanGesture), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.on("intersectionOnModelUpdate", this.onIntersectionUpdate), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged);
217
+ }), this.five.on("cameraUpdate", this.onCameraUpdate), this.pointSelector.hook.on("intersectionUpdate", this.onIntersectionUpdate), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged);
192
218
  const e = this.five.getElement();
193
219
  if (e) {
194
220
  this.fiveElement = e;
195
- const t = new C(e);
196
- this.hammer = t, t.on("tap", this.onTap), t.on("pan", this.onPan), t.on("press", this.onPress), t.on("panend", this.onPanEnd);
221
+ const i = new C(e);
222
+ this.hammer = i, i.on("tap", this.onTap), i.on("pan", this.onPan), i.on("press", this.onPress), i.on("panend", this.onPanEnd);
197
223
  }
198
- this.five.helperVisible = !1, (o = this.fiveElement) == null || o.addEventListener("mouseleave", this.onMouseLeave), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
224
+ this.five.helperVisible = !1, (s = this.fiveElement) == null || s.addEventListener("mouseleave", this.onMouseLeave), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
199
225
  }
200
226
  dispose() {
201
- var i, e;
202
- super.dispose(), this.five.helperVisible = !0, this.group.remove(this.mouseGroup), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsPanGesture", this.onWantsPanGesture), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.off("intersectionOnModelUpdate", this.onIntersectionUpdate), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), (i = this.hammer) == null || i.destroy(), (e = this.fiveElement) == null || e.removeEventListener("mouseleave", this.onMouseLeave), this.magnifier.dispose(), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
227
+ var t, e;
228
+ super.dispose(), this.five.helperVisible = !0, this.pointSelector.disable(), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.pointSelector.hook.off("intersectionUpdate", this.onIntersectionUpdate), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), (t = this.hammer) == null || t.destroy(), (e = this.fiveElement) == null || e.removeEventListener("mouseleave", this.onMouseLeave), this.magnifier.dispose(), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
203
229
  }
204
230
  getEditingLines() {
205
231
  return this.polyline.lines;
206
232
  }
233
+ selectPoint() {
234
+ this.onTap();
235
+ }
207
236
  }
208
237
  export {
209
- ee as default
238
+ we as default
210
239
  };
@@ -136,7 +136,7 @@ class Pe extends G {
136
136
  );
137
137
  });
138
138
  s(this, "chooseArea", (e, i) => {
139
- console.log("choose", e), this.choose = e, this.deleteDom.updatePosition(i.left, `calc(${i.top} - 20px)`).show(), this.highlightArea(e);
139
+ this.choose = e, this.deleteDom.updatePosition(i.left, `calc(${i.top} - 20px)`).show(), this.highlightArea(e);
140
140
  });
141
141
  s(this, "polylineRemoved", (e) => {
142
142
  e.lines.forEach((i) => this.removeLine(i)), this.hook.emit(
@@ -26,14 +26,14 @@ export default class MeasureController {
26
26
  hook: Subscribe<PanoMeasurePluginEvent>;
27
27
  magnifier: Magnifier;
28
28
  controller: WatchController | EditController | MixedController | ViewController | null;
29
+ /** 允许的测量类型 */
30
+ allowMeasureType: Array<MeasureType>;
29
31
  /** 当前的测量类型 */
30
32
  currentMeasureType: MeasureType | null;
31
33
  private five;
32
34
  private model;
33
35
  private group;
34
36
  private config;
35
- /** 允许的测量类型 */
36
- private allowMeasureType;
37
37
  private isMobile;
38
38
  private fiveHelper;
39
39
  private useUIController?;
@@ -60,7 +60,7 @@ export default class MeasureController {
60
60
  * @description 清除标尺线条
61
61
  * @description 还原点位展示和默认鼠标 UI
62
62
  */
63
- disable(): void;
63
+ disable: () => void;
64
64
  getCurrentMode: () => Mode | null;
65
65
  /** 变更场景
66
66
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
@@ -20,10 +20,10 @@ import { Group as E } from "three";
20
20
  import { Model as k } from "../Model/index.js";
21
21
  import { Subscribe as D } from "@realsee/five";
22
22
  import { getMouseGroup as G } from "../utils/mouseGroup.js";
23
- import { UIController as w } from "../Modules/UIController/index.js";
23
+ import { UIController as P } from "../Modules/UIController/index.js";
24
24
  import { GuideController as x } from "../Modules/GuideController.js";
25
25
  import { ShortcutKeyController as H } from "./ShortcutKeyController.js";
26
- import { safeObj as P } from "../../shared-utils/safeObj.js";
26
+ import { safeObj as w } from "../../shared-utils/safeObj.js";
27
27
  import { Magnifier as L } from "../../shared-utils/three/Magnifier.js";
28
28
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
29
29
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
@@ -54,6 +54,31 @@ import "../utils/dom/areaDom.js";
54
54
  import "../utils/geometryUtil.js";
55
55
  import "../../shared-utils/three/centerPoint.js";
56
56
  import "../utils/isIntersecting.js";
57
+ import "../../shared-utils/three/PointSelector.js";
58
+ import "../../shared-utils/three/PointSelectorHelper.js";
59
+ import "../../shared-utils/three/getIntersect.js";
60
+ import "../../shared-utils/three/PointHelper.js";
61
+ import "../../shared-utils/three/Assets/index.js";
62
+ import "../../shared-utils/three/PointDomHelper.js";
63
+ import "../Modules/rangePiece/html.js";
64
+ import "../../CSS3DRenderPlugin/index.js";
65
+ import "../../CSS3DRenderPlugin/Controller.js";
66
+ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
67
+ import "../../shared-utils/isAbsoluteURL.js";
68
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
69
+ import "three/examples/jsm/renderers/CSS3DRenderer";
70
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
71
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
72
+ import "../../CSS3DRenderPlugin/utils/even.js";
73
+ import "../../shared-utils/Subscribe.js";
74
+ import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
75
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
76
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
77
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
78
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
79
+ import "../../shared-utils/animationFrame/BetterTween.js";
80
+ import "../../shared-utils/animationFrame/index.js";
81
+ import "../../shared-utils/isTouchDevice.js";
57
82
  import "../Modules/DeleteDom/index.js";
58
83
  import "../Modules/DeleteDom/_Assets/delete.svg.js";
59
84
  import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
@@ -63,8 +88,6 @@ import "../utils/findClosestPoint.js";
63
88
  import "../utils/ndc2Screen.js";
64
89
  import "../utils/findAssociatedLines.js";
65
90
  import "../Modules/rangePiece/index.js";
66
- import "../Modules/rangePiece/html.js";
67
- import "../../shared-utils/animationFrame/index.js";
68
91
  import "../../shared-utils/noop.js";
69
92
  import "../utils/calculateThreeMouse.js";
70
93
  import "../../shared-utils/tap.js";
@@ -74,35 +97,27 @@ import "../Modules/UIController/style.js";
74
97
  import "../Modules/UIController/MainBtnController.js";
75
98
  import "../Modules/UIController/mobileMainBtnController.js";
76
99
  import "../Modules/UIController/Revoke/index.js";
77
- import "../Components/Controller1.js";
100
+ import "../Components/Controller0.js";
78
101
  import "../../vendor/svelte/internal/index.js";
102
+ import "../Components/Common/Switcher0.js";
103
+ import "../Components/Common/Exit.js";
104
+ import "../Components/Controller1.js";
79
105
  import "../Components/Common/Switcher1.js";
80
106
  import "../Components/Common/CircleButton.js";
81
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
82
- import "three/examples/jsm/renderers/CSS3DRenderer";
83
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
84
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
85
- import "../../CSS3DRenderPlugin/utils/even.js";
86
- import "../../shared-utils/Subscribe.js";
87
- import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
88
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
89
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
90
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
91
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
92
- class nt {
107
+ class wt {
93
108
  constructor(e, t) {
94
109
  i(this, "hasOpen", !1);
95
110
  i(this, "hook", new D());
96
111
  i(this, "magnifier");
97
112
  i(this, "controller", null);
113
+ /** 允许的测量类型 */
114
+ i(this, "allowMeasureType");
98
115
  /** 当前的测量类型 */
99
116
  i(this, "currentMeasureType");
100
117
  i(this, "five");
101
118
  i(this, "model");
102
119
  i(this, "group");
103
120
  i(this, "config");
104
- /** 允许的测量类型 */
105
- i(this, "allowMeasureType");
106
121
  i(this, "isMobile");
107
122
  i(this, "fiveHelper");
108
123
  i(this, "useUIController");
@@ -110,15 +125,23 @@ class nt {
110
125
  i(this, "useGuideController");
111
126
  i(this, "container", document.createElement("div"));
112
127
  i(this, "shortcutKeyController");
128
+ /** 关闭插件功能
129
+ * @description 清除标尺线条
130
+ * @description 还原点位展示和默认鼠标 UI
131
+ */
132
+ i(this, "disable", () => {
133
+ var e, t, r, o;
134
+ this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (r = this.useGuideController) == null || r.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
135
+ });
113
136
  i(this, "getCurrentMode", () => this.controller instanceof m ? "Edit" : this.controller instanceof M ? "Watch" : this.controller instanceof a ? "Mixed" : this.controller instanceof C ? "View" : null);
114
137
  /** 变更场景
115
138
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
116
139
  */
117
140
  i(this, "changeMode", (e) => {
118
- var r;
141
+ var o;
119
142
  if (!this.hasOpen || this.getCurrentMode() === e)
120
143
  return;
121
- (r = this.controller) == null || r.dispose();
144
+ (o = this.controller) == null || o.dispose();
122
145
  const t = {
123
146
  View: C,
124
147
  Watch: M,
@@ -127,8 +150,8 @@ class nt {
127
150
  };
128
151
  if (!t[e])
129
152
  throw new Error("不存在的 Mode");
130
- const o = this.createControllerParams();
131
- this.controller = new t[e](o), this.hook.emit("modeChange", e);
153
+ const r = this.createControllerParams();
154
+ this.controller = new t[e](r), this.hook.emit("modeChange", e);
132
155
  });
133
156
  /**
134
157
  * @description: 切换测量的类型
@@ -136,15 +159,15 @@ class nt {
136
159
  i(this, "changeMeasureType", (e) => {
137
160
  this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
138
161
  });
139
- var r, l, n, u, d, f, g;
140
- this.five = e, this.params = t, this.config = T(t, ["openParams", "magnifierParams"]), this.model = new k(this.config), this.fiveHelper = new U(e), this.isMobile = (l = (r = t == null ? void 0 : t.openParams) == null ? void 0 : r.isMobile) != null ? l : !1, this.magnifier = new L(e, (n = t.magnifierParams) != null ? n : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((d = (u = t.editParams) == null ? void 0 : u.allowMeasureType) != null ? d : ["line"])), this.currentMeasureType = (f = this.allowMeasureType[0]) != null ? f : "line", this.group = new E(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
141
- const o = (g = this.params.openParams) != null ? g : {};
162
+ var o, l, n, u, d, f, g;
163
+ this.five = e, this.params = t, this.config = T(t, ["openParams", "magnifierParams"]), this.model = new k(this.config), this.fiveHelper = new U(e), this.isMobile = (l = (o = t == null ? void 0 : t.openParams) == null ? void 0 : o.isMobile) != null ? l : !1, this.magnifier = new L(e, (n = t.magnifierParams) != null ? n : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((d = (u = t.editParams) == null ? void 0 : u.allowMeasureType) != null ? d : ["line"])), this.currentMeasureType = (f = this.allowMeasureType[0]) != null ? f : "line", this.group = new E(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
164
+ const r = (g = this.params.openParams) != null ? g : {};
142
165
  if (this.params.useUIController !== !1) {
143
- const p = h({ container: this.container, openParams: o }, P(this.params.useUIController));
144
- this.useUIController = new w(this, p);
166
+ const p = h({ container: this.container, openParams: r }, w(this.params.useUIController));
167
+ this.useUIController = new P(this, p);
145
168
  }
146
169
  if (this.params.useGuideController !== !1) {
147
- const p = h({ container: this.container }, P(this.params.useGuideController));
170
+ const p = h({ container: this.container }, w(this.params.useGuideController));
148
171
  this.useGuideController = new x(this, p);
149
172
  }
150
173
  }
@@ -170,14 +193,6 @@ class nt {
170
193
  var t;
171
194
  this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), this.shortcutKeyController = new H(this, this.five), this.hook.emit("enable", !0));
172
195
  }
173
- /** 关闭插件功能
174
- * @description 清除标尺线条
175
- * @description 还原点位展示和默认鼠标 UI
176
- */
177
- disable() {
178
- var e, t, o, r;
179
- this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (o = this.useGuideController) == null || o.hide(), (r = this.shortcutKeyController) == null || r.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
180
- }
181
196
  /** 进入编辑模式 */
182
197
  edit(e) {
183
198
  e && this.changeMeasureType(e);
@@ -219,10 +234,10 @@ class nt {
219
234
  var l;
220
235
  if (!(this.controller instanceof m) && !(this.controller instanceof a))
221
236
  return this;
222
- const t = (l = e == null ? void 0 : e.mode) != null ? l : "View", o = this.controller.model.polylines, r = this.controller.model.areas;
223
- return o.forEach((n) => {
237
+ const t = (l = e == null ? void 0 : e.mode) != null ? l : "View", r = this.controller.model.polylines, o = this.controller.model.areas;
238
+ return r.forEach((n) => {
224
239
  this.model.addPolyline(n);
225
- }), r.forEach((n) => {
240
+ }), o.forEach((n) => {
226
241
  n.polygon.updatePoints(n.points), n.showArea(), this.model.addArea(n);
227
242
  }), this.changeMode(t), this;
228
243
  }
@@ -246,11 +261,11 @@ class nt {
246
261
  var t;
247
262
  if (this.isMobile = e, this.params.useUIController !== !1) {
248
263
  (t = this.useUIController) == null || t.dispose();
249
- const o = h({
264
+ const r = h({
250
265
  container: this.container,
251
266
  mode: this.isMobile ? "mobile" : "pc"
252
267
  }, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
253
- this.useUIController = new w(this, o);
268
+ this.useUIController = new P(this, r);
254
269
  }
255
270
  }
256
271
  changeConfigs(e) {
@@ -259,15 +274,15 @@ class nt {
259
274
  }
260
275
  /** 设置线段的文本 */
261
276
  setCustomText(e, t) {
262
- var r;
263
- const o = this.model.getLineByID(e);
264
- if (!o)
277
+ var o;
278
+ const r = this.model.getLineByID(e);
279
+ if (!r)
265
280
  throw new Error("不存在的线段");
266
- o.setText(t), (r = this.controller) == null || r.updateDistanceUI();
281
+ r.setText(t), (o = this.controller) == null || o.updateDistanceUI();
267
282
  }
268
283
  createControllerParams() {
269
- var o, r;
270
- const e = (o = this.params.openParams) != null ? o : {}, t = (r = this.params.editParams) != null ? r : {};
284
+ var r, o;
285
+ const e = (r = this.params.openParams) != null ? r : {}, t = (o = this.params.editParams) != null ? o : {};
271
286
  return e.isMobile = this.isMobile, {
272
287
  five: this.five,
273
288
  hook: this.hook,
@@ -279,6 +294,7 @@ class nt {
279
294
  fiveHelper: this.fiveHelper,
280
295
  openParams: e,
281
296
  editParams: t,
297
+ magnifierParams: this.params.magnifierParams,
282
298
  getMeasureType: () => this.currentMeasureType,
283
299
  mouseGroup: G(h({}, e.crossHairParameter)),
284
300
  userDistanceItemCreator: this.params.userDistanceItemCreator
@@ -286,5 +302,5 @@ class nt {
286
302
  }
287
303
  }
288
304
  export {
289
- nt as default
305
+ wt as default
290
306
  };