@realsee/dnalogel 3.35.2 → 3.36.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 (395) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/PanoTagPlugin/controller/TagRender.d.ts +6 -5
  3. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +11 -6
  4. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  5. package/dist/PanoTagPlugin/utils/debounce.d.ts +1 -0
  6. package/dist/index.cjs.js +54 -54
  7. package/dist/index.js +3364 -3342
  8. package/dist/index.umd.js +44 -44
  9. package/docs/assets/search.js +1 -1
  10. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
  11. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
  12. package/docs/classes/CSS3DRender.html +3 -3
  13. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  14. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
  15. package/docs/classes/ModelMakerPluginInstance.html +3 -3
  16. package/docs/classes/ModelRoomLabelController.html +3 -3
  17. package/docs/classes/MoveController.html +3 -3
  18. package/docs/classes/Object3DHelperController.html +3 -3
  19. package/docs/classes/PaintBrush.html +3 -3
  20. package/docs/classes/PanoMeasurePluginLine.html +3 -3
  21. package/docs/classes/PanoMeasurePluginModel.html +3 -3
  22. package/docs/classes/PanoMeasurePluginPoint.html +3 -3
  23. package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
  24. package/docs/classes/PanoTagPluginController.html +48 -40
  25. package/docs/classes/Sculpt.html +3 -3
  26. package/docs/classes/Util.BetterTween.html +3 -3
  27. package/docs/classes/Util.Interval.html +3 -3
  28. package/docs/classes/Util.LineSegments.html +3 -3
  29. package/docs/classes/Util.Magnifier.html +3 -3
  30. package/docs/classes/Util.Object3D.html +3 -3
  31. package/docs/classes/Util.PointDomHelper.html +3 -3
  32. package/docs/classes/Util.PointHelper.html +3 -3
  33. package/docs/classes/Util.PointSelectorHelper.html +3 -3
  34. package/docs/classes/Util.Rectangle.html +3 -3
  35. package/docs/classes/WalkController.html +3 -3
  36. package/docs/enums/CameraMovementEffect.html +3 -3
  37. package/docs/enums/ContentType.html +3 -3
  38. package/docs/enums/DIRECTION.html +3 -3
  39. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
  40. package/docs/enums/DimensionType.html +3 -3
  41. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
  42. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
  43. package/docs/enums/PaintBrushTypeEnum.html +3 -3
  44. package/docs/enums/PointType.html +3 -3
  45. package/docs/enums/Rotation.html +3 -3
  46. package/docs/functions/AreaMakerPlugin.html +3 -3
  47. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  48. package/docs/functions/CameraMovementPlugin.html +3 -3
  49. package/docs/functions/CruisePlugin.html +3 -3
  50. package/docs/functions/CurrentPanoImagePlugin.html +3 -3
  51. package/docs/functions/GuideLinePlugin.html +3 -3
  52. package/docs/functions/ItemLabelPlugin.html +3 -3
  53. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  54. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  55. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  56. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  57. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  58. package/docs/functions/ModelMakerPlugin.html +3 -3
  59. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  60. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  61. package/docs/functions/ModelViewPlugin.html +3 -3
  62. package/docs/functions/MovePlugin.html +3 -3
  63. package/docs/functions/Object3DHelperPlugin.html +3 -3
  64. package/docs/functions/PanoCompassPlugin.html +3 -3
  65. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  66. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  67. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  68. package/docs/functions/PanoMeasurePlugin.html +3 -3
  69. package/docs/functions/PanoRulerPlugin.html +3 -3
  70. package/docs/functions/PanoRulerProPlugin.html +3 -3
  71. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  72. package/docs/functions/PanoTagPlugin.html +3 -3
  73. package/docs/functions/PanoVideoPlugin.html +3 -3
  74. package/docs/functions/PipelinePlugin.html +3 -3
  75. package/docs/functions/SculptPlugin.html +3 -3
  76. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  77. package/docs/functions/Util.absoluteUrl.html +3 -3
  78. package/docs/functions/Util.blink.html +3 -3
  79. package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
  80. package/docs/functions/Util.equal.html +3 -3
  81. package/docs/functions/Util.getCoordsFromClient.html +3 -3
  82. package/docs/functions/Util.getCoordsFromElement.html +3 -3
  83. package/docs/functions/Util.getFrameTime.html +3 -3
  84. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
  85. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
  86. package/docs/functions/Util.isAbsoluteURL.html +3 -3
  87. package/docs/functions/Util.isModelLike.html +3 -3
  88. package/docs/functions/Util.isNil.html +3 -3
  89. package/docs/functions/Util.isPanoramaLike.html +3 -3
  90. package/docs/functions/Util.nextFrame.html +3 -3
  91. package/docs/functions/Util.notNil.html +3 -3
  92. package/docs/functions/Util.reblink.html +3 -3
  93. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
  94. package/docs/functions/Util.tweenProgress.html +3 -3
  95. package/docs/functions/Util.uuid.html +3 -3
  96. package/docs/functions/pluginFlag.html +3 -3
  97. package/docs/index.html +4 -4
  98. package/docs/interfaces/AddTagConfig.html +3 -3
  99. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  100. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  101. package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
  102. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  103. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
  104. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  105. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  106. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  107. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
  108. package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
  109. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
  110. package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
  111. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  112. package/docs/interfaces/ContentTypeMapInterface.html +3 -3
  113. package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
  114. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
  115. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
  116. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
  117. package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
  118. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
  119. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
  120. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  121. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
  122. package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
  123. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
  124. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
  125. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  126. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
  127. package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
  128. package/docs/interfaces/EventMap.html +3 -3
  129. package/docs/interfaces/FloorplanBounding.html +3 -3
  130. package/docs/interfaces/FloorplanData.html +3 -3
  131. package/docs/interfaces/FloorplanEntrance.html +3 -3
  132. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  133. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  134. package/docs/interfaces/FloorplanFloorData.html +3 -3
  135. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  136. package/docs/interfaces/FloorplanObserver.html +3 -3
  137. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  138. package/docs/interfaces/FloorplanPosition.html +3 -3
  139. package/docs/interfaces/FloorplanRoomItem.html +3 -3
  140. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  141. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  142. package/docs/interfaces/FloorplanServerComputedData.html +3 -3
  143. package/docs/interfaces/FloorplanServerData.html +3 -3
  144. package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
  145. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
  146. package/docs/interfaces/FloorplanServerEntrance.html +3 -3
  147. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  148. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  149. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  150. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  151. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  152. package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
  153. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  154. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
  155. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  156. package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
  157. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
  158. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
  159. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
  160. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
  161. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
  162. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
  163. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
  164. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
  165. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
  166. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
  167. package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
  168. package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
  169. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
  170. package/docs/interfaces/HelperOffset.html +3 -3
  171. package/docs/interfaces/ImagePlaneGroup.html +3 -3
  172. package/docs/interfaces/ItemLabelPluginData.html +3 -3
  173. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
  174. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
  175. package/docs/interfaces/MinMax.html +3 -3
  176. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
  177. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
  178. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
  179. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
  180. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
  181. package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
  182. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
  183. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
  184. package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
  185. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
  186. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
  187. package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
  188. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
  189. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
  190. package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
  191. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
  192. package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
  193. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
  194. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
  195. package/docs/interfaces/ModelViewPluginExportType.html +3 -3
  196. package/docs/interfaces/Object3DHelperState.html +3 -3
  197. package/docs/interfaces/ObjectHelperControllers.html +3 -3
  198. package/docs/interfaces/PaintBrushAction.html +3 -3
  199. package/docs/interfaces/PaintBrushConfigs.html +3 -3
  200. package/docs/interfaces/PaintBrushState.html +3 -3
  201. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
  202. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
  203. package/docs/interfaces/PanoMeasureParameterType.html +3 -3
  204. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
  205. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  206. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
  207. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
  208. package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
  209. package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
  210. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
  211. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
  212. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
  213. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
  214. package/docs/interfaces/PanoRulerProPluginState.html +3 -3
  215. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
  216. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
  217. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
  218. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
  219. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
  220. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
  221. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
  222. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
  223. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
  224. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  225. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
  226. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
  227. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
  228. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
  229. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
  230. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
  231. package/docs/interfaces/Point.html +3 -3
  232. package/docs/interfaces/Room.html +3 -3
  233. package/docs/interfaces/RoomInfo.html +3 -3
  234. package/docs/interfaces/RoomLabel.html +3 -3
  235. package/docs/interfaces/RoomRules.html +3 -3
  236. package/docs/interfaces/Rooms.html +3 -3
  237. package/docs/interfaces/Scissor.html +3 -3
  238. package/docs/interfaces/State.html +3 -3
  239. package/docs/interfaces/TagCacheInterface.html +3 -3
  240. package/docs/interfaces/TagConfig.html +3 -3
  241. package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
  242. package/docs/interfaces/TagIconUrl.html +3 -3
  243. package/docs/interfaces/TagObjectGroup.html +3 -3
  244. package/docs/interfaces/TagStyle.html +3 -3
  245. package/docs/interfaces/Tags.html +3 -3
  246. package/docs/interfaces/TemporaryState.html +3 -3
  247. package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
  248. package/docs/interfaces/Util.MagnifierParameter.html +3 -3
  249. package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
  250. package/docs/interfaces/Util.PointIntersection.html +3 -3
  251. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
  252. package/docs/modules/AreaMakerPluginType.html +3 -3
  253. package/docs/modules/CruisePluginTypes.html +3 -3
  254. package/docs/modules/CurrentPanoImagePluginType.html +3 -3
  255. package/docs/modules/GuideLineItem.html +3 -3
  256. package/docs/modules/GuideLineModeItem.html +3 -3
  257. package/docs/modules/GuideLinePluginType.html +3 -3
  258. package/docs/modules/ModelMakerPluginType.html +3 -3
  259. package/docs/modules/PanoVideoPluginType.html +3 -3
  260. package/docs/modules/SculptData.html +3 -3
  261. package/docs/modules/Util.html +3 -3
  262. package/docs/modules.html +4 -4
  263. package/docs/types/AddObject3DHelperConfig.html +3 -3
  264. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
  265. package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
  266. package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
  267. package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
  268. package/docs/types/ArrayPosition.html +3 -3
  269. package/docs/types/AudioAppearance.html +3 -3
  270. package/docs/types/CSS3DRenderExportType.html +3 -3
  271. package/docs/types/CSS3DRenderPluginExportType.html +3 -3
  272. package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
  273. package/docs/types/ClassFunctionParameters.html +3 -3
  274. package/docs/types/Color.html +3 -3
  275. package/docs/types/ContentTypeConfigKey.html +3 -3
  276. package/docs/types/ContentTypeConfigKeySplit.html +3 -3
  277. package/docs/types/ContentTypeMap.html +3 -3
  278. package/docs/types/Create3DDomContainerReturnType.html +3 -3
  279. package/docs/types/Create3DElementReturnType.html +3 -3
  280. package/docs/types/CruisePluginExportType.html +3 -3
  281. package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
  282. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
  283. package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
  284. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
  285. package/docs/types/DeprecatedTagProperty.html +3 -3
  286. package/docs/types/Direction-1.html +3 -3
  287. package/docs/types/Direction4.html +3 -3
  288. package/docs/types/ElementRenderer.html +3 -3
  289. package/docs/types/FloorplanRuleLabels.html +3 -3
  290. package/docs/types/FloorplanServerRuleLabels.html +3 -3
  291. package/docs/types/GuideLinePluginExportType.html +3 -3
  292. package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
  293. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
  294. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
  295. package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
  296. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
  297. package/docs/types/GuideLinePluginType.PathItem.html +3 -3
  298. package/docs/types/GuideLinePluginType.PluginData.html +3 -3
  299. package/docs/types/HelperEventMap.html +3 -3
  300. package/docs/types/InternalHelperEventMap.html +3 -3
  301. package/docs/types/LoadTagConfig.html +3 -3
  302. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
  303. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
  304. package/docs/types/MediaData.html +3 -3
  305. package/docs/types/MediaStore.html +3 -3
  306. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
  307. package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
  308. package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
  309. package/docs/types/ModelId.html +3 -3
  310. package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
  311. package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
  312. package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
  313. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
  314. package/docs/types/MoveArgs.html +3 -3
  315. package/docs/types/MoveOpts.html +3 -3
  316. package/docs/types/Object3DHelperEventMap.html +3 -3
  317. package/docs/types/ObjectFit.html +3 -3
  318. package/docs/types/PaintBrushEventMap.html +3 -3
  319. package/docs/types/PanoCompassPluginData.html +3 -3
  320. package/docs/types/PanoCompassPluginExportType.html +3 -3
  321. package/docs/types/PanoCompassPluginParameterType.html +3 -3
  322. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
  323. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
  324. package/docs/types/PanoIndex.html +3 -3
  325. package/docs/types/PanoMeasurePluginEvent.html +3 -3
  326. package/docs/types/PanoMeasureReturnType.html +3 -3
  327. package/docs/types/PanoSpatialTagPluginId.html +3 -3
  328. package/docs/types/PanoTagPluginExportInterface.html +3 -3
  329. package/docs/types/PanoTagPluginParamsInterface.html +3 -3
  330. package/docs/types/PanoVideoPluginParameterType.html +3 -3
  331. package/docs/types/PanoVideoPluginReturnType.html +3 -3
  332. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
  333. package/docs/types/PipelinePluginParameterType.html +3 -3
  334. package/docs/types/PipelinePluginReturnType.html +3 -3
  335. package/docs/types/PlaneTag.html +3 -3
  336. package/docs/types/Point2DTag.html +3 -3
  337. package/docs/types/Point3DTag.html +3 -3
  338. package/docs/types/PointTag.html +3 -3
  339. package/docs/types/PointTagInstance.html +3 -3
  340. package/docs/types/Position.html +3 -3
  341. package/docs/types/PositionFrom.html +3 -3
  342. package/docs/types/RotateArgs.html +3 -3
  343. package/docs/types/RotateOpts.html +3 -3
  344. package/docs/types/RuleLabelsKey.html +3 -3
  345. package/docs/types/RuleLabelsValue.html +3 -3
  346. package/docs/types/ScaleCallback.html +3 -3
  347. package/docs/types/ScalePosition.html +3 -3
  348. package/docs/types/SculptData.BoxData.html +3 -3
  349. package/docs/types/SculptData.CircleData.html +3 -3
  350. package/docs/types/SculptData.CylinderData.html +3 -3
  351. package/docs/types/SculptData.PointData.html +3 -3
  352. package/docs/types/SculptData.PolygonData.html +3 -3
  353. package/docs/types/SculptData.PolylineData.html +3 -3
  354. package/docs/types/SculptData.PrismData.html +3 -3
  355. package/docs/types/SculptData.RectangleData.html +3 -3
  356. package/docs/types/StickType.html +3 -3
  357. package/docs/types/Tag.html +3 -3
  358. package/docs/types/Tag2D.html +3 -3
  359. package/docs/types/Tag3D.html +3 -3
  360. package/docs/types/TagConfigByKey.html +3 -3
  361. package/docs/types/TagContentType.html +3 -3
  362. package/docs/types/TagContentTypeMapping.html +3 -3
  363. package/docs/types/TagDimensionType.html +3 -3
  364. package/docs/types/TagElement.html +3 -3
  365. package/docs/types/TagEvents.html +3 -3
  366. package/docs/types/TagGLTFObject.html +3 -3
  367. package/docs/types/TagHooks.html +3 -3
  368. package/docs/types/TagId.html +3 -3
  369. package/docs/types/TagInstance.html +3 -3
  370. package/docs/types/TagPointType.html +3 -3
  371. package/docs/types/TagRendererMap.html +3 -3
  372. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
  373. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
  374. package/docs/types/WorkCode.html +3 -3
  375. package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
  376. package/docs/variables/PLUGIN.html +3 -3
  377. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
  378. package/docs/variables/ROOM_TYPE_MAP.html +3 -3
  379. package/docs/variables/defaultGlobalConfig.html +3 -3
  380. package/docs/variables/itemLabelPluginServerParams.html +3 -3
  381. package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
  382. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
  383. package/libs/PanoTagPlugin/controller/TagComputer.js +2 -0
  384. package/libs/PanoTagPlugin/controller/TagRender.d.ts +6 -5
  385. package/libs/PanoTagPlugin/controller/TagRender.js +162 -158
  386. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +11 -6
  387. package/libs/PanoTagPlugin/controller/TagUtil.js +111 -107
  388. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  389. package/libs/PanoTagPlugin/controller/index.js +54 -49
  390. package/libs/PanoTagPlugin/utils/debounce.d.ts +1 -0
  391. package/libs/PanoTagPlugin/utils/debounce.js +13 -4
  392. package/libs/PanoTagPlugin/utils/index.js +7 -6
  393. package/libs/base/BasePlugin.js +1 -1
  394. package/libs/shared-utils/logger.js +1 -1
  395. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
1
  var A = Object.defineProperty;
2
- var R = Object.getOwnPropertySymbols;
3
- var k = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
4
- var C = (d, m, t) => m in d ? A(d, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[m] = t, j = (d, m) => {
2
+ var j = Object.getOwnPropertySymbols;
3
+ var I = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
4
+ var S = (c, m, t) => m in c ? A(c, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[m] = t, k = (c, m) => {
5
5
  for (var t in m || (m = {}))
6
- k.call(m, t) && C(d, t, m[t]);
7
- if (R)
8
- for (var t of R(m))
9
- I.call(m, t) && C(d, t, m[t]);
10
- return d;
6
+ I.call(m, t) && S(c, t, m[t]);
7
+ if (j)
8
+ for (var t of j(m))
9
+ V.call(m, t) && S(c, t, m[t]);
10
+ return c;
11
11
  };
12
- var u = (d, m, t) => (C(d, typeof m != "symbol" ? m + "" : m, t), t);
13
- var S = (d, m, t) => new Promise((e, o) => {
12
+ var p = (c, m, t) => (S(c, typeof m != "symbol" ? m + "" : m, t), t);
13
+ var C = (c, m, t) => new Promise((e, o) => {
14
14
  var i = (s) => {
15
15
  try {
16
16
  a(t.next(s));
@@ -24,17 +24,18 @@ var S = (d, m, t) => new Promise((e, o) => {
24
24
  o(n);
25
25
  }
26
26
  }, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(i, r);
27
- a((t = t.apply(d, m)).next());
27
+ a((t = t.apply(c, m)).next());
28
28
  });
29
- import { TagComputer as V } from "./TagComputer.js";
30
- import { Group as y, Quaternion as x, Vector3 as b, Matrix4 as v } from "three";
29
+ import { TagComputer as x } from "./TagComputer.js";
30
+ import { Group as M, Quaternion as E, Vector3 as b, Matrix4 as v } from "three";
31
31
  import O from "../Components/TagContainer.js";
32
- import E from "../Components/Tag/index.js";
33
- import { loadGLTF as G } from "../../shared-utils/three/GLTFLoader.js";
34
- import { isMediaModelTag as D, isStickModelTag as F } from "../utils/tag/tagCheck.js";
35
- import { VideoPlane as _, ImagePlane as w } from "../utils/model/mediaPlane.js";
36
- import { centerPoint as L } from "../../shared-utils/three/centerPoint.js";
37
- import { arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
32
+ import G from "../Components/Tag/index.js";
33
+ import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
34
+ import { isMediaModelTag as g, isStickModelTag as _ } from "../utils/tag/tagCheck.js";
35
+ import { VideoPlane as L, ImagePlane as w } from "../utils/model/mediaPlane.js";
36
+ import { centerPoint as W } from "../../shared-utils/three/centerPoint.js";
37
+ import { arrayPositionToVector3 as D } from "../../shared-utils/positionToVector3.js";
38
+ import { debounceByKey as y } from "../utils/debounce.js";
38
39
  import "../utils/tagPosition.js";
39
40
  import "../utils/checkRange.js";
40
41
  import "../../shared-utils/five/mode.js";
@@ -161,39 +162,112 @@ import "../Components/Tag/LinkTag.js";
161
162
  import "../Components/Tag/PanoramaTag.js";
162
163
  import "../Components/Tag/CustomTag.js";
163
164
  import "@realsee/five/gltf-loader";
164
- const W = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
165
- class Pi extends V {
165
+ const q = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
166
+ class bi extends x {
166
167
  constructor(t) {
167
168
  super(t);
168
- u(this, "rendererMap", /* @__PURE__ */ new Map());
169
- u(this, "contentTypeMap", /* @__PURE__ */ new Map());
170
- u(this, "group", new y());
171
- u(this, "imagePlaneGroup", new y());
172
- u(this, "gltfObjectGroup", new y());
169
+ p(this, "rendererMap", /* @__PURE__ */ new Map());
170
+ p(this, "contentTypeMap", /* @__PURE__ */ new Map());
171
+ p(this, "group", new M());
172
+ p(this, "imagePlaneGroup", new M());
173
+ p(this, "gltfObjectGroup", new M());
173
174
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
174
- u(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
175
+ p(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
175
176
  /** 临时状态 */
176
- u(this, "temporaryState", { visible: !0 });
177
+ p(this, "temporaryState", { visible: !0 });
177
178
  /** 点标签 */
178
- u(this, "TagContainerSvelte");
179
+ p(this, "TagContainerSvelte");
180
+ /**
181
+ * @description 渲染3D贴片
182
+ */
183
+ p(this, "updateRender3DDomTag", () => {
184
+ this.filterCSS3DTag.forEach((e) => {
185
+ var o, i, r;
186
+ if (e.tag3DContentSvelte) {
187
+ const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
188
+ if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
189
+ const d = new E().setFromUnitVectors(n, l);
190
+ s.css3DObject.setRotationFromQuaternion(d);
191
+ }
192
+ return;
193
+ } else {
194
+ if (g(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
195
+ return;
196
+ if (e.stickType === "3DPoint" && !e.normal)
197
+ return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
198
+ const a = this.getPositions(e);
199
+ if (!a)
200
+ return;
201
+ const s = this.getTagNormal(e);
202
+ if (!s)
203
+ return;
204
+ const n = this.getTagConfig(e), l = k({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
205
+ if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
206
+ l.mode = "behind", l.container = document.createElement("div");
207
+ const f = "black";
208
+ l.container.style.backgroundColor = f, l.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
209
+ var h;
210
+ if (d.css3DObject.opacityMesh && n.clickable !== !1) {
211
+ const T = this.addObjectClickHandler(e, d.css3DObject.opacityMesh, (P) => {
212
+ this.hooks.emit("click", { event: P, target: "TagContent", tag: e });
213
+ });
214
+ (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.push(T);
215
+ }
216
+ });
217
+ }
218
+ const d = this.css3DRenderPlugin.create3DDomContainer(a, l);
219
+ if (!d)
220
+ return;
221
+ this.store.css3DRenderDisposer.set(e.id, [d.dispose]);
222
+ const u = new G({
223
+ target: d.container,
224
+ props: {
225
+ tag: e,
226
+ hooks: this.hooks,
227
+ /** 模型标签要等模型加载好之后再展示 */
228
+ state: this.state,
229
+ mediaStore: this.mediaStore,
230
+ temporaryState: this.temporaryState
231
+ }
232
+ });
233
+ e.tag3DContentSvelte = {
234
+ svelteApp: u,
235
+ domContainer: d,
236
+ css3DInstance: d,
237
+ initialNormal: s,
238
+ currentNormal: s,
239
+ dispose: () => {
240
+ u.$destroy(), d.dispose();
241
+ }
242
+ }, g(e) && ((r = e.model) != null && r.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
243
+ }
244
+ }), this.clearUnusedPanelTag();
245
+ });
246
+ /**
247
+ * @description 渲染单个点的标签
248
+ */
249
+ p(this, "updateRenderPointTag", () => {
250
+ const t = this.filterPointTag;
251
+ this.setTagZIndex(t), this.setPointTagPosition(), y("updateDomView", this.updateDomView)();
252
+ });
179
253
  /** 加载外部模型 */
180
- u(this, "loadModel", (t) => S(this, null, function* () {
254
+ p(this, "loadModel", (t) => C(this, null, function* () {
181
255
  var a;
182
256
  const e = t.data.modelUrl;
183
257
  if (!e)
184
258
  return;
185
259
  t.loading = !0;
186
- const o = G(e).then((s) => {
187
- var p;
260
+ const o = F(e).then((s) => {
261
+ var d;
188
262
  const n = Object.assign(s.scene, {
189
263
  customID: t.id,
190
264
  isTagModel: !0,
191
265
  removeEventListener: this.getTagConfig(t).clickable === !1 ? () => {
192
- } : this.addObjectClickHandler(t, s.scene, (h) => {
193
- this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
266
+ } : this.addObjectClickHandler(t, s.scene, (u) => {
267
+ this.hooks.emit("click", { target: "TagModel", tag: t, event: u });
194
268
  })
195
269
  });
196
- return n.visible = this.getCurrentVisibleState(t), new v().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (p = this.getTagConfig(t).modelConfig) != null && p.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
270
+ return n.visible = this.getCurrentVisibleState(t), new v().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (d = this.getTagConfig(t).modelConfig) != null && d.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
197
271
  });
198
272
  t.model = { promise: o };
199
273
  const i = yield o;
@@ -201,10 +275,10 @@ class Pi extends V {
201
275
  return;
202
276
  t.model.object = i;
203
277
  const r = this.gltfObjectGroup.children.find((s) => s.customID === t.id);
204
- if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(), D(t)) {
278
+ if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(), g(t)) {
205
279
  if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
206
- const s = t.data.mediaPosition.map(g);
207
- t.mediaPlane = new w(t.data.mediaData[0].url, t.data.mediaPosition.map(g), {
280
+ const s = t.data.mediaPosition.map(D);
281
+ t.mediaPlane = new w(t.data.mediaData[0].url, t.data.mediaPosition.map(D), {
208
282
  objectFit: t.data.objectFit
209
283
  });
210
284
  const n = new b().addVectors(s[0], s[2]).divideScalar(2);
@@ -214,6 +288,33 @@ class Pi extends V {
214
288
  }
215
289
  return this.gltfObjectGroup.add(i), i;
216
290
  }));
291
+ p(this, "updateDomView", (t = {}) => {
292
+ var o;
293
+ const e = this.filterPointTag.filter((i) => i.state.visible);
294
+ if (this.TagContainerSvelte)
295
+ this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
296
+ else {
297
+ if (!e.length)
298
+ return;
299
+ const i = this.container;
300
+ if (!i)
301
+ return console.error("updateRenderPlaneTag: tag2DContainer not found");
302
+ this.TagContainerSvelte = new O({
303
+ target: i,
304
+ props: {
305
+ hooks: this.hooks,
306
+ tags: e,
307
+ state: this.state,
308
+ temporaryState: this.temporaryState,
309
+ mediaStore: this.mediaStore,
310
+ rendererMap: this.rendererMap,
311
+ contentTypeMap: this.contentTypeMap,
312
+ withAnimation: (o = t == null ? void 0 : t.withAnimation) != null ? o : this.store.visibleWithAnimation,
313
+ zIndex: this.params.containerZIndex
314
+ }
315
+ });
316
+ }
317
+ });
217
318
  this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
218
319
  }
219
320
  /**
@@ -237,7 +338,7 @@ class Pi extends V {
237
338
  this.tags.length && (this.tags.forEach((e) => {
238
339
  var o, i;
239
340
  (i = (o = e.mediaPlane) == null ? void 0 : o.parent) == null || i.remove(e.mediaPlane);
240
- }), this.tags = [], (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache();
341
+ }), this.tags = [], (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache(), this.tagsLengthWillUpdate = !0;
241
342
  }
242
343
  /**
243
344
  * @description 更新所有标签
@@ -245,6 +346,12 @@ class Pi extends V {
245
346
  updateRenderAllTags() {
246
347
  this.enabledModelTagSet.clear(), this.tags.forEach((t) => t.stickType === "Model" && this.enabledModelTagSet.add(t.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane(), this.updateRenderVideoPlane();
247
348
  }
349
+ updateAllTagsNextFrame() {
350
+ requestAnimationFrame(() => this.updateRenderAllTags());
351
+ }
352
+ updateTag(t) {
353
+ t.stickType === "2DPoint" ? y("updateRenderPointTag", this.updateRenderPointTag)() : t.stickType === "3DPoint" ? (y("updateRenderPointTag", this.updateRenderPointTag)(), y("updateRender3DDomTag", this.updateRender3DDomTag)()) : t.stickType === "Model" ? (this.enabledModelTagSet.clear(), this.tags.forEach((e) => e.stickType === "Model" && this.enabledModelTagSet.add(e.id)), this.updateRenderModelTag()) : t.stickType === "Plane" && (this.updateRenderImagePlane(), this.updateRenderVideoPlane());
354
+ }
248
355
  updateRenderVideoPlane() {
249
356
  this.filterImagePlane.filter((e) => {
250
357
  var o, i;
@@ -259,20 +366,20 @@ class Pi extends V {
259
366
  return;
260
367
  const r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
261
368
  if ((a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), s || n) {
262
- const p = e.position.map(g), h = new _(i, p, {
369
+ const d = e.position.map(D), u = new L(i, d, {
263
370
  videoCoverSrc: o.videoCoverUrl,
264
371
  playButton: e.data.playIcon,
265
372
  paused: !((l = e.data.autoplayConfig) != null && l.autoplayVideo),
266
373
  objectFit: e.data.objectFit,
267
- videoTextureMap: W,
374
+ videoTextureMap: q,
268
375
  ImageTextureMap: $,
269
376
  domEvents: this.domEvents
270
377
  });
271
- h.onVideoReady = (c) => {
272
- c.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: h.videoInstance }));
378
+ u.onVideoReady = (h) => {
379
+ h.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: u.videoInstance }));
273
380
  };
274
- const f = (c) => (this.five.on("renderFrame", c), () => this.five.off("renderFrame", c));
275
- h.initialRenderHooks(f), e.mediaPlane = h, this.imagePlaneGroup.add(e.mediaPlane);
381
+ const f = (h) => (this.five.on("renderFrame", h), () => this.five.off("renderFrame", h));
382
+ u.initialRenderHooks(f), e.mediaPlane = u, this.imagePlaneGroup.add(e.mediaPlane);
276
383
  }
277
384
  });
278
385
  }
@@ -287,7 +394,7 @@ class Pi extends V {
287
394
  const { url: o } = e.data.mediaData[0];
288
395
  if (!o)
289
396
  return;
290
- const i = e.position.map(g), r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
397
+ const i = e.position.map(D), r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
291
398
  (a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (s || n) && (e.mediaPlane = new w(o, i, { objectFit: e.data.objectFit }), this.getTagConfig(e).clickable !== !1 && this.domEvents.addAutoBindEventListener(
292
399
  e.mediaPlane,
293
400
  "click",
@@ -298,72 +405,6 @@ class Pi extends V {
298
405
  ), this.imagePlaneGroup.add(e.mediaPlane));
299
406
  });
300
407
  }
301
- /**
302
- * @description 渲染3D贴片
303
- */
304
- updateRender3DDomTag() {
305
- this.filterCSS3DTag.forEach((e) => {
306
- var o, i, r;
307
- if (e.tag3DContentSvelte) {
308
- const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
309
- if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
310
- const p = new x().setFromUnitVectors(n, l);
311
- s.css3DObject.setRotationFromQuaternion(p);
312
- }
313
- return;
314
- } else {
315
- if (D(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
316
- return;
317
- if (e.stickType === "3DPoint" && !e.normal)
318
- return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
319
- const a = this.getPositions(e);
320
- if (!a)
321
- return;
322
- const s = this.getTagNormal(e);
323
- if (!s)
324
- return;
325
- const n = this.getTagConfig(e), l = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
326
- if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
327
- l.mode = "behind", l.container = document.createElement("div");
328
- const f = "black";
329
- l.container.style.backgroundColor = f, l.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
330
- var c;
331
- if (p.css3DObject.opacityMesh && n.clickable !== !1) {
332
- const P = this.addObjectClickHandler(e, p.css3DObject.opacityMesh, (T) => {
333
- this.hooks.emit("click", { event: T, target: "TagContent", tag: e });
334
- });
335
- (c = this.store.css3DRenderDisposer.get(e.id)) == null || c.push(P);
336
- }
337
- });
338
- }
339
- const p = this.css3DRenderPlugin.create3DDomContainer(a, l);
340
- if (!p)
341
- return;
342
- this.store.css3DRenderDisposer.set(e.id, [p.dispose]);
343
- const h = new E({
344
- target: p.container,
345
- props: {
346
- tag: e,
347
- hooks: this.hooks,
348
- /** 模型标签要等模型加载好之后再展示 */
349
- state: this.state,
350
- mediaStore: this.mediaStore,
351
- temporaryState: this.temporaryState
352
- }
353
- });
354
- e.tag3DContentSvelte = {
355
- svelteApp: h,
356
- domContainer: p,
357
- css3DInstance: p,
358
- initialNormal: s,
359
- currentNormal: s,
360
- dispose: () => {
361
- h.$destroy(), p.dispose();
362
- }
363
- }, D(e) && ((r = e.model) != null && r.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
364
- }
365
- }), this.clearUnusedPanelTag();
366
- }
367
408
  /** 更新所有模型标签
368
409
  *
369
410
  * 1. 移除不应该在场景中的模型
@@ -392,23 +433,23 @@ class Pi extends V {
392
433
  * @param model 模型
393
434
  */
394
435
  updateTagCss3DObjectMatrix(t, e) {
395
- var P, T, M;
396
- const o = (T = (P = this.getTagConfig(t).tag3DConfig) == null ? void 0 : P.ratio) != null ? T : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
436
+ var T, P, R;
437
+ const o = (P = (T = this.getTagConfig(t).tag3DConfig) == null ? void 0 : T.ratio) != null ? P : 216e-5, i = (R = t.tag3DContentSvelte) == null ? void 0 : R.css3DInstance.css3DObject;
397
438
  if (!i)
398
439
  return;
399
- const r = D(t) ? t.data.mediaPosition : t.position;
440
+ const r = g(t) ? t.data.mediaPosition : t.position;
400
441
  if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
401
442
  return;
402
443
  e.updateWorldMatrix(!1, !1);
403
- const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), l = L(s, n).add(new b(0, 0, 5e-4)), p = new v().setPosition(l), h = new v().makeScale(o, o, o), f = new v().multiply(a).multiply(p).multiply(h);
444
+ const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), l = W(s, n).add(new b(0, 0, 5e-4)), d = new v().setPosition(l), u = new v().makeScale(o, o, o), f = new v().multiply(a).multiply(d).multiply(u);
404
445
  f.decompose(i.position, i.quaternion, i.scale);
405
- const c = i.opacityMesh;
406
- c && f.decompose(c.position, c.quaternion, c.scale);
446
+ const h = i.opacityMesh;
447
+ h && f.decompose(h.position, h.quaternion, h.scale);
407
448
  }
408
449
  /** 添加模型标签 */
409
450
  addMediaModelTag(t) {
410
- return S(this, null, function* () {
411
- const e = t.filter(F).map((o) => this.loadModel(o));
451
+ return C(this, null, function* () {
452
+ const e = t.filter(_).map((o) => this.loadModel(o));
412
453
  yield Promise.all(e), this.setVisible(), this.updateRenderAllTags();
413
454
  });
414
455
  }
@@ -433,16 +474,6 @@ class Pi extends V {
433
474
  r ? e.screenPosition = { leftPercent: (r.x + 1) / 2 * 100, topPercent: (-r.y + 1) / 2 * 100 } : e.screenPosition = null;
434
475
  });
435
476
  }
436
- /**
437
- * @description 渲染单个点的标签
438
- */
439
- updateRenderPointTag() {
440
- const t = this.filterPointTag;
441
- this.setTagZIndex(t), this.setPointTagPosition(), this.updateDomView();
442
- }
443
- updatePointTagPosition() {
444
- this.setPointTagPosition(), this.updateDomView();
445
- }
446
477
  updateTagContainerVisible() {
447
478
  var t;
448
479
  (t = this.TagContainerSvelte) == null || t.$set({
@@ -476,34 +507,7 @@ class Pi extends V {
476
507
  (!o || o.stickType === "2DPoint") && (e == null || e.forEach((i) => i == null ? void 0 : i()), this.store.css3DRenderDisposer.delete(t));
477
508
  }
478
509
  }
479
- updateDomView(t = {}) {
480
- var o;
481
- const e = this.filterPointTag.filter((i) => i.state.visible);
482
- if (this.TagContainerSvelte)
483
- this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
484
- else {
485
- if (!e.length)
486
- return;
487
- const i = this.container;
488
- if (!i)
489
- return console.error("updateRenderPlaneTag: tag2DContainer not found");
490
- this.TagContainerSvelte = new O({
491
- target: i,
492
- props: {
493
- hooks: this.hooks,
494
- tags: e,
495
- state: this.state,
496
- temporaryState: this.temporaryState,
497
- mediaStore: this.mediaStore,
498
- rendererMap: this.rendererMap,
499
- contentTypeMap: this.contentTypeMap,
500
- withAnimation: (o = t == null ? void 0 : t.withAnimation) != null ? o : this.store.visibleWithAnimation,
501
- zIndex: this.params.containerZIndex
502
- }
503
- });
504
- }
505
- }
506
510
  }
507
511
  export {
508
- Pi as TagRender
512
+ bi as TagRender
509
513
  };
@@ -12,7 +12,7 @@ export declare abstract class TagUtil extends TagCache {
12
12
  get container(): Element;
13
13
  set container(container: Element);
14
14
  config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
15
- tagsLengthWillUpdate: boolean;
15
+ set tagsLengthWillUpdate(value: boolean);
16
16
  workUtil: WorkUtil;
17
17
  set workCode(workCode: string);
18
18
  get workCode(): string;
@@ -36,6 +36,16 @@ export declare abstract class TagUtil extends TagCache {
36
36
  disposed: boolean;
37
37
  };
38
38
  protected domEvents: FiveDomEvents;
39
+ private _cache_pointTag?;
40
+ private _cache_2DPointTag?;
41
+ private _cache_imagePlane?;
42
+ private _cache_mediaModel?;
43
+ private _cache_css3DTag?;
44
+ protected get filterPointTag(): PointTagInstance[];
45
+ protected get filter2DPointTag(): TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "2DPoint">[];
46
+ protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
47
+ protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
48
+ protected get filterCSS3DTag(): (TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
39
49
  private _container;
40
50
  private _css3DRenderPlugin;
41
51
  protected constructor(five: Five);
@@ -68,11 +78,6 @@ export declare abstract class TagUtil extends TagCache {
68
78
  protected getPositions(tag: TagInstance): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition];
69
79
  protected addObjectClickHandler(tag: TagInstance, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
70
80
  protected getTagNormal(tag: TagInstance): THREE.Vector3 | undefined;
71
- protected get filterPointTag(): PointTagInstance[];
72
- protected get filter2DPointTag(): TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "2DPoint">[];
73
- protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
74
- protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
75
- protected get filterCSS3DTag(): (TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
76
81
  protected getTransformedPostion(position: Tag['position']): THREE.Vector3 | [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3];
77
82
  /**
78
83
  * @description 检查是否已经销毁