@realsee/dnalogel 3.37.0 → 3.37.2

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