@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
@@ -0,0 +1,50 @@
1
+ import type { Five } from '@realsee/five';
2
+ import { Subscribe } from '@realsee/five';
3
+ import { Magnifier, PointHelper, PointDomHelper } from '.';
4
+ import type { Intersection } from '../../typings/typings';
5
+ interface Options {
6
+ magnifier: Magnifier | null;
7
+ magnifierParams: ConstructorParameters<typeof Magnifier>[1];
8
+ pointHelper: PointHelper | null;
9
+ pointDomHelper: PointDomHelper | null;
10
+ }
11
+ type EventMap = {
12
+ intersectionUpdate: (intersection: PointIntersection) => void;
13
+ /** 功能开启 */
14
+ enabled: () => void;
15
+ /** 功能关闭 */
16
+ disabled: () => void;
17
+ };
18
+ export interface PointIntersection extends Intersection {
19
+ isVirtual?: boolean;
20
+ }
21
+ export declare class PointSelectorHelper {
22
+ five: Five;
23
+ hooks: Subscribe<EventMap>;
24
+ position: PointIntersection | undefined;
25
+ private magnifier;
26
+ private pointHelper;
27
+ private pointDomHelper;
28
+ private state;
29
+ private group;
30
+ constructor(five: Five, options?: Partial<Options>);
31
+ show: () => void;
32
+ hide: () => void;
33
+ enable(): void;
34
+ disable(): void;
35
+ dispose(): void;
36
+ updateWithIntersect: (intersect: Intersection) => void;
37
+ updateByMousePosition: (mousePosition: {
38
+ clientX: number;
39
+ clientY: number;
40
+ }) => void;
41
+ /**
42
+ * @description: 根据鼠标位置更新helper位置
43
+ */
44
+ updateByNdcPosition: (ndcPosition: {
45
+ x: number;
46
+ y: number;
47
+ }) => void;
48
+ private abortUpdateMagnifier;
49
+ }
50
+ export {};
@@ -0,0 +1,100 @@
1
+ var f = Object.defineProperty, u = Object.defineProperties;
2
+ var g = Object.getOwnPropertyDescriptors;
3
+ var m = Object.getOwnPropertySymbols;
4
+ var b = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
+ var l = (t, i, e) => i in t ? f(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e, h = (t, i) => {
6
+ for (var e in i || (i = {}))
7
+ b.call(i, e) && l(t, e, i[e]);
8
+ if (m)
9
+ for (var e of m(i))
10
+ v.call(i, e) && l(t, e, i[e]);
11
+ return t;
12
+ }, c = (t, i) => u(t, g(i));
13
+ var r = (t, i, e) => (l(t, typeof i != "symbol" ? i + "" : i, e), e);
14
+ import * as s from "three";
15
+ import { Subscribe as H } from "@realsee/five";
16
+ import { Magnifier as y } from "./Magnifier.js";
17
+ import { getIntersectFromRelativePosition as D } from "./getIntersect.js";
18
+ import { PointHelper as w } from "./PointHelper.js";
19
+ import { PointDomHelper as P } from "./PointDomHelper.js";
20
+ class E {
21
+ constructor(i, e) {
22
+ r(this, "five");
23
+ r(this, "hooks", new H());
24
+ r(this, "position");
25
+ r(this, "magnifier", null);
26
+ r(this, "pointHelper", null);
27
+ r(this, "pointDomHelper", null);
28
+ r(this, "state", { enabled: !1 });
29
+ r(this, "group", new s.Group());
30
+ r(this, "show", () => {
31
+ this.pointHelper.visible = !0, this.pointDomHelper.enable(), this.magnifier.canvas && (this.magnifier.canvas.style.visibility = "visible");
32
+ });
33
+ r(this, "hide", () => {
34
+ this.pointHelper.visible = !1, this.pointDomHelper.disable(), this.magnifier.canvas && (this.magnifier.canvas.style.visibility = "hidden");
35
+ });
36
+ r(this, "updateWithIntersect", (i) => {
37
+ var n;
38
+ this.abortUpdateMagnifier(), this.position = i, this.hooks.emit("intersectionUpdate", i), this.pointHelper.updateWithIntersect(i), (n = this.pointDomHelper) == null || n.updateWithIntersect(i);
39
+ const e = () => this.magnifier.renderWithPoint(i.point);
40
+ this.abortUpdateMagnifier = () => this.five.off("renderFrame", e), this.five.once("renderFrame", e), this.five.needsRender = !0;
41
+ });
42
+ r(this, "updateByMousePosition", (i) => {
43
+ const e = this.five.getElement();
44
+ if (!e)
45
+ return;
46
+ const { clientX: n, clientY: a } = i, o = {
47
+ x: n / e.clientWidth,
48
+ y: 1 - a / e.clientHeight
49
+ };
50
+ this.updateByNdcPosition(o);
51
+ });
52
+ /**
53
+ * @description: 根据鼠标位置更新helper位置
54
+ */
55
+ r(this, "updateByNdcPosition", (i) => {
56
+ const e = D(this.five, i);
57
+ if (e)
58
+ this.position = c(h({}, e), { isVirtual: !1 });
59
+ else {
60
+ const n = R(this.five, i);
61
+ this.position = c(h({}, n), { isVirtual: !0 });
62
+ }
63
+ this.updateWithIntersect(this.position);
64
+ });
65
+ r(this, "abortUpdateMagnifier", () => {
66
+ });
67
+ var n;
68
+ this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new y(i, (n = e == null ? void 0 : e.magnifierParams) != null ? n : { dragEnabled: !0 }), this.pointHelper = (e == null ? void 0 : e.pointHelper) !== void 0 ? e.pointHelper : new w(), this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) !== void 0 ? e.pointDomHelper : new P(i), this.group.name = "five-point-selector", this.five.scene.add(this.group), this.magnifier.appendTo(document.body);
69
+ }
70
+ enable() {
71
+ var i, e;
72
+ this.state.enabled || (this.state.enabled = !0, this.pointHelper && this.group.add(this.pointHelper), (i = this.magnifier) == null || i.enable(), (e = this.pointDomHelper) == null || e.enable(), this.five.needsRender = !0, this.hooks.emit("enabled"));
73
+ }
74
+ disable() {
75
+ var i, e;
76
+ this.state.enabled && (this.state.enabled = !1, this.pointHelper && this.group.remove(this.pointHelper), (i = this.magnifier) == null || i.disable(), (e = this.pointDomHelper) == null || e.disable(), this.hooks.emit("disabled"));
77
+ }
78
+ dispose() {
79
+ this.hooks.off(), this.disable(), this.magnifier = null, this.pointHelper = null, this.pointDomHelper = null;
80
+ }
81
+ }
82
+ function I(t, i) {
83
+ const { x: e, y: n } = i, a = e * 2 - 1, o = n * 2 - 1, p = new s.Vector2().fromArray([a, o]), d = new s.Raycaster();
84
+ return d.setFromCamera(p, t.camera), d;
85
+ }
86
+ function R(t, i) {
87
+ const e = I(t, i), n = 3, a = new s.Vector3().addVectors(
88
+ e.ray.origin,
89
+ e.ray.direction.clone().normalize().multiplyScalar(n)
90
+ ), o = e.ray.direction.clone().negate();
91
+ return {
92
+ distance: n,
93
+ point: a,
94
+ object: new s.Object3D(),
95
+ face: new s.Face3(0, 0, 0, o)
96
+ };
97
+ }
98
+ export {
99
+ E as PointSelectorHelper
100
+ };
@@ -4,4 +4,4 @@ export * from './getRaycaster';
4
4
  export * from './getIntersect';
5
5
  export * from './PointHelper';
6
6
  export * from './PointDomHelper';
7
- export * from './FivePointSelector';
7
+ export * from './PointSelectorHelper';
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.21.0-dev.0",
10
+ "version": "2.21.0-dev.3",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
@@ -1,36 +0,0 @@
1
- import * as THREE from 'three';
2
- import type { Five } from '@realsee/five';
3
- import { Subscribe } from '@realsee/five';
4
- import { Magnifier, PointHelper, PointDomHelper } from '.';
5
- interface FivePointSelectorOptions {
6
- magnifier: Magnifier | null;
7
- pointHelper: PointHelper | null;
8
- pointDomHelper: PointDomHelper | null;
9
- }
10
- export declare class FivePointSelector {
11
- five: Five;
12
- hooks: Subscribe<{
13
- /** 点的位置发生变化 */
14
- pointChanged: (data: {
15
- panoIndex: number;
16
- position: number[];
17
- normal: number[];
18
- }) => void;
19
- /** 功能开启 */
20
- enabled: () => void;
21
- /** 功能关闭 */
22
- disabled: () => void;
23
- }>;
24
- private magnifier;
25
- private pointHelper;
26
- private pointDomHelper;
27
- private contentDom;
28
- private state;
29
- private group;
30
- constructor(five: Five, options?: Partial<FivePointSelectorOptions>);
31
- enable(): void;
32
- disable(): void;
33
- dispose(): void;
34
- updateWithIntersect(intersect: THREE.Intersection): void;
35
- }
36
- export {};
@@ -1,36 +0,0 @@
1
- import * as THREE from 'three';
2
- import type { Five } from '@realsee/five';
3
- import { Subscribe } from '@realsee/five';
4
- import { Magnifier, PointHelper, PointDomHelper } from '.';
5
- interface FivePointSelectorOptions {
6
- magnifier: Magnifier | null;
7
- pointHelper: PointHelper | null;
8
- pointDomHelper: PointDomHelper | null;
9
- }
10
- export declare class FivePointSelector {
11
- five: Five;
12
- hooks: Subscribe<{
13
- /** 点的位置发生变化 */
14
- pointChanged: (data: {
15
- panoIndex: number;
16
- position: number[];
17
- normal: number[];
18
- }) => void;
19
- /** 功能开启 */
20
- enabled: () => void;
21
- /** 功能关闭 */
22
- disabled: () => void;
23
- }>;
24
- private magnifier;
25
- private pointHelper;
26
- private pointDomHelper;
27
- private contentDom;
28
- private state;
29
- private group;
30
- constructor(five: Five, options?: Partial<FivePointSelectorOptions>);
31
- enable(): void;
32
- disable(): void;
33
- dispose(): void;
34
- updateWithIntersect(intersect: THREE.Intersection): void;
35
- }
36
- export {};
@@ -1,49 +0,0 @@
1
- var l = Object.defineProperty;
2
- var h = (n, t, e) => t in n ? l(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var i = (n, t, e) => (h(n, typeof t != "symbol" ? t + "" : t, e), e);
4
- import * as a from "three";
5
- import { Subscribe as p } from "@realsee/five";
6
- import { Magnifier as m } from "./Magnifier.js";
7
- import { PointHelper as d } from "./PointHelper.js";
8
- import { PointDomHelper as f } from "./PointDomHelper.js";
9
- class D {
10
- constructor(t, e) {
11
- i(this, "five");
12
- i(this, "hooks", new p());
13
- i(this, "magnifier", null);
14
- i(this, "pointHelper", null);
15
- i(this, "pointDomHelper", null);
16
- i(this, "contentDom", document.createElement("div"));
17
- i(this, "state", { enabled: !1 });
18
- i(this, "group", new a.Group());
19
- this.five = t, this.magnifier = (e == null ? void 0 : e.magnifier) === void 0 ? new m(t, { dragEnabled: !0 }) : null, this.pointHelper = (e == null ? void 0 : e.pointHelper) === void 0 ? new d() : null, this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) === void 0 ? new f(t) : null, this.group.name = "five-point-selector", this.five.scene.add(this.group), this.contentDom.classList.add("five-point-selector-content"), this.contentDom.style.position = "absolute", this.contentDom.style.top = "0", this.contentDom.style.left = "0", this.contentDom.style.width = "100%", this.contentDom.style.height = "100%", this.contentDom.style.pointerEvents = "none";
20
- }
21
- enable() {
22
- var t, e;
23
- this.state.enabled || (this.state.enabled = !0, this.pointHelper && this.group.add(this.pointHelper), (t = this.magnifier) == null || t.enable(), (e = this.pointDomHelper) == null || e.enable(), this.five.needsRender = !0, this.hooks.emit("enabled"));
24
- }
25
- disable() {
26
- var t, e;
27
- this.state.enabled && (this.state.enabled = !1, this.pointHelper && this.group.remove(this.pointHelper), (t = this.magnifier) == null || t.disable(), (e = this.pointDomHelper) == null || e.disable(), this.hooks.emit("disabled"));
28
- }
29
- dispose() {
30
- this.hooks.off(), this.disable(), this.magnifier = null, this.pointHelper = null, this.pointDomHelper = null;
31
- }
32
- updateWithIntersect(t) {
33
- var s;
34
- this.hooks.emit("pointChanged", {
35
- panoIndex: this.five.getCurrentState().panoIndex,
36
- position: t.point.toArray(),
37
- normal: (s = t.face) == null ? void 0 : s.normal.toArray()
38
- });
39
- const e = this.magnifier;
40
- e && e.renderWithPoint(t.point);
41
- const o = this.pointHelper;
42
- o && o.updateWithIntersect(t);
43
- const r = this.pointDomHelper;
44
- r && r.updateWithIntersect(t), this.five.needsRender = !0;
45
- }
46
- }
47
- export {
48
- D as FivePointSelector
49
- };