@realsee/dnalogel 3.0.0-13 → 3.0.0-15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/dist/index.cjs.js +39 -39
  2. package/dist/index.js +1036 -1038
  3. package/dist/index.umd.js +31 -31
  4. package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -1
  5. package/dist/shared-utils/five/calculateThreeMouse.d.ts +11 -0
  6. package/dist/shared-utils/three/PointSelectorHelper.d.ts +6 -5
  7. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
  8. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +31 -31
  9. package/docs/classes/CSS3DRender.html +30 -30
  10. package/docs/classes/CruisePluginController.html +25 -25
  11. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  12. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
  13. package/docs/classes/Magnifier.html +19 -19
  14. package/docs/classes/ModelRoomLabelController.html +10 -10
  15. package/docs/classes/Object3DHelperController.html +24 -24
  16. package/docs/classes/PaintBrush.html +14 -14
  17. package/docs/classes/PanoMeasurePluginLine.html +26 -26
  18. package/docs/classes/PanoMeasurePluginModel.html +26 -26
  19. package/docs/classes/PanoMeasurePluginPoint.html +10 -10
  20. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  21. package/docs/classes/PanoTagPluginController.html +44 -44
  22. package/docs/classes/Util.BetterTween.html +8 -8
  23. package/docs/classes/Util.Interval.html +11 -11
  24. package/docs/classes/Util.LineSegments.html +7 -7
  25. package/docs/classes/Util.Magnifier.html +19 -19
  26. package/docs/classes/Util.Object3D.html +7 -7
  27. package/docs/classes/Util.PointDomHelper.html +10 -10
  28. package/docs/classes/Util.PointHelper.html +10 -10
  29. package/docs/classes/Util.PointSelectorHelper.html +16 -16
  30. package/docs/classes/Util.Rectangle.html +12 -12
  31. package/docs/enums/CameraMovementEffect.html +6 -6
  32. package/docs/enums/ContentType.html +19 -19
  33. package/docs/enums/DIRECTION.html +8 -8
  34. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  35. package/docs/enums/DimensionType.html +6 -6
  36. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  37. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  38. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  39. package/docs/enums/PointType.html +6 -6
  40. package/docs/enums/Rotation.html +7 -7
  41. package/docs/functions/AreaMakerPlugin.html +4 -4
  42. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  43. package/docs/functions/CameraMovementPlugin.html +4 -4
  44. package/docs/functions/CruisePlugin.html +4 -4
  45. package/docs/functions/CurrentPanoImagePlugin.html +4 -4
  46. package/docs/functions/GuideLinePlugin.html +4 -4
  47. package/docs/functions/ItemLabelPlugin.html +4 -4
  48. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  49. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  50. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  51. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  52. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  53. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  54. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  55. package/docs/functions/ModelViewPlugin.html +4 -4
  56. package/docs/functions/Object3DHelperPlugin.html +4 -4
  57. package/docs/functions/PanoCompassPlugin.html +4 -4
  58. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  59. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  60. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  61. package/docs/functions/PanoMeasurePlugin.html +4 -4
  62. package/docs/functions/PanoRulerPlugin.html +4 -4
  63. package/docs/functions/PanoRulerProPlugin.html +4 -4
  64. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  65. package/docs/functions/PanoTagPlugin.html +4 -4
  66. package/docs/functions/PanoVideoPlugin.html +4 -4
  67. package/docs/functions/PipelinePlugin.html +4 -4
  68. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  69. package/docs/functions/Util.absoluteUrl.html +4 -4
  70. package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
  71. package/docs/functions/Util.equal.html +4 -4
  72. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  73. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  74. package/docs/functions/Util.getFrameTime.html +4 -4
  75. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  76. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  77. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  78. package/docs/functions/Util.isModelLike.html +4 -4
  79. package/docs/functions/Util.isNil.html +4 -4
  80. package/docs/functions/Util.isPanoramaLike.html +4 -4
  81. package/docs/functions/Util.nextFrame.html +4 -4
  82. package/docs/functions/Util.notNil.html +4 -4
  83. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  84. package/docs/functions/Util.tweenProgress.html +4 -4
  85. package/docs/functions/Util.uuid.html +4 -4
  86. package/docs/functions/pluginFlag.html +4 -4
  87. package/docs/index.html +4 -4
  88. package/docs/interfaces/AddTagConfig.html +5 -5
  89. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -5
  90. package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
  91. package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
  92. package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
  93. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
  94. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
  95. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
  96. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
  97. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
  98. package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
  99. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  100. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  101. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  102. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  103. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  104. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  105. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  106. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  107. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  108. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  109. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
  110. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  111. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
  112. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
  113. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
  114. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
  115. package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
  116. package/docs/interfaces/EventMap.html +14 -14
  117. package/docs/interfaces/FloorplanBounding.html +7 -7
  118. package/docs/interfaces/FloorplanData.html +9 -9
  119. package/docs/interfaces/FloorplanEntrance.html +10 -10
  120. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  121. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  122. package/docs/interfaces/FloorplanFloorData.html +8 -8
  123. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  124. package/docs/interfaces/FloorplanObserver.html +8 -8
  125. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  126. package/docs/interfaces/FloorplanPosition.html +6 -6
  127. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  128. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  129. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  130. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  131. package/docs/interfaces/FloorplanServerData.html +6 -6
  132. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  133. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  134. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  135. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  136. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  137. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  138. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  139. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  140. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  141. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  142. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  143. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  144. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  145. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  146. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  147. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  148. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  149. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  150. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  151. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  152. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  153. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
  154. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  155. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  156. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  157. package/docs/interfaces/HelperOffset.html +7 -7
  158. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  159. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  160. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  161. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  162. package/docs/interfaces/MinMax.html +6 -6
  163. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  164. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  165. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  166. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  167. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  168. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  169. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  170. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  171. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  172. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  173. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  174. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  175. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  176. package/docs/interfaces/Object3DHelperState.html +7 -7
  177. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  178. package/docs/interfaces/PaintBrushAction.html +11 -11
  179. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  180. package/docs/interfaces/PaintBrushState.html +9 -9
  181. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  182. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  183. package/docs/interfaces/PanoMeasureParameterType.html +15 -15
  184. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  185. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  186. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  187. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  188. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  189. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  190. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  191. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  192. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  193. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  194. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  195. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  196. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  197. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  198. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  199. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  200. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  201. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  202. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  203. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  204. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  205. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  206. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  207. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  208. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  209. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  210. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  211. package/docs/interfaces/Point.html +7 -7
  212. package/docs/interfaces/Room.html +8 -8
  213. package/docs/interfaces/RoomInfo.html +6 -6
  214. package/docs/interfaces/RoomLabel.html +13 -13
  215. package/docs/interfaces/RoomRules.html +4 -4
  216. package/docs/interfaces/Rooms.html +4 -4
  217. package/docs/interfaces/Scissor.html +8 -8
  218. package/docs/interfaces/State.html +7 -7
  219. package/docs/interfaces/TagCacheInterface.html +11 -11
  220. package/docs/interfaces/TagConfig.html +13 -13
  221. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  222. package/docs/interfaces/TagIconUrl.html +11 -11
  223. package/docs/interfaces/TagObjectGroup.html +5 -5
  224. package/docs/interfaces/TagStyle.html +5 -5
  225. package/docs/interfaces/Tags.html +8 -8
  226. package/docs/interfaces/TemporaryState.html +5 -5
  227. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  228. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  229. package/docs/interfaces/Util.PointIntersection.html +7 -7
  230. package/docs/modules/AreaMakerPluginType.html +4 -4
  231. package/docs/modules/CruisePluginTypes.html +4 -4
  232. package/docs/modules/CurrentPanoImagePluginType.html +4 -4
  233. package/docs/modules/GuideLineItem.html +4 -4
  234. package/docs/modules/GuideLineModeItem.html +4 -4
  235. package/docs/modules/GuideLinePluginType.html +4 -4
  236. package/docs/modules/PanoVideoPluginType.html +4 -4
  237. package/docs/modules/Util.html +4 -4
  238. package/docs/modules.html +4 -4
  239. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -4
  240. package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
  241. package/docs/types/AreaMakerPluginType.ServerData.html +4 -4
  242. package/docs/types/ArrayPosition.html +4 -4
  243. package/docs/types/AudioAppearance.html +4 -4
  244. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  245. package/docs/types/CSS3DRenderExportType.html +4 -4
  246. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  247. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  248. package/docs/types/ClassFunctionParameters.html +4 -4
  249. package/docs/types/Color.html +4 -4
  250. package/docs/types/ContentTypeConfigKey.html +4 -4
  251. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  252. package/docs/types/ContentTypeMap.html +4 -4
  253. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  254. package/docs/types/Create3DElementReturnType.html +4 -4
  255. package/docs/types/CruisePluginExportType.html +4 -4
  256. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  257. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  258. package/docs/types/CurrentPanoImagePluginExportType.html +4 -4
  259. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
  260. package/docs/types/DeprecatedTagProperty.html +4 -4
  261. package/docs/types/Direction-1.html +4 -4
  262. package/docs/types/Direction4.html +4 -4
  263. package/docs/types/ElementRenderer.html +4 -4
  264. package/docs/types/FloorplanRuleLabels.html +4 -4
  265. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  266. package/docs/types/GuideLinePluginExportType.html +4 -4
  267. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  268. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  269. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  270. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  271. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  272. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  273. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  274. package/docs/types/HelperEventMap.html +4 -4
  275. package/docs/types/LoadTagConfig.html +4 -4
  276. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  277. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  278. package/docs/types/MediaData.html +4 -4
  279. package/docs/types/MediaStore.html +4 -4
  280. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  281. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  282. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  283. package/docs/types/ModelId.html +4 -4
  284. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  285. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  286. package/docs/types/MoveArgs.html +4 -4
  287. package/docs/types/MoveOpts.html +4 -4
  288. package/docs/types/Object3DHelperEventMap.html +4 -4
  289. package/docs/types/ObjectFit.html +4 -4
  290. package/docs/types/PaintBrushEventMap.html +4 -4
  291. package/docs/types/PanoCompassPluginData.html +4 -4
  292. package/docs/types/PanoCompassPluginExportType.html +4 -4
  293. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  294. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  295. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  296. package/docs/types/PanoIndex.html +4 -4
  297. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  298. package/docs/types/PanoMeasureReturnType.html +4 -4
  299. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  300. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  301. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  302. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  303. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  304. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  305. package/docs/types/PipelinePluginParameterType.html +4 -4
  306. package/docs/types/PipelinePluginReturnType.html +4 -4
  307. package/docs/types/PlaneTag.html +4 -4
  308. package/docs/types/Point2DTag.html +4 -4
  309. package/docs/types/Point3DTag.html +4 -4
  310. package/docs/types/PointTag.html +4 -4
  311. package/docs/types/PointTagInstance.html +4 -4
  312. package/docs/types/Position.html +4 -4
  313. package/docs/types/RotateArgs.html +4 -4
  314. package/docs/types/RotateOpts.html +4 -4
  315. package/docs/types/RuleLabelsKey.html +4 -4
  316. package/docs/types/RuleLabelsValue.html +4 -4
  317. package/docs/types/StickType.html +4 -4
  318. package/docs/types/Tag.html +4 -4
  319. package/docs/types/Tag2D.html +4 -4
  320. package/docs/types/Tag3D.html +4 -4
  321. package/docs/types/TagConfigByKey.html +4 -4
  322. package/docs/types/TagContentType.html +4 -4
  323. package/docs/types/TagDimensionType.html +4 -4
  324. package/docs/types/TagElement.html +4 -4
  325. package/docs/types/TagEvents.html +4 -4
  326. package/docs/types/TagGLTFObject.html +4 -4
  327. package/docs/types/TagHooks.html +4 -4
  328. package/docs/types/TagId.html +4 -4
  329. package/docs/types/TagInstance.html +4 -4
  330. package/docs/types/TagPointType.html +4 -4
  331. package/docs/types/TagRendererMap.html +4 -4
  332. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  333. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  334. package/docs/types/WorkCode.html +4 -4
  335. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  336. package/docs/variables/PLUGIN.html +4 -4
  337. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  338. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  339. package/docs/variables/defaultGlobalConfig.html +4 -4
  340. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  341. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  342. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  343. package/libs/CruisePlugin/Controller.js +3 -2
  344. package/libs/CruisePlugin/index.js +6 -5
  345. package/libs/CurrentPanoImagePlugin/Controller.js +21 -23
  346. package/libs/CurrentPanoImagePlugin/index.js +3 -4
  347. package/libs/GuideLinePlugin/Controller.js +5 -4
  348. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  349. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  350. package/libs/GuideLinePlugin/index.js +8 -7
  351. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  352. package/libs/PanoTagPlugin/controller/TagComputer.js +46 -45
  353. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  354. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  355. package/libs/PanoTagPlugin/controller/index.js +6 -5
  356. package/libs/PanoTagPlugin/index.js +12 -11
  357. package/libs/base/BasePlugin.js +1 -1
  358. package/libs/index.js +1 -1
  359. package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -1
  360. package/libs/shared-utils/five/FiveDomEvents.js +81 -71
  361. package/libs/shared-utils/five/calculateThreeMouse.d.ts +11 -0
  362. package/libs/shared-utils/five/calculateThreeMouse.js +8 -0
  363. package/libs/shared-utils/logger.js +1 -1
  364. package/libs/shared-utils/three/PointSelector.js +39 -39
  365. package/libs/shared-utils/three/PointSelectorHelper.d.ts +6 -5
  366. package/libs/shared-utils/three/PointSelectorHelper.js +4 -4
  367. package/package.json +1 -1
  368. package/dist/shared-utils/five/adapt.d.ts +0 -9
  369. package/libs/shared-utils/five/adapt.d.ts +0 -9
  370. package/libs/shared-utils/five/adapt.js +0 -16
@@ -1,104 +1,114 @@
1
- var L = Object.defineProperty;
2
- var p = Object.getOwnPropertySymbols;
3
- var H = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
- var E = (u, e, t) => e in u ? L(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t, b = (u, e) => {
1
+ var H = Object.defineProperty;
2
+ var _ = Object.getOwnPropertySymbols;
3
+ var L = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
+ var m = (f, e, t) => e in f ? H(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t, b = (f, e) => {
5
5
  for (var t in e || (e = {}))
6
- H.call(e, t) && E(u, t, e[t]);
7
- if (p)
8
- for (var t of p(e))
9
- g.call(e, t) && E(u, t, e[t]);
10
- return u;
6
+ L.call(e, t) && m(f, t, e[t]);
7
+ if (_)
8
+ for (var t of _(e))
9
+ g.call(e, t) && m(f, t, e[t]);
10
+ return f;
11
11
  };
12
- var h = (u, e, t) => (E(u, typeof e != "symbol" ? e + "" : e, t), t);
12
+ var v = (f, e, t) => (m(f, typeof e != "symbol" ? e + "" : e, t), t);
13
+ import * as y from "three";
13
14
  import { getObjectVisible as $ } from "../three/getObjectVisible.js";
14
- class I {
15
+ import { calculateThreeMouse as x } from "./calculateThreeMouse.js";
16
+ class D {
15
17
  constructor(e) {
16
- h(this, "five");
17
- h(this, "boundObject", {});
18
- h(this, "handleWantsGesture", (e, t) => {
18
+ v(this, "five");
19
+ v(this, "boundObject", {});
20
+ v(this, "handleWantsGesture", (e, t) => {
19
21
  if (t.length !== 1)
20
22
  return;
21
23
  const n = t[0];
22
- if (n) {
23
- if (e === "mouseMove")
24
- return this.onDomEvent("hover", n.raycaster);
25
- if (e === "tap")
26
- return this.onDomEvent("click", n.raycaster);
24
+ if (!n)
25
+ return;
26
+ let o = n.raycaster;
27
+ if (!o) {
28
+ const i = this.five.getElement();
29
+ if (!i)
30
+ return;
31
+ const s = x(n, i), r = new y.Raycaster();
32
+ r.setFromCamera(s, this.five.camera), o = r;
27
33
  }
34
+ if (e === "mouseMove")
35
+ return this.onDomEvent("hover", n.raycaster);
36
+ if (e === "tap")
37
+ return this.onDomEvent("click", n.raycaster);
28
38
  });
29
- h(this, "onDomEvent", (e, t) => {
30
- var i;
39
+ v(this, "onDomEvent", (e, t) => {
40
+ var s;
31
41
  const n = this.boundObject[e];
32
- if (!n || (n == null ? void 0 : n.length) === 0)
42
+ if (!n || (n == null ? void 0 : n.length) === 0 || !t)
33
43
  return;
34
- const d = (() => {
35
- var f;
44
+ const o = (() => {
45
+ var a;
36
46
  const r = t.intersectObjects(n, !0);
37
47
  if (r.length === 0)
38
48
  return;
39
- const s = this.five.model.intersectRaycaster(t);
40
- if (!(s.length > 0 && r.length > 0 && s[0].distance < r[0].distance))
41
- return (f = r[0]) == null ? void 0 : f.object;
49
+ const d = this.five.model.intersectRaycaster(t);
50
+ if (!(d.length > 0 && r.length > 0 && d[0].distance < r[0].distance))
51
+ return (a = r[0]) == null ? void 0 : a.object;
42
52
  })();
43
- if (!d || !this.objectIsBound(d)) {
44
- for (const r of (i = this.boundObject.hover) != null ? i : [])
53
+ if (!o || !this.objectIsBound(o)) {
54
+ for (const r of (s = this.boundObject.hover) != null ? s : [])
45
55
  r._hovered && this.notify("unHover", r);
46
56
  return;
47
57
  }
48
- if (this.notify(e, d))
58
+ if (this.notify(e, o))
49
59
  return !1;
50
60
  });
51
- h(this, "objectIsBound", (e) => {
61
+ v(this, "objectIsBound", (e) => {
52
62
  let t = e._domEvent, n = e.parent;
53
63
  for (; typeof t == "undefined" && n; )
54
64
  t = n._domEvent, n = n.parent;
55
65
  return !!t;
56
66
  });
57
67
  // eslint-disable-next-line max-params
58
- h(this, "notify", (e, t, n, d) => {
59
- var f;
60
- let o = !1, i = [];
68
+ v(this, "notify", (e, t, n, o) => {
69
+ var a;
70
+ let i = !1, s = [];
61
71
  const r = [];
62
- let s = t;
63
- for (r.push(s); s.parent; )
64
- s = s.parent, r.push(s);
65
- for (const v of r) {
66
- if (o)
72
+ let d = t;
73
+ for (r.push(d); d.parent; )
74
+ d = d.parent, r.push(d);
75
+ for (const u of r) {
76
+ if (i)
67
77
  break;
68
- const m = v._domEvent;
69
- if (!m)
78
+ const E = u._domEvent;
79
+ if (!E)
70
80
  continue;
71
- const _ = m[`${e}Handler`];
72
- if (_)
73
- for (const [O, l] of _) {
74
- if (l != null && l.checkVisible && !$(v))
81
+ const p = E[`${e}Handler`];
82
+ if (p)
83
+ for (const [O, c] of p) {
84
+ if (c != null && c.checkVisible && !$(u))
75
85
  continue;
76
86
  if (e === "hover") {
77
- if (v._hovered)
87
+ if (u._hovered)
78
88
  continue;
79
- v._hovered = !0;
80
- for (const a of (f = this.boundObject.hover) != null ? f : [])
81
- a !== v && a._hovered && this.notify("unHover", a);
89
+ u._hovered = !0;
90
+ for (const h of (a = this.boundObject.hover) != null ? a : [])
91
+ h !== u && h._hovered && this.notify("unHover", h);
82
92
  }
83
93
  if (e === "unHover") {
84
- if (!v._hovered)
94
+ if (!u._hovered)
85
95
  continue;
86
- v._hovered = !1;
96
+ u._hovered = !1;
87
97
  }
88
- const c = O({
98
+ const l = O({
89
99
  type: e,
90
- target: v,
100
+ target: u,
91
101
  origDomEvent: n,
92
- intersect: d,
102
+ intersect: o,
93
103
  stopPropagation: () => {
94
- o = !0;
104
+ i = !0;
95
105
  }
96
106
  });
97
- i.push(c != null ? c : !0);
107
+ s.push(l != null ? l : !0);
98
108
  }
99
109
  }
100
110
  if (e === "click")
101
- return i.some((v) => v === !0);
111
+ return s.some((u) => u === !0);
102
112
  });
103
113
  this.five = e, e.on("wantsGesture", this.handleWantsGesture);
104
114
  }
@@ -107,10 +117,10 @@ class I {
107
117
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
108
118
  * @todo: added 和 removed 还是不太智能
109
119
  */
110
- addAutoBindEventListener(e, t, n, d) {
111
- const o = () => this.addEventListener(e, t, n, d), i = () => this.removeEventListener(e, t, n, d);
112
- return e.addEventListener("added", o), e.addEventListener("removed", i), e.addEventListener("dispose", i), () => {
113
- e.removeEventListener("added", o), e.removeEventListener("removed", i), e.removeEventListener("dispose", i);
120
+ addAutoBindEventListener(e, t, n, o) {
121
+ const i = () => this.addEventListener(e, t, n, o), s = () => this.removeEventListener(e, t, n, o);
122
+ return e.addEventListener("added", i), e.addEventListener("removed", s), e.addEventListener("dispose", s), () => {
123
+ e.removeEventListener("added", i), e.removeEventListener("removed", s), e.removeEventListener("dispose", s);
114
124
  };
115
125
  }
116
126
  /**
@@ -120,18 +130,18 @@ class I {
120
130
  * @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
121
131
  * @return {void}
122
132
  */
123
- addEventListener(e, t, n, d) {
124
- var o;
125
- e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, b({ checkVisible: !0 }, d)]), (o = this.boundObject[t]) == null || o.push(e);
133
+ addEventListener(e, t, n, o) {
134
+ var i;
135
+ e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, b({ checkVisible: !0 }, o)]), (i = this.boundObject[t]) == null || i.push(e);
126
136
  }
127
- removeEventListener(e, t, n, ...d) {
128
- var i, r;
137
+ removeEventListener(e, t, n, ...o) {
138
+ var s, r;
129
139
  if (!e._domEvent || !e._domEvent[`${t}Handler`])
130
140
  return;
131
- const o = e._domEvent[`${t}Handler`].findIndex((s) => s[0] === n);
132
- if (o !== -1 && (e._domEvent[`${t}Handler`].splice(o, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
133
- const s = (i = this.boundObject[t]) == null ? void 0 : i.findIndex((f) => f === e);
134
- s !== -1 && ((r = this.boundObject[t]) == null || r.splice(s, 1));
141
+ const i = e._domEvent[`${t}Handler`].findIndex((d) => d[0] === n);
142
+ if (i !== -1 && (e._domEvent[`${t}Handler`].splice(i, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
143
+ const d = (s = this.boundObject[t]) == null ? void 0 : s.findIndex((a) => a === e);
144
+ d !== -1 && ((r = this.boundObject[t]) == null || r.splice(d, 1));
135
145
  }
136
146
  }
137
147
  dispose() {
@@ -140,5 +150,5 @@ class I {
140
150
  }
141
151
  }
142
152
  export {
143
- I as FiveDomEvents
153
+ D as FiveDomEvents
144
154
  };
@@ -0,0 +1,11 @@
1
+ import * as THREE from 'three';
2
+ /**
3
+ * 计算 three 中的 mouse 的值
4
+ * @param mouseXY - 鼠标相对屏幕位置
5
+ * @param element - canvas元素(three的展示元素)
6
+ */
7
+ declare function calculateThreeMouse(mouseXY: {
8
+ x: number;
9
+ y: number;
10
+ }, element: HTMLElement): THREE.Vector2;
11
+ export { calculateThreeMouse };
@@ -0,0 +1,8 @@
1
+ import * as i from "three";
2
+ function h(t, e) {
3
+ const { top: n, left: o, width: r, height: c } = e.getBoundingClientRect();
4
+ return new i.Vector2((t.x - o) / r * 2 - 1, -(t.y - n) / c * 2 + 1);
5
+ }
6
+ export {
7
+ h as calculateThreeMouse
8
+ };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.0.0-13",
3
+ "%c %c@realsee/dnalogel %cv3.0.0-15",
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",
@@ -1,27 +1,27 @@
1
- var u = Object.defineProperty, v = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
1
+ var P = Object.defineProperty, S = Object.defineProperties;
2
+ var w = Object.getOwnPropertyDescriptors;
3
3
  var m = Object.getOwnPropertySymbols;
4
- var S = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
5
- var p = (s, e, t) => e in s ? u(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, a = (s, e) => {
4
+ var H = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
+ var d = (s, e, t) => e in s ? P(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, h = (s, e) => {
6
6
  for (var t in e || (e = {}))
7
- S.call(e, t) && p(s, t, e[t]);
7
+ H.call(e, t) && d(s, t, e[t]);
8
8
  if (m)
9
9
  for (var t of m(e))
10
- w.call(e, t) && p(s, t, e[t]);
10
+ b.call(e, t) && d(s, t, e[t]);
11
11
  return s;
12
- }, c = (s, e) => v(s, P(e));
13
- var i = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
14
- import { Subscribe as H } from "@realsee/five";
15
- import { PointSelectorHelper as b } from "./PointSelectorHelper.js";
16
- import { isTouchDevice as y } from "../isTouchDevice.js";
17
- import F from "hammerjs";
18
- import { getIntersectionFromEvent as d } from "../getIntersectionFromEvent.js";
19
- import { Vector3 as U, Object3D as E, Face3 as M, Vector2 as I, Raycaster as O } from "three";
20
- import { getIntersectFromRelativePosition as V } from "./getIntersect.js";
12
+ }, c = (s, e) => S(s, w(e));
13
+ var i = (s, e, t) => (d(s, typeof e != "symbol" ? e + "" : e, t), t);
14
+ import { Subscribe as y } from "@realsee/five";
15
+ import { PointSelectorHelper as F } from "./PointSelectorHelper.js";
16
+ import { isTouchDevice as E } from "../isTouchDevice.js";
17
+ import U from "hammerjs";
18
+ import { getIntersectionFromEvent as f } from "../getIntersectionFromEvent.js";
19
+ import { Vector3 as M, Object3D as I, Face3 as O, Vector2 as V, Raycaster as C } from "three";
20
+ import { getIntersectFromRelativePosition as k } from "./getIntersect.js";
21
21
  const l = () => !1;
22
- class W {
22
+ class N {
23
23
  constructor(e, t) {
24
- i(this, "hook", new H());
24
+ i(this, "hook", new y());
25
25
  /**
26
26
  * @description: 不在 five canvas 上时为 true
27
27
  */
@@ -60,7 +60,7 @@ class W {
60
60
  this.pointSelectorHelper.hide(), this.outOfFive = !0, this.hook.emit("intersectionUpdate", null);
61
61
  });
62
62
  i(this, "onTap", (e) => {
63
- const [t] = d(this.five, e);
63
+ const [t] = f(this.five, e);
64
64
  t != null && t.face && this.select(t);
65
65
  });
66
66
  /**
@@ -70,14 +70,14 @@ class W {
70
70
  i(this, "onPan", (e) => {
71
71
  if (!this.pressDown)
72
72
  return;
73
- const [t] = d(this.five, e);
73
+ const [t] = f(this.five, e);
74
74
  t != null && t.face && this.intersectionOnModelUpdate(t);
75
75
  });
76
76
  /**
77
77
  * @description: 长按屏幕后,更新长按点的位置
78
78
  */
79
79
  i(this, "onPress", (e) => {
80
- const [t] = d(this.five, e);
80
+ const [t] = f(this.five, e);
81
81
  t != null && t.face && (this.pressDown = !0, this.intersectionOnModelUpdate(t));
82
82
  });
83
83
  /**
@@ -93,17 +93,17 @@ class W {
93
93
  const t = this.five.getElement();
94
94
  if (!t)
95
95
  return;
96
- const { clientX: o, clientY: r } = e, n = {
97
- x: o / t.clientWidth,
98
- y: 1 - r / t.clientHeight
96
+ const { top: o, left: r, width: n, height: a } = t.getBoundingClientRect(), { clientX: p, clientY: u } = e, v = {
97
+ x: (p - r) / n,
98
+ y: 1 - (u - o) / a
99
99
  };
100
- this.updateByNdcPosition(n);
100
+ this.updateByNdcPosition(v);
101
101
  });
102
102
  /**
103
103
  * @description: 根据鼠标位置更新helper位置
104
104
  */
105
105
  i(this, "updateByNdcPosition", (e) => {
106
- const t = V(this.five, e), o = (() => t ? c(a({}, t), { isVirtual: !1 }) : c(a({}, C(this.five, e)), { isVirtual: !0 }))();
106
+ const t = k(this.five, e), o = (() => t ? c(h({}, t), { isVirtual: !1 }) : c(h({}, G(this.five, e)), { isVirtual: !0 }))();
107
107
  this.updatePointSelectorHelperIntersect(o);
108
108
  });
109
109
  /**
@@ -111,7 +111,7 @@ class W {
111
111
  */
112
112
  i(this, "updatePointSelectorHelperIntersect", (e) => {
113
113
  var r;
114
- const t = a({}, e);
114
+ const t = h({}, e);
115
115
  let o = !1;
116
116
  if (((r = this.adherePoints) == null ? void 0 : r.length) > 0 && typeof this.adherePointsRadius == "number") {
117
117
  for (const n of this.adherePoints)
@@ -132,16 +132,16 @@ class W {
132
132
  i(this, "emitIntersectionUpdate", (e) => {
133
133
  this.hook.emit("intersectionUpdate", e);
134
134
  });
135
- var n, h;
135
+ var n, a;
136
136
  this.five = e;
137
137
  const o = (n = t == null ? void 0 : t.mode) != null ? n : "auto";
138
- o === "auto" ? this.mode = y ? "fixed" : "cursor" : this.mode = o;
138
+ o === "auto" ? this.mode = E ? "fixed" : "cursor" : this.mode = o;
139
139
  const r = {
140
140
  autoFixPCPosition: this.mode === "cursor",
141
141
  initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
142
142
  };
143
- this.pointSelectorHelper = new b(e, c(a({}, t == null ? void 0 : t.pointSelectorHelperParams), {
144
- magnifierParams: a(a({}, r), (h = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : h.magnifierParams)
143
+ this.pointSelectorHelper = new F(e, c(h({}, t == null ? void 0 : t.pointSelectorHelperParams), {
144
+ magnifierParams: h(h({}, r), (a = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : a.magnifierParams)
145
145
  })), this.pointSelectorHelper.hide();
146
146
  }
147
147
  get position() {
@@ -154,7 +154,7 @@ class W {
154
154
  const e = this.five.getElement();
155
155
  if (!e)
156
156
  throw new Error("five element not found");
157
- this.hammer || (this.hammer = new F(e)), this.mode === "cursor" ? (this.five.on("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", l), this.five.on("wantsChangeMode", l), this.five.on("wantsTapGesture", l), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1;
157
+ this.hammer || (this.hammer = new U(e)), this.mode === "cursor" ? (this.five.on("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", l), this.five.on("wantsChangeMode", l), this.five.on("wantsTapGesture", l), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1;
158
158
  }
159
159
  disable() {
160
160
  if (!this.enabled)
@@ -170,19 +170,19 @@ class W {
170
170
  e ? this.adherePoints = Array.isArray(e) ? e : [e] : this.adherePoints = null, typeof t == "number" && (this.adherePointsRadius = t);
171
171
  }
172
172
  }
173
- function k(s, e) {
174
- const { x: t, y: o } = e, r = t * 2 - 1, n = o * 2 - 1, h = new I().fromArray([r, n]), f = new O();
175
- return f.setFromCamera(h, s.camera), f;
173
+ function x(s, e) {
174
+ const { x: t, y: o } = e, r = t * 2 - 1, n = o * 2 - 1, a = new V().fromArray([r, n]), p = new C();
175
+ return p.setFromCamera(a, s.camera), p;
176
176
  }
177
- function C(s, e) {
178
- const t = k(s, e), o = 3, r = new U().addVectors(t.ray.origin, t.ray.direction.clone().normalize().multiplyScalar(o)), n = t.ray.direction.clone().negate();
177
+ function G(s, e) {
178
+ const t = x(s, e), o = 3, r = new M().addVectors(t.ray.origin, t.ray.direction.clone().normalize().multiplyScalar(o)), n = t.ray.direction.clone().negate();
179
179
  return {
180
180
  distance: o,
181
181
  point: r,
182
- object: new E(),
183
- face: new M(0, 0, 0, n)
182
+ object: new I(),
183
+ face: new O(0, 0, 0, n)
184
184
  };
185
185
  }
186
186
  export {
187
- W as PointSelector
187
+ N as PointSelector
188
188
  };
@@ -3,10 +3,11 @@ import { Subscribe } from '@realsee/five';
3
3
  import { Magnifier, PointHelper, PointDomHelper } from '.';
4
4
  import type { Intersection } from '../../typings/typings';
5
5
  interface Options {
6
- magnifier: Magnifier | null;
7
- magnifierParams: ConstructorParameters<typeof Magnifier>[1];
8
- pointHelper: PointHelper | null;
9
- pointDomHelper: PointDomHelper | null;
6
+ magnifier?: Magnifier | null;
7
+ magnifierParams?: ConstructorParameters<typeof Magnifier>[1];
8
+ pointHelper?: PointHelper | null;
9
+ pointDomHelper?: PointDomHelper | null;
10
+ container?: Element;
10
11
  }
11
12
  type EventMap = {
12
13
  intersectionUpdate: (intersection: PointIntersection) => void;
@@ -27,7 +28,7 @@ export declare class PointSelectorHelper {
27
28
  private pointDomHelper;
28
29
  private state;
29
30
  private group;
30
- constructor(five: Five, options?: Partial<Options>);
31
+ constructor(five: Five, options?: Options);
31
32
  show: () => void;
32
33
  hide: () => void;
33
34
  enable(): void;
@@ -3,8 +3,8 @@ var l = (r, i, e) => i in r ? a(r, i, { enumerable: !0, configurable: !0, writab
3
3
  var t = (r, i, e) => (l(r, typeof i != "symbol" ? i + "" : i, e), e);
4
4
  import * as h from "three";
5
5
  import { Subscribe as p } from "@realsee/five";
6
- import { Magnifier as o } from "./Magnifier.js";
7
- import { PointHelper as d } from "./PointHelper.js";
6
+ import { Magnifier as d } from "./Magnifier.js";
7
+ import { PointHelper as o } from "./PointHelper.js";
8
8
  import { PointDomHelper as f } from "./PointDomHelper.js";
9
9
  class v {
10
10
  constructor(i, e) {
@@ -30,8 +30,8 @@ class v {
30
30
  });
31
31
  t(this, "abortUpdateMagnifier", () => {
32
32
  });
33
- var s;
34
- this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new o(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 }), this.pointHelper = (e == null ? void 0 : e.pointHelper) !== void 0 ? e.pointHelper : new d(), this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) !== void 0 ? e.pointDomHelper : new f(i), this.group.name = "five-point-selector", this.five.scene.add(this.group), this.magnifier.appendTo(document.body);
33
+ var s, n;
34
+ this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new d(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 }), this.pointHelper = (e == null ? void 0 : e.pointHelper) !== void 0 ? e.pointHelper : new o(), this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) !== void 0 ? e.pointDomHelper : new f(i), this.group.name = "five-point-selector", this.five.scene.add(this.group), this.magnifier.appendTo((n = e.container) != null ? n : document.body);
35
35
  }
36
36
  enable() {
37
37
  var i, e;
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": "3.0.0-13",
10
+ "version": "3.0.0-15",
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,9 +0,0 @@
1
- /**
2
- * @description: 一些函数,来适配 Five@5.x 和 Five@6.x 的差异
3
- */
4
- import type { Five } from '@realsee/five';
5
- export declare function adaptPanoId(five: Five, func: (params?: {
6
- panoIndex: number;
7
- panoId: string;
8
- derivedId: number;
9
- }, ...args: any[]) => any): (panoIdOrPanoIndex: string | number, ...args: any[]) => void;
@@ -1,9 +0,0 @@
1
- /**
2
- * @description: 一些函数,来适配 Five@5.x 和 Five@6.x 的差异
3
- */
4
- import type { Five } from '@realsee/five';
5
- export declare function adaptPanoId(five: Five, func: (params?: {
6
- panoIndex: number;
7
- panoId: string;
8
- derivedId: number;
9
- }, ...args: any[]) => any): (panoIdOrPanoIndex: string | number, ...args: any[]) => void;
@@ -1,16 +0,0 @@
1
- function k(t, p) {
2
- return function(n, ...s) {
3
- var e, a;
4
- if (typeof n == "number") {
5
- const o = n, d = t.work.observers[n], c = (e = d == null ? void 0 : d.panoId) != null ? e : `${t.work.workCode}[${o}]`, i = d == null ? void 0 : d.derivedId;
6
- p({ panoIndex: o, panoId: c, derivedId: i }, ...s);
7
- } else if (typeof n == "string") {
8
- const o = n, d = t.work.observers.find((f) => f.panoId === o), c = (a = d == null ? void 0 : d.index) != null ? a : d == null ? void 0 : d.panoIndex, i = d == null ? void 0 : d.derivedId;
9
- p({ panoIndex: c, panoId: o, derivedId: i }, ...s);
10
- } else
11
- console.error(`adaptPano error: panoIdOrPanoIndex is ${n}`);
12
- };
13
- }
14
- export {
15
- k as adaptPanoId
16
- };