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

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 (356) 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 +6224 -5672
  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 +3 -3
  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/dom/areaDom.js +3 -3
  340. package/libs/PanoMeasurePlugin/utils/dom/base.js +1 -1
  341. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
  342. package/libs/base/BasePlugin.js +1 -1
  343. package/libs/index.js +120 -115
  344. package/libs/shared-utils/index.js +6 -6
  345. package/libs/shared-utils/isTouchDevice.d.ts +1 -0
  346. package/libs/shared-utils/isTouchDevice.js +4 -0
  347. package/libs/shared-utils/logger.js +1 -1
  348. package/libs/shared-utils/three/PointSelector.d.ts +32 -0
  349. package/libs/shared-utils/three/PointSelector.js +68 -0
  350. package/libs/shared-utils/three/PointSelectorHelper.d.ts +50 -0
  351. package/libs/shared-utils/three/PointSelectorHelper.js +100 -0
  352. package/libs/shared-utils/three/index.d.ts +1 -1
  353. package/package.json +1 -1
  354. package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
  355. package/libs/shared-utils/three/FivePointSelector.d.ts +0 -36
  356. package/libs/shared-utils/three/FivePointSelector.js +0 -49
@@ -1,9 +1,9 @@
1
1
  import t from "./Controller/index.js";
2
- import { default as Ao } from "./Modules/Magnifier.js";
3
- import { Model as Do } from "./Model/index.js";
4
- import { default as Fo } from "./Model/point.js";
5
- import { default as Ho } from "./Model/line.js";
6
- import { Polyline as Jo } from "./Model/polyline.js";
2
+ import { default as To } from "./Modules/Magnifier.js";
3
+ import { Model as Vo } from "./Model/index.js";
4
+ import { default as Xo } from "./Model/point.js";
5
+ import { default as Zo } from "./Model/line.js";
6
+ import { Polyline as $o } from "./Model/polyline.js";
7
7
  import "./Modules/FiveHelper.js";
8
8
  import "three";
9
9
  import "./Controller/EditController.js";
@@ -31,6 +31,35 @@ import "./utils/dom/areaDom.js";
31
31
  import "./utils/geometryUtil.js";
32
32
  import "../shared-utils/three/centerPoint.js";
33
33
  import "./utils/isIntersecting.js";
34
+ import "../shared-utils/three/PointSelector.js";
35
+ import "../shared-utils/three/PointSelectorHelper.js";
36
+ import "../shared-utils/three/Magnifier.js";
37
+ import "../shared-utils/three/getIntersect.js";
38
+ import "../shared-utils/three/PointHelper.js";
39
+ import "../shared-utils/three/Assets/index.js";
40
+ import "../shared-utils/three/PointDomHelper.js";
41
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
42
+ import "./Modules/rangePiece/html.js";
43
+ import "../CSS3DRenderPlugin/index.js";
44
+ import "../CSS3DRenderPlugin/Controller.js";
45
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
46
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
47
+ import "three/examples/jsm/renderers/CSS3DRenderer";
48
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
49
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
50
+ import "../CSS3DRenderPlugin/utils/even.js";
51
+ import "../shared-utils/Subscribe.js";
52
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
53
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
54
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
55
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
56
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
57
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
58
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
59
+ import "../shared-utils/isAbsoluteURL.js";
60
+ import "../shared-utils/animationFrame/BetterTween.js";
61
+ import "../shared-utils/animationFrame/index.js";
62
+ import "../shared-utils/isTouchDevice.js";
34
63
  import "./Controller/ViewController.js";
35
64
  import "./Controller/WatchController.js";
36
65
  import "./Modules/DeleteDom/index.js";
@@ -43,9 +72,6 @@ import "./utils/ndc2Screen.js";
43
72
  import "./utils/findAssociatedLines.js";
44
73
  import "./Controller/MixedController.js";
45
74
  import "./Modules/rangePiece/index.js";
46
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
47
- import "./Modules/rangePiece/html.js";
48
- import "../shared-utils/animationFrame/index.js";
49
75
  import "../shared-utils/noop.js";
50
76
  import "./utils/calculateThreeMouse.js";
51
77
  import "./utils/mouseGroup.js";
@@ -58,36 +84,25 @@ import "./Modules/UIController/style.js";
58
84
  import "./Modules/UIController/MainBtnController.js";
59
85
  import "./Modules/UIController/mobileMainBtnController.js";
60
86
  import "./Modules/UIController/Revoke/index.js";
61
- import "./Components/Controller1.js";
87
+ import "./Components/Controller0.js";
62
88
  import "../vendor/svelte/internal/index.js";
89
+ import "./Components/Common/Switcher0.js";
90
+ import "./Components/Common/Exit.js";
91
+ import "./Components/Controller1.js";
63
92
  import "./Components/Common/Switcher1.js";
64
93
  import "./Components/Common/CircleButton.js";
65
94
  import "./Modules/GuideController.js";
66
95
  import "./Controller/ShortcutKeyController.js";
67
96
  import "../shared-utils/safeObj.js";
68
- import "../shared-utils/three/Magnifier.js";
69
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
70
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
71
- import "three/examples/jsm/renderers/CSS3DRenderer";
72
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
73
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
74
- import "../CSS3DRenderPlugin/utils/even.js";
75
- import "../shared-utils/Subscribe.js";
76
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
77
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
78
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
79
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
80
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
81
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
82
- const qo = function(o, r) {
97
+ const Qo = function(o, r) {
83
98
  return new t(o, r);
84
99
  };
85
100
  export {
86
- Ao as Magnifier,
87
- qo as PanoMeasurePlugin,
88
- Ho as PanoMeasurePluginLine,
89
- Do as PanoMeasurePluginModel,
90
- Fo as PanoMeasurePluginPoint,
91
- Jo as PanoMeasurePluginPolyline,
92
- qo as default
101
+ To as Magnifier,
102
+ Qo as PanoMeasurePlugin,
103
+ Zo as PanoMeasurePluginLine,
104
+ Vo as PanoMeasurePluginModel,
105
+ Xo as PanoMeasurePluginPoint,
106
+ $o as PanoMeasurePluginPolyline,
107
+ Qo as default
93
108
  };
@@ -23,8 +23,8 @@ export interface OpenParameter {
23
23
  }
24
24
  /** 长度达到一定值时,自动结束线段,null 的话不自动结束 */
25
25
  export interface autoEndConfig {
26
- line: number | null;
27
- area: number | null;
26
+ line?: number | null;
27
+ area?: number | null;
28
28
  }
29
29
  export type MeasureType = 'line' | 'area';
30
30
  export interface EditParameter {
@@ -37,6 +37,11 @@ export interface EditParameter {
37
37
  * ['line', 'area']: 同时开启测距和测面积功能
38
38
  */
39
39
  allowMeasureType?: Array<MeasureType>;
40
+ /**
41
+ * @description: 选点的两种模式, 'fixed' 为固定选点为屏幕中心点,拖动five画布来选点,'mouse' 为跟随鼠标移动
42
+ * @default: 'fixed'
43
+ */
44
+ pointSelectorMode?: 'fixed' | 'cursor';
40
45
  autoEndConfig?: autoEndConfig;
41
46
  }
42
47
  export interface CrossHairParameter {
@@ -2,7 +2,7 @@ var m = Object.defineProperty;
2
2
  var p = (r, e, t) => e in r ? m(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var s = (r, e, t) => (p(r, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { ItemDom as h } from "./base.js";
5
- import { getGeometryInfo as d } from "../geometryUtil.js";
5
+ import { getGeometryInfo as c } from "../geometryUtil.js";
6
6
  import "../isNDCPointInScreen.js";
7
7
  import "three";
8
8
  import "../../../shared-utils/three/centerPoint.js";
@@ -16,8 +16,8 @@ class I extends h {
16
16
  * @description: dom 依赖的多边形的顶点的位置更新时,更新 dom 的位置和面积
17
17
  */
18
18
  updateArea(t, o) {
19
- const i = o != null ? o : this.area.polygon.geometry, { area: a, center: n } = d(i);
20
- this.ndcPosition = n, this.updateDomPosition(t), this.updateAreaText(a);
19
+ const i = o != null ? o : this.area.polygon.geometry, { area: a, center: n } = c(i);
20
+ console.log("center", n), this.ndcPosition = n, this.updateDomPosition(t), this.updateAreaText(a);
21
21
  }
22
22
  updateAreaText(t, o) {
23
23
  const { unit: i = "m²", fix: a = 2 } = o != null ? o : {};
@@ -58,7 +58,7 @@ class g {
58
58
  const n = t.getElement();
59
59
  if (!n)
60
60
  return;
61
- const o = n.clientWidth, r = n.clientHeight, s = this.ndcPosition.project(t.camera);
61
+ const o = n.clientWidth, r = n.clientHeight, s = this.ndcPosition.clone().project(t.camera);
62
62
  if (!d(s)) {
63
63
  this.hide();
64
64
  return;
@@ -1,4 +1,4 @@
1
1
  import type Hammer from 'hammerjs';
2
2
  import type { Five, Intersection } from '@realsee/five';
3
3
  /** 通过鼠标事件或者触摸事件,获取当前点击屏幕关联的射线与模型的交点 */
4
- export declare function getIntersectionFromEvent(five: Five, event: typeof Hammer['Input']): Intersection[];
4
+ export declare function getIntersectionFromEvent(five: Five, event: (typeof Hammer)['Input']): Intersection[];
@@ -14,7 +14,7 @@ let n = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.21.0-dev.0");
17
+ e(this, "VERSION", "2.21.0-dev.3");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
package/libs/index.js CHANGED
@@ -1,55 +1,55 @@
1
1
  import { consoleVersion as o } from "./shared-utils/logger.js";
2
2
  import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
3
- import { PaintBrush as Mp } from "./components/PaintBrush/index.js";
4
- import { PaintBrushTypeEnum as Lp } from "./components/PaintBrush/typings.js";
5
- import { ModelViewPlugin as _p } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as Rp } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as Op } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as Sp, modelRoomLabelPluginServerParams as Ap } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as Gp } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as Fp } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as vp } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as Vp } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as hp } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FLOOR_TYPE_MAP as Bp, ROOM_FETILE_TYPE_MAP as Hp, ROOM_TYPE_MAP as Up } from "./floorplan/typings/floorplanServerData.js";
15
- import { ModelChassisCompassPlugin as $p } from "./ModelChassisCompassPlugin/Plugin.js";
16
- import { ModelEntryDoorGuidePlugin as qp } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
- import { CameraMovementPlugin as Jp } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
- import { CameraMovementEffect as Qp, Rotation as Wp } from "./CameraMovementPlugin/typing.js";
19
- import { PanoRulerPlugin as Zp } from "./PanoRulerPlugin/Plugin.js";
20
- import { PanoRulerProPlugin as re } from "./PanoRulerProPlugin/index.js";
21
- import { PanoCompassPlugin as ie } from "./PanoCompassPlugin/index.js";
22
- import { PanoMeasurePlugin as pe } from "./PanoMeasurePlugin/index.js";
23
- import { PanoSpatialTagPlugin as ne } from "./PanoSpatialTagPlugin/Plugin.js";
24
- import { modelItemLabelPluginServerParams as ae } from "./ModelItemLabelPlugin/index.js";
25
- import { ModelTVVideoPlugin as ue } from "./ModelTVVideoPlugin/Plugin.js";
26
- import { DIRECTION as xe } from "./ModelTVVideoPlugin/typings.js";
27
- import { itemLabelPluginServerParams as se } from "./ItemLabelPlugin/index.js";
28
- import { PanoDoorLabelPlugin as Me } from "./PanoDoorLabelPlugin/index.js";
29
- import { GuideLinePlugin as Le } from "./GuideLinePlugin/index.js";
30
- import { CruisePlugin as _e } from "./CruisePlugin/index.js";
31
- import { PanoTagPlugin as Re } from "./PanoTagPlugin/index.js";
32
- import { Object3DHelperPlugin as Oe } from "./Object3DHelperPlugin/index.js";
33
- import { PanoVideoPlugin as Se } from "./PanoVideoPlugin/index.js";
34
- import { index as De } from "./shared-utils/index.js";
35
- import { CSS3DRender as be } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
36
- import { Model as Ye } from "./PanoMeasurePlugin/Model/index.js";
37
- import { default as ce } from "./PanoMeasurePlugin/Model/point.js";
38
- import { default as Ne } from "./PanoMeasurePlugin/Model/line.js";
39
- import { Polyline as we } from "./PanoMeasurePlugin/Model/polyline.js";
40
- import { default as He } from "./PanoMeasurePlugin/Modules/Magnifier.js";
41
- import { DISPLAY_STRATEGY_TYPE as je } from "./ModelItemLabelPlugin/typings.js";
42
- import { ModelItemLabelPlugin as ke } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
43
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as ze } from "./ItemLabelPlugin/typings.js";
44
- import { Plugin as Ke } from "./ItemLabelPlugin/Plugin.js";
45
- import { GuideLineItem$1 as We } from "./GuideLinePlugin/GuideLineItem/index.js";
46
- import { GuideLineModeItem$1 as Ze } from "./GuideLinePlugin/GuideLineModeItem/index.js";
47
- import { default as rn } from "./CruisePlugin/Controller.js";
48
- import { typing as mn } from "./CruisePlugin/typing/index.js";
49
- import { default as en, pluginFlag as nn } from "./PanoTagPlugin/controller/index.js";
50
- import { ContentType as an, DimensionType as Pn, PointType as un } from "./PanoTagPlugin/Archive/deprecated.js";
51
- import { Object3DHelperController as xn, PLUGIN as gn } from "./Object3DHelperPlugin/Controller.js";
52
- import { typings as dn } from "./PanoVideoPlugin/typings/index.js";
3
+ import { PaintBrush as Ep } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as Ip } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as yp } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as Ap } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as Gp } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as Fp, modelRoomLabelPluginServerParams as Yp } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as cp } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as Np } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as wp } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as Hp } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as jp } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FLOOR_TYPE_MAP as kp, ROOM_FETILE_TYPE_MAP as qp, ROOM_TYPE_MAP as zp } from "./floorplan/typings/floorplanServerData.js";
15
+ import { ModelChassisCompassPlugin as Kp } from "./ModelChassisCompassPlugin/Plugin.js";
16
+ import { ModelEntryDoorGuidePlugin as Wp } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
+ import { CameraMovementPlugin as Zp } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
+ import { CameraMovementEffect as re, Rotation as te } from "./CameraMovementPlugin/typing.js";
19
+ import { PanoRulerPlugin as me } from "./PanoRulerPlugin/Plugin.js";
20
+ import { PanoRulerProPlugin as ee } from "./PanoRulerProPlugin/index.js";
21
+ import { PanoCompassPlugin as le } from "./PanoCompassPlugin/index.js";
22
+ import { PanoMeasurePlugin as Pe } from "./PanoMeasurePlugin/index.js";
23
+ import { PanoSpatialTagPlugin as fe } from "./PanoSpatialTagPlugin/Plugin.js";
24
+ import { modelItemLabelPluginServerParams as ge } from "./ModelItemLabelPlugin/index.js";
25
+ import { ModelTVVideoPlugin as de } from "./ModelTVVideoPlugin/Plugin.js";
26
+ import { DIRECTION as Te } from "./ModelTVVideoPlugin/typings.js";
27
+ import { itemLabelPluginServerParams as Ce } from "./ItemLabelPlugin/index.js";
28
+ import { PanoDoorLabelPlugin as Ee } from "./PanoDoorLabelPlugin/index.js";
29
+ import { GuideLinePlugin as Ie } from "./GuideLinePlugin/index.js";
30
+ import { CruisePlugin as ye } from "./CruisePlugin/index.js";
31
+ import { PanoTagPlugin as Ae } from "./PanoTagPlugin/index.js";
32
+ import { Object3DHelperPlugin as Ge } from "./Object3DHelperPlugin/index.js";
33
+ import { PanoVideoPlugin as Fe } from "./PanoVideoPlugin/index.js";
34
+ import { index as ve } from "./shared-utils/index.js";
35
+ import { CSS3DRender as Ve } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
36
+ import { Model as he } from "./PanoMeasurePlugin/Model/index.js";
37
+ import { default as Be } from "./PanoMeasurePlugin/Model/point.js";
38
+ import { default as Ue } from "./PanoMeasurePlugin/Model/line.js";
39
+ import { Polyline as $e } from "./PanoMeasurePlugin/Model/polyline.js";
40
+ import { default as qe } from "./PanoMeasurePlugin/Modules/Magnifier.js";
41
+ import { DISPLAY_STRATEGY_TYPE as Je } from "./ModelItemLabelPlugin/typings.js";
42
+ import { ModelItemLabelPlugin as Qe } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
43
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Xe } from "./ItemLabelPlugin/typings.js";
44
+ import { Plugin as on } from "./ItemLabelPlugin/Plugin.js";
45
+ import { GuideLineItem$1 as tn } from "./GuideLinePlugin/GuideLineItem/index.js";
46
+ import { GuideLineModeItem$1 as pn } from "./GuideLinePlugin/GuideLineModeItem/index.js";
47
+ import { default as nn } from "./CruisePlugin/Controller.js";
48
+ import { typing as an } from "./CruisePlugin/typing/index.js";
49
+ import { default as un, pluginFlag as fn } from "./PanoTagPlugin/controller/index.js";
50
+ import { ContentType as gn, DimensionType as sn, PointType as dn } from "./PanoTagPlugin/Archive/deprecated.js";
51
+ import { Object3DHelperController as Tn, PLUGIN as Ln } from "./Object3DHelperPlugin/Controller.js";
52
+ import { typings as _n } from "./PanoVideoPlugin/typings/index.js";
53
53
  import "./components/PaintBrush/Controller.js";
54
54
  import "./components/PaintBrush/utils.js";
55
55
  import "./components/PaintBrush/tween.js";
@@ -175,6 +175,15 @@ import "earcut";
175
175
  import "./PanoMeasurePlugin/utils/dom/areaDom.js";
176
176
  import "./PanoMeasurePlugin/utils/geometryUtil.js";
177
177
  import "./PanoMeasurePlugin/utils/isIntersecting.js";
178
+ import "./shared-utils/three/PointSelector.js";
179
+ import "./shared-utils/three/PointSelectorHelper.js";
180
+ import "./shared-utils/three/Magnifier.js";
181
+ import "./shared-utils/three/getIntersect.js";
182
+ import "./shared-utils/three/PointHelper.js";
183
+ import "./shared-utils/three/Assets/index.js";
184
+ import "./shared-utils/three/PointDomHelper.js";
185
+ import "./PanoMeasurePlugin/Modules/rangePiece/html.js";
186
+ import "./shared-utils/isTouchDevice.js";
178
187
  import "./PanoMeasurePlugin/Controller/ViewController.js";
179
188
  import "./PanoMeasurePlugin/Controller/WatchController.js";
180
189
  import "./PanoMeasurePlugin/Modules/DeleteDom/index.js";
@@ -187,7 +196,6 @@ import "./PanoMeasurePlugin/utils/ndc2Screen.js";
187
196
  import "./PanoMeasurePlugin/utils/findAssociatedLines.js";
188
197
  import "./PanoMeasurePlugin/Controller/MixedController.js";
189
198
  import "./PanoMeasurePlugin/Modules/rangePiece/index.js";
190
- import "./PanoMeasurePlugin/Modules/rangePiece/html.js";
191
199
  import "./shared-utils/noop.js";
192
200
  import "./PanoMeasurePlugin/utils/calculateThreeMouse.js";
193
201
  import "./PanoMeasurePlugin/utils/mouseGroup.js";
@@ -198,13 +206,15 @@ import "./PanoMeasurePlugin/Modules/UIController/style.js";
198
206
  import "./PanoMeasurePlugin/Modules/UIController/MainBtnController.js";
199
207
  import "./PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js";
200
208
  import "./PanoMeasurePlugin/Modules/UIController/Revoke/index.js";
209
+ import "./PanoMeasurePlugin/Components/Controller0.js";
210
+ import "./PanoMeasurePlugin/Components/Common/Switcher0.js";
211
+ import "./PanoMeasurePlugin/Components/Common/Exit.js";
201
212
  import "./PanoMeasurePlugin/Components/Controller1.js";
202
213
  import "./PanoMeasurePlugin/Components/Common/Switcher1.js";
203
214
  import "./PanoMeasurePlugin/Components/Common/CircleButton.js";
204
215
  import "./PanoMeasurePlugin/Modules/GuideController.js";
205
216
  import "./PanoMeasurePlugin/Controller/ShortcutKeyController.js";
206
217
  import "./shared-utils/safeObj.js";
207
- import "./shared-utils/three/Magnifier.js";
208
218
  import "./PanoSpatialTagPlugin/Components/origins.js";
209
219
  import "./PanoSpatialTagPlugin/store.js";
210
220
  import "./PanoSpatialTagPlugin/Components/tag.js";
@@ -379,70 +389,65 @@ import "./shared-utils/math/Interval.js";
379
389
  import "./shared-utils/math/Rectangle.js";
380
390
  import "./shared-utils/three/getCoords.js";
381
391
  import "./shared-utils/three/getRaycaster.js";
382
- import "./shared-utils/three/getIntersect.js";
383
- import "./shared-utils/three/PointHelper.js";
384
- import "./shared-utils/three/Assets/index.js";
385
- import "./shared-utils/three/PointDomHelper.js";
386
- import "./shared-utils/three/FivePointSelector.js";
387
392
  r();
388
393
  o();
389
394
  export {
390
- be as CSS3DRender,
391
- Rp as CSS3DRenderPlugin,
392
- Qp as CameraMovementEffect,
393
- Jp as CameraMovementPlugin,
394
- an as ContentType,
395
- _e as CruisePlugin,
396
- rn as CruisePluginController,
397
- mn as CruisePluginTypes,
398
- xe as DIRECTION,
399
- je as DISPLAY_STRATEGY_TYPE,
400
- Pn as DimensionType,
401
- Gp as FLOOR_PLAN_ATTACHED_TO,
402
- Bp as FLOOR_TYPE_MAP,
403
- We as GuideLineItem,
404
- Ze as GuideLineModeItem,
405
- Le as GuideLinePlugin,
406
- ze as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
407
- Ke as ItemLabelPlugin,
408
- He as Magnifier,
409
- vp as MapviewFloorplanPlugin,
410
- $p as ModelChassisCompassPlugin,
411
- qp as ModelEntryDoorGuidePlugin,
412
- Fp as ModelFloorplanPlugin,
413
- ke as ModelItemLabelPlugin,
414
- Sp as ModelRoomLabelPlugin,
415
- ue as ModelTVVideoPlugin,
416
- _p as ModelViewPlugin,
417
- xn as Object3DHelperController,
418
- Oe as Object3DHelperPlugin,
419
- gn as PLUGIN,
420
- Mp as PaintBrush,
421
- Lp as PaintBrushTypeEnum,
422
- ie as PanoCompassPlugin,
423
- Op as PanoCursorRaycasterPlugin,
424
- Me as PanoDoorLabelPlugin,
425
- hp as PanoFloorplanRadarPlugin,
426
- pe as PanoMeasurePlugin,
427
- Ne as PanoMeasurePluginLine,
428
- Ye as PanoMeasurePluginModel,
429
- ce as PanoMeasurePluginPoint,
430
- we as PanoMeasurePluginPolyline,
431
- Zp as PanoRulerPlugin,
432
- re as PanoRulerProPlugin,
433
- ne as PanoSpatialTagPlugin,
434
- Re as PanoTagPlugin,
435
- en as PanoTagPluginController,
436
- Se as PanoVideoPlugin,
437
- dn as PanoVideoPluginType,
438
- un as PointType,
439
- Hp as ROOM_FETILE_TYPE_MAP,
440
- Up as ROOM_TYPE_MAP,
441
- Wp as Rotation,
442
- Vp as TopviewFloorplanPlugin,
443
- De as Util,
444
- se as itemLabelPluginServerParams,
445
- ae as modelItemLabelPluginServerParams,
446
- Ap as modelRoomLabelPluginServerParams,
447
- nn as pluginFlag
395
+ Ve as CSS3DRender,
396
+ Ap as CSS3DRenderPlugin,
397
+ re as CameraMovementEffect,
398
+ Zp as CameraMovementPlugin,
399
+ gn as ContentType,
400
+ ye as CruisePlugin,
401
+ nn as CruisePluginController,
402
+ an as CruisePluginTypes,
403
+ Te as DIRECTION,
404
+ Je as DISPLAY_STRATEGY_TYPE,
405
+ sn as DimensionType,
406
+ cp as FLOOR_PLAN_ATTACHED_TO,
407
+ kp as FLOOR_TYPE_MAP,
408
+ tn as GuideLineItem,
409
+ pn as GuideLineModeItem,
410
+ Ie as GuideLinePlugin,
411
+ Xe as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
412
+ on as ItemLabelPlugin,
413
+ qe as Magnifier,
414
+ wp as MapviewFloorplanPlugin,
415
+ Kp as ModelChassisCompassPlugin,
416
+ Wp as ModelEntryDoorGuidePlugin,
417
+ Np as ModelFloorplanPlugin,
418
+ Qe as ModelItemLabelPlugin,
419
+ Fp as ModelRoomLabelPlugin,
420
+ de as ModelTVVideoPlugin,
421
+ yp as ModelViewPlugin,
422
+ Tn as Object3DHelperController,
423
+ Ge as Object3DHelperPlugin,
424
+ Ln as PLUGIN,
425
+ Ep as PaintBrush,
426
+ Ip as PaintBrushTypeEnum,
427
+ le as PanoCompassPlugin,
428
+ Gp as PanoCursorRaycasterPlugin,
429
+ Ee as PanoDoorLabelPlugin,
430
+ jp as PanoFloorplanRadarPlugin,
431
+ Pe as PanoMeasurePlugin,
432
+ Ue as PanoMeasurePluginLine,
433
+ he as PanoMeasurePluginModel,
434
+ Be as PanoMeasurePluginPoint,
435
+ $e as PanoMeasurePluginPolyline,
436
+ me as PanoRulerPlugin,
437
+ ee as PanoRulerProPlugin,
438
+ fe as PanoSpatialTagPlugin,
439
+ Ae as PanoTagPlugin,
440
+ un as PanoTagPluginController,
441
+ Fe as PanoVideoPlugin,
442
+ _n as PanoVideoPluginType,
443
+ dn as PointType,
444
+ qp as ROOM_FETILE_TYPE_MAP,
445
+ zp as ROOM_TYPE_MAP,
446
+ te as Rotation,
447
+ Hp as TopviewFloorplanPlugin,
448
+ ve as Util,
449
+ Ce as itemLabelPluginServerParams,
450
+ ge as modelItemLabelPluginServerParams,
451
+ Yp as modelRoomLabelPluginServerParams,
452
+ fn as pluginFlag
448
453
  };
@@ -4,10 +4,10 @@ import { isModelLike as e, isPanoramaLike as t } from "./five/mode.js";
4
4
  import { Magnifier as m } from "./three/Magnifier.js";
5
5
  import { getCoordsFromClient as i, getCoordsFromElement as n } from "./three/getCoords.js";
6
6
  import { getRaycasterFromFivePointer as p } from "./three/getRaycaster.js";
7
- import { getIntersectFromRelativePosition as f } from "./three/getIntersect.js";
8
- import { PointHelper as l } from "./three/PointHelper.js";
7
+ import { getIntersectFromRelativePosition as l } from "./three/getIntersect.js";
8
+ import { PointHelper as f } from "./three/PointHelper.js";
9
9
  import { PointDomHelper as a } from "./three/PointDomHelper.js";
10
- import { FivePointSelector as s } from "./three/FivePointSelector.js";
10
+ import { PointSelectorHelper as s } from "./three/PointSelectorHelper.js";
11
11
  import { isNil as g, notNil as F } from "./isNil.js";
12
12
  import { uuid as P } from "./uuid.js";
13
13
  import { isAbsoluteURL as c } from "./isAbsoluteURL.js";
@@ -16,16 +16,16 @@ import { BetterTween as b, tweenProgress as R } from "./animationFrame/BetterTwe
16
16
  const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17
17
  __proto__: null,
18
18
  BetterTween: b,
19
- FivePointSelector: s,
20
19
  Interval: o,
21
20
  Magnifier: m,
22
21
  PointDomHelper: a,
23
- PointHelper: l,
22
+ PointHelper: f,
23
+ PointSelectorHelper: s,
24
24
  Rectangle: r,
25
25
  getCoordsFromClient: i,
26
26
  getCoordsFromElement: n,
27
27
  getFrameTime: d,
28
- getIntersectFromRelativePosition: f,
28
+ getIntersectFromRelativePosition: l,
29
29
  getRaycasterFromFivePointer: p,
30
30
  isAbsoluteURL: c,
31
31
  isModelLike: e,
@@ -0,0 +1 @@
1
+ export declare const isTouchDevice: boolean;
@@ -0,0 +1,4 @@
1
+ const o = "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
2
+ export {
3
+ o as isTouchDevice
4
+ };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv2.21.0-dev.0",
3
+ "%c %c@realsee/dnalogel %cv2.21.0-dev.3",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
@@ -0,0 +1,32 @@
1
+ import type { Five, SubscribeEventMap } from '@realsee/five';
2
+ import { Subscribe } from '@realsee/five';
3
+ import { PointSelectorHelper, type PointIntersection } from './PointSelectorHelper';
4
+ interface Config {
5
+ /**
6
+ * @description: 选点的两种模式, 'fixed' 为固定选点为屏幕中心点,拖动five画布来选点,'cursor' 为跟随鼠标移动, 'auto' 则根据设备类型自动选择
7
+ * @default: 'auto'
8
+ */
9
+ mode: 'fixed' | 'cursor' | 'auto';
10
+ pointSelectorHelperParams: ConstructorParameters<typeof PointSelectorHelper>[1];
11
+ }
12
+ interface EventMap extends SubscribeEventMap {
13
+ intersectionUpdate: (intersection: PointIntersection) => void;
14
+ }
15
+ /**
16
+ * @description: 在屏幕上选点
17
+ */
18
+ export declare class PointSelector {
19
+ hook: Subscribe<EventMap>;
20
+ get position(): PointIntersection;
21
+ private five;
22
+ private mode;
23
+ private pointSelectorHelper;
24
+ private enabled;
25
+ constructor(five: Five, config?: Partial<Config>);
26
+ enable(): void;
27
+ disable(): void;
28
+ dispose(): void;
29
+ private onFivePanGesture;
30
+ private emitIntersectionUpdate;
31
+ }
32
+ export {};
@@ -0,0 +1,68 @@
1
+ var c = Object.defineProperty, v = Object.defineProperties;
2
+ var P = Object.getOwnPropertyDescriptors;
3
+ var u = Object.getOwnPropertySymbols;
4
+ var S = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
5
+ var n = (i, e, t) => e in i ? c(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, s = (i, e) => {
6
+ for (var t in e || (e = {}))
7
+ S.call(e, t) && n(i, t, e[t]);
8
+ if (u)
9
+ for (var t of u(e))
10
+ H.call(e, t) && n(i, t, e[t]);
11
+ return i;
12
+ }, m = (i, e) => v(i, P(e));
13
+ var o = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
14
+ import { Subscribe as f } from "@realsee/five";
15
+ import { PointSelectorHelper as b } from "./PointSelectorHelper.js";
16
+ import { isTouchDevice as G } from "../isTouchDevice.js";
17
+ class x {
18
+ constructor(e, t) {
19
+ o(this, "hook", new f());
20
+ o(this, "five");
21
+ o(this, "mode");
22
+ o(this, "pointSelectorHelper");
23
+ o(this, "enabled", !1);
24
+ o(this, "onFivePanGesture", () => {
25
+ this.pointSelectorHelper.updateByNdcPosition({ x: 0.5, y: 0.5 });
26
+ });
27
+ o(this, "emitIntersectionUpdate", (e) => {
28
+ this.hook.emit("intersectionUpdate", e);
29
+ });
30
+ var l, h, d;
31
+ this.five = e;
32
+ const a = (l = t == null ? void 0 : t.mode) != null ? l : "auto";
33
+ a === "auto" ? this.mode = G ? "fixed" : "cursor" : this.mode = a;
34
+ const p = {
35
+ autoFixPCPosition: this.mode === "cursor",
36
+ initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
37
+ };
38
+ console.log(s(s({}, p), (h = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : h.magnifierParams)), this.pointSelectorHelper = new b(e, m(s({}, t == null ? void 0 : t.pointSelectorHelperParams), {
39
+ magnifierParams: s(s({}, p), (d = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : d.magnifierParams)
40
+ }));
41
+ }
42
+ get position() {
43
+ return this.pointSelectorHelper.position;
44
+ }
45
+ enable() {
46
+ if (this.enabled)
47
+ return;
48
+ this.enabled = !0, this.pointSelectorHelper.enable();
49
+ const e = this.five.getElement();
50
+ this.mode === "cursor" ? (console.log("cursor"), this.five.on("intersectionOnModelUpdate", this.pointSelectorHelper.updateWithIntersect), this.five.on("wantsMoveToPano", r), this.five.on("wantsTapGesture", r), e == null || e.addEventListener("mousemove", this.pointSelectorHelper.updateByMousePosition), e == null || e.addEventListener("mouseenter", this.pointSelectorHelper.show), e == null || e.addEventListener("mouseout", this.pointSelectorHelper.hide)) : this.mode === "fixed" && (this.five.on("panGesture", this.onFivePanGesture), this.five.on("interiaPan", this.onFivePanGesture)), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate);
51
+ }
52
+ disable() {
53
+ if (!this.enabled)
54
+ return;
55
+ this.enabled = !1, this.pointSelectorHelper.disable();
56
+ const e = this.five.getElement();
57
+ this.five.off("intersectionOnModelUpdate", this.pointSelectorHelper.updateWithIntersect), this.five.off("wantsMoveToPano", r), this.five.off("wantsTapGesture", r), e == null || e.removeEventListener("mousemove", this.pointSelectorHelper.updateByMousePosition), e == null || e.removeEventListener("mouseenter", this.pointSelectorHelper.show), e == null || e.removeEventListener("mouseout", this.pointSelectorHelper.hide), this.five.off("panGesture", this.onFivePanGesture), this.five.off("interiaPan", this.onFivePanGesture), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate);
58
+ }
59
+ dispose() {
60
+ this.disable(), this.pointSelectorHelper.dispose();
61
+ }
62
+ }
63
+ function r() {
64
+ return !1;
65
+ }
66
+ export {
67
+ x as PointSelector
68
+ };