@realsee/dnalogel 3.0.0-10 → 3.0.0-12

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 (348) hide show
  1. package/dist/index.cjs.js +23 -23
  2. package/dist/index.js +76 -47
  3. package/dist/index.umd.js +24 -24
  4. package/dist/shared-utils/five/FiveDomEvents.d.ts +22 -9
  5. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
  6. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +31 -31
  7. package/docs/classes/CSS3DRender.html +30 -30
  8. package/docs/classes/CruisePluginController.html +25 -25
  9. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  10. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
  11. package/docs/classes/Magnifier.html +19 -19
  12. package/docs/classes/ModelRoomLabelController.html +10 -10
  13. package/docs/classes/Object3DHelperController.html +24 -24
  14. package/docs/classes/PaintBrush.html +14 -14
  15. package/docs/classes/PanoMeasurePluginLine.html +26 -26
  16. package/docs/classes/PanoMeasurePluginModel.html +26 -26
  17. package/docs/classes/PanoMeasurePluginPoint.html +10 -10
  18. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  19. package/docs/classes/PanoTagPluginController.html +44 -44
  20. package/docs/classes/Util.BetterTween.html +8 -8
  21. package/docs/classes/Util.Interval.html +11 -11
  22. package/docs/classes/Util.LineSegments.html +7 -7
  23. package/docs/classes/Util.Magnifier.html +19 -19
  24. package/docs/classes/Util.Object3D.html +7 -7
  25. package/docs/classes/Util.PointDomHelper.html +10 -10
  26. package/docs/classes/Util.PointHelper.html +10 -10
  27. package/docs/classes/Util.PointSelectorHelper.html +15 -15
  28. package/docs/classes/Util.Rectangle.html +12 -12
  29. package/docs/enums/CameraMovementEffect.html +6 -6
  30. package/docs/enums/ContentType.html +19 -19
  31. package/docs/enums/DIRECTION.html +8 -8
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  33. package/docs/enums/DimensionType.html +6 -6
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  36. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  37. package/docs/enums/PointType.html +6 -6
  38. package/docs/enums/Rotation.html +7 -7
  39. package/docs/functions/AreaMakerPlugin.html +4 -4
  40. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  41. package/docs/functions/CameraMovementPlugin.html +4 -4
  42. package/docs/functions/CruisePlugin.html +4 -4
  43. package/docs/functions/CurrentPanoImagePlugin.html +4 -4
  44. package/docs/functions/GuideLinePlugin.html +4 -4
  45. package/docs/functions/ItemLabelPlugin.html +4 -4
  46. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  47. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  48. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  49. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  50. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  51. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  52. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  53. package/docs/functions/ModelViewPlugin.html +4 -4
  54. package/docs/functions/Object3DHelperPlugin.html +4 -4
  55. package/docs/functions/PanoCompassPlugin.html +4 -4
  56. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  57. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  58. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  59. package/docs/functions/PanoMeasurePlugin.html +4 -4
  60. package/docs/functions/PanoRulerPlugin.html +4 -4
  61. package/docs/functions/PanoRulerProPlugin.html +4 -4
  62. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  63. package/docs/functions/PanoTagPlugin.html +4 -4
  64. package/docs/functions/PanoVideoPlugin.html +4 -4
  65. package/docs/functions/PipelinePlugin.html +4 -4
  66. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  67. package/docs/functions/Util.absoluteUrl.html +4 -4
  68. package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
  69. package/docs/functions/Util.equal.html +4 -4
  70. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  71. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  72. package/docs/functions/Util.getFrameTime.html +4 -4
  73. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  74. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  75. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  76. package/docs/functions/Util.isModelLike.html +4 -4
  77. package/docs/functions/Util.isNil.html +4 -4
  78. package/docs/functions/Util.isPanoramaLike.html +4 -4
  79. package/docs/functions/Util.nextFrame.html +4 -4
  80. package/docs/functions/Util.notNil.html +4 -4
  81. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  82. package/docs/functions/Util.tweenProgress.html +4 -4
  83. package/docs/functions/Util.uuid.html +4 -4
  84. package/docs/functions/pluginFlag.html +4 -4
  85. package/docs/index.html +4 -4
  86. package/docs/interfaces/AddTagConfig.html +5 -5
  87. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -5
  88. package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
  89. package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
  90. package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
  91. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
  92. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
  93. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
  94. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
  95. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
  96. package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
  97. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  98. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  99. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  100. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  101. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  102. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  103. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  104. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  105. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  106. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  107. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
  108. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  109. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
  110. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
  111. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
  112. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
  113. package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
  114. package/docs/interfaces/EventMap.html +14 -14
  115. package/docs/interfaces/FloorplanBounding.html +7 -7
  116. package/docs/interfaces/FloorplanData.html +9 -9
  117. package/docs/interfaces/FloorplanEntrance.html +10 -10
  118. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  119. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  120. package/docs/interfaces/FloorplanFloorData.html +8 -8
  121. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  122. package/docs/interfaces/FloorplanObserver.html +8 -8
  123. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  124. package/docs/interfaces/FloorplanPosition.html +6 -6
  125. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  126. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  127. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  128. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  129. package/docs/interfaces/FloorplanServerData.html +6 -6
  130. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  131. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  132. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  133. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  134. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  135. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  136. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  137. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  138. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  139. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  140. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  141. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  142. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  143. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  144. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  145. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  146. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  147. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  148. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  149. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  150. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  151. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
  152. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  153. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  154. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  155. package/docs/interfaces/HelperOffset.html +7 -7
  156. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  157. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  158. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  159. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  160. package/docs/interfaces/MinMax.html +6 -6
  161. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  162. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  163. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  164. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  165. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  166. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  167. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  168. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  169. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  170. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  171. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  172. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  173. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  174. package/docs/interfaces/Object3DHelperState.html +7 -7
  175. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  176. package/docs/interfaces/PaintBrushAction.html +11 -11
  177. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  178. package/docs/interfaces/PaintBrushState.html +9 -9
  179. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  180. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  181. package/docs/interfaces/PanoMeasureParameterType.html +15 -15
  182. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  183. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  184. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  185. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  186. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  187. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  188. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  189. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  190. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  191. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  192. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  193. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  194. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  195. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  196. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  197. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  198. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  199. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  200. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  201. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  202. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  203. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  204. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  205. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  206. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  207. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  208. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  209. package/docs/interfaces/Point.html +7 -7
  210. package/docs/interfaces/Room.html +8 -8
  211. package/docs/interfaces/RoomInfo.html +6 -6
  212. package/docs/interfaces/RoomLabel.html +13 -13
  213. package/docs/interfaces/RoomRules.html +4 -4
  214. package/docs/interfaces/Rooms.html +4 -4
  215. package/docs/interfaces/Scissor.html +8 -8
  216. package/docs/interfaces/State.html +7 -7
  217. package/docs/interfaces/TagCacheInterface.html +11 -11
  218. package/docs/interfaces/TagConfig.html +13 -13
  219. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  220. package/docs/interfaces/TagIconUrl.html +11 -11
  221. package/docs/interfaces/TagObjectGroup.html +5 -5
  222. package/docs/interfaces/TagStyle.html +5 -5
  223. package/docs/interfaces/Tags.html +8 -8
  224. package/docs/interfaces/TemporaryState.html +5 -5
  225. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  226. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  227. package/docs/interfaces/Util.PointIntersection.html +7 -7
  228. package/docs/modules/AreaMakerPluginType.html +4 -4
  229. package/docs/modules/CruisePluginTypes.html +4 -4
  230. package/docs/modules/CurrentPanoImagePluginType.html +4 -4
  231. package/docs/modules/GuideLineItem.html +4 -4
  232. package/docs/modules/GuideLineModeItem.html +4 -4
  233. package/docs/modules/GuideLinePluginType.html +4 -4
  234. package/docs/modules/PanoVideoPluginType.html +4 -4
  235. package/docs/modules/Util.html +4 -4
  236. package/docs/modules.html +4 -4
  237. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -4
  238. package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
  239. package/docs/types/AreaMakerPluginType.ServerData.html +4 -4
  240. package/docs/types/ArrayPosition.html +4 -4
  241. package/docs/types/AudioAppearance.html +4 -4
  242. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  243. package/docs/types/CSS3DRenderExportType.html +4 -4
  244. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  245. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  246. package/docs/types/ClassFunctionParameters.html +4 -4
  247. package/docs/types/Color.html +4 -4
  248. package/docs/types/ContentTypeConfigKey.html +4 -4
  249. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  250. package/docs/types/ContentTypeMap.html +4 -4
  251. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  252. package/docs/types/Create3DElementReturnType.html +4 -4
  253. package/docs/types/CruisePluginExportType.html +4 -4
  254. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  255. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  256. package/docs/types/CurrentPanoImagePluginExportType.html +4 -4
  257. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
  258. package/docs/types/DeprecatedTagProperty.html +4 -4
  259. package/docs/types/Direction-1.html +4 -4
  260. package/docs/types/Direction4.html +4 -4
  261. package/docs/types/ElementRenderer.html +4 -4
  262. package/docs/types/FloorplanRuleLabels.html +4 -4
  263. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  264. package/docs/types/GuideLinePluginExportType.html +4 -4
  265. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  266. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  267. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  268. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  269. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  270. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  271. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  272. package/docs/types/HelperEventMap.html +4 -4
  273. package/docs/types/LoadTagConfig.html +4 -4
  274. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  275. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  276. package/docs/types/MediaData.html +4 -4
  277. package/docs/types/MediaStore.html +4 -4
  278. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  279. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  280. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  281. package/docs/types/ModelId.html +4 -4
  282. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  283. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  284. package/docs/types/MoveArgs.html +4 -4
  285. package/docs/types/MoveOpts.html +4 -4
  286. package/docs/types/Object3DHelperEventMap.html +4 -4
  287. package/docs/types/ObjectFit.html +4 -4
  288. package/docs/types/PaintBrushEventMap.html +4 -4
  289. package/docs/types/PanoCompassPluginData.html +4 -4
  290. package/docs/types/PanoCompassPluginExportType.html +4 -4
  291. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  292. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  293. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  294. package/docs/types/PanoIndex.html +4 -4
  295. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  296. package/docs/types/PanoMeasureReturnType.html +4 -4
  297. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  298. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  299. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  300. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  301. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  302. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  303. package/docs/types/PipelinePluginParameterType.html +4 -4
  304. package/docs/types/PipelinePluginReturnType.html +4 -4
  305. package/docs/types/PlaneTag.html +4 -4
  306. package/docs/types/Point2DTag.html +4 -4
  307. package/docs/types/Point3DTag.html +4 -4
  308. package/docs/types/PointTag.html +4 -4
  309. package/docs/types/PointTagInstance.html +4 -4
  310. package/docs/types/Position.html +4 -4
  311. package/docs/types/RotateArgs.html +4 -4
  312. package/docs/types/RotateOpts.html +4 -4
  313. package/docs/types/RuleLabelsKey.html +4 -4
  314. package/docs/types/RuleLabelsValue.html +4 -4
  315. package/docs/types/StickType.html +4 -4
  316. package/docs/types/Tag.html +4 -4
  317. package/docs/types/Tag2D.html +4 -4
  318. package/docs/types/Tag3D.html +4 -4
  319. package/docs/types/TagConfigByKey.html +4 -4
  320. package/docs/types/TagContentType.html +4 -4
  321. package/docs/types/TagDimensionType.html +4 -4
  322. package/docs/types/TagElement.html +4 -4
  323. package/docs/types/TagEvents.html +4 -4
  324. package/docs/types/TagGLTFObject.html +4 -4
  325. package/docs/types/TagHooks.html +4 -4
  326. package/docs/types/TagId.html +4 -4
  327. package/docs/types/TagInstance.html +4 -4
  328. package/docs/types/TagPointType.html +4 -4
  329. package/docs/types/TagRendererMap.html +4 -4
  330. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  331. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  332. package/docs/types/WorkCode.html +4 -4
  333. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  334. package/docs/variables/PLUGIN.html +4 -4
  335. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  336. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  337. package/docs/variables/defaultGlobalConfig.html +4 -4
  338. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  339. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  340. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  341. package/libs/PanoTagPlugin/controller/TagComputer.js +16 -14
  342. package/libs/PanoTagPlugin/controller/TagRender.js +48 -48
  343. package/libs/PanoTagPlugin/controller/index.js +33 -34
  344. package/libs/base/BasePlugin.js +1 -1
  345. package/libs/shared-utils/five/FiveDomEvents.d.ts +22 -9
  346. package/libs/shared-utils/five/FiveDomEvents.js +93 -65
  347. package/libs/shared-utils/logger.js +1 -1
  348. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
- var $ = Object.defineProperty, E = Object.defineProperties;
1
+ var E = Object.defineProperty, $ = Object.defineProperties;
2
2
  var L = Object.getOwnPropertyDescriptors;
3
3
  var k = Object.getOwnPropertySymbols;
4
4
  var _ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
- var M = (p, e, i) => e in p ? $(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i, y = (p, e) => {
5
+ var M = (p, e, i) => e in p ? E(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i, y = (p, e) => {
6
6
  for (var i in e || (e = {}))
7
7
  _.call(e, i) && M(p, i, e[i]);
8
8
  if (k)
9
9
  for (var i of k(e))
10
10
  z.call(e, i) && M(p, i, e[i]);
11
11
  return p;
12
- }, D = (p, e) => E(p, L(e));
12
+ }, D = (p, e) => $(p, L(e));
13
13
  import * as j from "three";
14
14
  import { is3DTag as O, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
15
15
  import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
16
- import { checkRange as g } from "../utils/checkRange.js";
16
+ import { checkRange as h } from "../utils/checkRange.js";
17
17
  import { isPanoramaLike as b, isModelLike as H } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
@@ -114,7 +114,7 @@ class Ge extends q {
114
114
  }
115
115
  if (b(n) && s.visibleDistance !== void 0 && (o.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
116
116
  const a = this.getDistance(e);
117
- if (g(a, s.visibleDistance) === !1)
117
+ if (h(a, s.visibleDistance) === !1)
118
118
  return {
119
119
  value: !1,
120
120
  checkedList: o,
@@ -124,7 +124,7 @@ class Ge extends q {
124
124
  if (b(n) && s.angleRange && O(e)) {
125
125
  o.push("angleRange");
126
126
  const a = this.getAngle(e);
127
- if (g(a, s.angleRange) === !1)
127
+ if (h(a, s.angleRange) === !1)
128
128
  return { value: !1, checkedList: o, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${s.angleRange}` };
129
129
  }
130
130
  if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
@@ -167,7 +167,7 @@ class Ge extends q {
167
167
  return !1;
168
168
  if (n.keep === "unfolded")
169
169
  return !0;
170
- if (n.unfoldDistance && g(this.getDistance(e), n.unfoldDistance) === !1)
170
+ if (n.unfoldDistance && h(this.getDistance(e), n.unfoldDistance) === !1)
171
171
  return !1;
172
172
  })();
173
173
  t.unfolded = d;
@@ -193,7 +193,7 @@ class Ge extends q {
193
193
  return;
194
194
  if (t.autoUnfold.strategy === "ScreenPostion") {
195
195
  const d = this.getTagProject(e);
196
- if (d && g(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
196
+ if (d && h(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
197
197
  return !1;
198
198
  }
199
199
  if (t.autoUnfold.strategy === "MinimumDistance") {
@@ -208,7 +208,7 @@ class Ge extends q {
208
208
  return !(typeof f == "function" || f.keep || f.autoUnfold === !1 || ((u = f.autoUnfold) == null ? void 0 : u.enable) === !1 || ((a = f.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
209
209
  }).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
210
210
  const u = f.autoUnfold.distance;
211
- return !(u && g(r, u) === !1);
211
+ return !(u && h(r, u) === !1);
212
212
  }).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
213
213
  if (c === -1 || c <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
214
214
  return !1;
@@ -218,7 +218,9 @@ class Ge extends q {
218
218
  })() : void 0;
219
219
  }
220
220
  setTagZIndex(e) {
221
- console.log("🐶 ==> setTagZIndex:");
221
+ return e.forEach((i) => {
222
+ i.zIndex = this.calculateTagZIndex(i);
223
+ });
222
224
  }
223
225
  calculateTagZIndex(e) {
224
226
  const i = this.getDistance(e);
@@ -281,15 +283,15 @@ class Ge extends q {
281
283
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
282
284
  const d = X(
283
285
  (() => {
284
- var h;
285
- const m = (h = l.checkPoints) != null ? h : "center";
286
+ var g;
287
+ const m = (g = l.checkPoints) != null ? g : "center";
286
288
  return m === "center" ? I(e) : m === "corner" ? Z(e) : Array.isArray(m) ? m : [];
287
289
  })()
288
290
  );
289
291
  let o = 0, c = 0;
290
292
  for (const m of d) {
291
- const h = new j.Vector3().subVectors(m, n).normalize();
292
- T.set(n, h);
293
+ const g = new j.Vector3().subVectors(m, n).normalize();
294
+ T.set(n, g);
293
295
  const F = n.distanceTo(m), [P] = this.five.model.intersectRaycaster(T), x = (() => {
294
296
  if (!R(e))
295
297
  return;
@@ -1,16 +1,16 @@
1
- var A = Object.defineProperty;
1
+ var V = Object.defineProperty;
2
2
  var j = Object.getOwnPropertySymbols;
3
- var V = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
- var y = (c, d, t) => d in c ? A(c, d, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[d] = t, w = (c, d) => {
5
- for (var t in d || (d = {}))
6
- V.call(d, t) && y(c, t, d[t]);
3
+ var A = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
+ var y = (d, p, t) => p in d ? V(d, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[p] = t, w = (d, p) => {
5
+ for (var t in p || (p = {}))
6
+ A.call(p, t) && y(d, t, p[t]);
7
7
  if (j)
8
- for (var t of j(d))
9
- x.call(d, t) && y(c, t, d[t]);
10
- return c;
8
+ for (var t of j(p))
9
+ x.call(p, t) && y(d, t, p[t]);
10
+ return d;
11
11
  };
12
- var b = (c, d, t) => (y(c, typeof d != "symbol" ? d + "" : d, t), t);
13
- var M = (c, d, t) => new Promise((e, o) => {
12
+ var P = (d, p, t) => (y(d, typeof p != "symbol" ? p + "" : p, t), t);
13
+ var M = (d, p, t) => new Promise((e, o) => {
14
14
  var i = (r) => {
15
15
  try {
16
16
  a(t.next(r));
@@ -24,7 +24,7 @@ var M = (c, d, t) => new Promise((e, o) => {
24
24
  o(n);
25
25
  }
26
26
  }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, s);
27
- a((t = t.apply(c, d)).next());
27
+ a((t = t.apply(d, p)).next());
28
28
  });
29
29
  import { TagComputer as O } from "./TagComputer.js";
30
30
  import { Group as R, Quaternion as I, Vector3 as D, Matrix4 as g } from "three";
@@ -160,34 +160,34 @@ const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
160
160
  class hi extends O {
161
161
  constructor(t) {
162
162
  super(t);
163
- b(this, "group", new R());
164
- b(this, "renderMap", /* @__PURE__ */ new Map());
165
- b(this, "imagePlaneGroup", new R());
166
- b(this, "gltfObjectGroup", new R());
163
+ P(this, "group", new R());
164
+ P(this, "renderMap", /* @__PURE__ */ new Map());
165
+ P(this, "imagePlaneGroup", new R());
166
+ P(this, "gltfObjectGroup", new R());
167
167
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
168
- b(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
168
+ P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
169
169
  /** 临时状态 */
170
- b(this, "temporaryState", { visible: !0 });
170
+ P(this, "temporaryState", { visible: !0 });
171
171
  /** 点标签 */
172
- b(this, "TagContainerSvelte");
172
+ P(this, "TagContainerSvelte");
173
173
  /** 加载外部模型 */
174
- b(this, "loadModel", (t) => M(this, null, function* () {
174
+ P(this, "loadModel", (t) => M(this, null, function* () {
175
175
  var a;
176
176
  const e = t.data.modelUrl;
177
177
  if (!e)
178
178
  return;
179
179
  t.loading = !0;
180
180
  const o = W(e).then((r) => {
181
- var m, h, f, p, P;
181
+ var m, c;
182
182
  const n = Object.assign(r.scene, {
183
183
  customID: t.id,
184
184
  isTagModel: !0,
185
185
  removeEventListener: t.config.clickable === !1 ? () => {
186
- } : this.addObjectClickHandler(t, r.scene, (u) => {
187
- this.hooks.emit("click", { target: "TagModel", tag: t, event: u });
186
+ } : this.addObjectClickHandler(t, r.scene, (h) => {
187
+ this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
188
188
  })
189
189
  });
190
- return n.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (f = (h = (m = this.config) == null ? void 0 : m.globalConfig) == null ? void 0 : h.modelConfig) != null && f.autoLookAtEnabled && ((P = (p = t.config) == null ? void 0 : p.modelConfig) != null && P.autoLookAtEnabled) && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
190
+ return n.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (c = (m = t.config) == null ? void 0 : m.modelConfig) != null && c.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
191
191
  });
192
192
  t.model = { promise: o };
193
193
  const i = yield o;
@@ -238,30 +238,30 @@ class hi extends O {
238
238
  var o, i;
239
239
  return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
240
240
  }).forEach((e) => {
241
- var m, h, f, p, P;
241
+ var m, c, h, u, b;
242
242
  const o = e.data.mediaData[0];
243
243
  if (!o)
244
244
  return;
245
245
  const { url: i } = o;
246
246
  if (!i)
247
247
  return;
248
- e.mediaPlane && !((h = (m = e.state) == null ? void 0 : m.visible) == null || h) && e.mediaPlane instanceof k && e.mediaPlane.pause();
248
+ e.mediaPlane && !((c = (m = e.state) == null ? void 0 : m.visible) == null || c) && e.mediaPlane instanceof k && e.mediaPlane.pause();
249
249
  const s = e.position.map(C), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), l = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
250
- if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (f = e.mediaPlane) == null || f.dispose(), (p = e.mediaPlane) == null || p.removeFromParent(), e.mediaPlane = void 0), n || l) {
251
- const u = new k(i, s, {
250
+ if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (h = e.mediaPlane) == null || h.dispose(), (u = e.mediaPlane) == null || u.removeFromParent(), e.mediaPlane = void 0), n || l) {
251
+ const f = new k(i, s, {
252
252
  videoCoverSrc: o.videoCoverUrl,
253
253
  playButton: e.data.playIcon,
254
- paused: !((P = e.data.autoplayConfig) != null && P.autoplayVideo),
254
+ paused: !((b = e.data.autoplayConfig) != null && b.autoplayVideo),
255
255
  objectFit: e.data.objectFit,
256
256
  videoTextureMap: B,
257
257
  ImageTextureMap: N,
258
258
  domEvents: this.domEvents
259
259
  });
260
- u.onVideoReady = (T) => {
261
- T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: u.videoInstance }));
260
+ f.onVideoReady = (T) => {
261
+ T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: f.videoInstance }));
262
262
  };
263
263
  const v = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
264
- u.initialRenderHooks(v), e.mediaPlane = u, this.imagePlaneGroup.add(e.mediaPlane);
264
+ f.initialRenderHooks(v), e.mediaPlane = f, this.imagePlaneGroup.add(e.mediaPlane);
265
265
  }
266
266
  });
267
267
  }
@@ -278,8 +278,8 @@ class hi extends O {
278
278
  if (!o)
279
279
  return;
280
280
  const i = e.position.map(C), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
281
- (a || n) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (l = e.mediaPlane) == null || l.dispose(), (m = e.mediaPlane) == null || m.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new E(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (h) => {
282
- this.hooks.emit("click", { tag: e, target: "TagContent", event: h.origDomEvent });
281
+ (a || n) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (l = e.mediaPlane) == null || l.dispose(), (m = e.mediaPlane) == null || m.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new E(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (c) => {
282
+ this.hooks.emit("click", { tag: e, target: "TagContent", event: c.origDomEvent });
283
283
  }), this.imagePlaneGroup.add(e.mediaPlane));
284
284
  });
285
285
  }
@@ -310,14 +310,14 @@ class hi extends O {
310
310
  const n = this.getTagConfig(e), l = w({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
311
311
  if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
312
312
  l.mode = "behind", l.container = document.createElement("div");
313
- const f = "black";
314
- l.container.style.backgroundColor = f, l.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
315
- var p;
313
+ const h = "black";
314
+ l.container.style.backgroundColor = h, l.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
315
+ var u;
316
316
  if (m.css3DObject.opacityMesh && n.clickable !== !1) {
317
- const P = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (u) => {
318
- this.hooks.emit("click", { event: u, target: "TagContent", tag: e });
317
+ const b = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
318
+ this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
319
319
  });
320
- (p = this.store.css3DRenderDisposer.get(e.id)) == null || p.push(P);
320
+ (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(b);
321
321
  }
322
322
  });
323
323
  }
@@ -325,7 +325,7 @@ class hi extends O {
325
325
  if (!m)
326
326
  return;
327
327
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
328
- const h = new F({
328
+ const c = new F({
329
329
  target: m.container,
330
330
  props: {
331
331
  tag: e,
@@ -337,13 +337,13 @@ class hi extends O {
337
337
  }
338
338
  });
339
339
  e.tag3DContentSvelte = {
340
- svelteApp: h,
340
+ svelteApp: c,
341
341
  domContainer: m,
342
342
  css3DInstance: m,
343
343
  initialNormal: r,
344
344
  currentNormal: r,
345
345
  dispose: () => {
346
- h.$destroy(), m.dispose();
346
+ c.$destroy(), m.dispose();
347
347
  }
348
348
  }, S(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
349
349
  }
@@ -376,18 +376,18 @@ class hi extends O {
376
376
  * @param model 模型
377
377
  */
378
378
  updateTagCss3DObjectMatrix(t, e) {
379
- var P, u, v;
380
- const o = (u = (P = t.config.tag3DConfig) == null ? void 0 : P.ratio) != null ? u : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
379
+ var b, f, v;
380
+ const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
381
381
  if (!i)
382
382
  return;
383
383
  const s = S(t) ? t.data.mediaPosition : t.position;
384
384
  if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
385
385
  return;
386
386
  e.updateWorldMatrix(!1, !1);
387
- const a = e.matrixWorld, r = new D().fromArray(s[0]), n = new D().fromArray(s[2]), l = q(r, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(l), h = new g().makeScale(o, o, o), f = new g().multiply(a).multiply(m).multiply(h);
388
- f.decompose(i.position, i.quaternion, i.scale);
389
- const p = i.opacityMesh;
390
- p && f.decompose(p.position, p.quaternion, p.scale);
387
+ const a = e.matrixWorld, r = new D().fromArray(s[0]), n = new D().fromArray(s[2]), l = q(r, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(l), c = new g().makeScale(o, o, o), h = new g().multiply(a).multiply(m).multiply(c);
388
+ h.decompose(i.position, i.quaternion, i.scale);
389
+ const u = i.opacityMesh;
390
+ u && h.decompose(u.position, u.quaternion, u.scale);
391
391
  }
392
392
  /** 添加模型标签 */
393
393
  addMediaModelTag(t) {
@@ -2,15 +2,15 @@ var w = Object.defineProperty, E = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
4
  var I = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var b = (d, a, e) => a in d ? w(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
5
+ var m = (d, a, e) => a in d ? w(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- I.call(a, e) && b(d, e, a[e]);
7
+ I.call(a, e) && m(d, e, a[e]);
8
8
  if (C)
9
9
  for (var e of C(a))
10
- B.call(a, e) && b(d, e, a[e]);
10
+ B.call(a, e) && m(d, e, a[e]);
11
11
  return d;
12
- }, T = (d, a) => E(d, U(a));
13
- var l = (d, a, e) => (b(d, typeof a != "symbol" ? a + "" : a, e), e);
12
+ }, u = (d, a) => E(d, U(a));
13
+ var l = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
14
14
  var p = (d, a, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
@@ -27,13 +27,13 @@ var p = (d, a, e) => new Promise((t, i) => {
27
27
  }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
28
  n((e = e.apply(d, a)).next());
29
29
  });
30
- import * as y from "three";
30
+ import * as v from "three";
31
31
  import { Subscribe as F } from "@realsee/five";
32
32
  import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
33
- import { addDebugPoints as k } from "../utils/addDebugPoints.js";
33
+ import { addDebugPoints as M } from "../utils/addDebugPoints.js";
34
34
  import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
35
- import { isMediaModelTag as M, isModelTag as R } from "../utils/tag/tagCheck.js";
36
- import { debounce as _ } from "../utils/debounce.js";
35
+ import { isMediaModelTag as R, isModelTag as _ } from "../utils/tag/tagCheck.js";
36
+ import { debounce as k } from "../utils/debounce.js";
37
37
  import { throttle as O } from "../utils/throttle.js";
38
38
  import { resizeObserver as D } from "../utils/resizeObserver.js";
39
39
  import V from "../utils/tag/format.js";
@@ -200,7 +200,7 @@ class Di extends N {
200
200
  l(this, "updateVisible", () => {
201
201
  const e = this.five.getCurrentState().mode;
202
202
  this.tags.forEach((t) => {
203
- M(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
203
+ R(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
204
204
  }), this.setVisible(), this.updateRenderAllTags();
205
205
  });
206
206
  l(this, "handleFiveWantsMoveToPano", (e) => {
@@ -240,24 +240,23 @@ class Di extends N {
240
240
  this.updatePointTagPosition();
241
241
  });
242
242
  l(this, "handleFivePanoArrived", () => p(this, null, function* () {
243
- var e, t, i;
244
- this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((s) => {
245
- s.temporaryState = T(c({}, s.temporaryState), { visible: !0 });
246
- }), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(R).filter((s) => {
247
- var o, n;
248
- return (n = (o = s.config) == null ? void 0 : o.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
249
- }).forEach((s) => {
250
- var u;
251
- const o = new y.Mesh(new y.BoxGeometry(), new y.MeshBasicMaterial()), n = (u = s.model) == null ? void 0 : u.object;
252
- if (!n)
243
+ this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
244
+ e.temporaryState = u(c({}, e.temporaryState), { visible: !0 });
245
+ }), this.tags.filter(_).filter((e) => {
246
+ var t, i;
247
+ return (i = (t = e.config) == null ? void 0 : t.modelConfig) == null ? void 0 : i.autoLookAtEnabled;
248
+ }).forEach((e) => {
249
+ var h;
250
+ const t = new v.Mesh(new v.BoxGeometry(), new v.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
251
+ if (!i)
253
252
  return;
254
- o.position.copy(n.position), o.quaternion.copy(n.quaternion);
255
- const r = this.five.camera.position;
256
- o.lookAt(r.clone().setY(o.position.y));
257
- const h = n.quaternion.clone(), g = o.quaternion.clone(), m = $();
258
- m.onUpdate(({ progress: v }) => {
259
- n.quaternion.copy(h.clone().slerp(g, v));
260
- }), m.play();
253
+ t.position.copy(i.position), t.quaternion.copy(i.quaternion);
254
+ const s = this.five.camera.position;
255
+ t.lookAt(s.clone().setY(t.position.y));
256
+ const o = i.quaternion.clone(), n = t.quaternion.clone(), r = $();
257
+ r.onUpdate(({ progress: g }) => {
258
+ i.quaternion.copy(o.clone().slerp(n, g));
259
+ }), r.play();
261
260
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
262
261
  }));
263
262
  /** 楼层切换时,需要更新标签可见性 */
@@ -287,7 +286,7 @@ class Di extends N {
287
286
  const i = yield this.addTag(e.tagList, t);
288
287
  if (this.debug)
289
288
  try {
290
- k(this.five, this.tags);
289
+ M(this.five, this.tags);
291
290
  } catch (n) {
292
291
  console.error(n);
293
292
  }
@@ -300,12 +299,12 @@ class Di extends N {
300
299
  addTag(e, t) {
301
300
  return p(this, null, function* () {
302
301
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
303
- var m, u, v;
302
+ var b, T, y;
304
303
  const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data)), h = o.config;
305
- return o.config = n, T(c({}, o), {
306
- enabled: (m = o.enabled) != null ? m : !0,
307
- id: (u = o.id) != null ? u : z(),
308
- data: (v = n.initialData) != null && v.important ? f(o.data, r, n.initialData) : f(o.data, n.initialData, r),
304
+ return o.config = n, u(c({}, o), {
305
+ enabled: (b = o.enabled) != null ? b : !0,
306
+ id: (T = o.id) != null ? T : z(),
307
+ data: (y = n.initialData) != null && y.important ? f(o.data, r, n.initialData) : f(o.data, n.initialData, r),
309
308
  state: c({
310
309
  visible: void 0,
311
310
  unfolded: !this.can("fold", o)
@@ -511,7 +510,7 @@ class Di extends N {
511
510
  }, 500),
512
511
  e
513
512
  ), { observe: n, unobserve: r } = D(
514
- _(() => t(), 400),
513
+ k(() => t(), 400),
515
514
  e
516
515
  );
517
516
  return s(), n(), () => {
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "3.0.0-10");
17
+ i(this, "VERSION", "3.0.0-12");
18
18
  i(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -8,12 +8,23 @@
8
8
  */
9
9
  import type { Five } from '@realsee/five';
10
10
  import type * as THREE from 'three';
11
- type EventName = 'click';
11
+ interface EventMap {
12
+ /**
13
+ * @description 点击事件
14
+ * @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
15
+ */
16
+ click: (event: CallbackEvent) => PreventFiveEvent | void;
17
+ /**
18
+ * @description 鼠标移入事件
19
+ */
20
+ hover: (event: CallbackEvent) => void;
21
+ /**
22
+ * @description 鼠标移出事件
23
+ */
24
+ unHover: (event: CallbackEvent) => void;
25
+ }
26
+ type EventName = keyof EventMap;
12
27
  type PreventFiveEvent = boolean;
13
- /**
14
- * @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
15
- */
16
- type Callback = (event: CallbackEvent) => PreventFiveEvent | void;
17
28
  interface EventHandlerConfig {
18
29
  /**
19
30
  * @default true
@@ -29,8 +40,9 @@ interface CallbackEvent {
29
40
  }
30
41
  type Object3DWithEvent = THREE.Object3D & {
31
42
  _domEvent?: {
32
- [key in `${EventName}Handler`]?: Array<[Function, EventHandlerConfig]>;
43
+ [key in `${EventName}Handler`]?: Array<[EventMap[EventName], EventHandlerConfig]>;
33
44
  };
45
+ _hovered?: boolean;
34
46
  };
35
47
  export declare class FiveDomEvents {
36
48
  private five;
@@ -41,7 +53,7 @@ export declare class FiveDomEvents {
41
53
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
42
54
  * @todo: added 和 removed 还是不太智能
43
55
  */
44
- addAutoBindEventListener(...params: Parameters<InstanceType<typeof FiveDomEvents>['addEventListener']>): void;
56
+ addAutoBindEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): () => void;
45
57
  /**
46
58
  * @description: add event listener
47
59
  * @param params.object: object
@@ -49,10 +61,11 @@ export declare class FiveDomEvents {
49
61
  * @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
50
62
  * @return {void}
51
63
  */
52
- addEventListener(object: Object3DWithEvent, event: EventName, callback: Callback, config?: EventHandlerConfig): void;
64
+ addEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): void;
53
65
  removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e: CallbackEvent) => any, ...args: any[]): void;
54
66
  dispose(): void;
55
- private handleWantsTapGesture;
67
+ private handleWantsGesture;
68
+ private onDomEvent;
56
69
  private objectIsBound;
57
70
  private notify;
58
71
  }