@realsee/dnalogel 2.20.0-alpha.0 → 2.20.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/dist/PanoTagPlugin/Archive/deprecated.d.ts +45 -1
  2. package/dist/PanoTagPlugin/typings/controller.d.ts +2 -48
  3. package/dist/PanoTagPlugin/typings/index.d.ts +1 -0
  4. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -5
  5. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +1 -34
  6. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +51 -0
  7. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -11
  8. package/dist/index.cjs.js +5 -5
  9. package/dist/index.js +20 -18
  10. package/dist/index.umd.js +5 -5
  11. package/docs/assets/search.js +1 -1
  12. package/docs/classes/CSS3DRender.html +4 -4
  13. package/docs/classes/CruisePluginController.html +4 -4
  14. package/docs/classes/GuideLineItem.GuideLineItem.html +4 -4
  15. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +4 -4
  16. package/docs/classes/Magnifier.html +4 -4
  17. package/docs/classes/ModelRoomLabelController.html +4 -4
  18. package/docs/classes/Object3DHelperController.html +4 -4
  19. package/docs/classes/PaintBrush.html +4 -4
  20. package/docs/classes/PanoMeasurePluginLine.html +4 -4
  21. package/docs/classes/PanoMeasurePluginModel.html +4 -4
  22. package/docs/classes/PanoMeasurePluginPoint.html +4 -4
  23. package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
  24. package/docs/classes/PanoTagPluginController.html +23 -23
  25. package/docs/classes/Util.BetterTween.html +4 -4
  26. package/docs/classes/Util.FivePointSelector.html +4 -4
  27. package/docs/classes/Util.Interval.html +4 -4
  28. package/docs/classes/Util.Magnifier.html +4 -4
  29. package/docs/classes/Util.PointDomHelper.html +4 -4
  30. package/docs/classes/Util.PointHelper.html +4 -4
  31. package/docs/classes/Util.Rectangle.html +4 -4
  32. package/docs/enums/CameraMovementEffect.html +4 -4
  33. package/docs/enums/ContentType.html +20 -20
  34. package/docs/enums/DIRECTION.html +4 -4
  35. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
  36. package/docs/enums/DimensionType.html +7 -7
  37. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
  38. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
  39. package/docs/enums/PaintBrushTypeEnum.html +4 -4
  40. package/docs/enums/PointType.html +4 -4
  41. package/docs/enums/Rotation.html +4 -4
  42. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  43. package/docs/functions/CameraMovementPlugin.html +4 -4
  44. package/docs/functions/CruisePlugin.html +4 -4
  45. package/docs/functions/GuideLinePlugin.html +4 -4
  46. package/docs/functions/ItemLabelPlugin.html +4 -4
  47. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  48. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  49. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  50. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  51. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  52. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  53. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  54. package/docs/functions/ModelViewPlugin.html +4 -4
  55. package/docs/functions/Object3DHelperPlugin.html +4 -4
  56. package/docs/functions/PanoCompassPlugin.html +4 -4
  57. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  58. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  59. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  60. package/docs/functions/PanoMeasurePlugin.html +4 -4
  61. package/docs/functions/PanoRulerPlugin.html +4 -4
  62. package/docs/functions/PanoRulerProPlugin.html +4 -4
  63. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  64. package/docs/functions/PanoTagPlugin.html +4 -4
  65. package/docs/functions/PanoVideoPlugin.html +4 -4
  66. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  67. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  68. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  69. package/docs/functions/Util.getFrameTime.html +4 -4
  70. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  71. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  72. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  73. package/docs/functions/Util.isModelLike.html +4 -4
  74. package/docs/functions/Util.isNil.html +4 -4
  75. package/docs/functions/Util.isPanoramaLike.html +4 -4
  76. package/docs/functions/Util.nextFrame.html +4 -4
  77. package/docs/functions/Util.notNil.html +4 -4
  78. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  79. package/docs/functions/Util.tweenProgress.html +4 -4
  80. package/docs/functions/Util.uuid.html +4 -4
  81. package/docs/functions/pluginFlag.html +4 -4
  82. package/docs/index.html +5 -5
  83. package/docs/interfaces/AddTagConfig.html +6 -6
  84. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  85. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  86. package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
  87. package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
  88. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +4 -4
  89. package/docs/interfaces/CruisePluginTypes.EventMap.html +4 -4
  90. package/docs/interfaces/CruisePluginTypes.MoveAction.html +4 -4
  91. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +4 -4
  92. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +4 -4
  93. package/docs/interfaces/CruisePluginTypes.PluginData.html +4 -4
  94. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +4 -4
  95. package/docs/interfaces/CruisePluginTypes.PluginState.html +4 -4
  96. package/docs/interfaces/EventMap.html +15 -15
  97. package/docs/interfaces/FloorplanBounding.html +4 -4
  98. package/docs/interfaces/FloorplanData.html +4 -4
  99. package/docs/interfaces/FloorplanEntrance.html +4 -4
  100. package/docs/interfaces/FloorplanExtraObject.html +4 -4
  101. package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
  102. package/docs/interfaces/FloorplanFloorData.html +4 -4
  103. package/docs/interfaces/FloorplanImagePosition.html +4 -4
  104. package/docs/interfaces/FloorplanObserver.html +4 -4
  105. package/docs/interfaces/FloorplanOutlineItem.html +4 -4
  106. package/docs/interfaces/FloorplanPosition.html +4 -4
  107. package/docs/interfaces/FloorplanRoomItem.html +4 -4
  108. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  109. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  110. package/docs/interfaces/FloorplanServerComputedData.html +4 -4
  111. package/docs/interfaces/FloorplanServerData.html +4 -4
  112. package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
  113. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
  114. package/docs/interfaces/FloorplanServerEntrance.html +4 -4
  115. package/docs/interfaces/FloorplanServerFloorData.html +4 -4
  116. package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
  117. package/docs/interfaces/FloorplanServerObserver.html +4 -4
  118. package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
  119. package/docs/interfaces/FloorplanServerPosition.html +4 -4
  120. package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
  121. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  122. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -4
  123. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +4 -4
  124. package/docs/interfaces/GuideLinePluginType.EventMap.html +4 -4
  125. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +4 -4
  126. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +4 -4
  127. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +4 -4
  128. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +4 -4
  129. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +4 -4
  130. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +4 -4
  131. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +4 -4
  132. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  133. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +4 -4
  134. package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
  135. package/docs/interfaces/GuideLinePluginType.Route.html +4 -4
  136. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +4 -4
  137. package/docs/interfaces/HelperOffset.html +4 -4
  138. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  139. package/docs/interfaces/ItemLabelPluginData.html +4 -4
  140. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
  141. package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
  142. package/docs/interfaces/MinMax.html +4 -4
  143. package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
  144. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
  145. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
  146. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
  147. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
  148. package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
  149. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
  150. package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
  151. package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
  152. package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
  153. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
  154. package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
  155. package/docs/interfaces/ModelViewPluginExportType.html +4 -4
  156. package/docs/interfaces/Object3DHelperState.html +4 -4
  157. package/docs/interfaces/ObjectHelperControllers.html +4 -4
  158. package/docs/interfaces/PaintBrushAction.html +4 -4
  159. package/docs/interfaces/PaintBrushConfigs.html +4 -4
  160. package/docs/interfaces/PaintBrushState.html +4 -4
  161. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
  162. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  163. package/docs/interfaces/PanoMeasureParameterType.html +4 -4
  164. package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -4
  165. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -4
  166. package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -4
  167. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
  168. package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
  169. package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
  170. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
  171. package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
  172. package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
  173. package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
  174. package/docs/interfaces/PanoRulerProPluginState.html +4 -4
  175. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  176. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  177. package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
  178. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
  179. package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
  180. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
  181. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
  182. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
  183. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
  184. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -4
  185. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -4
  186. package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -4
  187. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -4
  188. package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -4
  189. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -4
  190. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -4
  191. package/docs/interfaces/Point.html +4 -4
  192. package/docs/interfaces/Room.html +4 -4
  193. package/docs/interfaces/RoomInfo.html +4 -4
  194. package/docs/interfaces/RoomLabel.html +4 -4
  195. package/docs/interfaces/RoomRules.html +4 -4
  196. package/docs/interfaces/Rooms.html +4 -4
  197. package/docs/interfaces/Scissor.html +4 -4
  198. package/docs/interfaces/State.html +5 -5
  199. package/docs/interfaces/TagCacheInterface.html +12 -12
  200. package/docs/interfaces/TagConfig.html +14 -14
  201. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  202. package/docs/interfaces/TagIconUrl.html +12 -12
  203. package/docs/interfaces/TagObjectGroup.html +6 -6
  204. package/docs/interfaces/TagStyle.html +6 -6
  205. package/docs/interfaces/Tags.html +4 -4
  206. package/docs/interfaces/TemporaryState.html +6 -6
  207. package/docs/interfaces/Util.MagnifierParameter.html +4 -4
  208. package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
  209. package/docs/modules/CruisePluginTypes.html +4 -4
  210. package/docs/modules/GuideLineItem.html +4 -4
  211. package/docs/modules/GuideLineModeItem.html +4 -4
  212. package/docs/modules/GuideLinePluginType.html +4 -4
  213. package/docs/modules/PanoVideoPluginType.html +4 -4
  214. package/docs/modules/Util.html +4 -4
  215. package/docs/modules.html +6 -6
  216. package/docs/types/ArrayPosition.html +4 -4
  217. package/docs/types/AudioAppearance.html +5 -5
  218. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  219. package/docs/types/CSS3DRenderExportType.html +4 -4
  220. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  221. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  222. package/docs/types/ClassFunctionParameters.html +4 -4
  223. package/docs/types/Color.html +4 -4
  224. package/docs/types/ContentTypeConfigKey.html +5 -5
  225. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  226. package/docs/types/ContentTypeMap.html +5 -5
  227. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  228. package/docs/types/Create3DElementReturnType.html +4 -4
  229. package/docs/types/CruisePluginExportType.html +4 -4
  230. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  231. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  232. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -5
  233. package/docs/types/DeprecatedTagProperty.html +5 -5
  234. package/docs/types/Direction-1.html +4 -4
  235. package/docs/types/Direction4.html +4 -4
  236. package/docs/types/ElementRenderer.html +5 -5
  237. package/docs/types/FloorplanRuleLabels.html +4 -4
  238. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  239. package/docs/types/GuideLinePluginExportType.html +4 -4
  240. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  241. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  242. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  243. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  244. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  245. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  246. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  247. package/docs/types/HelperEventMap.html +4 -4
  248. package/docs/types/LoadTagConfig.html +5 -5
  249. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  250. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  251. package/docs/types/MediaData.html +4 -4
  252. package/docs/types/MediaStore.html +5 -5
  253. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  254. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  255. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  256. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  257. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  258. package/docs/types/MoveArgs.html +4 -4
  259. package/docs/types/MoveOpts.html +4 -4
  260. package/docs/types/Object3DHelperEventMap.html +4 -4
  261. package/docs/types/ObjectFit.html +4 -4
  262. package/docs/types/PaintBrushEventMap.html +4 -4
  263. package/docs/types/PanoCompassPluginData.html +4 -4
  264. package/docs/types/PanoCompassPluginExportType.html +4 -4
  265. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  266. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  267. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  268. package/docs/types/PanoIndex.html +4 -4
  269. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  270. package/docs/types/PanoMeasureReturnType.html +4 -4
  271. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  272. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  273. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  274. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  275. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  276. package/docs/types/PartialObjectDeep.html +4 -4
  277. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -5
  278. package/docs/types/PlaneTag.html +5 -5
  279. package/docs/types/Point2DTag.html +5 -5
  280. package/docs/types/Point3DTag.html +5 -5
  281. package/docs/types/PointTag.html +5 -5
  282. package/docs/types/PointTagInstance.html +5 -5
  283. package/docs/types/Position.html +4 -4
  284. package/docs/types/RotateArgs.html +4 -4
  285. package/docs/types/RotateOpts.html +4 -4
  286. package/docs/types/RuleLabelsKey.html +4 -4
  287. package/docs/types/RuleLabelsValue.html +4 -4
  288. package/docs/types/StickType.html +5 -5
  289. package/docs/types/Tag.html +4 -4
  290. package/docs/types/Tag2D.html +5 -5
  291. package/docs/types/Tag3D.html +5 -5
  292. package/docs/types/TagContentType.html +5 -5
  293. package/docs/types/TagDimensionType.html +8 -6
  294. package/docs/types/TagElement.html +5 -5
  295. package/docs/types/TagEvents.html +5 -5
  296. package/docs/types/TagGLTFObject.html +5 -5
  297. package/docs/types/TagHooks.html +5 -5
  298. package/docs/types/TagIconSize.html +5 -5
  299. package/docs/types/TagId.html +4 -4
  300. package/docs/types/TagInstance.html +6 -6
  301. package/docs/types/TagPointType.html +5 -5
  302. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  303. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  304. package/docs/types/WorkCode.html +4 -4
  305. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  306. package/docs/variables/PLUGIN.html +4 -4
  307. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  308. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  309. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  310. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  311. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  312. package/libs/PanoTagPlugin/Archive/deprecated.d.ts +45 -1
  313. package/libs/PanoTagPlugin/Archive/deprecated.js +4 -2
  314. package/libs/PanoTagPlugin/Components/Tag/index.js +21 -21
  315. package/libs/PanoTagPlugin/Components/TagItem.js +31 -31
  316. package/libs/PanoTagPlugin/controller/TagRender.js +32 -32
  317. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  318. package/libs/PanoTagPlugin/controller/index.js +36 -34
  319. package/libs/PanoTagPlugin/index.js +11 -13
  320. package/libs/PanoTagPlugin/typings/controller.d.ts +2 -48
  321. package/libs/PanoTagPlugin/typings/index.d.ts +1 -0
  322. package/libs/PanoTagPlugin/typings/index.js +3 -5
  323. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -5
  324. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +1 -34
  325. package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -4
  326. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +51 -0
  327. package/libs/PanoTagPlugin/typings/tag/TagInstance.js +1 -0
  328. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -11
  329. package/libs/PanoTagPlugin/typings/tag/Utils.js +1 -4
  330. package/libs/base/BasePlugin.js +3 -3
  331. package/libs/index.js +13 -15
  332. package/libs/shared-utils/logger.js +1 -1
  333. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
- var k = Object.defineProperty;
2
- var E = (f, h, t) => h in f ? k(f, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[h] = t;
3
- var b = (f, h, t) => (E(f, typeof h != "symbol" ? h + "" : h, t), t);
1
+ var R = Object.defineProperty;
2
+ var k = (f, h, t) => h in f ? R(f, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[h] = t;
3
+ var b = (f, h, t) => (k(f, typeof h != "symbol" ? h + "" : h, t), t);
4
4
  var C = (f, h, t) => new Promise((e, o) => {
5
5
  var i = (r) => {
6
6
  try {
@@ -17,16 +17,16 @@ var C = (f, h, t) => new Promise((e, o) => {
17
17
  }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, n);
18
18
  a((t = t.apply(f, h)).next());
19
19
  });
20
- import { TagComputer as w } from "./TagComputer.js";
21
- import { Group as S, Quaternion as O, Vector3 as v, Matrix4 as D } from "three";
22
- import A from "../Components/TagContainer.js";
23
- import x from "../Components/Tag/index.js";
20
+ import { TagComputer as E } from "./TagComputer.js";
21
+ import { Group as S, Quaternion as w, Vector3 as v, Matrix4 as D } from "three";
22
+ import O from "../Components/TagContainer.js";
23
+ import A from "../Components/Tag/index.js";
24
24
  import { arrayPositionToVector3 as y } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
- import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
26
- import { isMediaModelTag as P, isStickModelTag as I } from "../utils/tag/tagCheck.js";
27
- import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
28
- import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
29
- import { VideoPlane as j, ImagePlane as R } from "../utils/model/mediaPlane.js";
25
+ import { centerPoint as x } from "../../shared-utils/three/centerPoint.js";
26
+ import { isMediaModelTag as P, isStickModelTag as G } from "../utils/tag/tagCheck.js";
27
+ import { CSS3DRenderPlugin as I } from "../../CSS3DRenderPlugin/index.js";
28
+ import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
29
+ import { VideoPlane as M, ImagePlane as j } from "../utils/model/mediaPlane.js";
30
30
  import "../utils/tagPosition.js";
31
31
  import "../utils/checkRange.js";
32
32
  import "hammerjs";
@@ -139,8 +139,8 @@ import "../Components/Tag/CustomTag.js";
139
139
  import "../../CSS3DRenderPlugin/Controller.js";
140
140
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
141
141
  import "@realsee/five/gltf-loader";
142
- const L = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
143
- class ti extends w {
142
+ const F = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
143
+ class ei extends E {
144
144
  constructor(t) {
145
145
  super(t);
146
146
  b(this, "group", new S());
@@ -158,7 +158,7 @@ class ti extends w {
158
158
  const e = t.data.modelUrl;
159
159
  if (!e)
160
160
  return;
161
- const o = F(e).then((r) => {
161
+ const o = V(e).then((r) => {
162
162
  var p, m, l, c, d;
163
163
  const s = Object.assign(r.scene, {
164
164
  customID: t.id,
@@ -178,7 +178,7 @@ class ti extends w {
178
178
  if (n && (this.gltfObjectGroup.remove(n), n.removeEventListener()), this.updateRender3DDomTag(), P(t)) {
179
179
  if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
180
180
  const r = t.data.mediaPosition.map(y);
181
- t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(y), {
181
+ t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(y), {
182
182
  objectFit: t.data.objectFit
183
183
  });
184
184
  const s = new v().addVectors(r[0], r[2]).divideScalar(2);
@@ -212,21 +212,21 @@ class ti extends w {
212
212
  if (!o)
213
213
  return;
214
214
  const { url: i, type: n } = o;
215
- if (!i || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof j && ((u = e.data.autoplayConfig) != null && u.autoplayVideo || e.mediaPlane.pause())), ((p = e.mediaPlane) == null ? void 0 : p.src) === i))
215
+ if (!i || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof M && ((u = e.data.autoplayConfig) != null && u.autoplayVideo || e.mediaPlane.pause())), ((p = e.mediaPlane) == null ? void 0 : p.src) === i))
216
216
  return;
217
217
  const a = e.position.map(y);
218
218
  if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
219
- e.mediaPlane = new R(i, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (l) => {
219
+ e.mediaPlane = new j(i, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (l) => {
220
220
  this.hooks.emit("click", { tag: e, target: "TagContent", event: l.origDomEvent });
221
221
  });
222
222
  else if (n === "Video") {
223
- const l = new j(i, a, {
223
+ const l = new M(i, a, {
224
224
  videoCoverSrc: o.videoCoverUrl,
225
225
  playButton: e.data.playIcon,
226
226
  paused: !((m = e.data.autoplayConfig) != null && m.autoplayVideo),
227
227
  objectFit: e.data.objectFit,
228
- videoTextureMap: L,
229
- ImageTextureMap: B
228
+ videoTextureMap: F,
229
+ ImageTextureMap: L
230
230
  });
231
231
  l.onVideoReady = (d) => {
232
232
  d.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: l.videoInstance }));
@@ -246,14 +246,14 @@ class ti extends w {
246
246
  if (e.tag3DContentSvelte) {
247
247
  const { svelteApp: r, css3DInstance: s, initialNormal: u, currentNormal: p } = e.tag3DContentSvelte;
248
248
  if (r.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !u.equals(p)) {
249
- const m = new O().setFromUnitVectors(u, p);
249
+ const m = new w().setFromUnitVectors(u, p);
250
250
  s.css3DObject.setRotationFromQuaternion(m);
251
251
  }
252
252
  return;
253
253
  } else {
254
254
  if (P(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
255
255
  return;
256
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), e.stickType === "3DPoint" && !e.normal)
256
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = I(this.five)), e.stickType === "3DPoint" && !e.normal)
257
257
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
258
258
  const r = this.getPositions(e);
259
259
  if (!r)
@@ -279,7 +279,7 @@ class ti extends w {
279
279
  if (!m)
280
280
  return;
281
281
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
282
- const l = new x({
282
+ const l = new A({
283
283
  target: m.container,
284
284
  props: {
285
285
  tag: e,
@@ -330,15 +330,15 @@ class ti extends w {
330
330
  * @param model 模型
331
331
  */
332
332
  updateTagCss3DObjectMatrix(t, e) {
333
- var d, g, T, M;
334
- const o = (T = (g = (d = t.mergedConfig) == null ? void 0 : d.tag3DConfig) == null ? void 0 : g.ratio) != null ? T : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
333
+ var d, g, T;
334
+ const o = (g = (d = t.config.tag3DConfig) == null ? void 0 : d.ratio) != null ? g : 216e-5, i = (T = t.tag3DContentSvelte) == null ? void 0 : T.css3DInstance.css3DObject;
335
335
  if (!i)
336
336
  return;
337
337
  const n = P(t) ? t.data.mediaPosition : t.position;
338
338
  if (!n || n.length !== 4 || !Array.isArray(n[0]) || !Array.isArray(n[2]))
339
339
  return;
340
340
  e.updateWorldMatrix(!1, !1);
341
- const a = e.matrixWorld, r = new v().fromArray(n[0]), s = new v().fromArray(n[2]), u = G(r, s).add(new v(0, 0, 5e-4)), p = new D().setPosition(u), m = new D().makeScale(o, o, o), l = new D().multiply(a).multiply(p).multiply(m);
341
+ const a = e.matrixWorld, r = new v().fromArray(n[0]), s = new v().fromArray(n[2]), u = x(r, s).add(new v(0, 0, 5e-4)), p = new D().setPosition(u), m = new D().makeScale(o, o, o), l = new D().multiply(a).multiply(p).multiply(m);
342
342
  l.decompose(i.position, i.quaternion, i.scale);
343
343
  const c = i.opacityMesh;
344
344
  c && l.decompose(c.position, c.quaternion, c.scale);
@@ -346,7 +346,7 @@ class ti extends w {
346
346
  /** 添加模型标签 */
347
347
  addMediaModelTag(t) {
348
348
  return C(this, null, function* () {
349
- const e = t.filter(I).map((o) => this.loadModel(o));
349
+ const e = t.filter(G).map((o) => this.loadModel(o));
350
350
  yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
351
351
  });
352
352
  }
@@ -362,7 +362,7 @@ class ti extends w {
362
362
  const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
363
363
  if (!o)
364
364
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
365
- this.TagContainerSvelte = new A({
365
+ this.TagContainerSvelte = new O({
366
366
  target: o,
367
367
  props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
368
368
  });
@@ -384,8 +384,8 @@ class ti extends w {
384
384
  });
385
385
  }
386
386
  disposeAllCSS3DContainer() {
387
- for (const [t, e] of this.store.css3DRenderDisposer)
388
- e == null || e.forEach((o) => o == null ? void 0 : o());
387
+ for (const [, t] of this.store.css3DRenderDisposer)
388
+ t == null || t.forEach((e) => e == null ? void 0 : e());
389
389
  this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
390
390
  }
391
391
  /**
@@ -403,5 +403,5 @@ class ti extends w {
403
403
  }
404
404
  }
405
405
  export {
406
- ti as TagRender
406
+ ei as TagRender
407
407
  };
@@ -131,7 +131,7 @@ class Pe extends b {
131
131
  updateTagConfig(e) {
132
132
  e != null && e.force && this.clearCache(), this.tags.forEach((i) => {
133
133
  const t = this.getTagConfig(i);
134
- i.mergedConfig = t, i.data = T({}, i.data, t.initialData);
134
+ i.config = t, i.data = T({}, i.data, t.initialData);
135
135
  });
136
136
  }
137
137
  can(e, i) {
@@ -2,7 +2,7 @@ var E = Object.defineProperty, F = Object.defineProperties;
2
2
  var w = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
4
  var U = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
- var v = (h, a, e) => a in h ? E(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, l = (h, a) => {
5
+ var v = (h, a, e) => a in h ? E(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, f = (h, a) => {
6
6
  for (var e in a || (a = {}))
7
7
  U.call(a, e) && v(h, e, a[e]);
8
8
  if (C)
@@ -11,7 +11,7 @@ var v = (h, a, e) => a in h ? E(h, a, { enumerable: !0, configurable: !0, writab
11
11
  return h;
12
12
  }, u = (h, a) => F(h, w(a));
13
13
  var g = (h, a, e) => (v(h, typeof a != "symbol" ? a + "" : a, e), e);
14
- var f = (h, a, e) => new Promise((t, i) => {
14
+ var p = (h, a, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
17
17
  n(e.next(r));
@@ -29,7 +29,7 @@ var f = (h, a, e) => new Promise((t, i) => {
29
29
  });
30
30
  import * as b from "three";
31
31
  import { Subscribe as B } from "@realsee/five";
32
- import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
32
+ import { objectAssignDeepExports as c } from "../../vendor/object-assign-deep/objectAssignDeep.js";
33
33
  import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
34
34
  import { addDebugPoints as R } from "../utils/addDebugPoints.js";
35
35
  import { isMediaModelTag as y, isModelTag as O } from "../utils/tag/tagCheck.js";
@@ -169,8 +169,8 @@ class ci extends N {
169
169
  /** debug */
170
170
  g(this, "debug");
171
171
  /** 更改 tag 模型 */
172
- g(this, "changeTagModel", (e, t) => f(this, null, function* () {
173
- e.data = p({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
172
+ g(this, "changeTagModel", (e, t) => p(this, null, function* () {
173
+ e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
174
174
  }));
175
175
  g(this, "handleFiveInitAnimationEnded", () => {
176
176
  const e = this.five.getCurrentState().mode;
@@ -186,7 +186,7 @@ class ci extends N {
186
186
  typeof t == "object" && ((i = t.visibleFiveMode) != null && i.includes("Floorplan") || (s = t.visibleFiveMode) != null && s.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
187
187
  }), this.updateRenderAllTags();
188
188
  });
189
- this.params = p({}, { debug: !1, config: this.config }, l({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: V.PlayAudio });
189
+ this.params = c({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: V.PlayAudio });
190
190
  try {
191
191
  const i = window;
192
192
  Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
@@ -197,9 +197,9 @@ class ci extends N {
197
197
  * @description: 加载数据
198
198
  */
199
199
  load(e, t) {
200
- return f(this, null, function* () {
200
+ return p(this, null, function* () {
201
201
  var s, o;
202
- this.clearTags(), console.debug(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
202
+ this.clearTags(), console.debug(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = c({}, this.config, {
203
203
  globalConfig: (s = e.globalConfig) != null ? s : {},
204
204
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
205
205
  });
@@ -217,19 +217,21 @@ class ci extends N {
217
217
  * @description: 添加标签
218
218
  */
219
219
  addTag(e, t) {
220
- return f(this, null, function* () {
220
+ return p(this, null, function* () {
221
221
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
222
- var d;
222
+ var d, l;
223
223
  const n = this.getTagConfig(o);
224
- return u(l({}, o), {
225
- id: (d = o.id) != null ? d : z(),
226
- data: p({}, n.initialData, o.data),
227
- state: l({
224
+ return u(f({}, o), {
225
+ enabled: (d = o.enabled) != null ? d : !0,
226
+ id: (l = o.id) != null ? l : z(),
227
+ data: c({}, n.initialData, o.data),
228
+ state: f({
228
229
  visible: void 0,
229
230
  unfolded: !this.can("fold", o)
230
231
  }, n.initialState),
231
232
  hooks: new B(),
232
- mergedConfig: n,
233
+ initialConfig: o.config,
234
+ config: n,
233
235
  unfold: () => this.changeUnfoldedById(o.id, !0),
234
236
  fold: () => this.changeUnfoldedById(o.id, !1),
235
237
  enable: () => this.changeEnabledById(o.id, !0),
@@ -237,7 +239,7 @@ class ci extends N {
237
239
  destroy: () => this.destroyTagById(o.id)
238
240
  });
239
241
  }).filter((o) => o.position);
240
- return s.forEach(L), this.tags.push(...s), _(this.five).then(() => f(this, null, function* () {
242
+ return s.forEach(L), this.tags.push(...s), _(this.five).then(() => p(this, null, function* () {
241
243
  var o, n, r;
242
244
  this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
243
245
  }));
@@ -247,22 +249,22 @@ class ci extends N {
247
249
  * @description: 改变配置
248
250
  */
249
251
  changeConfig(e, t = !0) {
250
- t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
252
+ t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
251
253
  }
252
254
  /**
253
255
  * @description: 改变全局配置
254
256
  */
255
257
  changeGlobalConfig(e, t = !0) {
256
- t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
258
+ t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
257
259
  }
258
260
  /**
259
261
  * @description: 改变类型配置
260
262
  */
261
263
  changeContentTypeConfig(e, t, i = !0) {
262
- this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
264
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = c({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
263
265
  }
264
266
  show(e) {
265
- return f(this, null, function* () {
267
+ return p(this, null, function* () {
266
268
  if (this.checkDisposed())
267
269
  return;
268
270
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
@@ -270,7 +272,7 @@ class ci extends N {
270
272
  });
271
273
  }
272
274
  hide(e) {
273
- return f(this, null, function* () {
275
+ return p(this, null, function* () {
274
276
  if (this.checkDisposed())
275
277
  return;
276
278
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
@@ -292,7 +294,7 @@ class ci extends N {
292
294
  setState(e, t) {
293
295
  if (this.checkDisposed())
294
296
  return;
295
- const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = l({}, this.state);
297
+ const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = f({}, this.state);
296
298
  this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
297
299
  }
298
300
  /**
@@ -334,7 +336,7 @@ class ci extends N {
334
336
  */
335
337
  changeDataById(e, t, i = !0) {
336
338
  const s = this.getTagById(e);
337
- s && (i ? s.data = p({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
339
+ s && (i ? s.data = c({}, s.data, t) : s.data = f(f({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
338
340
  }
339
341
  /**
340
342
  * @description: 改变tag的stickType
@@ -347,7 +349,7 @@ class ci extends N {
347
349
  */
348
350
  changeTagById(e, t, i = !0) {
349
351
  const s = this.getTagById(e);
350
- t && (i ? p(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
352
+ t && (i ? c(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
351
353
  }
352
354
  /**
353
355
  * @description: 销毁tag
@@ -362,7 +364,7 @@ class ci extends N {
362
364
  * @description: 设置 visible 和 unfolded
363
365
  */
364
366
  setVisibleAndUnfolded() {
365
- return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
367
+ return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
366
368
  if (this.isPanorama)
367
369
  return this.setVisible(), e ? new Promise((t) => {
368
370
  setTimeout(() => {
@@ -394,9 +396,9 @@ class ci extends N {
394
396
  * @description: 添加 cameraUpdate, panoArrived 等事件监听
395
397
  */
396
398
  addEventListener() {
397
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), c = this.clickhandler.bind(this), m = this.five.currentMode;
398
- return m && this.handleFiveModeChange(m), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", d), t.on("click", c), () => {
399
- e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", d), t.off("click", c), this.store.eventListenerDisposer = void 0;
399
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), l = this.clickhandler.bind(this), m = this.five.currentMode;
400
+ return m && this.handleFiveModeChange(m), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", d), t.on("click", l), () => {
401
+ e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", d), t.off("click", l), this.store.eventListenerDisposer = void 0;
400
402
  };
401
403
  }
402
404
  addResizeListener() {
@@ -438,7 +440,7 @@ class ci extends N {
438
440
  handleFiveWantsMoveToPano() {
439
441
  this.tags.forEach((e) => {
440
442
  const t = this.getTagConfig(e);
441
- typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = u(l({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = u(l({}, e.temporaryState), { visible: !!t.visibleConfig.alwaysShowWhenMovePano }));
443
+ typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = u(f({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = u(f({}, e.temporaryState), { visible: !!t.visibleConfig.alwaysShowWhenMovePano }));
442
444
  }), this.updateTagContainerVisible();
443
445
  }
444
446
  /**
@@ -476,10 +478,10 @@ class ci extends N {
476
478
  this.updateRenderPointTag();
477
479
  }
478
480
  handleFivePanoArrived() {
479
- return f(this, null, function* () {
481
+ return p(this, null, function* () {
480
482
  var e, t, i;
481
483
  this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((s) => {
482
- s.temporaryState = u(l({}, s.temporaryState), { visible: !0 });
484
+ s.temporaryState = u(f({}, s.temporaryState), { visible: !0 });
483
485
  }), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(O).filter((s) => {
484
486
  var o, n;
485
487
  return (n = (o = s.config) == null ? void 0 : o.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
@@ -491,9 +493,9 @@ class ci extends N {
491
493
  o.position.copy(n.position), o.quaternion.copy(n.quaternion);
492
494
  const r = this.five.camera.position;
493
495
  o.lookAt(r.clone().setY(o.position.y));
494
- const d = n.quaternion.clone(), c = o.quaternion.clone(), m = x();
496
+ const d = n.quaternion.clone(), l = o.quaternion.clone(), m = x();
495
497
  m.onUpdate(({ progress: P }) => {
496
- n.quaternion.copy(d.clone().slerp(c, P));
498
+ n.quaternion.copy(d.clone().slerp(l, P));
497
499
  }), m.play();
498
500
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
499
501
  });
@@ -510,7 +512,7 @@ class ci extends N {
510
512
  }
511
513
  changeTagMode(e, t) {
512
514
  var i, s, o, n, r, d;
513
- ((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.forEach((c) => c == null ? void 0 : c()), e.tag3DContentSvelte = void 0);
515
+ ((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
514
516
  }
515
517
  }
516
518
  export {
@@ -1,8 +1,6 @@
1
- import t from "./controller/index.js";
2
- import { pluginFlag as Ar } from "./controller/index.js";
3
- import { DimensionType as Er } from "./typings/tag/Utils.js";
4
- import { ContentType as Hr } from "./typings/tag/TagData.js";
5
- import { PointType as Jr } from "./Archive/deprecated.js";
1
+ import r from "./controller/index.js";
2
+ import { pluginFlag as At } from "./controller/index.js";
3
+ import { ContentType as Et, DimensionType as Gt, PointType as Ht } from "./Archive/deprecated.js";
6
4
  import "three";
7
5
  import "@realsee/five";
8
6
  import "../vendor/object-assign-deep/objectAssignDeep.js";
@@ -134,13 +132,13 @@ import "../shared-utils/three/GLTFLoader.js";
134
132
  import "@realsee/five/gltf-loader";
135
133
  import "../shared-utils/animationFrame/BetterTween.js";
136
134
  import "../shared-utils/animationFrame/index.js";
137
- const qr = (o, r) => new t(o, r);
135
+ const qt = (o, t) => new r(o, t);
138
136
  export {
139
- Hr as ContentType,
140
- Er as DimensionType,
141
- qr as PanoTagPlugin,
142
- t as PanoTagPluginController,
143
- Jr as PointType,
144
- qr as default,
145
- Ar as pluginFlag
137
+ Et as ContentType,
138
+ Gt as DimensionType,
139
+ qt as PanoTagPlugin,
140
+ r as PanoTagPluginController,
141
+ Ht as PointType,
142
+ qt as default,
143
+ At as pluginFlag
146
144
  };
@@ -1,15 +1,8 @@
1
- import type { PanoTagPluginController, TagConfig } from '../index';
1
+ import type { PanoTagPluginController, TagInstance } from '../index';
2
2
  import type * as BasePlugin from '../../base/BasePlugin';
3
- import type TagContentSvelte from '../Components/Tag/index.svelte';
4
- import type { Vector3 } from 'three';
5
- import type { Create3DDomContainerReturnType } from '../../CSS3DRenderPlugin';
6
3
  import type { Writable } from 'svelte/store';
7
- import type { Subscribe } from '@realsee/five';
8
- import type { TagId, StickType, TagGLTFObject } from './tag/Utils';
4
+ import type { TagId } from './tag/Utils';
9
5
  import type { TagContentType } from './tag/TagData';
10
- import type { Tag } from './tag/Tag';
11
- import type { ImagePlane, VideoPlane } from '../utils/model/mediaPlane';
12
- type NonNullable<T> = T extends null | undefined | void ? never : T;
13
6
  export type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
14
7
  export interface State extends BasePlugin.State {
15
8
  }
@@ -82,46 +75,7 @@ export interface TagCacheInterface {
82
75
  reason?: string;
83
76
  };
84
77
  }
85
- export type TagInstance<C extends TagContentType = TagContentType, S extends StickType = StickType> = Tag<C, S> & Partial<{
86
- screenPosition: {
87
- leftPercent: number;
88
- topPercent: number;
89
- } | null;
90
- temporaryState: {
91
- visible: boolean;
92
- };
93
- tag3DContentSvelte: {
94
- svelteApp: TagContentSvelte;
95
- /** @deprecated rename to css3DInstance */
96
- domContainer: NonNullable<Create3DDomContainerReturnType>;
97
- css3DInstance: NonNullable<Create3DDomContainerReturnType>;
98
- initialNormal: Vector3;
99
- currentNormal: Vector3;
100
- dispose: () => void;
101
- };
102
- mediaPlane: ImagePlane | VideoPlane;
103
- model: {
104
- promise: Promise<TagGLTFObject>;
105
- object?: TagGLTFObject;
106
- };
107
- mediaVisible: boolean;
108
- play: () => void;
109
- pause: () => void;
110
- }> & {
111
- state: {
112
- visible?: boolean;
113
- unfolded: boolean;
114
- };
115
- hooks: Subscribe<TagEvents>;
116
- mergedConfig: TagConfig<C>;
117
- unfold: () => void;
118
- fold: () => void;
119
- enable: () => void;
120
- disable: () => void;
121
- destroy: () => void;
122
- };
123
78
  export type MediaStore = Writable<{
124
79
  currentMediaElement: HTMLMediaElement | null;
125
80
  }>;
126
81
  export type PointTagInstance<C extends TagContentType = TagContentType> = TagInstance<C, '3DPoint' | '2DPoint'>;
127
- export {};
@@ -3,5 +3,6 @@ export * from './tag/Tag';
3
3
  export * from './tag/Utils';
4
4
  export * from './tag/TagData';
5
5
  export * from './tag/TagConfig';
6
+ export * from './tag/TagInstance';
6
7
  export * from '../Archive/deprecated';
7
8
  export type { ContentTypeMap, TagContentType } from './tag/TagData';
@@ -1,8 +1,6 @@
1
- import { DimensionType as p } from "./tag/Utils.js";
2
- import { ContentType as t } from "./tag/TagData.js";
3
- import { PointType as m } from "../Archive/deprecated.js";
1
+ import { ContentType as o, DimensionType as p, PointType as t } from "../Archive/deprecated.js";
4
2
  export {
5
- t as ContentType,
3
+ o as ContentType,
6
4
  p as DimensionType,
7
- m as PointType
5
+ t as PointType
8
6
  };
@@ -2,11 +2,8 @@ import type { Create3DDomContainerParamsType } from '../../../CSS3DRenderPlugin/
2
2
  import type { Five, Mode } from '@realsee/five';
3
3
  import type { ContentTypeMap, TagContentType } from './TagData';
4
4
  import type { MinMax } from './Utils';
5
- import type { PartialDeep } from 'type-fest';
6
- import type { TagInstance } from '../controller';
7
- type PartialObjectDeep<ObjectType extends object> = {
8
- [KeyType in keyof ObjectType]?: PartialDeep<ObjectType[KeyType]>;
9
- };
5
+ import type { PartialObjectDeep } from './Utils';
6
+ import type { TagInstance } from './TagInstance';
10
7
  type ConfigFunction<C extends TagContentType = TagContentType> = (five: Five, tagState: {
11
8
  tag: TagInstance<C>;
12
9
  /** 标签点或中心点的到摄像机的距离 */
@@ -1,4 +1,4 @@
1
- import type { DeprecatedMediaPlaneProperty } from '../../Archive/deprecated';
1
+ import type { DeprecatedMediaPlaneProperty, ContentType } from '../../Archive/deprecated';
2
2
  import type { Position, TagIconUrl } from './Utils';
3
3
  export type MediaData = {
4
4
  type: 'Image';
@@ -10,39 +10,6 @@ export type MediaData = {
10
10
  };
11
11
  export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
12
12
  type Object = Record<string | number | symbol, any>;
13
- /** @deprecated Use {@link TagContentType} instead */
14
- export declare enum ContentType {
15
- /** 音频标签 */
16
- Audio = "Audio",
17
- /** 文本标签 */
18
- Text = "Text",
19
- /** 图文标签 */
20
- ImageText = "ImageText",
21
- /** 图片标签, 可用 ImageText 代替 */
22
- Image = "Image",
23
- /** 视频标签,可用 ImageText 代替 */
24
- Video = "Video",
25
- /** VR跳转标签 */
26
- Link = "Link",
27
- /** 贴纸标签 */
28
- Sticker = "Sticker",
29
- /** VR跳转标签 */
30
- VRLink = "VRLink",
31
- /** 全景跳转标签 */
32
- PanoLink = "PanoLink",
33
- /** 营销标签 */
34
- Marketing = "Marketing",
35
- /** 图片视频贴片 */
36
- MediaPlane = "MediaPlane",
37
- /** 带有多媒体的模型 */
38
- MediaModel = "MediaModel",
39
- /** 模型 */
40
- Model = "Model",
41
- /** 其他/自定义标签 */
42
- Custom = "Custom",
43
- /** Unknown */
44
- Unknown = "Unknown"
45
- }
46
13
  export type TagContentType = keyof typeof ContentType;
47
14
  /**
48
15
  * @description: 标签数据
@@ -1,4 +1 @@
1
- var a = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.Sticker = "Sticker", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Model = "Model", i.Custom = "Custom", i.Unknown = "Unknown", i))(a || {});
2
- export {
3
- a as ContentType
4
- };
1
+
@@ -0,0 +1,51 @@
1
+ import type { Tag } from './Tag';
2
+ import type TagContentSvelte from '../../Components/Tag/index.svelte';
3
+ import type { TagContentType } from './TagData';
4
+ import type { StickType, TagGLTFObject } from './Utils';
5
+ import type { Create3DDomContainerReturnType } from '../../../CSS3DRenderPlugin';
6
+ import type { Vector3 } from 'three';
7
+ import type { ImagePlane, VideoPlane } from '../../utils/model/mediaPlane';
8
+ import type { TagEvents } from '../controller';
9
+ import type { TagConfig } from './TagConfig';
10
+ import type { Subscribe } from '@realsee/five';
11
+ import type { SetRequired } from 'type-fest';
12
+ type RequiredTag<C extends TagContentType = TagContentType, S extends StickType = StickType> = SetRequired<Tag<C, S>, 'id' | 'data' | 'enabled' | 'config' | 'stickType' | 'contentType'>;
13
+ export type TagInstance<C extends TagContentType = TagContentType, S extends StickType = StickType> = RequiredTag<C, S> & Partial<{
14
+ screenPosition: {
15
+ leftPercent: number;
16
+ topPercent: number;
17
+ } | null;
18
+ temporaryState: {
19
+ visible: boolean;
20
+ };
21
+ tag3DContentSvelte: {
22
+ svelteApp: TagContentSvelte;
23
+ /** @deprecated rename to css3DInstance */
24
+ domContainer: NonNullable<Create3DDomContainerReturnType>;
25
+ css3DInstance: NonNullable<Create3DDomContainerReturnType>;
26
+ initialNormal: Vector3;
27
+ currentNormal: Vector3;
28
+ dispose: () => void;
29
+ };
30
+ initialConfig: TagConfig<C>;
31
+ mediaPlane: ImagePlane | VideoPlane;
32
+ model: {
33
+ promise: Promise<TagGLTFObject>;
34
+ object?: TagGLTFObject;
35
+ };
36
+ mediaVisible: boolean;
37
+ play: () => void;
38
+ pause: () => void;
39
+ }> & {
40
+ state: {
41
+ visible?: boolean;
42
+ unfolded: boolean;
43
+ };
44
+ hooks: Subscribe<TagEvents>;
45
+ unfold: () => void;
46
+ fold: () => void;
47
+ enable: () => void;
48
+ disable: () => void;
49
+ destroy: () => void;
50
+ };
51
+ export {};