@realsee/dnalogel 2.26.2 → 2.27.0-dev.1

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 (412) hide show
  1. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -13
  2. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -1
  3. package/dist/PanoTagPlugin/controller/TagCache.d.ts +6 -3
  4. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +21 -15
  5. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +8 -7
  6. package/dist/PanoTagPlugin/controller/index.d.ts +3 -3
  7. package/dist/PanoTagPlugin/typings/controller.d.ts +1 -1
  8. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
  9. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +33 -6
  10. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
  11. package/dist/PanoTagPlugin/utils/index.d.ts +1 -1
  12. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  13. package/dist/index.cjs.js +44 -45
  14. package/dist/index.js +2976 -2947
  15. package/dist/index.umd.js +36 -37
  16. package/dist/shared-utils/five/FiveDomEvents.d.ts +6 -0
  17. package/dist/shared-utils/positionToVector3.d.ts +16 -0
  18. package/dist/shared-utils/safeObj.d.ts +1 -1
  19. package/dist/shared-utils/util.d.ts +1 -0
  20. package/docs/assets/search.js +1 -1
  21. package/docs/classes/CSS3DRender.html +32 -30
  22. package/docs/classes/CruisePluginController.html +5 -3
  23. package/docs/classes/GuideLineItem.GuideLineItem.html +5 -3
  24. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -3
  25. package/docs/classes/Magnifier.html +5 -3
  26. package/docs/classes/ModelRoomLabelController.html +5 -3
  27. package/docs/classes/Object3DHelperController.html +5 -3
  28. package/docs/classes/PaintBrush.html +5 -3
  29. package/docs/classes/PanoMeasurePluginLine.html +5 -3
  30. package/docs/classes/PanoMeasurePluginModel.html +5 -3
  31. package/docs/classes/PanoMeasurePluginPoint.html +5 -3
  32. package/docs/classes/PanoMeasurePluginPolyline.html +5 -3
  33. package/docs/classes/PanoTagPluginController.html +57 -48
  34. package/docs/classes/Util.BetterTween.html +5 -3
  35. package/docs/classes/Util.Interval.html +5 -3
  36. package/docs/classes/Util.Magnifier.html +5 -3
  37. package/docs/classes/Util.PointDomHelper.html +5 -3
  38. package/docs/classes/Util.PointHelper.html +5 -3
  39. package/docs/classes/Util.PointSelectorHelper.html +5 -3
  40. package/docs/classes/Util.Rectangle.html +5 -3
  41. package/docs/enums/CameraMovementEffect.html +5 -3
  42. package/docs/enums/ContentType.html +5 -3
  43. package/docs/enums/DIRECTION.html +5 -3
  44. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -3
  45. package/docs/enums/DimensionType.html +5 -3
  46. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -3
  47. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -3
  48. package/docs/enums/PaintBrushTypeEnum.html +5 -3
  49. package/docs/enums/PointType.html +5 -3
  50. package/docs/enums/Rotation.html +5 -3
  51. package/docs/functions/CSS3DRenderPlugin.html +5 -3
  52. package/docs/functions/CameraMovementPlugin.html +5 -3
  53. package/docs/functions/CruisePlugin.html +5 -3
  54. package/docs/functions/GuideLinePlugin.html +5 -3
  55. package/docs/functions/ItemLabelPlugin.html +5 -3
  56. package/docs/functions/MapviewFloorplanPlugin.html +5 -3
  57. package/docs/functions/ModelChassisCompassPlugin.html +5 -3
  58. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -3
  59. package/docs/functions/ModelFloorplanPlugin.html +5 -3
  60. package/docs/functions/ModelItemLabelPlugin.html +5 -3
  61. package/docs/functions/ModelRoomLabelPlugin.html +5 -3
  62. package/docs/functions/ModelTVVideoPlugin.html +5 -3
  63. package/docs/functions/ModelViewPlugin.html +5 -3
  64. package/docs/functions/Object3DHelperPlugin.html +5 -3
  65. package/docs/functions/PanoCompassPlugin.html +5 -3
  66. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -3
  67. package/docs/functions/PanoDoorLabelPlugin.html +5 -3
  68. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -3
  69. package/docs/functions/PanoMeasurePlugin.html +5 -3
  70. package/docs/functions/PanoRulerPlugin.html +5 -3
  71. package/docs/functions/PanoRulerProPlugin.html +5 -3
  72. package/docs/functions/PanoSpatialTagPlugin.html +5 -3
  73. package/docs/functions/PanoTagPlugin.html +5 -3
  74. package/docs/functions/PanoVideoPlugin.html +5 -3
  75. package/docs/functions/PipelinePlugin.html +5 -3
  76. package/docs/functions/TopviewFloorplanPlugin.html +5 -3
  77. package/docs/functions/Util.absoluteUrl.html +5 -3
  78. package/docs/functions/Util.getCoordsFromClient.html +5 -3
  79. package/docs/functions/Util.getCoordsFromElement.html +5 -3
  80. package/docs/functions/Util.getFrameTime.html +5 -3
  81. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -3
  82. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -3
  83. package/docs/functions/Util.isAbsoluteURL.html +5 -3
  84. package/docs/functions/Util.isModelLike.html +5 -3
  85. package/docs/functions/Util.isNil.html +5 -3
  86. package/docs/functions/Util.isPanoramaLike.html +5 -3
  87. package/docs/functions/Util.nextFrame.html +5 -3
  88. package/docs/functions/Util.notNil.html +5 -3
  89. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -3
  90. package/docs/functions/Util.tweenProgress.html +5 -3
  91. package/docs/functions/Util.uuid.html +5 -3
  92. package/docs/functions/pluginFlag.html +6 -4
  93. package/docs/index.html +6 -4
  94. package/docs/interfaces/AddTagConfig.html +5 -3
  95. package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -3
  96. package/docs/interfaces/CSS3DRenderPluginState.html +5 -3
  97. package/docs/interfaces/CameraMovementPluginExportType.html +5 -3
  98. package/docs/interfaces/CruisePluginTypes.Config.html +5 -3
  99. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +5 -3
  100. package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -3
  101. package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -3
  102. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -3
  103. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -3
  104. package/docs/interfaces/CruisePluginTypes.PluginData.html +5 -3
  105. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -3
  106. package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -3
  107. package/docs/interfaces/EventMap.html +5 -3
  108. package/docs/interfaces/FloorplanBounding.html +5 -3
  109. package/docs/interfaces/FloorplanData.html +5 -3
  110. package/docs/interfaces/FloorplanEntrance.html +5 -3
  111. package/docs/interfaces/FloorplanExtraObject.html +5 -3
  112. package/docs/interfaces/FloorplanExtraObject3D.html +5 -3
  113. package/docs/interfaces/FloorplanFloorData.html +5 -3
  114. package/docs/interfaces/FloorplanImagePosition.html +5 -3
  115. package/docs/interfaces/FloorplanObserver.html +5 -3
  116. package/docs/interfaces/FloorplanOutlineItem.html +5 -3
  117. package/docs/interfaces/FloorplanPosition.html +5 -3
  118. package/docs/interfaces/FloorplanRoomItem.html +5 -3
  119. package/docs/interfaces/FloorplanRoomLabelItem.html +5 -3
  120. package/docs/interfaces/FloorplanServerBounding.html +5 -3
  121. package/docs/interfaces/FloorplanServerComputedData.html +5 -3
  122. package/docs/interfaces/FloorplanServerData.html +5 -3
  123. package/docs/interfaces/FloorplanServerDoorItem.html +5 -3
  124. package/docs/interfaces/FloorplanServerDoorPosition.html +5 -3
  125. package/docs/interfaces/FloorplanServerEntrance.html +5 -3
  126. package/docs/interfaces/FloorplanServerFloorData.html +5 -3
  127. package/docs/interfaces/FloorplanServerImagePosition.html +5 -3
  128. package/docs/interfaces/FloorplanServerObserver.html +5 -3
  129. package/docs/interfaces/FloorplanServerOutlineItem.html +5 -3
  130. package/docs/interfaces/FloorplanServerPosition.html +5 -3
  131. package/docs/interfaces/FloorplanServerRoomItem.html +5 -3
  132. package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -3
  133. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -3
  134. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +5 -3
  135. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -3
  136. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -3
  137. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -3
  138. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +5 -3
  139. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -3
  140. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +5 -3
  141. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +5 -3
  142. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +5 -3
  143. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -3
  144. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -3
  145. package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -3
  146. package/docs/interfaces/GuideLinePluginType.Route.html +5 -3
  147. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -3
  148. package/docs/interfaces/HelperOffset.html +5 -3
  149. package/docs/interfaces/ImagePlaneGroup.html +5 -3
  150. package/docs/interfaces/ItemLabelPluginData.html +5 -3
  151. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -3
  152. package/docs/interfaces/ItemLabelPluginParametersType.html +5 -3
  153. package/docs/interfaces/MinMax.html +5 -3
  154. package/docs/interfaces/ModelChassisCompassPluginData.html +5 -3
  155. package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -3
  156. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -3
  157. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -3
  158. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -3
  159. package/docs/interfaces/ModelItemLabelPluginData.html +5 -3
  160. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -3
  161. package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -3
  162. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -3
  163. package/docs/interfaces/ModelTVVideoPluginData.html +5 -3
  164. package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -3
  165. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -3
  166. package/docs/interfaces/ModelViewPluginExportType.html +5 -3
  167. package/docs/interfaces/Object3DHelperState.html +5 -3
  168. package/docs/interfaces/ObjectHelperControllers.html +5 -3
  169. package/docs/interfaces/PaintBrushAction.html +5 -3
  170. package/docs/interfaces/PaintBrushConfigs.html +5 -3
  171. package/docs/interfaces/PaintBrushState.html +5 -3
  172. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -3
  173. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -3
  174. package/docs/interfaces/PanoMeasureParameterType.html +5 -3
  175. package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -3
  176. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -3
  177. package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -3
  178. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -3
  179. package/docs/interfaces/PanoRulerPluginExportType.html +5 -3
  180. package/docs/interfaces/PanoRulerPluginOptions.html +5 -3
  181. package/docs/interfaces/PanoRulerPluginParameterType.html +5 -3
  182. package/docs/interfaces/PanoRulerProPluginExportType.html +5 -3
  183. package/docs/interfaces/PanoRulerProPluginOptions.html +5 -3
  184. package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -3
  185. package/docs/interfaces/PanoRulerProPluginState.html +5 -3
  186. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -3
  187. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -3
  188. package/docs/interfaces/PanoSpatialTagPluginData.html +5 -3
  189. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -3
  190. package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -3
  191. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -3
  192. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -3
  193. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -3
  194. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -3
  195. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -3
  196. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -3
  197. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -3
  198. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -3
  199. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -3
  200. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -3
  201. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -3
  202. package/docs/interfaces/Point.html +5 -3
  203. package/docs/interfaces/Room.html +5 -3
  204. package/docs/interfaces/RoomInfo.html +5 -3
  205. package/docs/interfaces/RoomLabel.html +5 -3
  206. package/docs/interfaces/RoomRules.html +5 -3
  207. package/docs/interfaces/Rooms.html +5 -3
  208. package/docs/interfaces/Scissor.html +5 -3
  209. package/docs/interfaces/State.html +5 -3
  210. package/docs/interfaces/TagCacheInterface.html +7 -5
  211. package/docs/interfaces/TagConfig.html +27 -15
  212. package/docs/interfaces/TagGLTFObjectGroup.html +5 -3
  213. package/docs/interfaces/TagIconUrl.html +5 -3
  214. package/docs/interfaces/TagObjectGroup.html +5 -3
  215. package/docs/interfaces/TagStyle.html +5 -3
  216. package/docs/interfaces/Tags.html +16 -14
  217. package/docs/interfaces/TemporaryState.html +5 -3
  218. package/docs/interfaces/Util.MagnifierParameter.html +5 -3
  219. package/docs/interfaces/Util.MouseGroupParameter.html +5 -3
  220. package/docs/interfaces/Util.PointIntersection.html +5 -3
  221. package/docs/modules/CruisePluginTypes.html +5 -3
  222. package/docs/modules/GuideLineItem.html +5 -3
  223. package/docs/modules/GuideLineModeItem.html +5 -3
  224. package/docs/modules/GuideLinePluginType.html +5 -3
  225. package/docs/modules/PanoVideoPluginType.html +5 -3
  226. package/docs/modules/Util.html +5 -3
  227. package/docs/modules.html +8 -4
  228. package/docs/types/ArrayPosition.html +5 -3
  229. package/docs/types/AudioAppearance.html +5 -3
  230. package/docs/types/AudioTagTypeConfigKey.html +5 -3
  231. package/docs/types/CSS3DRenderExportType.html +5 -3
  232. package/docs/types/CSS3DRenderPluginExportType.html +5 -3
  233. package/docs/types/CSS3DRenderPluginParameterType.html +5 -3
  234. package/docs/types/ClassFunctionParameters.html +5 -3
  235. package/docs/types/Color.html +5 -3
  236. package/docs/types/ContentTypeConfigKey.html +5 -3
  237. package/docs/types/ContentTypeConfigKeySplit.html +6 -4
  238. package/docs/types/ContentTypeMap.html +5 -3
  239. package/docs/types/Create3DDomContainerReturnType.html +5 -3
  240. package/docs/types/Create3DElementReturnType.html +5 -3
  241. package/docs/types/CruisePluginExportType.html +5 -3
  242. package/docs/types/CruisePluginTypes.CruiseData.html +5 -3
  243. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -3
  244. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -3
  245. package/docs/types/DeprecatedTagProperty.html +5 -3
  246. package/docs/types/Direction-1.html +5 -3
  247. package/docs/types/Direction4.html +5 -3
  248. package/docs/types/ElementRenderer.html +5 -3
  249. package/docs/types/FloorplanRuleLabels.html +5 -3
  250. package/docs/types/FloorplanServerRuleLabels.html +5 -3
  251. package/docs/types/GuideLinePluginExportType.html +5 -3
  252. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -3
  253. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -3
  254. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -3
  255. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -3
  256. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -3
  257. package/docs/types/GuideLinePluginType.PathItem.html +5 -3
  258. package/docs/types/GuideLinePluginType.PluginData.html +5 -3
  259. package/docs/types/HelperEventMap.html +5 -3
  260. package/docs/types/LoadTagConfig.html +5 -3
  261. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -3
  262. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -3
  263. package/docs/types/MediaData.html +5 -3
  264. package/docs/types/MediaStore.html +5 -3
  265. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -3
  266. package/docs/types/ModelFloorplanPluginParameterType.html +5 -3
  267. package/docs/types/ModelFloorplanPluginReturnType.html +5 -3
  268. package/docs/types/ModelRoomLabelPluginParameters.html +5 -3
  269. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -3
  270. package/docs/types/MoveArgs.html +5 -3
  271. package/docs/types/MoveOpts.html +5 -3
  272. package/docs/types/Object3DHelperEventMap.html +5 -3
  273. package/docs/types/ObjectFit.html +5 -3
  274. package/docs/types/PaintBrushEventMap.html +5 -3
  275. package/docs/types/PanoCompassPluginData.html +5 -3
  276. package/docs/types/PanoCompassPluginExportType.html +5 -3
  277. package/docs/types/PanoCompassPluginParameterType.html +5 -3
  278. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -3
  279. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -3
  280. package/docs/types/PanoIndex.html +5 -3
  281. package/docs/types/PanoMeasurePluginEvent.html +5 -3
  282. package/docs/types/PanoMeasureReturnType.html +5 -3
  283. package/docs/types/PanoSpatialTagPluginId.html +5 -3
  284. package/docs/types/PanoTagPluginExportInterface.html +5 -3
  285. package/docs/types/PanoTagPluginParamsInterface.html +5 -3
  286. package/docs/types/PanoVideoPluginParameterType.html +5 -3
  287. package/docs/types/PanoVideoPluginReturnType.html +5 -3
  288. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -3
  289. package/docs/types/PipelinePluginParameterType.html +5 -3
  290. package/docs/types/PipelinePluginReturnType.html +5 -3
  291. package/docs/types/PlaneTag.html +6 -4
  292. package/docs/types/Point2DTag.html +6 -4
  293. package/docs/types/Point3DTag.html +6 -4
  294. package/docs/types/PointTag.html +6 -4
  295. package/docs/types/PointTagInstance.html +5 -3
  296. package/docs/types/Position.html +5 -3
  297. package/docs/types/RotateArgs.html +5 -3
  298. package/docs/types/RotateOpts.html +5 -3
  299. package/docs/types/RuleLabelsKey.html +5 -3
  300. package/docs/types/RuleLabelsValue.html +5 -3
  301. package/docs/types/StickType.html +5 -3
  302. package/docs/types/Tag.html +6 -4
  303. package/docs/types/Tag2D.html +5 -3
  304. package/docs/types/Tag3D.html +5 -3
  305. package/docs/types/TagConfigByKey.html +365 -0
  306. package/docs/types/TagContentType.html +5 -3
  307. package/docs/types/TagDimensionType.html +5 -3
  308. package/docs/types/TagElement.html +5 -3
  309. package/docs/types/TagEvents.html +5 -3
  310. package/docs/types/TagGLTFObject.html +5 -3
  311. package/docs/types/TagHooks.html +5 -3
  312. package/docs/types/TagId.html +5 -3
  313. package/docs/types/TagInstance.html +5 -3
  314. package/docs/types/TagPointType.html +5 -3
  315. package/docs/types/TagRendererMap.html +5 -3
  316. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -3
  317. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -3
  318. package/docs/types/WorkCode.html +5 -3
  319. package/docs/variables/FLOOR_TYPE_MAP.html +5 -3
  320. package/docs/variables/PLUGIN.html +5 -3
  321. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -3
  322. package/docs/variables/ROOM_TYPE_MAP.html +5 -3
  323. package/docs/variables/defaultGlobalConfig.html +360 -0
  324. package/docs/variables/itemLabelPluginServerParams.html +5 -3
  325. package/docs/variables/modelItemLabelPluginServerParams.html +5 -3
  326. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -3
  327. package/libs/CSS3DRenderPlugin/Controller.js +1 -1
  328. package/libs/CSS3DRenderPlugin/index.js +1 -1
  329. package/libs/CSS3DRenderPlugin/utils/index.js +1 -1
  330. package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -13
  331. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +4 -4
  332. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -1
  333. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +5 -5
  334. package/libs/CruisePlugin/Controller.js +6 -3
  335. package/libs/CruisePlugin/index.js +9 -6
  336. package/libs/GuideLinePlugin/Controller.js +8 -5
  337. package/libs/GuideLinePlugin/GuideLineItem.js +6 -3
  338. package/libs/GuideLinePlugin/GuideLineModeItem.js +6 -3
  339. package/libs/GuideLinePlugin/index.js +11 -8
  340. package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
  341. package/libs/ModelTVVideoPlugin/index.js +1 -1
  342. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  343. package/libs/Object3DHelperPlugin/index.js +1 -1
  344. package/libs/PanoCompassPlugin/Controller.js +1 -1
  345. package/libs/PanoCompassPlugin/index.js +1 -1
  346. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
  347. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  348. package/libs/PanoDoorLabelPlugin/index.js +1 -1
  349. package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
  350. package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
  351. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  352. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  353. package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
  354. package/libs/PanoMeasurePlugin/Model/area.js +1 -1
  355. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
  356. package/libs/PanoMeasurePlugin/index.js +1 -1
  357. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
  358. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  359. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  360. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
  361. package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
  362. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
  363. package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
  364. package/libs/PanoTagPlugin/controller/TagCache.d.ts +6 -3
  365. package/libs/PanoTagPlugin/controller/TagCache.js +17 -21
  366. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +21 -15
  367. package/libs/PanoTagPlugin/controller/TagComputer.js +182 -183
  368. package/libs/PanoTagPlugin/controller/TagRender.js +69 -66
  369. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +8 -7
  370. package/libs/PanoTagPlugin/controller/TagUtil.js +162 -147
  371. package/libs/PanoTagPlugin/controller/index.d.ts +3 -3
  372. package/libs/PanoTagPlugin/controller/index.js +57 -53
  373. package/libs/PanoTagPlugin/index.js +14 -10
  374. package/libs/PanoTagPlugin/typings/controller.d.ts +1 -1
  375. package/libs/PanoTagPlugin/typings/index.js +6 -4
  376. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
  377. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +33 -6
  378. package/libs/PanoTagPlugin/typings/tag/TagConfig.js +13 -1
  379. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
  380. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
  381. package/libs/PanoTagPlugin/utils/index.d.ts +1 -1
  382. package/libs/PanoTagPlugin/utils/index.js +31 -34
  383. package/libs/PanoTagPlugin/utils/planeNormal.js +1 -1
  384. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  385. package/libs/PanoTagPlugin/utils/tagPosition.js +17 -18
  386. package/libs/PanoVideoPlugin/Controller.js +1 -1
  387. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  388. package/libs/PanoVideoPlugin/index.js +1 -1
  389. package/libs/PipelinePlugin/Controller.js +1 -1
  390. package/libs/PipelinePlugin/index.js +1 -1
  391. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +1 -1
  392. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +1 -1
  393. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -1
  394. package/libs/base/BasePlugin.js +1 -1
  395. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  396. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  397. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  398. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  399. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  400. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  401. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  402. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  403. package/libs/index.js +111 -108
  404. package/libs/shared-utils/five/FiveDomEvents.d.ts +6 -0
  405. package/libs/shared-utils/five/FiveDomEvents.js +53 -48
  406. package/libs/shared-utils/logger.js +1 -1
  407. package/libs/shared-utils/positionToVector3.d.ts +16 -0
  408. package/libs/shared-utils/positionToVector3.js +12 -0
  409. package/libs/shared-utils/safeObj.d.ts +1 -1
  410. package/libs/shared-utils/util.d.ts +1 -0
  411. package/libs/shared-utils/util.js +6 -0
  412. package/package.json +1 -1
@@ -1,18 +1,19 @@
1
- var y = Object.defineProperty;
2
- var D = (c, u, e) => u in c ? y(c, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[u] = e;
3
- var l = (c, u, e) => (D(c, typeof u != "symbol" ? u + "" : u, e), e);
4
- import { objectAssignDeepExports as T } from "../../vendor/object-assign-deep/objectAssignDeep.js";
5
- import * as P from "three";
6
- import { DefaultConfig as C } from "../tag.config.js";
7
- import { anyPositionToVector3 as w, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
8
- import { planeNormal as p } from "../utils/planeNormal.js";
9
- import { tagPosition as M, getTagPosition as E } from "../utils/tagPosition.js";
10
- import { normalPositionToPositions as k } from "../utils/normalPositionToPositions.js";
11
- import { TagCache as b } from "./TagCache.js";
12
- import { writable as I } from "../../vendor/svelte/src/runtime/store/index.js";
13
- import { isIOSWX as A } from "../../shared-utils/device.js";
14
- import { isMediaPlaneTag as S, isMediaModelTag as g, isPlaneTag as V, isPoint3DTag as F } from "../utils/tag/tagCheck.js";
15
- import { VideoPlane as L } from "../utils/model/mediaPlane.js";
1
+ var P = Object.defineProperty;
2
+ var w = (h, c, e) => c in h ? P(h, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[c] = e;
3
+ var u = (h, c, e) => (w(h, typeof c != "symbol" ? c + "" : c, e), e);
4
+ import { defaultGlobalConfig as M } from "../typings/tag/TagConfig.js";
5
+ import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
6
+ import * as b from "three";
7
+ import { DefaultConfig as E } from "../tag.config.js";
8
+ import { anyPositionToVector3 as k, arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
9
+ import { planeNormal as v } from "../utils/planeNormal.js";
10
+ import { getTagCenterPosition as D } from "../utils/tagPosition.js";
11
+ import { normalPositionToPositions as I } from "../utils/normalPositionToPositions.js";
12
+ import { TagCache as S } from "./TagCache.js";
13
+ import { writable as A } from "../../vendor/svelte/src/runtime/store/index.js";
14
+ import { isIOSWX as V } from "../../shared-utils/device.js";
15
+ import { isMediaPlaneTag as F, isMediaModelTag as T, isPlaneTag as L, isPoint3DTag as O } from "../utils/tag/tagCheck.js";
16
+ import { VideoPlane as W } from "../utils/model/mediaPlane.js";
16
17
  import { FiveDomEvents as R } from "../../shared-utils/five/FiveDomEvents.js";
17
18
  import "../../shared-utils/three/centerPoint.js";
18
19
  import "../../base/BasePlugin.js";
@@ -41,36 +42,36 @@ import "../Assets/Icon.js";
41
42
  import "../../shared-utils/three/getPositionsByObjectFit.js";
42
43
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
43
44
  import "../../shared-utils/threex/domevents/index.js";
44
- class Pe extends b {
45
+ class Me extends S {
45
46
  constructor(e) {
46
47
  super(e);
47
- l(this, "tags", []);
48
- l(this, "config", C);
49
- l(this, "mediaStore", I({
48
+ u(this, "tags", []);
49
+ u(this, "config", E);
50
+ u(this, "mediaStore", A({
50
51
  currentMediaElement: null
51
52
  }));
52
53
  /** css3DRenderPlugin */
53
- l(this, "css3DRenderPlugin");
54
- l(this, "store", {
54
+ u(this, "css3DRenderPlugin");
55
+ u(this, "store", {
55
56
  disposers: [],
56
57
  disposed: !1,
57
58
  resizeObserverDisposerAdding: !1,
58
59
  css3DRenderDisposer: /* @__PURE__ */ new Map()
59
60
  });
60
- l(this, "domEvents", new R(this.five));
61
- l(this, "mouseInfo");
62
- l(this, "preventWhenMouseDown", () => {
61
+ u(this, "domEvents", new R(this.five));
62
+ u(this, "mouseInfo");
63
+ u(this, "preventWhenMouseDown", () => {
63
64
  var e;
64
65
  if ((e = this.mouseInfo) != null && e.isDown)
65
- return !1;
66
+ return console.debug("preventWhenMouseDown 2"), !1;
66
67
  });
67
- this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
68
- this.tags.forEach((t) => {
69
- var o;
70
- if (t.mediaPlane instanceof L && i !== t.mediaPlane.videoInstance) {
71
- if (!((o = t.mediaPlane.videoInstance) != null && o.src) || i === t.mediaPlane.videoInstance)
68
+ this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: t }) => {
69
+ this.tags.forEach((o) => {
70
+ var i;
71
+ if (o.mediaPlane instanceof W && t !== o.mediaPlane.videoInstance) {
72
+ if (!((i = o.mediaPlane.videoInstance) != null && i.src) || t === o.mediaPlane.videoInstance)
72
73
  return;
73
- t.mediaPlane.pause();
74
+ o.mediaPlane.pause();
74
75
  }
75
76
  });
76
77
  }), this.store.disposers.push(() => {
@@ -81,12 +82,12 @@ class Pe extends b {
81
82
  return this.five.currentMode === "Panorama";
82
83
  }
83
84
  getTagById(e) {
84
- const i = this.tags.find((t) => t.id === e);
85
- if (!i) {
86
- console.warn(`error: can not find tag id ${e} by getTagById()`);
85
+ const t = this.tags.find((o) => o.id === e);
86
+ if (!t) {
87
+ console.warn(`getTagById Error: can't find tag id: ${e}`);
87
88
  return;
88
89
  }
89
- return i;
90
+ return t;
90
91
  }
91
92
  /** 暂停当前标签内进行的所有多媒体 */
92
93
  pauseCurrentMedia() {
@@ -94,191 +95,211 @@ class Pe extends b {
94
95
  }
95
96
  /**
96
97
  * @description: 获取merge后的配置
97
- * TODO: 缓存
98
98
  */
99
- getTagConfig(e) {
100
- var o, d;
99
+ getTagConfig(e, t = { useCache: !0 }) {
100
+ var a, d, r;
101
101
  if (!e)
102
- return (o = this.config.globalConfig) != null ? o : {};
103
- const i = {};
104
- this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
105
- const r = a;
106
- if (i[r])
102
+ return (a = this.config.globalConfig) != null ? a : {};
103
+ if (t.useCache && ((d = e.config) != null && d.isMerged))
104
+ return e.config;
105
+ const o = {};
106
+ this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((l) => {
107
+ const n = l;
108
+ if (o[n])
107
109
  return;
108
- const f = r.split("-");
109
- if (f.length === 1) {
110
- const [s] = f;
111
- e.contentType === s && (i[r] = this.config.contentTypeConfig[r]);
110
+ const s = n.split("-");
111
+ if (s.length === 1) {
112
+ const [f] = s;
113
+ e.contentType === f && (o[n] = this.config.contentTypeConfig[n]);
112
114
  }
113
- if (f.length === 2) {
114
- const [s = "Any", n = "Any"] = f;
115
- s === "Mixin" && e.contentType === n && (i[r] = this.config.contentTypeConfig[r]), (e.stickType === s || s === "Any") && (e.contentType === n || n === "Any") && (i[r] = this.config.contentTypeConfig[r]);
115
+ if (s.length === 2) {
116
+ const [f = "Any", m = "Any"] = s;
117
+ f === "Mixin" && e.contentType === m && (o[n] = this.config.contentTypeConfig[n]), (e.stickType === f || f === "Any") && (e.contentType === m || m === "Any") && (o[n] = this.config.contentTypeConfig[n]);
116
118
  }
117
- if (f.length === 3) {
118
- const [s = "Any", n, m] = f;
119
- if (n === "Audio" && e.contentType === "Audio") {
120
- const v = e;
121
- (v.stickType === s || s === "Any") && v.data.appearance === m && (i[r] = this.config.contentTypeConfig[r]);
119
+ if (s.length === 3) {
120
+ const [f = "Any", m, C] = s;
121
+ if (m === "Audio" && e.contentType === "Audio") {
122
+ const y = e;
123
+ (y.stickType === f || f === "Any") && y.data.appearance === C && (o[n] = this.config.contentTypeConfig[n]);
122
124
  }
123
125
  }
124
126
  });
125
- const t = T({}, this.config.globalConfig, ...Object.values(i), e.config);
126
- return typeof t.unfoldedConfig == "object" && (t.unfoldedConfig.disableFold && (t.unfoldedConfig = { keep: "unfolded" }), t.unfoldedConfig.disableUnfold && (t.unfoldedConfig = { keep: "folded" }), t.unfoldedConfig.keep && (t.unfoldedConfig = { keep: t.unfoldedConfig.keep })), typeof t.visibleConfig == "object" && t.visibleConfig.keep && (t.visibleConfig = { keep: t.visibleConfig.keep, visibleFiveMode: (d = t.visibleConfig) == null ? void 0 : d.visibleFiveMode }), t;
127
+ const i = p(
128
+ {},
129
+ M,
130
+ this.config.globalConfig,
131
+ ...Object.values(o),
132
+ e.config
133
+ );
134
+ return typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep, visibleFiveMode: (r = i.visibleConfig) == null ? void 0 : r.visibleFiveMode }), typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), i.isMerged = !0, i;
135
+ }
136
+ /**
137
+ * @description 获取标签当前状态
138
+ */
139
+ getCurrentVisibleState(e) {
140
+ return !(!this.state.enabled || !this.state.visible || !e.enabled || !e.state.visible);
127
141
  }
128
142
  loadVideoFirstFrame() {
129
- A && this.hooks.emit("loadVideoFirstFrame");
143
+ V && this.hooks.emit("loadVideoFirstFrame");
130
144
  }
131
- updateTagConfig(e) {
132
- e != null && e.force && this.clearCache(), this.tags.forEach((i) => {
133
- const t = this.getTagConfig(i);
134
- i.config = t, i.data = T({}, t.initialData, i.data);
145
+ updateTagConfig() {
146
+ this.clearCache(), this.tags.forEach((e) => {
147
+ const t = this.getTagConfig(e, { useCache: !1 });
148
+ e.config = t;
149
+ const o = JSON.parse(JSON.stringify(e.data));
150
+ e.data = t.initialData.important ? p(e.data, o, t.initialData) : p(e.data, t.initialData, o);
135
151
  });
136
152
  }
137
- can(e, i) {
138
- const t = i, o = this.getTagConfig(t);
139
- if (!o || typeof o != "object")
153
+ can(e, t) {
154
+ const o = t, i = this.getTagConfig(o);
155
+ if (!i || typeof i != "object")
140
156
  return !0;
141
157
  if (e === "show" || e === "hide") {
142
- if (!o.visibleConfig || typeof o.visibleConfig != "object")
158
+ if (!i.visibleConfig || typeof i.visibleConfig != "object")
143
159
  return !0;
144
- if (e === "show" && o.visibleConfig.keep === "hidden" || e === "hide" && (o.visibleConfig.keep === "visible" || o.visibleConfig.alwaysShowWhenMovePano))
160
+ if (e === "show" && i.visibleConfig.keep === "hidden" || e === "hide" && (i.visibleConfig.keep === "visible" || i.visibleConfig.alwaysShowWhenMovePano))
145
161
  return !1;
146
162
  }
147
163
  if (e === "fold" || e === "unfold") {
148
- if (!o.unfoldedConfig || typeof o.unfoldedConfig != "object")
164
+ if (!i.unfoldedConfig || typeof i.unfoldedConfig != "object")
149
165
  return !0;
150
- if (e === "fold" && o.unfoldedConfig.keep === "unfolded" || e === "unfold" && o.unfoldedConfig.keep === "folded")
166
+ if (e === "fold" && i.unfoldedConfig.keep === "unfolded" || e === "unfold" && i.unfoldedConfig.keep === "folded")
151
167
  return !1;
152
168
  }
153
169
  return !0;
154
170
  }
155
171
  getRenderType(e) {
156
- const i = (() => {
172
+ const t = (() => {
157
173
  if (e.stickType === "3DPoint")
158
174
  return "Dom";
159
- const t = this.getTagConfig(e);
160
- if (!t || typeof t != "object" || !t.renderType)
175
+ const o = this.getTagConfig(e);
176
+ if (!o || typeof o != "object" || !o.renderType)
161
177
  return;
162
- const o = e.data.mediaData;
163
- if (!(!o || o.length === 0) && t.renderType === "Mesh") {
164
- if (S(e)) {
165
- if (o.length === 1 && (o[0].type === "Image" || o[0].type === "Video"))
178
+ const i = e.data.mediaData;
179
+ if (!(!i || i.length === 0) && o.renderType === "Mesh") {
180
+ if (F(e)) {
181
+ if (i.length === 1 && (i[0].type === "Image" || i[0].type === "Video"))
166
182
  return "Mesh";
167
- } else if (g(e))
168
- return o.length === 1 && o[0].type === "Image" ? "Mesh" : "BehindDom";
183
+ } else if (T(e))
184
+ return i.length === 1 && i[0].type === "Image" ? "Mesh" : "BehindDom";
169
185
  }
170
186
  })();
171
- return i != null ? i : "Dom";
187
+ return t != null ? t : "Dom";
172
188
  }
173
189
  /**
174
190
  * @description: 获取角度
175
191
  */
176
- getAngle(e, i) {
177
- var d, a;
178
- const t = i != null ? i : this.five.getCurrentState().panoIndex;
179
- if (t === void 0)
180
- throw new Error(`getDistance(): fivePanoIndex is ${t}`);
181
- const o = this.getCache({ panoIndex: i, id: e.id });
182
- if (o.angle !== void 0)
183
- return o.angle;
192
+ getAngle(e, t) {
193
+ var a, d;
194
+ const o = t != null ? t : this.five.getCurrentState().panoIndex;
195
+ if (o === void 0)
196
+ throw new Error(`getDistance(): fivePanoIndex is ${o}`);
197
+ const i = this.getCache({ panoIndex: t, id: e.id });
198
+ if (i.angle !== void 0)
199
+ return i.angle;
184
200
  {
185
- const r = (a = (d = this.five.work) == null ? void 0 : d.observers[t]) == null ? void 0 : a.position;
201
+ const r = (d = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : d.position;
186
202
  if (r === void 0)
187
203
  throw new Error(`getAngleRange(): observerPosition is ${r}`);
188
- const f = (() => e.stickType === "3DPoint" ? w(e.normal) : p(e.position))();
189
- if (!f)
204
+ const l = (() => e.stickType === "3DPoint" ? k(e.normal) : v(e.position))();
205
+ if (!l)
190
206
  return;
191
- const s = M(e.position);
192
- if (!s)
207
+ const n = D(e);
208
+ if (!n)
193
209
  return;
194
- const n = new P.Vector3().copy(r).sub(s), m = f.angleTo(n) * 180 / Math.PI;
195
- return o.angle = m, o.angle;
210
+ const s = new b.Vector3().copy(r).sub(n), f = l.angleTo(s) * 180 / Math.PI;
211
+ return i.angle = f, i.angle;
196
212
  }
197
213
  }
198
214
  /**
199
215
  * @description: 获取距离
200
216
  */
201
- getDistance(e, i) {
202
- var d, a;
203
- const t = i != null ? i : this.five.getCurrentState().panoIndex;
204
- if (t === void 0)
205
- throw new Error(`getDistance(): fivePanoIndex is ${t}`);
206
- const o = this.getCache({ panoIndex: i, id: e.id });
207
- if (o.distance !== void 0)
208
- return o.distance;
217
+ getDistance(e, t) {
218
+ var a, d;
219
+ const o = t != null ? t : this.five.getCurrentState().panoIndex;
220
+ if (o === void 0)
221
+ throw new Error(`getDistance(): fivePanoIndex is ${o}`);
222
+ const i = this.getCache({ panoIndex: t, id: e.id });
223
+ if (i.distance !== void 0)
224
+ return i.distance;
209
225
  {
210
- const r = (a = (d = this.five.work) == null ? void 0 : d.observers[t]) == null ? void 0 : a.position;
226
+ const r = (d = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : d.position;
211
227
  if (r === void 0)
212
228
  throw new Error(`getDistance(): observerPosition is ${r}`);
213
- const f = E(e);
214
- if (!f)
229
+ const l = D(e);
230
+ if (!l)
215
231
  return -1;
216
- const s = r.distanceTo(f);
217
- return o.distance = s, s;
232
+ const n = r.distanceTo(l);
233
+ return i.distance = n, n;
218
234
  }
219
235
  }
220
236
  getPositions(e) {
221
- if (V(e))
237
+ if (L(e))
222
238
  return e.position;
223
- if (g(e))
239
+ if (T(e))
224
240
  return e.data.mediaPosition;
225
- if (F(e))
226
- return k(this.five.camera.position, h(e.position), h(e.normal));
241
+ if (O(e))
242
+ return I(this.five.camera.position, g(e.position), g(e.normal));
227
243
  }
228
- addObjectClickHandler(e, i, t) {
229
- if (!i || !this.domEvents)
244
+ addObjectClickHandler(e, t, o) {
245
+ if (!t || !this.domEvents)
230
246
  return () => {
231
247
  };
232
- const o = () => !(!e.state.visible || !this.state.visible || g(e) && !e.mediaVisible), d = (s) => {
233
- if (!o()) {
248
+ const i = () => !(!this.getCurrentVisibleState(e) || T(e) && !e.mediaVisible), a = (n) => {
249
+ if (!i()) {
234
250
  this.mouseInfo = void 0;
235
251
  return;
236
252
  }
237
- const n = s.origDomEvent;
253
+ const s = n.origDomEvent;
238
254
  this.mouseInfo = {
239
- x: n.clientX,
240
- y: n.clientY,
255
+ x: s.clientX,
256
+ y: s.clientY,
241
257
  isDown: !0,
242
258
  mouseDownTimestamp: Date.now()
243
259
  };
244
- }, a = (s) => {
245
- if (!o()) {
260
+ }, d = (n) => {
261
+ if (!i()) {
246
262
  this.mouseInfo = void 0;
247
263
  return;
248
264
  }
249
- const n = s.origDomEvent;
250
- this.mouseInfo && (this.mouseInfo.isDown && this.mouseInfo.x === n.clientX && this.mouseInfo.y === n.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && t(n), this.mouseInfo = void 0);
251
- }, r = (s) => {
252
- if (!o()) {
265
+ if (!this.mouseInfo)
266
+ return;
267
+ const s = n.origDomEvent;
268
+ this.mouseInfo.isDown && this.mouseInfo.x === s.clientX && this.mouseInfo.y === s.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(s), this.mouseInfo = void 0;
269
+ }, r = (n) => {
270
+ if (!i()) {
253
271
  this.mouseInfo = void 0;
254
272
  return;
255
273
  }
256
- const n = s.origDomEvent;
274
+ const s = n.origDomEvent;
257
275
  this.mouseInfo = {
258
- x: Math.floor(n.touches[0].clientX),
259
- y: Math.floor(n.touches[0].clientY),
276
+ x: Math.floor(s.touches[0].clientX),
277
+ y: Math.floor(s.touches[0].clientY),
260
278
  isDown: !0,
261
279
  mouseDownTimestamp: Date.now()
262
280
  };
263
- }, f = (s) => {
264
- if (!o()) {
281
+ }, l = (n) => {
282
+ if (!i()) {
265
283
  this.mouseInfo = void 0;
266
284
  return;
267
285
  }
268
- const n = s.origDomEvent;
269
- this.mouseInfo && (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && t(n), this.mouseInfo = void 0);
286
+ if (!this.mouseInfo)
287
+ return;
288
+ const s = n.origDomEvent;
289
+ this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(s.changedTouches[s.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(s.changedTouches[s.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(s), this.mouseInfo = void 0;
270
290
  };
271
- return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", a, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
272
- this.domEvents && (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", a), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
291
+ return this.domEvents.addEventListener(t, "mousedown", a, !1), this.domEvents.addEventListener(t, "mouseup", d, !1), this.domEvents.addEventListener(t, "touchstart", r, !1), this.domEvents.addEventListener(t, "touchend", l, !1), () => {
292
+ var n, s, f, m;
293
+ this.mouseInfo = void 0, (n = this.domEvents) == null || n.removeEventListener(t, "mousedown", a), (s = this.domEvents) == null || s.removeEventListener(t, "mouseup", d), (f = this.domEvents) == null || f.removeEventListener(t, "touchstart", r), (m = this.domEvents) == null || m.removeEventListener(t, "touchend", l);
273
294
  };
274
295
  }
275
296
  getTagNormal(e) {
276
297
  if (e.normal)
277
- return h(e.normal);
298
+ return g(e.normal);
278
299
  if (e.stickType === "Plane")
279
- return p(e.position);
300
+ return v(e.position);
280
301
  if (e.stickType === "Model")
281
- return p(this.getPositions(e));
302
+ return v(this.getPositions(e));
282
303
  }
283
304
  // TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
284
305
  get filterPointTag() {
@@ -287,9 +308,6 @@ class Pe extends b {
287
308
  get filter2DPointTag() {
288
309
  return this.tags.filter((e) => e.stickType === "2DPoint").filter((e) => e.position);
289
310
  }
290
- get filter3DPointTag() {
291
- return this.tags.filter((e) => e.stickType === "3DPoint").filter((e) => e.position);
292
- }
293
311
  get filterImagePlane() {
294
312
  return this.tags.filter(
295
313
  (e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.getRenderType(e) === "Mesh"
@@ -298,15 +316,12 @@ class Pe extends b {
298
316
  get filterMediaModel() {
299
317
  return this.tags.filter((e) => e.stickType === "Model" && e.contentType === "MediaModel");
300
318
  }
301
- get filterModelTag() {
302
- return this.tags.filter((e) => e.stickType === "Model");
303
- }
304
319
  get filterCSS3DTag() {
305
320
  return this.tags.filter(
306
- (i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
307
- ).filter((i) => {
308
- const t = this.getRenderType(i);
309
- return t === "BehindDom" || t === "Dom";
321
+ (t) => t.stickType === "3DPoint" || t.stickType === "Plane" || t.stickType === "Model" && t.contentType === "MediaModel"
322
+ ).filter((t) => {
323
+ const o = this.getRenderType(t);
324
+ return o === "BehindDom" || o === "Dom";
310
325
  });
311
326
  }
312
327
  /**
@@ -318,5 +333,5 @@ class Pe extends b {
318
333
  }
319
334
  }
320
335
  export {
321
- Pe as TagUtil
336
+ Me as TagUtil
322
337
  };
@@ -1,5 +1,5 @@
1
- import type { Tag, TagId, Tags, TagInstance, State, AddTagConfig, LoadTagConfig, ContentTypeConfigKey, TagConfig } from '../typings';
2
- import type { PickTagContentTypeInContentTypeConfigKey, TagContentType } from '..';
1
+ import type { Tag, TagId, Tags, TagInstance, State, AddTagConfig, LoadTagConfig, ContentTypeConfigKey } from '../typings';
2
+ import type { TagConfigByKey, TagContentType } from '..';
3
3
  import type { ArrayPosition } from '../typings';
4
4
  import { type Five } from '@realsee/five';
5
5
  import { TagRender } from './TagRender';
@@ -38,7 +38,7 @@ declare class PanoTagPluginController extends TagRender {
38
38
  /**
39
39
  * @description: 改变类型配置
40
40
  */
41
- changeContentTypeConfig<T extends ContentTypeConfigKey>(key: ContentTypeConfigKey, contentTypeConfig: PickTagContentTypeInContentTypeConfigKey<T> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<T>> : unknown, merge?: boolean): void;
41
+ changeContentTypeConfig<T extends ContentTypeConfigKey>(key: T, contentTypeConfig: TagConfigByKey<T>, merge?: boolean): void;
42
42
  show(params?: {
43
43
  userAction?: boolean;
44
44
  withAnimation?: boolean;