@realsee/dnalogel 2.26.2 → 2.27.0-dev.0

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 (408) hide show
  1. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -13
  2. package/dist/PanoTagPlugin/controller/TagCache.d.ts +6 -3
  3. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +21 -15
  4. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +7 -2
  5. package/dist/PanoTagPlugin/controller/index.d.ts +3 -3
  6. package/dist/PanoTagPlugin/typings/controller.d.ts +3 -1
  7. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
  8. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +26 -4
  9. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
  10. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  11. package/dist/index.cjs.js +44 -45
  12. package/dist/index.js +2880 -2846
  13. package/dist/index.umd.js +36 -37
  14. package/dist/shared-utils/five/FiveDomEvents.d.ts +6 -0
  15. package/dist/shared-utils/positionToVector3.d.ts +16 -0
  16. package/dist/shared-utils/safeObj.d.ts +1 -1
  17. package/dist/shared-utils/util.d.ts +1 -0
  18. package/docs/assets/search.js +1 -1
  19. package/docs/classes/CSS3DRender.html +5 -3
  20. package/docs/classes/CruisePluginController.html +5 -3
  21. package/docs/classes/GuideLineItem.GuideLineItem.html +5 -3
  22. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -3
  23. package/docs/classes/Magnifier.html +5 -3
  24. package/docs/classes/ModelRoomLabelController.html +5 -3
  25. package/docs/classes/Object3DHelperController.html +5 -3
  26. package/docs/classes/PaintBrush.html +5 -3
  27. package/docs/classes/PanoMeasurePluginLine.html +5 -3
  28. package/docs/classes/PanoMeasurePluginModel.html +5 -3
  29. package/docs/classes/PanoMeasurePluginPoint.html +5 -3
  30. package/docs/classes/PanoMeasurePluginPolyline.html +5 -3
  31. package/docs/classes/PanoTagPluginController.html +57 -48
  32. package/docs/classes/Util.BetterTween.html +5 -3
  33. package/docs/classes/Util.Interval.html +5 -3
  34. package/docs/classes/Util.Magnifier.html +5 -3
  35. package/docs/classes/Util.PointDomHelper.html +5 -3
  36. package/docs/classes/Util.PointHelper.html +5 -3
  37. package/docs/classes/Util.PointSelectorHelper.html +5 -3
  38. package/docs/classes/Util.Rectangle.html +5 -3
  39. package/docs/enums/CameraMovementEffect.html +5 -3
  40. package/docs/enums/ContentType.html +5 -3
  41. package/docs/enums/DIRECTION.html +5 -3
  42. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -3
  43. package/docs/enums/DimensionType.html +5 -3
  44. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -3
  45. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -3
  46. package/docs/enums/PaintBrushTypeEnum.html +5 -3
  47. package/docs/enums/PointType.html +5 -3
  48. package/docs/enums/Rotation.html +5 -3
  49. package/docs/functions/CSS3DRenderPlugin.html +5 -3
  50. package/docs/functions/CameraMovementPlugin.html +5 -3
  51. package/docs/functions/CruisePlugin.html +5 -3
  52. package/docs/functions/GuideLinePlugin.html +5 -3
  53. package/docs/functions/ItemLabelPlugin.html +5 -3
  54. package/docs/functions/MapviewFloorplanPlugin.html +5 -3
  55. package/docs/functions/ModelChassisCompassPlugin.html +5 -3
  56. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -3
  57. package/docs/functions/ModelFloorplanPlugin.html +5 -3
  58. package/docs/functions/ModelItemLabelPlugin.html +5 -3
  59. package/docs/functions/ModelRoomLabelPlugin.html +5 -3
  60. package/docs/functions/ModelTVVideoPlugin.html +5 -3
  61. package/docs/functions/ModelViewPlugin.html +5 -3
  62. package/docs/functions/Object3DHelperPlugin.html +5 -3
  63. package/docs/functions/PanoCompassPlugin.html +5 -3
  64. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -3
  65. package/docs/functions/PanoDoorLabelPlugin.html +5 -3
  66. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -3
  67. package/docs/functions/PanoMeasurePlugin.html +5 -3
  68. package/docs/functions/PanoRulerPlugin.html +5 -3
  69. package/docs/functions/PanoRulerProPlugin.html +5 -3
  70. package/docs/functions/PanoSpatialTagPlugin.html +5 -3
  71. package/docs/functions/PanoTagPlugin.html +5 -3
  72. package/docs/functions/PanoVideoPlugin.html +5 -3
  73. package/docs/functions/PipelinePlugin.html +5 -3
  74. package/docs/functions/TopviewFloorplanPlugin.html +5 -3
  75. package/docs/functions/Util.absoluteUrl.html +5 -3
  76. package/docs/functions/Util.getCoordsFromClient.html +5 -3
  77. package/docs/functions/Util.getCoordsFromElement.html +5 -3
  78. package/docs/functions/Util.getFrameTime.html +5 -3
  79. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -3
  80. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -3
  81. package/docs/functions/Util.isAbsoluteURL.html +5 -3
  82. package/docs/functions/Util.isModelLike.html +5 -3
  83. package/docs/functions/Util.isNil.html +5 -3
  84. package/docs/functions/Util.isPanoramaLike.html +5 -3
  85. package/docs/functions/Util.nextFrame.html +5 -3
  86. package/docs/functions/Util.notNil.html +5 -3
  87. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -3
  88. package/docs/functions/Util.tweenProgress.html +5 -3
  89. package/docs/functions/Util.uuid.html +5 -3
  90. package/docs/functions/pluginFlag.html +6 -4
  91. package/docs/index.html +6 -4
  92. package/docs/interfaces/AddTagConfig.html +7 -5
  93. package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -3
  94. package/docs/interfaces/CSS3DRenderPluginState.html +5 -3
  95. package/docs/interfaces/CameraMovementPluginExportType.html +5 -3
  96. package/docs/interfaces/CruisePluginTypes.Config.html +5 -3
  97. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +5 -3
  98. package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -3
  99. package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -3
  100. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -3
  101. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -3
  102. package/docs/interfaces/CruisePluginTypes.PluginData.html +5 -3
  103. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -3
  104. package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -3
  105. package/docs/interfaces/EventMap.html +14 -12
  106. package/docs/interfaces/FloorplanBounding.html +5 -3
  107. package/docs/interfaces/FloorplanData.html +5 -3
  108. package/docs/interfaces/FloorplanEntrance.html +5 -3
  109. package/docs/interfaces/FloorplanExtraObject.html +5 -3
  110. package/docs/interfaces/FloorplanExtraObject3D.html +5 -3
  111. package/docs/interfaces/FloorplanFloorData.html +5 -3
  112. package/docs/interfaces/FloorplanImagePosition.html +5 -3
  113. package/docs/interfaces/FloorplanObserver.html +5 -3
  114. package/docs/interfaces/FloorplanOutlineItem.html +5 -3
  115. package/docs/interfaces/FloorplanPosition.html +5 -3
  116. package/docs/interfaces/FloorplanRoomItem.html +5 -3
  117. package/docs/interfaces/FloorplanRoomLabelItem.html +5 -3
  118. package/docs/interfaces/FloorplanServerBounding.html +5 -3
  119. package/docs/interfaces/FloorplanServerComputedData.html +5 -3
  120. package/docs/interfaces/FloorplanServerData.html +5 -3
  121. package/docs/interfaces/FloorplanServerDoorItem.html +5 -3
  122. package/docs/interfaces/FloorplanServerDoorPosition.html +5 -3
  123. package/docs/interfaces/FloorplanServerEntrance.html +5 -3
  124. package/docs/interfaces/FloorplanServerFloorData.html +5 -3
  125. package/docs/interfaces/FloorplanServerImagePosition.html +5 -3
  126. package/docs/interfaces/FloorplanServerObserver.html +5 -3
  127. package/docs/interfaces/FloorplanServerOutlineItem.html +5 -3
  128. package/docs/interfaces/FloorplanServerPosition.html +5 -3
  129. package/docs/interfaces/FloorplanServerRoomItem.html +5 -3
  130. package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -3
  131. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -3
  132. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +5 -3
  133. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -3
  134. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -3
  135. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -3
  136. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +5 -3
  137. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -3
  138. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +5 -3
  139. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +5 -3
  140. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +5 -3
  141. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -3
  142. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -3
  143. package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -3
  144. package/docs/interfaces/GuideLinePluginType.Route.html +5 -3
  145. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -3
  146. package/docs/interfaces/HelperOffset.html +5 -3
  147. package/docs/interfaces/ImagePlaneGroup.html +5 -3
  148. package/docs/interfaces/ItemLabelPluginData.html +5 -3
  149. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -3
  150. package/docs/interfaces/ItemLabelPluginParametersType.html +5 -3
  151. package/docs/interfaces/MinMax.html +5 -3
  152. package/docs/interfaces/ModelChassisCompassPluginData.html +5 -3
  153. package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -3
  154. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -3
  155. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -3
  156. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -3
  157. package/docs/interfaces/ModelItemLabelPluginData.html +5 -3
  158. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -3
  159. package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -3
  160. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -3
  161. package/docs/interfaces/ModelTVVideoPluginData.html +5 -3
  162. package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -3
  163. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -3
  164. package/docs/interfaces/ModelViewPluginExportType.html +5 -3
  165. package/docs/interfaces/Object3DHelperState.html +5 -3
  166. package/docs/interfaces/ObjectHelperControllers.html +5 -3
  167. package/docs/interfaces/PaintBrushAction.html +5 -3
  168. package/docs/interfaces/PaintBrushConfigs.html +5 -3
  169. package/docs/interfaces/PaintBrushState.html +5 -3
  170. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -3
  171. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -3
  172. package/docs/interfaces/PanoMeasureParameterType.html +5 -3
  173. package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -3
  174. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -3
  175. package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -3
  176. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -3
  177. package/docs/interfaces/PanoRulerPluginExportType.html +5 -3
  178. package/docs/interfaces/PanoRulerPluginOptions.html +5 -3
  179. package/docs/interfaces/PanoRulerPluginParameterType.html +5 -3
  180. package/docs/interfaces/PanoRulerProPluginExportType.html +5 -3
  181. package/docs/interfaces/PanoRulerProPluginOptions.html +5 -3
  182. package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -3
  183. package/docs/interfaces/PanoRulerProPluginState.html +5 -3
  184. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -3
  185. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -3
  186. package/docs/interfaces/PanoSpatialTagPluginData.html +5 -3
  187. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -3
  188. package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -3
  189. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -3
  190. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -3
  191. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -3
  192. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -3
  193. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -3
  194. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -3
  195. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -3
  196. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -3
  197. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -3
  198. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -3
  199. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -3
  200. package/docs/interfaces/Point.html +5 -3
  201. package/docs/interfaces/Room.html +5 -3
  202. package/docs/interfaces/RoomInfo.html +5 -3
  203. package/docs/interfaces/RoomLabel.html +5 -3
  204. package/docs/interfaces/RoomRules.html +5 -3
  205. package/docs/interfaces/Rooms.html +5 -3
  206. package/docs/interfaces/Scissor.html +5 -3
  207. package/docs/interfaces/State.html +6 -4
  208. package/docs/interfaces/TagCacheInterface.html +22 -13
  209. package/docs/interfaces/TagConfig.html +27 -15
  210. package/docs/interfaces/TagGLTFObjectGroup.html +5 -3
  211. package/docs/interfaces/TagIconUrl.html +5 -3
  212. package/docs/interfaces/TagObjectGroup.html +5 -3
  213. package/docs/interfaces/TagStyle.html +5 -3
  214. package/docs/interfaces/Tags.html +16 -14
  215. package/docs/interfaces/TemporaryState.html +7 -5
  216. package/docs/interfaces/Util.MagnifierParameter.html +5 -3
  217. package/docs/interfaces/Util.MouseGroupParameter.html +5 -3
  218. package/docs/interfaces/Util.PointIntersection.html +5 -3
  219. package/docs/modules/CruisePluginTypes.html +5 -3
  220. package/docs/modules/GuideLineItem.html +5 -3
  221. package/docs/modules/GuideLineModeItem.html +5 -3
  222. package/docs/modules/GuideLinePluginType.html +5 -3
  223. package/docs/modules/PanoVideoPluginType.html +5 -3
  224. package/docs/modules/Util.html +5 -3
  225. package/docs/modules.html +8 -4
  226. package/docs/types/ArrayPosition.html +5 -3
  227. package/docs/types/AudioAppearance.html +5 -3
  228. package/docs/types/AudioTagTypeConfigKey.html +5 -3
  229. package/docs/types/CSS3DRenderExportType.html +5 -3
  230. package/docs/types/CSS3DRenderPluginExportType.html +5 -3
  231. package/docs/types/CSS3DRenderPluginParameterType.html +5 -3
  232. package/docs/types/ClassFunctionParameters.html +5 -3
  233. package/docs/types/Color.html +5 -3
  234. package/docs/types/ContentTypeConfigKey.html +5 -3
  235. package/docs/types/ContentTypeConfigKeySplit.html +6 -4
  236. package/docs/types/ContentTypeMap.html +5 -3
  237. package/docs/types/Create3DDomContainerReturnType.html +5 -3
  238. package/docs/types/Create3DElementReturnType.html +5 -3
  239. package/docs/types/CruisePluginExportType.html +5 -3
  240. package/docs/types/CruisePluginTypes.CruiseData.html +5 -3
  241. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -3
  242. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -3
  243. package/docs/types/DeprecatedTagProperty.html +5 -3
  244. package/docs/types/Direction-1.html +5 -3
  245. package/docs/types/Direction4.html +5 -3
  246. package/docs/types/ElementRenderer.html +5 -3
  247. package/docs/types/FloorplanRuleLabels.html +5 -3
  248. package/docs/types/FloorplanServerRuleLabels.html +5 -3
  249. package/docs/types/GuideLinePluginExportType.html +5 -3
  250. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -3
  251. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -3
  252. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -3
  253. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -3
  254. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -3
  255. package/docs/types/GuideLinePluginType.PathItem.html +5 -3
  256. package/docs/types/GuideLinePluginType.PluginData.html +5 -3
  257. package/docs/types/HelperEventMap.html +5 -3
  258. package/docs/types/LoadTagConfig.html +6 -4
  259. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -3
  260. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -3
  261. package/docs/types/MediaData.html +5 -3
  262. package/docs/types/MediaStore.html +6 -4
  263. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -3
  264. package/docs/types/ModelFloorplanPluginParameterType.html +5 -3
  265. package/docs/types/ModelFloorplanPluginReturnType.html +5 -3
  266. package/docs/types/ModelRoomLabelPluginParameters.html +5 -3
  267. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -3
  268. package/docs/types/MoveArgs.html +5 -3
  269. package/docs/types/MoveOpts.html +5 -3
  270. package/docs/types/Object3DHelperEventMap.html +5 -3
  271. package/docs/types/ObjectFit.html +5 -3
  272. package/docs/types/PaintBrushEventMap.html +5 -3
  273. package/docs/types/PanoCompassPluginData.html +5 -3
  274. package/docs/types/PanoCompassPluginExportType.html +5 -3
  275. package/docs/types/PanoCompassPluginParameterType.html +5 -3
  276. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -3
  277. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -3
  278. package/docs/types/PanoIndex.html +5 -3
  279. package/docs/types/PanoMeasurePluginEvent.html +5 -3
  280. package/docs/types/PanoMeasureReturnType.html +5 -3
  281. package/docs/types/PanoSpatialTagPluginId.html +5 -3
  282. package/docs/types/PanoTagPluginExportInterface.html +5 -3
  283. package/docs/types/PanoTagPluginParamsInterface.html +5 -3
  284. package/docs/types/PanoVideoPluginParameterType.html +5 -3
  285. package/docs/types/PanoVideoPluginReturnType.html +5 -3
  286. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -3
  287. package/docs/types/PipelinePluginParameterType.html +5 -3
  288. package/docs/types/PipelinePluginReturnType.html +5 -3
  289. package/docs/types/PlaneTag.html +6 -4
  290. package/docs/types/Point2DTag.html +6 -4
  291. package/docs/types/Point3DTag.html +6 -4
  292. package/docs/types/PointTag.html +6 -4
  293. package/docs/types/PointTagInstance.html +6 -4
  294. package/docs/types/Position.html +5 -3
  295. package/docs/types/RotateArgs.html +5 -3
  296. package/docs/types/RotateOpts.html +5 -3
  297. package/docs/types/RuleLabelsKey.html +5 -3
  298. package/docs/types/RuleLabelsValue.html +5 -3
  299. package/docs/types/StickType.html +5 -3
  300. package/docs/types/Tag.html +6 -4
  301. package/docs/types/Tag2D.html +5 -3
  302. package/docs/types/Tag3D.html +5 -3
  303. package/docs/types/TagConfigByKey.html +365 -0
  304. package/docs/types/TagContentType.html +5 -3
  305. package/docs/types/TagDimensionType.html +5 -3
  306. package/docs/types/TagElement.html +5 -3
  307. package/docs/types/TagEvents.html +6 -4
  308. package/docs/types/TagGLTFObject.html +5 -3
  309. package/docs/types/TagHooks.html +6 -4
  310. package/docs/types/TagId.html +5 -3
  311. package/docs/types/TagInstance.html +5 -3
  312. package/docs/types/TagPointType.html +5 -3
  313. package/docs/types/TagRendererMap.html +5 -3
  314. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -3
  315. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -3
  316. package/docs/types/WorkCode.html +5 -3
  317. package/docs/variables/FLOOR_TYPE_MAP.html +5 -3
  318. package/docs/variables/PLUGIN.html +5 -3
  319. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -3
  320. package/docs/variables/ROOM_TYPE_MAP.html +5 -3
  321. package/docs/variables/defaultGlobalConfig.html +360 -0
  322. package/docs/variables/itemLabelPluginServerParams.html +5 -3
  323. package/docs/variables/modelItemLabelPluginServerParams.html +5 -3
  324. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -3
  325. package/libs/CSS3DRenderPlugin/Controller.js +1 -1
  326. package/libs/CSS3DRenderPlugin/index.js +1 -1
  327. package/libs/CSS3DRenderPlugin/utils/index.js +1 -1
  328. package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -13
  329. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +4 -4
  330. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -1
  331. package/libs/CruisePlugin/Controller.js +6 -3
  332. package/libs/CruisePlugin/index.js +9 -6
  333. package/libs/GuideLinePlugin/Controller.js +8 -5
  334. package/libs/GuideLinePlugin/GuideLineItem.js +6 -3
  335. package/libs/GuideLinePlugin/GuideLineModeItem.js +6 -3
  336. package/libs/GuideLinePlugin/index.js +11 -8
  337. package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
  338. package/libs/ModelTVVideoPlugin/index.js +1 -1
  339. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  340. package/libs/Object3DHelperPlugin/index.js +1 -1
  341. package/libs/PanoCompassPlugin/Controller.js +1 -1
  342. package/libs/PanoCompassPlugin/index.js +1 -1
  343. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
  344. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  345. package/libs/PanoDoorLabelPlugin/index.js +1 -1
  346. package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
  347. package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
  348. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  349. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  350. package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
  351. package/libs/PanoMeasurePlugin/Model/area.js +1 -1
  352. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
  353. package/libs/PanoMeasurePlugin/index.js +1 -1
  354. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
  355. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  356. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  357. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
  358. package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
  359. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
  360. package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
  361. package/libs/PanoTagPlugin/controller/TagCache.d.ts +6 -3
  362. package/libs/PanoTagPlugin/controller/TagCache.js +17 -21
  363. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +21 -15
  364. package/libs/PanoTagPlugin/controller/TagComputer.js +187 -188
  365. package/libs/PanoTagPlugin/controller/TagRender.js +69 -66
  366. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +7 -2
  367. package/libs/PanoTagPlugin/controller/TagUtil.js +160 -141
  368. package/libs/PanoTagPlugin/controller/index.d.ts +3 -3
  369. package/libs/PanoTagPlugin/controller/index.js +57 -53
  370. package/libs/PanoTagPlugin/index.js +14 -10
  371. package/libs/PanoTagPlugin/typings/controller.d.ts +3 -1
  372. package/libs/PanoTagPlugin/typings/index.js +6 -4
  373. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
  374. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +26 -4
  375. package/libs/PanoTagPlugin/typings/tag/TagConfig.js +13 -1
  376. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
  377. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
  378. package/libs/PanoTagPlugin/utils/index.js +15 -15
  379. package/libs/PanoTagPlugin/utils/planeNormal.js +1 -1
  380. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
  381. package/libs/PanoTagPlugin/utils/tagPosition.js +17 -18
  382. package/libs/PanoVideoPlugin/Controller.js +1 -1
  383. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  384. package/libs/PanoVideoPlugin/index.js +1 -1
  385. package/libs/PipelinePlugin/Controller.js +1 -1
  386. package/libs/PipelinePlugin/index.js +1 -1
  387. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +1 -1
  388. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +1 -1
  389. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -1
  390. package/libs/base/BasePlugin.js +1 -1
  391. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  392. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  393. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  394. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  395. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  396. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  397. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  398. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  399. package/libs/index.js +111 -108
  400. package/libs/shared-utils/five/FiveDomEvents.d.ts +6 -0
  401. package/libs/shared-utils/five/FiveDomEvents.js +53 -48
  402. package/libs/shared-utils/logger.js +1 -1
  403. package/libs/shared-utils/positionToVector3.d.ts +16 -0
  404. package/libs/shared-utils/positionToVector3.js +12 -0
  405. package/libs/shared-utils/safeObj.d.ts +1 -1
  406. package/libs/shared-utils/util.d.ts +1 -0
  407. package/libs/shared-utils/util.js +6 -0
  408. package/package.json +1 -1
@@ -2,16 +2,16 @@ var E = Object.defineProperty, F = Object.defineProperties;
2
2
  var w = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
4
  var U = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
- var b = (d, a, e) => a in d ? E(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, f = (d, a) => {
5
+ var v = (d, a, e) => a in d ? E(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, m = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- U.call(a, e) && b(d, e, a[e]);
7
+ U.call(a, e) && v(d, e, a[e]);
8
8
  if (C)
9
9
  for (var e of C(a))
10
- I.call(a, e) && b(d, e, a[e]);
10
+ I.call(a, e) && v(d, e, a[e]);
11
11
  return d;
12
- }, u = (d, a) => F(d, w(a));
13
- var g = (d, a, e) => (b(d, typeof a != "symbol" ? a + "" : a, e), e);
14
- var p = (d, a, e) => new Promise((t, i) => {
12
+ }, b = (d, a) => F(d, w(a));
13
+ var g = (d, a, e) => (v(d, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var f = (d, a, e) => new Promise((t, i) => {
15
15
  var o = (r) => {
16
16
  try {
17
17
  n(e.next(r));
@@ -29,8 +29,8 @@ var p = (d, a, e) => new Promise((t, i) => {
29
29
  });
30
30
  import * as T from "three";
31
31
  import { Subscribe as B } from "@realsee/five";
32
- import { objectAssignDeepExports as c } from "../../vendor/object-assign-deep/objectAssignDeep.js";
33
- import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
32
+ import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
33
+ import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
34
34
  import { addDebugPoints as R } from "../utils/addDebugPoints.js";
35
35
  import { isMediaModelTag as y, isModelTag as O } from "../utils/tag/tagCheck.js";
36
36
  import { waitFiveModelLoaded as k } from "../utils/actionAfterFiveModelLoad.js";
@@ -38,8 +38,8 @@ import { debounce as D } from "../utils/debounce.js";
38
38
  import { throttle as _ } from "../utils/throttle.js";
39
39
  import { resizeObserver as S } from "../utils/resizeObserver.js";
40
40
  import L from "../utils/tag/format.js";
41
- import { generateBlankAudio as G, AudioNamespace as N } from "../../shared-utils/audio.js";
42
- import { TagRender as V } from "./TagRender.js";
41
+ import { generateBlankAudio as V, AudioNamespace as G } from "../../shared-utils/audio.js";
42
+ import { TagRender as N } from "./TagRender.js";
43
43
  import { uuid as z } from "../../shared-utils/uuid.js";
44
44
  import "hammerjs";
45
45
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -52,6 +52,7 @@ import "../../shared-utils/three/centerPoint.js";
52
52
  import "../utils/checkRange.js";
53
53
  import "../../shared-utils/isNil.js";
54
54
  import "./TagUtil.js";
55
+ import "../typings/tag/TagConfig.js";
55
56
  import "../tag.config.js";
56
57
  import "../utils/planeNormal.js";
57
58
  import "../utils/normalPositionToPositions.js";
@@ -82,6 +83,8 @@ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
82
83
  import "../../shared-utils/five/FiveDomEvents.js";
83
84
  import "../../shared-utils/threex/domevents/index.js";
84
85
  import "../../shared-utils/five/getFloorIndex.js";
86
+ import "../../shared-utils/safeObj.js";
87
+ import "../../shared-utils/util.js";
85
88
  import "../Components/TagContainer.js";
86
89
  import "../../vendor/svelte/src/runtime/internal/dom.js";
87
90
  import "../../vendor/svelte/src/runtime/internal/transitions.js";
@@ -171,8 +174,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
171
174
  import "../../shared-utils/three/GLTFLoader.js";
172
175
  import "@realsee/five/gltf-loader";
173
176
  import "../../shared-utils/animationFrame/index.js";
174
- const M = "Dnalogel-PanoTagPlugin", Mi = (d) => `${M}--${d}`;
175
- class Pi extends V {
177
+ const P = "Dnalogel-PanoTagPlugin", Fi = (d) => `${P}--${d}`;
178
+ class wi extends N {
176
179
  constructor(e, t) {
177
180
  super(e);
178
181
  /** state */
@@ -182,8 +185,8 @@ class Pi extends V {
182
185
  /** debug */
183
186
  g(this, "debug");
184
187
  /** 更改 tag 模型 */
185
- g(this, "changeTagModel", (e, t) => p(this, null, function* () {
186
- e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
188
+ g(this, "changeTagModel", (e, t) => f(this, null, function* () {
189
+ e.data = p({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
187
190
  }));
188
191
  g(this, "handleFiveInitAnimationEnded", () => {
189
192
  const e = this.five.getCurrentState().mode;
@@ -199,7 +202,7 @@ class Pi extends V {
199
202
  typeof t == "object" && ((i = t.visibleFiveMode) != null && i.includes("Floorplan") || (o = t.visibleFiveMode) != null && o.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
200
203
  }), this.updateRenderAllTags();
201
204
  });
202
- this.params = c({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: N.PlayAudio });
205
+ this.params = p({}, { debug: !1, config: this.config }, m({}, t)), this.debug = this.params.debug, this.config = this.params.config, V(1, { namespace: G.PlayAudio });
203
206
  try {
204
207
  const i = window;
205
208
  Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
@@ -210,9 +213,9 @@ class Pi extends V {
210
213
  * @description: 加载数据
211
214
  */
212
215
  load(e, t) {
213
- return p(this, null, function* () {
216
+ return f(this, null, function* () {
214
217
  var o, s;
215
- this.clearTags(), console.debug(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = c({}, this.config, {
218
+ this.clearTags(), console.debug(P, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
216
219
  globalConfig: (o = e.globalConfig) != null ? o : {},
217
220
  contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
218
221
  });
@@ -230,15 +233,15 @@ class Pi extends V {
230
233
  * @description: 添加标签
231
234
  */
232
235
  addTag(e, t) {
233
- return p(this, null, function* () {
236
+ return f(this, null, function* () {
234
237
  const o = (Array.isArray(e) ? e : [e]).map((s) => {
235
- var l, m;
238
+ var l, c;
236
239
  const n = this.getTagConfig(s), r = JSON.parse(JSON.stringify(s.data));
237
- return u(f({}, s), {
240
+ return b(m({}, s), {
238
241
  enabled: (l = s.enabled) != null ? l : !0,
239
- id: (m = s.id) != null ? m : z(),
240
- data: c(s.data, n.initialData, r),
241
- state: f({
242
+ id: (c = s.id) != null ? c : z(),
243
+ data: p(s.data, n.initialData, r),
244
+ state: m({
242
245
  visible: void 0,
243
246
  unfolded: !this.can("fold", s)
244
247
  }, n.initialState),
@@ -250,10 +253,10 @@ class Pi extends V {
250
253
  enable: () => this.changeEnabledById(s.id, !0),
251
254
  disable: () => this.changeEnabledById(s.id, !1),
252
255
  destroy: () => this.destroyTagById(s.id),
253
- changeData: (v) => this.changeDataById(s.id, v)
256
+ changeData: (u) => this.changeDataById(s.id, u)
254
257
  });
255
258
  }).filter((s) => s.position);
256
- return o.forEach(L), this.tags.push(...o), k(this.five).then(() => p(this, null, function* () {
259
+ return o.forEach(L), this.tags.push(...o), k(this.five).then(() => f(this, null, function* () {
257
260
  var s, n, r;
258
261
  this.store.eventListenerDisposer && ((n = (s = this.store).eventListenerDisposer) == null || n.call(s)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(o);
259
262
  }));
@@ -263,22 +266,22 @@ class Pi extends V {
263
266
  * @description: 改变配置
264
267
  */
265
268
  changeConfig(e, t = !0) {
266
- t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
269
+ t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
267
270
  }
268
271
  /**
269
272
  * @description: 改变全局配置
270
273
  */
271
274
  changeGlobalConfig(e, t = !0) {
272
- t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
275
+ t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
273
276
  }
274
277
  /**
275
278
  * @description: 改变类型配置
276
279
  */
277
280
  changeContentTypeConfig(e, t, i = !0) {
278
- this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = c({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
281
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
279
282
  }
280
283
  show(e) {
281
- return p(this, null, function* () {
284
+ return f(this, null, function* () {
282
285
  if (this.checkDisposed())
283
286
  return;
284
287
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
@@ -286,7 +289,7 @@ class Pi extends V {
286
289
  });
287
290
  }
288
291
  hide(e) {
289
- return p(this, null, function* () {
292
+ return f(this, null, function* () {
290
293
  if (this.checkDisposed())
291
294
  return;
292
295
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
@@ -308,7 +311,7 @@ class Pi extends V {
308
311
  setState(e, t) {
309
312
  if (this.checkDisposed())
310
313
  return;
311
- const { userAction: i = !0, visibleWithAnimation: o = !1 } = t, s = f({}, this.state);
314
+ const { userAction: i = !0, visibleWithAnimation: o = !1 } = t, s = m({}, this.state);
312
315
  this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = o, s.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), s.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
313
316
  }
314
317
  /**
@@ -351,7 +354,7 @@ class Pi extends V {
351
354
  changeDataById(e, t, i = !0) {
352
355
  const o = this.getTagById(e);
353
356
  let s = !1;
354
- o && (o.data && (s = !0), i ? o.data = c(o.data, t) : o.data = f(f({}, o.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), s && o.hooks.emit("dataChanged", o.data));
357
+ o && (o.data && (s = !0), i ? o.data = p(o.data, t) : o.data = m(m({}, o.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), s && o.hooks.emit("dataChanged", o.data));
355
358
  }
356
359
  /**
357
360
  * @description: 改变tag的stickType
@@ -365,7 +368,7 @@ class Pi extends V {
365
368
  changeTagById(e, t, i = !0) {
366
369
  const o = this.getTagById(e);
367
370
  let s = !1;
368
- t && (t.data && (s = !0), i ? c(o, t) : Object.assign(o, t), o != null && o.tag3DContentSvelte && (t != null && t.normal) && (o.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), s && o.hooks.emit("dataChanged", o.data));
371
+ t && (t.data && (s = !0), i ? p(o, t) : Object.assign(o, t), o != null && o.tag3DContentSvelte && (t != null && t.normal) && (o.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), s && o.hooks.emit("dataChanged", o.data));
369
372
  }
370
373
  /**
371
374
  * @description: 销毁tag
@@ -380,7 +383,7 @@ class Pi extends V {
380
383
  * @description: 设置 visible 和 unfolded
381
384
  */
382
385
  setVisibleAndUnfolded() {
383
- return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
386
+ return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
384
387
  if (this.isPanorama)
385
388
  return this.setVisible(), e ? new Promise((t) => {
386
389
  setTimeout(() => {
@@ -412,8 +415,8 @@ class Pi extends V {
412
415
  * @description: 添加 cameraUpdate, panoArrived 等事件监听
413
416
  */
414
417
  addEventListener() {
415
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), o = this.handleFiveModeChange.bind(this), s = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this), l = this.clickhandler.bind(this), m = this.five.currentMode;
416
- return m && this.handleFiveModeChange(m), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", o), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", s), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", h), t.on("click", l), () => {
418
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), o = this.handleFiveModeChange.bind(this), s = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this), l = this.clickhandler.bind(this), c = this.five.currentMode;
419
+ return c && this.handleFiveModeChange(c), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", o), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", s), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", h), t.on("click", l), () => {
417
420
  e.off("wantsMoveToPano", i), e.off("modeChange", o), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", s), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", h), t.off("click", l), this.store.eventListenerDisposer = void 0;
418
421
  };
419
422
  }
@@ -453,11 +456,12 @@ class Pi extends V {
453
456
  y(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
454
457
  }), this.updateRenderAllTags();
455
458
  }
456
- handleFiveWantsMoveToPano() {
457
- this.tags.forEach((e) => {
458
- const t = this.getTagConfig(e);
459
- typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = u(f({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = u(f({}, e.temporaryState), { visible: !!t.visibleConfig.alwaysShowWhenMovePano }));
460
- }), this.updateTagContainerVisible();
459
+ handleFiveWantsMoveToPano(e) {
460
+ this.tags.forEach((t) => {
461
+ t.state.visible = this.getVisible(t, { panoIndex: e });
462
+ const i = this.getTagConfig(t);
463
+ typeof i.visibleConfig == "object" && (i.visibleConfig.keep ? t.temporaryState.visible = i.visibleConfig.keep === "visible" : t.temporaryState.visible = !!i.visibleConfig.alwaysShowWhenMovePano);
464
+ }), this.updateTagContainerVisible(), this.updateRenderImagePlane(), this.updateRenderVideoPlane();
461
465
  }
462
466
  /**
463
467
  * @description: 走点/切换模型后显示
@@ -494,25 +498,25 @@ class Pi extends V {
494
498
  this.updateRenderPointTag();
495
499
  }
496
500
  handleFivePanoArrived() {
497
- return p(this, null, function* () {
501
+ return f(this, null, function* () {
498
502
  var e, t, i;
499
503
  this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((o) => {
500
- o.temporaryState = u(f({}, o.temporaryState), { visible: !0 });
504
+ o.temporaryState = b(m({}, o.temporaryState), { visible: !0 });
501
505
  }), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(O).filter((o) => {
502
506
  var s, n;
503
507
  return (n = (s = o.config) == null ? void 0 : s.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
504
508
  }).forEach((o) => {
505
- var v;
506
- const s = new T.Mesh(new T.BoxGeometry(), new T.MeshBasicMaterial()), n = (v = o.model) == null ? void 0 : v.object;
509
+ var u;
510
+ const s = new T.Mesh(new T.BoxGeometry(), new T.MeshBasicMaterial()), n = (u = o.model) == null ? void 0 : u.object;
507
511
  if (!n)
508
512
  return;
509
513
  s.position.copy(n.position), s.quaternion.copy(n.quaternion);
510
514
  const r = this.five.camera.position;
511
515
  s.lookAt(r.clone().setY(s.position.y));
512
- const h = n.quaternion.clone(), l = s.quaternion.clone(), m = x();
513
- m.onUpdate(({ progress: P }) => {
514
- n.quaternion.copy(h.clone().slerp(l, P));
515
- }), m.play();
516
+ const h = n.quaternion.clone(), l = s.quaternion.clone(), c = x();
517
+ c.onUpdate(({ progress: M }) => {
518
+ n.quaternion.copy(h.clone().slerp(l, M));
519
+ }), c.play();
516
520
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
517
521
  });
518
522
  }
@@ -528,11 +532,11 @@ class Pi extends V {
528
532
  }
529
533
  changeTagMode(e, t) {
530
534
  var i, o, s, n, r, h;
531
- ((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (s = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : s.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
535
+ ((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (s = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : s.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
532
536
  }
533
537
  }
534
538
  export {
535
- Pi as PanoTagPluginController,
536
- Pi as default,
537
- Mi as pluginFlag
539
+ wi as PanoTagPluginController,
540
+ wi as default,
541
+ Fi as pluginFlag
538
542
  };
@@ -1,10 +1,11 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as Rt } from "./controller/index.js";
3
- import { ContentType as Ut, DimensionType as Vt, PointType as Wt } from "./Archive/deprecated.js";
2
+ import { pluginFlag as Ut } from "./controller/index.js";
3
+ import { defaultGlobalConfig as Wt } from "./typings/tag/TagConfig.js";
4
+ import { ContentType as Yt, DimensionType as Zt, PointType as _t } from "./Archive/deprecated.js";
4
5
  import "three";
5
6
  import "@realsee/five";
6
7
  import "../vendor/object-assign-deep/objectAssignDeep.js";
7
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
8
+ import "../shared-utils/positionToVector3.js";
8
9
  import "./utils/addDebugPoints.js";
9
10
  import "./utils/tag/tagCheck.js";
10
11
  import "./utils/actionAfterFiveModelLoad.js";
@@ -54,6 +55,8 @@ import "../shared-utils/three/FragmentTransparencyMaterial.js";
54
55
  import "../shared-utils/five/FiveDomEvents.js";
55
56
  import "../shared-utils/threex/domevents/index.js";
56
57
  import "../shared-utils/five/getFloorIndex.js";
58
+ import "../shared-utils/safeObj.js";
59
+ import "../shared-utils/util.js";
57
60
  import "./Components/TagContainer.js";
58
61
  import "../vendor/svelte/src/runtime/internal/dom.js";
59
62
  import "../vendor/svelte/src/runtime/internal/transitions.js";
@@ -145,13 +148,14 @@ import "../shared-utils/three/GLTFLoader.js";
145
148
  import "@realsee/five/gltf-loader";
146
149
  import "../shared-utils/animationFrame/BetterTween.js";
147
150
  import "../shared-utils/animationFrame/index.js";
148
- const Nt = (o, t) => new r(o, t);
151
+ const Qt = (o, t) => new r(o, t);
149
152
  export {
150
- Ut as ContentType,
151
- Vt as DimensionType,
152
- Nt as PanoTagPlugin,
153
+ Yt as ContentType,
154
+ Zt as DimensionType,
155
+ Qt as PanoTagPlugin,
153
156
  r as PanoTagPluginController,
154
- Wt as PointType,
155
- Nt as default,
156
- Rt as pluginFlag
157
+ _t as PointType,
158
+ Qt as default,
159
+ Wt as defaultGlobalConfig,
160
+ Ut as pluginFlag
157
161
  };
@@ -4,6 +4,7 @@ import type * as BasePlugin from '../../base/BasePlugin';
4
4
  import type { Writable } from 'svelte/store';
5
5
  import type { TagId } from './tag/Utils';
6
6
  import type { TagContentType } from './tag/TagData';
7
+ import type { Vector3 } from 'three';
7
8
  export type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
8
9
  export interface State extends BasePlugin.State {
9
10
  }
@@ -69,12 +70,13 @@ export interface TagCacheInterface {
69
70
  unfolded?: boolean;
70
71
  minimumDistanceResult?: boolean;
71
72
  distance?: number;
73
+ distanceMap?: Map<Vector3, number>;
72
74
  angle?: number;
73
75
  /** MedialModelTag 中,多媒体的隐藏 & 展示 */
74
76
  modelMedialVisible?: boolean;
75
77
  __debug_visible_reason__?: {
76
78
  value: boolean;
77
- reason?: string;
79
+ reason?: any;
78
80
  };
79
81
  }
80
82
  export type MediaStore = Writable<{
@@ -1,6 +1,8 @@
1
- import { ContentType as o, DimensionType as p, PointType as t } from "../Archive/deprecated.js";
1
+ import { defaultGlobalConfig as n } from "./tag/TagConfig.js";
2
+ import { ContentType as p, DimensionType as f, PointType as i } from "../Archive/deprecated.js";
2
3
  export {
3
- o as ContentType,
4
- p as DimensionType,
5
- t as PointType
4
+ p as ContentType,
5
+ f as DimensionType,
6
+ i as PointType,
7
+ n as defaultGlobalConfig
6
8
  };
@@ -1,7 +1,7 @@
1
1
  import type { State as FiveState } from '@realsee/five';
2
2
  import type { TagConfig } from './TagConfig';
3
3
  import type { ContentTypeMap, TagContentType } from './TagData';
4
- import type { Position, TagId, StickType, TagStyle, ElementRenderer, PickTagContentTypeInContentTypeConfigKey, ContentTypeConfigKey } from './Utils';
4
+ import type { Position, TagId, StickType, TagStyle, ElementRenderer, TagConfigByKey, ContentTypeConfigKey } from './Utils';
5
5
  import type { ContentType, DeprecatedTagProperty } from '../../Archive/deprecated';
6
6
  export interface Tags {
7
7
  version?: string;
@@ -10,7 +10,7 @@ export interface Tags {
10
10
  globalConfig?: TagConfig;
11
11
  /** 按type配置 */
12
12
  contentTypeConfig?: {
13
- [key in ContentTypeConfigKey]?: PickTagContentTypeInContentTypeConfigKey<key> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<key>> : unknown;
13
+ [key in ContentTypeConfigKey]?: TagConfigByKey<key>;
14
14
  };
15
15
  /** 标签列表配置 */
16
16
  tagList: Tag[];
@@ -4,6 +4,7 @@ import type { ContentTypeMap, TagContentType } from './TagData';
4
4
  import type { MinMax } from './Utils';
5
5
  import type { TagInstance } from './TagInstance';
6
6
  import type { PartialObjectDeep } from '../../../typings/typings';
7
+ import type { Vector3 } from 'three';
7
8
  type ConfigFunction = (five: Five, tagState: {
8
9
  tag: TagInstance<any>;
9
10
  /** 标签点或中心点的到摄像机的距离 */
@@ -62,6 +63,16 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
62
63
  * @default 0.01
63
64
  */
64
65
  distanceAccuracy?: number;
66
+ /**
67
+ * @description: 碰撞检测的点
68
+ * @default 'center'
69
+ */
70
+ checkPoints?: 'center' | 'corner' | Vector3[];
71
+ /**
72
+ * @description: 碰撞检测策略,多少点通过检测则认为碰撞通过
73
+ * @default 1
74
+ */
75
+ needPassed?: number;
65
76
  };
66
77
  /**
67
78
  * @description 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角,范围内自动展开,范围外自动收起
@@ -104,9 +115,15 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
104
115
  enable?: boolean;
105
116
  /** 自动展开:最近标签自动展开 */
106
117
  strategy?: 'MinimumDistance';
107
- /** 展开的最大数量, 默认为1 */
118
+ /**
119
+ * @description: 展开的最大数量
120
+ * @default 1
121
+ */
108
122
  maxNumber?: number;
109
- /** 展开的最大距离, 默认为无限制 */
123
+ /**
124
+ * @description: 展开的最大距离
125
+ * @default 无限制
126
+ */
110
127
  distance?: MinMax;
111
128
  };
112
129
  } | ConfigFunction;
@@ -117,17 +134,22 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
117
134
  /** 展开/收起 */
118
135
  unfolded?: boolean;
119
136
  };
120
- initialData?: PartialObjectDeep<ContentTypeMap[C]>;
137
+ initialData?: C extends any ? {} : PartialObjectDeep<ContentTypeMap[C]>;
121
138
  tag3DConfig?: Create3DDomContainerParamsType['config'];
122
139
  modelConfig?: {
123
140
  autoLookAtEnabled?: boolean;
124
141
  };
125
- /** 当图片为一张时可以通过Mesh渲染 */
142
+ /**
143
+ * @description: 当图片为一张时可以选择通过Mesh渲染
144
+ * @default 'Dom'
145
+ */
126
146
  renderType?: 'Mesh' | 'Dom';
127
147
  /**
128
148
  * @description: 是否可以点击
129
149
  * @default true
130
150
  */
131
151
  clickable?: boolean;
152
+ isMerged?: boolean;
132
153
  }
154
+ export declare const defaultGlobalConfig: TagConfig<any>;
133
155
  export {};
@@ -1 +1,13 @@
1
-
1
+ const e = {
2
+ visibleConfig: {
3
+ intersectRaycaster: {
4
+ enabled: !0,
5
+ distanceAccuracy: 0.01,
6
+ checkPoints: "corner",
7
+ needPassed: 1
8
+ }
9
+ }
10
+ };
11
+ export {
12
+ e as defaultGlobalConfig
13
+ };
@@ -3,6 +3,7 @@ import type { Group } from 'three';
3
3
  import type { TagContentType } from './TagData';
4
4
  import type { ImagePlane } from '../../utils/model/mediaPlane';
5
5
  import type { TagInstance } from './TagInstance';
6
+ import type { TagConfig } from '../..';
6
7
  export type TagId = string | number;
7
8
  export type ArrayPosition = number[];
8
9
  export type Position = ArrayPosition;
@@ -65,6 +66,7 @@ export type ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any
65
66
  * @description: 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的 TagContentType 是啥,没找到就是 never
66
67
  */
67
68
  export type PickTagContentTypeInContentTypeConfigKey<T extends ContentTypeConfigKey> = T extends `${any}-Audio-${any}` ? 'Audio' : T extends `Mixin-${string}` ? string : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : never;
69
+ export type TagConfigByKey<T extends ContentTypeConfigKey> = PickTagContentTypeInContentTypeConfigKey<T> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<T>> : TagConfig<any>;
68
70
  export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | ['Mixin', string] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance];
69
71
  export type PointTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint' | '3DPoint'>;
70
72
  /** 二维标签 */
@@ -1,4 +1,4 @@
1
- import { arrayPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
1
+ import { arrayPositionToVector3 as c } from "../../shared-utils/positionToVector3.js";
2
2
  import * as o from "three";
3
3
  function M(h, p) {
4
4
  p.forEach((t) => {
@@ -1,17 +1,17 @@
1
1
  import { even as a } from "../../CSS3DRenderPlugin/utils/even.js";
2
- import { random as p } from "../../CSS3DRenderPlugin/utils/random.js";
3
- import { anyPositionToVector3 as f, arrayPositionToVector3 as s, positionToVector3 as x } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
2
+ import { random as n } from "../../CSS3DRenderPlugin/utils/random.js";
3
+ import { anyPositionToVector3 as f, arrayPositionToVector3 as s, positionToVector3 as x } from "../../shared-utils/positionToVector3.js";
4
4
  import { addDebugPoints as c } from "./addDebugPoints.js";
5
- import { noTypecheck as P } from "./noTypecheck.js";
6
- import { planeNormal as g } from "./planeNormal.js";
7
- import { getTagPosition as v, tagPosition as V } from "./tagPosition.js";
5
+ import { noTypecheck as T } from "./noTypecheck.js";
6
+ import { planeNormal as P } from "./planeNormal.js";
7
+ import { getTagCenterPosition as v, getTagPosition as V } from "./tagPosition.js";
8
8
  import { checkRange as u } from "./checkRange.js";
9
9
  import { actionAfterFiveModelLoad as F, fiveModelLoaded as L, waitFiveModelLoaded as M } from "./actionAfterFiveModelLoad.js";
10
10
  import { normalPositionToPositions as S } from "./normalPositionToPositions.js";
11
11
  import { debounce as z } from "./debounce.js";
12
12
  import { throttle as B } from "./throttle.js";
13
- import { binarySearchFirstBig as N, searchFirstValueSmallThanLastValue as O } from "./search.js";
14
- import { resizeObserver as j } from "./resizeObserver.js";
13
+ import { binarySearchFirstBig as D, searchFirstValueSmallThanLastValue as N } from "./search.js";
14
+ import { resizeObserver as R } from "./resizeObserver.js";
15
15
  import "three";
16
16
  import "../../shared-utils/three/centerPoint.js";
17
17
  import "./tag/tagCheck.js";
@@ -20,20 +20,20 @@ export {
20
20
  c as addDebugPoints,
21
21
  f as anyPositionToVector3,
22
22
  s as arrayPositionToVector3,
23
- N as binarySearchFirstBig,
23
+ D as binarySearchFirstBig,
24
24
  u as checkRange,
25
25
  z as debounce,
26
26
  a as even,
27
27
  L as fiveModelLoaded,
28
- v as getTagPosition,
29
- P as noTypecheck,
28
+ v as getTagCenterPosition,
29
+ V as getTagPosition,
30
+ T as noTypecheck,
30
31
  S as normalPositionToPositions,
31
- g as planeNormal,
32
+ P as planeNormal,
32
33
  x as positionToVector3,
33
- p as random,
34
- j as resizeObserver,
35
- O as searchFirstValueSmallThanLastValue,
36
- V as tagPosition,
34
+ n as random,
35
+ R as resizeObserver,
36
+ N as searchFirstValueSmallThanLastValue,
37
37
  B as throttle,
38
38
  M as waitFiveModelLoaded
39
39
  };
@@ -1,4 +1,4 @@
1
- import { anyPositionToVector3 as e } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
1
+ import { anyPositionToVector3 as e } from "../../shared-utils/positionToVector3.js";
2
2
  import "three";
3
3
  function i(r) {
4
4
  if (!r || r.length < 3)
@@ -1,5 +1,4 @@
1
1
  import { Vector3 } from 'three';
2
- import { type AnyPosition } from '.';
3
2
  import type { TagInstance } from '../typings';
4
- export declare function tagPosition(position: AnyPosition | [AnyPosition, AnyPosition, AnyPosition, AnyPosition]): Vector3;
5
- export declare function getTagPosition(tag: TagInstance): Vector3;
3
+ export declare function getTagPosition(tag: TagInstance): Vector3 | Vector3[];
4
+ export declare function getTagCenterPosition(tag: TagInstance): Vector3;
@@ -1,23 +1,22 @@
1
- import { Matrix4 as a, Vector3 as m } from "three";
2
- import { anyPositionToVector3 as i } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
3
- import { centerPoint as n } from "../../shared-utils/three/centerPoint.js";
4
- import { isMediaModelTag as s } from "./tag/tagCheck.js";
5
- function c(r) {
6
- if (r)
7
- if (Array.isArray(r) && r.length === 4) {
8
- const o = r.map(i);
9
- return n(o[0], o[2]);
1
+ import { Matrix4 as n, Vector3 as e } from "three";
2
+ import { centerPoint as a } from "../../shared-utils/three/centerPoint.js";
3
+ import { isMediaModelTag as m } from "./tag/tagCheck.js";
4
+ import { vector3Position as s } from "../../shared-utils/positionToVector3.js";
5
+ function p(r) {
6
+ const o = (() => {
7
+ if (m(r) && r.matrix) {
8
+ const i = new n().fromArray(r.matrix);
9
+ return r.data.mediaPosition.map((t) => new e().fromArray(t).applyMatrix4(i));
10
10
  } else
11
- return i(r);
11
+ return r.position;
12
+ })();
13
+ return s(o);
12
14
  }
13
- function y(r) {
14
- if (s(r) && r.matrix) {
15
- const t = new a().fromArray(r.matrix), o = r.data.mediaPosition.map((e) => new m().fromArray(e).applyMatrix4(t));
16
- return n(o[0], o[2]);
17
- } else
18
- return c(r.position);
15
+ function P(r) {
16
+ const o = p(r);
17
+ return a(...Array.isArray(o) ? o : [o]);
19
18
  }
20
19
  export {
21
- y as getTagPosition,
22
- c as tagPosition
20
+ P as getTagCenterPosition,
21
+ p as getTagPosition
23
22
  };
@@ -25,7 +25,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
25
25
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
26
26
  import "../CSS3DRenderPlugin/utils/even.js";
27
27
  import "../shared-utils/Subscribe.js";
28
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
28
+ import "../shared-utils/positionToVector3.js";
29
29
  import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
30
30
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
31
31
  import "../shared-utils/three/centerPoint.js";
@@ -16,7 +16,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
16
16
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
17
17
  import "../CSS3DRenderPlugin/utils/even.js";
18
18
  import "../shared-utils/Subscribe.js";
19
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
19
+ import "../shared-utils/positionToVector3.js";
20
20
  import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
21
21
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
22
22
  import "../shared-utils/three/centerPoint.js";