@realsee/dnalogel 2.20.0-alpha.0 → 2.20.0-alpha.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 (342) 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 +5 -4
  4. package/dist/index.cjs.js +5 -5
  5. package/dist/index.js +20 -18
  6. package/dist/index.umd.js +5 -5
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/CSS3DRender.html +9 -4
  9. package/docs/classes/CruisePluginController.html +9 -4
  10. package/docs/classes/GuideLineItem.GuideLineItem.html +9 -4
  11. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +9 -4
  12. package/docs/classes/Magnifier.html +9 -4
  13. package/docs/classes/ModelRoomLabelController.html +9 -4
  14. package/docs/classes/Object3DHelperController.html +9 -4
  15. package/docs/classes/PaintBrush.html +9 -4
  16. package/docs/classes/PanoMeasurePluginLine.html +9 -4
  17. package/docs/classes/PanoMeasurePluginModel.html +9 -4
  18. package/docs/classes/PanoMeasurePluginPoint.html +9 -4
  19. package/docs/classes/PanoMeasurePluginPolyline.html +9 -4
  20. package/docs/classes/PanoTagPluginController.html +29 -24
  21. package/docs/classes/Util.BetterTween.html +9 -4
  22. package/docs/classes/Util.FivePointSelector.html +9 -4
  23. package/docs/classes/Util.Interval.html +9 -4
  24. package/docs/classes/Util.Magnifier.html +9 -4
  25. package/docs/classes/Util.PointDomHelper.html +9 -4
  26. package/docs/classes/Util.PointHelper.html +9 -4
  27. package/docs/classes/Util.Rectangle.html +9 -4
  28. package/docs/enums/CameraMovementEffect.html +9 -4
  29. package/docs/enums/ContentType.html +25 -20
  30. package/docs/enums/DIRECTION.html +9 -4
  31. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -4
  32. package/docs/enums/DimensionType.html +12 -7
  33. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -4
  34. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -4
  35. package/docs/enums/PaintBrushTypeEnum.html +9 -4
  36. package/docs/enums/PointType.html +9 -4
  37. package/docs/enums/Rotation.html +9 -4
  38. package/docs/functions/CSS3DRenderPlugin.html +9 -4
  39. package/docs/functions/CameraMovementPlugin.html +9 -4
  40. package/docs/functions/CruisePlugin.html +9 -4
  41. package/docs/functions/GuideLinePlugin.html +9 -4
  42. package/docs/functions/ItemLabelPlugin.html +9 -4
  43. package/docs/functions/MapviewFloorplanPlugin.html +9 -4
  44. package/docs/functions/ModelChassisCompassPlugin.html +9 -4
  45. package/docs/functions/ModelEntryDoorGuidePlugin.html +9 -4
  46. package/docs/functions/ModelFloorplanPlugin.html +9 -4
  47. package/docs/functions/ModelItemLabelPlugin.html +9 -4
  48. package/docs/functions/ModelRoomLabelPlugin.html +9 -4
  49. package/docs/functions/ModelTVVideoPlugin.html +9 -4
  50. package/docs/functions/ModelViewPlugin.html +9 -4
  51. package/docs/functions/Object3DHelperPlugin.html +9 -4
  52. package/docs/functions/PanoCompassPlugin.html +9 -4
  53. package/docs/functions/PanoCursorRaycasterPlugin.html +9 -4
  54. package/docs/functions/PanoDoorLabelPlugin.html +9 -4
  55. package/docs/functions/PanoFloorplanRadarPlugin.html +9 -4
  56. package/docs/functions/PanoMeasurePlugin.html +9 -4
  57. package/docs/functions/PanoRulerPlugin.html +9 -4
  58. package/docs/functions/PanoRulerProPlugin.html +9 -4
  59. package/docs/functions/PanoSpatialTagPlugin.html +9 -4
  60. package/docs/functions/PanoTagPlugin.html +9 -4
  61. package/docs/functions/PanoVideoPlugin.html +9 -4
  62. package/docs/functions/TopviewFloorplanPlugin.html +9 -4
  63. package/docs/functions/Util.getCoordsFromClient.html +9 -4
  64. package/docs/functions/Util.getCoordsFromElement.html +9 -4
  65. package/docs/functions/Util.getFrameTime.html +9 -4
  66. package/docs/functions/Util.getIntersectFromRelativePosition.html +9 -4
  67. package/docs/functions/Util.getRaycasterFromFivePointer.html +9 -4
  68. package/docs/functions/Util.isAbsoluteURL.html +9 -4
  69. package/docs/functions/Util.isModelLike.html +9 -4
  70. package/docs/functions/Util.isNil.html +9 -4
  71. package/docs/functions/Util.isPanoramaLike.html +9 -4
  72. package/docs/functions/Util.nextFrame.html +9 -4
  73. package/docs/functions/Util.notNil.html +9 -4
  74. package/docs/functions/Util.requestAnimationFrameInterval.html +9 -4
  75. package/docs/functions/Util.tweenProgress.html +9 -4
  76. package/docs/functions/Util.uuid.html +9 -4
  77. package/docs/functions/pluginFlag.html +9 -4
  78. package/docs/index.html +10 -5
  79. package/docs/interfaces/AddTagConfig.html +11 -6
  80. package/docs/interfaces/CSS3DRenderPluginEventMap.html +9 -4
  81. package/docs/interfaces/CSS3DRenderPluginState.html +9 -4
  82. package/docs/interfaces/CameraMovementPluginExportType.html +9 -4
  83. package/docs/interfaces/ContentTypeMapInterface.html +724 -0
  84. package/docs/interfaces/CruisePluginTypes.Config.html +9 -4
  85. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +9 -4
  86. package/docs/interfaces/CruisePluginTypes.EventMap.html +9 -4
  87. package/docs/interfaces/CruisePluginTypes.MoveAction.html +9 -4
  88. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -4
  89. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +9 -4
  90. package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -4
  91. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +9 -4
  92. package/docs/interfaces/CruisePluginTypes.PluginState.html +9 -4
  93. package/docs/interfaces/EventMap.html +20 -15
  94. package/docs/interfaces/FloorplanBounding.html +9 -4
  95. package/docs/interfaces/FloorplanData.html +9 -4
  96. package/docs/interfaces/FloorplanEntrance.html +9 -4
  97. package/docs/interfaces/FloorplanExtraObject.html +9 -4
  98. package/docs/interfaces/FloorplanExtraObject3D.html +9 -4
  99. package/docs/interfaces/FloorplanFloorData.html +9 -4
  100. package/docs/interfaces/FloorplanImagePosition.html +9 -4
  101. package/docs/interfaces/FloorplanObserver.html +9 -4
  102. package/docs/interfaces/FloorplanOutlineItem.html +9 -4
  103. package/docs/interfaces/FloorplanPosition.html +9 -4
  104. package/docs/interfaces/FloorplanRoomItem.html +9 -4
  105. package/docs/interfaces/FloorplanRoomLabelItem.html +9 -4
  106. package/docs/interfaces/FloorplanServerBounding.html +9 -4
  107. package/docs/interfaces/FloorplanServerComputedData.html +9 -4
  108. package/docs/interfaces/FloorplanServerData.html +9 -4
  109. package/docs/interfaces/FloorplanServerDoorItem.html +9 -4
  110. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -4
  111. package/docs/interfaces/FloorplanServerEntrance.html +9 -4
  112. package/docs/interfaces/FloorplanServerFloorData.html +9 -4
  113. package/docs/interfaces/FloorplanServerImagePosition.html +9 -4
  114. package/docs/interfaces/FloorplanServerObserver.html +9 -4
  115. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -4
  116. package/docs/interfaces/FloorplanServerPosition.html +9 -4
  117. package/docs/interfaces/FloorplanServerRoomItem.html +9 -4
  118. package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -4
  119. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -4
  120. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -4
  121. package/docs/interfaces/GuideLinePluginType.EventMap.html +9 -4
  122. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -4
  123. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -4
  124. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +9 -4
  125. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -4
  126. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +9 -4
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -4
  128. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +9 -4
  129. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +9 -4
  130. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +9 -4
  131. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -4
  132. package/docs/interfaces/GuideLinePluginType.Route.html +9 -4
  133. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -4
  134. package/docs/interfaces/HelperOffset.html +9 -4
  135. package/docs/interfaces/ImagePlaneGroup.html +11 -6
  136. package/docs/interfaces/ItemLabelPluginData.html +9 -4
  137. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +9 -4
  138. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -4
  139. package/docs/interfaces/MinMax.html +12 -7
  140. package/docs/interfaces/ModelChassisCompassPluginData.html +9 -4
  141. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -4
  142. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -4
  143. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -4
  144. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -4
  145. package/docs/interfaces/ModelItemLabelPluginData.html +9 -4
  146. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +9 -4
  147. package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -4
  148. package/docs/interfaces/ModelRoomLabelPluginData.html +9 -4
  149. package/docs/interfaces/ModelTVVideoPluginData.html +9 -4
  150. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -4
  151. package/docs/interfaces/ModelTVVideoPluginParameterType.html +9 -4
  152. package/docs/interfaces/ModelViewPluginExportType.html +9 -4
  153. package/docs/interfaces/Object3DHelperState.html +9 -4
  154. package/docs/interfaces/ObjectHelperControllers.html +9 -4
  155. package/docs/interfaces/PaintBrushAction.html +9 -4
  156. package/docs/interfaces/PaintBrushConfigs.html +9 -4
  157. package/docs/interfaces/PaintBrushState.html +9 -4
  158. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -4
  159. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +9 -4
  160. package/docs/interfaces/PanoMeasureParameterType.html +9 -4
  161. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -4
  162. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -4
  163. package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -4
  164. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -4
  165. package/docs/interfaces/PanoRulerPluginExportType.html +9 -4
  166. package/docs/interfaces/PanoRulerPluginOptions.html +9 -4
  167. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -4
  168. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -4
  169. package/docs/interfaces/PanoRulerProPluginOptions.html +9 -4
  170. package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -4
  171. package/docs/interfaces/PanoRulerProPluginState.html +9 -4
  172. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +9 -4
  173. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +9 -4
  174. package/docs/interfaces/PanoSpatialTagPluginData.html +9 -4
  175. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -4
  176. package/docs/interfaces/PanoSpatialTagPluginExportType.html +9 -4
  177. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -4
  178. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +9 -4
  179. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +9 -4
  180. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -4
  181. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +9 -4
  182. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -4
  183. package/docs/interfaces/PanoVideoPluginType.PluginData.html +9 -4
  184. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -4
  185. package/docs/interfaces/PanoVideoPluginType.PluginState.html +9 -4
  186. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -4
  187. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -4
  188. package/docs/interfaces/Point.html +9 -4
  189. package/docs/interfaces/Room.html +9 -4
  190. package/docs/interfaces/RoomInfo.html +9 -4
  191. package/docs/interfaces/RoomLabel.html +9 -4
  192. package/docs/interfaces/RoomRules.html +9 -4
  193. package/docs/interfaces/Rooms.html +9 -4
  194. package/docs/interfaces/Scissor.html +9 -4
  195. package/docs/interfaces/State.html +10 -5
  196. package/docs/interfaces/TagCacheInterface.html +17 -12
  197. package/docs/interfaces/TagConfig.html +21 -16
  198. package/docs/interfaces/TagGLTFObjectGroup.html +11 -6
  199. package/docs/interfaces/TagIconUrl.html +17 -12
  200. package/docs/interfaces/TagObjectGroup.html +11 -6
  201. package/docs/interfaces/TagStyle.html +11 -6
  202. package/docs/interfaces/Tags.html +15 -30
  203. package/docs/interfaces/TemporaryState.html +11 -6
  204. package/docs/interfaces/Util.MagnifierParameter.html +9 -4
  205. package/docs/interfaces/Util.MouseGroupParameter.html +9 -4
  206. package/docs/modules/CruisePluginTypes.html +9 -4
  207. package/docs/modules/GuideLineItem.html +9 -4
  208. package/docs/modules/GuideLineModeItem.html +9 -4
  209. package/docs/modules/GuideLinePluginType.html +9 -4
  210. package/docs/modules/PanoVideoPluginType.html +9 -4
  211. package/docs/modules/Util.html +9 -4
  212. package/docs/modules.html +16 -6
  213. package/docs/types/ArrayPosition.html +10 -5
  214. package/docs/types/AudioAppearance.html +11 -6
  215. package/docs/types/AudioTagTypeConfigKey.html +10 -5
  216. package/docs/types/CSS3DRenderExportType.html +9 -4
  217. package/docs/types/CSS3DRenderPluginExportType.html +9 -4
  218. package/docs/types/CSS3DRenderPluginParameterType.html +9 -4
  219. package/docs/types/ClassFunctionParameters.html +9 -4
  220. package/docs/types/Color.html +9 -4
  221. package/docs/types/ConfigFunction.html +390 -0
  222. package/docs/types/ContentTypeConfigKey.html +10 -5
  223. package/docs/types/ContentTypeConfigKeySplit.html +10 -5
  224. package/docs/types/ContentTypeMap.html +11 -6
  225. package/docs/types/ContentTypeMapInterfaceWithExtraData.html +359 -0
  226. package/docs/types/Create3DDomContainerReturnType.html +9 -4
  227. package/docs/types/Create3DElementReturnType.html +9 -4
  228. package/docs/types/CruisePluginExportType.html +9 -4
  229. package/docs/types/CruisePluginTypes.CruiseData.html +9 -4
  230. package/docs/types/CruisePluginTypes.MoveEffect.html +9 -4
  231. package/docs/types/DeprecatedMediaPlaneProperty.html +10 -5
  232. package/docs/types/DeprecatedTagProperty.html +10 -5
  233. package/docs/types/Direction-1.html +9 -4
  234. package/docs/types/Direction4.html +9 -4
  235. package/docs/types/ElementRenderer.html +10 -5
  236. package/docs/types/FloorplanRuleLabels.html +9 -4
  237. package/docs/types/FloorplanServerRuleLabels.html +9 -4
  238. package/docs/types/GuideLinePluginExportType.html +9 -4
  239. package/docs/types/GuideLinePluginType.GuideLineItem.html +9 -4
  240. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +9 -4
  241. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +9 -4
  242. package/docs/types/GuideLinePluginType.GuideLineStyle.html +9 -4
  243. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +9 -4
  244. package/docs/types/GuideLinePluginType.PathItem.html +9 -4
  245. package/docs/types/GuideLinePluginType.PluginData.html +9 -4
  246. package/docs/types/HelperEventMap.html +9 -4
  247. package/docs/types/LoadTagConfig.html +10 -5
  248. package/docs/types/MapviewFloorplanPluginParameterType.html +9 -4
  249. package/docs/types/MapviewFloorplanPluginReturnType.html +9 -4
  250. package/docs/types/MediaData.html +10 -5
  251. package/docs/types/MediaStore.html +10 -5
  252. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +9 -4
  253. package/docs/types/ModelFloorplanPluginParameterType.html +9 -4
  254. package/docs/types/ModelFloorplanPluginReturnType.html +9 -4
  255. package/docs/types/ModelRoomLabelPluginParameters.html +9 -4
  256. package/docs/types/ModelRoomLabelPluginReturnType.html +9 -4
  257. package/docs/types/MoveArgs.html +9 -4
  258. package/docs/types/MoveOpts.html +9 -4
  259. package/docs/types/Object.html +359 -0
  260. package/docs/types/Object3DHelperEventMap.html +9 -4
  261. package/docs/types/ObjectFit.html +10 -5
  262. package/docs/types/PaintBrushEventMap.html +9 -4
  263. package/docs/types/PanoCompassPluginData.html +9 -4
  264. package/docs/types/PanoCompassPluginExportType.html +9 -4
  265. package/docs/types/PanoCompassPluginParameterType.html +9 -4
  266. package/docs/types/PanoFloorplanRadarPluginParameterType.html +9 -4
  267. package/docs/types/PanoFloorplanRadarPluginReturnType.html +9 -4
  268. package/docs/types/PanoIndex.html +10 -5
  269. package/docs/types/PanoMeasurePluginEvent.html +9 -4
  270. package/docs/types/PanoMeasureReturnType.html +9 -4
  271. package/docs/types/PanoSpatialTagPluginId.html +9 -4
  272. package/docs/types/PanoTagPluginExportInterface.html +9 -4
  273. package/docs/types/PanoTagPluginParamsInterface.html +9 -4
  274. package/docs/types/PanoVideoPluginParameterType.html +9 -4
  275. package/docs/types/PanoVideoPluginReturnType.html +9 -4
  276. package/docs/types/PartialObjectDeep.html +10 -5
  277. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +10 -5
  278. package/docs/types/PlaneTag.html +11 -6
  279. package/docs/types/Point2DTag.html +11 -6
  280. package/docs/types/Point3DTag.html +11 -6
  281. package/docs/types/PointTag.html +11 -6
  282. package/docs/types/PointTagInstance.html +10 -5
  283. package/docs/types/Position.html +10 -5
  284. package/docs/types/RequiredTag.html +366 -0
  285. package/docs/types/RotateArgs.html +9 -4
  286. package/docs/types/RotateOpts.html +9 -4
  287. package/docs/types/RuleLabelsKey.html +9 -4
  288. package/docs/types/RuleLabelsValue.html +9 -4
  289. package/docs/types/StickType.html +10 -5
  290. package/docs/types/Tag.html +10 -5
  291. package/docs/types/Tag2D.html +10 -5
  292. package/docs/types/Tag3D.html +10 -5
  293. package/docs/types/TagContentType.html +10 -5
  294. package/docs/types/TagDimensionType.html +13 -6
  295. package/docs/types/TagElement.html +10 -5
  296. package/docs/types/TagEvents.html +10 -5
  297. package/docs/types/TagGLTFObject.html +10 -5
  298. package/docs/types/TagHooks.html +10 -5
  299. package/docs/types/TagIconSize.html +10 -5
  300. package/docs/types/TagId.html +10 -5
  301. package/docs/types/TagInstance.html +11 -6
  302. package/docs/types/TagPointType.html +10 -5
  303. package/docs/types/TopviewFloorplanPluginParameterType.html +9 -4
  304. package/docs/types/TopviewFloorplanPluginReturnType.html +9 -4
  305. package/docs/types/WorkCode.html +10 -5
  306. package/docs/variables/FLOOR_TYPE_MAP.html +9 -4
  307. package/docs/variables/PLUGIN.html +9 -4
  308. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +9 -4
  309. package/docs/variables/ROOM_TYPE_MAP.html +9 -4
  310. package/docs/variables/itemLabelPluginServerParams.html +9 -4
  311. package/docs/variables/modelItemLabelPluginServerParams.html +9 -4
  312. package/docs/variables/modelRoomLabelPluginServerParams.html +9 -4
  313. package/libs/PanoTagPlugin/Archive/deprecated.d.ts +45 -1
  314. package/libs/PanoTagPlugin/Archive/deprecated.js +4 -2
  315. package/libs/PanoTagPlugin/Components/Tag/index.js +21 -21
  316. package/libs/PanoTagPlugin/Components/TagItem.js +31 -31
  317. package/libs/PanoTagPlugin/controller/TagRender.js +32 -32
  318. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  319. package/libs/PanoTagPlugin/controller/index.js +36 -34
  320. package/libs/PanoTagPlugin/index.js +11 -13
  321. package/libs/PanoTagPlugin/typings/controller.d.ts +2 -48
  322. package/libs/PanoTagPlugin/typings/index.d.ts +5 -4
  323. package/libs/PanoTagPlugin/typings/index.js +3 -5
  324. package/libs/PanoTagPlugin/typings/tag/TagData.d.js +1 -0
  325. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.js +1 -0
  326. package/libs/PanoTagPlugin/typings/tag/Utils.d.js +1 -0
  327. package/libs/base/BasePlugin.js +1 -1
  328. package/libs/index.js +13 -15
  329. package/libs/shared-utils/logger.js +1 -1
  330. package/package.json +2 -2
  331. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -48
  332. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -132
  333. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -185
  334. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -87
  335. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -48
  336. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -132
  337. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -185
  338. package/libs/PanoTagPlugin/typings/tag/TagData.js +0 -4
  339. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -87
  340. package/libs/PanoTagPlugin/typings/tag/Utils.js +0 -4
  341. /package/libs/PanoTagPlugin/typings/tag/{Tag.js → Tag.d.js} +0 -0
  342. /package/libs/PanoTagPlugin/typings/tag/{TagConfig.js → TagConfig.d.js} +0 -0
@@ -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 {};
@@ -1,7 +1,8 @@
1
1
  export * from './controller';
2
- export * from './tag/Tag';
3
- export * from './tag/Utils';
4
- export * from './tag/TagData';
5
- export * from './tag/TagConfig';
2
+ export * from './tag/Tag.d';
3
+ export * from './tag/Utils.d';
4
+ export * from './tag/TagData.d';
5
+ export * from './tag/TagConfig.d';
6
+ export * from './tag/TagInstance.d';
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
  };
@@ -14,7 +14,7 @@ let n = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.20.0-alpha.0");
17
+ e(this, "VERSION", "2.20.0-alpha.1");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
package/libs/index.js CHANGED
@@ -4,7 +4,7 @@ import { PaintBrush as mp } from "./components/PaintBrush/index.js";
4
4
  import { PaintBrushTypeEnum as ep } from "./components/PaintBrush/typings.js";
5
5
  import { ModelViewPlugin as lp } from "./ModelViewPlugin/Plugin.js";
6
6
  import { CSS3DRenderPlugin as Pp } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as up } from "./PanoCursorRaycasterPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as fp } from "./PanoCursorRaycasterPlugin/index.js";
8
8
  import { ModelRoomLabelPlugin as gp, modelRoomLabelPluginServerParams as sp } from "./ModelRoomLabelPlugin/index.js";
9
9
  import { FLOOR_PLAN_ATTACHED_TO as Mp } from "./floorplan/constant.js";
10
10
  import { ModelFloorplanPlugin as Lp } from "./floorplan/ModelFloorplanPlugin/index.js";
@@ -29,7 +29,7 @@ import { PanoDoorLabelPlugin as me } from "./PanoDoorLabelPlugin/index.js";
29
29
  import { GuideLinePlugin as ee } from "./GuideLinePlugin/index.js";
30
30
  import { CruisePlugin as le } from "./CruisePlugin/index.js";
31
31
  import { PanoTagPlugin as Pe } from "./PanoTagPlugin/index.js";
32
- import { Object3DHelperPlugin as ue } from "./Object3DHelperPlugin/index.js";
32
+ import { Object3DHelperPlugin as fe } from "./Object3DHelperPlugin/index.js";
33
33
  import { PanoVideoPlugin as ge } from "./PanoVideoPlugin/index.js";
34
34
  import { index as de } from "./shared-utils/index.js";
35
35
  import { CSS3DRender as Te } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
@@ -47,11 +47,9 @@ import { GuideLineModeItem$1 as Be } from "./GuideLinePlugin/GuideLineModeItem/i
47
47
  import { default as Ue } from "./CruisePlugin/Controller.js";
48
48
  import { typing as $e } from "./CruisePlugin/typing/index.js";
49
49
  import { default as qe, pluginFlag as ze } from "./PanoTagPlugin/controller/index.js";
50
- import { DimensionType as Ke } from "./PanoTagPlugin/typings/tag/Utils.js";
51
- import { ContentType as We } from "./PanoTagPlugin/typings/tag/TagData.js";
52
- import { PointType as Ze } from "./PanoTagPlugin/Archive/deprecated.js";
53
- import { Object3DHelperController as rn, PLUGIN as tn } from "./Object3DHelperPlugin/Controller.js";
54
- import { typings as pn } from "./PanoVideoPlugin/typings/index.js";
50
+ import { ContentType as Ke, DimensionType as Qe, PointType as We } from "./PanoTagPlugin/Archive/deprecated.js";
51
+ import { Object3DHelperController as Ze, PLUGIN as on } from "./Object3DHelperPlugin/Controller.js";
52
+ import { typings as tn } from "./PanoVideoPlugin/typings/index.js";
55
53
  import "./components/PaintBrush/Controller.js";
56
54
  import "./components/PaintBrush/utils.js";
57
55
  import "./components/PaintBrush/tween.js";
@@ -380,13 +378,13 @@ export {
380
378
  Pp as CSS3DRenderPlugin,
381
379
  Np as CameraMovementEffect,
382
380
  cp as CameraMovementPlugin,
383
- We as ContentType,
381
+ Ke as ContentType,
384
382
  le as CruisePlugin,
385
383
  Ue as CruisePluginController,
386
384
  $e as CruisePluginTypes,
387
385
  oe as DIRECTION,
388
386
  Ge as DISPLAY_STRATEGY_TYPE,
389
- Ke as DimensionType,
387
+ Qe as DimensionType,
390
388
  Mp as FLOOR_PLAN_ATTACHED_TO,
391
389
  Sp as FLOOR_TYPE_MAP,
392
390
  he as GuideLineItem,
@@ -403,13 +401,13 @@ export {
403
401
  gp as ModelRoomLabelPlugin,
404
402
  Xp as ModelTVVideoPlugin,
405
403
  lp as ModelViewPlugin,
406
- rn as Object3DHelperController,
407
- ue as Object3DHelperPlugin,
408
- tn as PLUGIN,
404
+ Ze as Object3DHelperController,
405
+ fe as Object3DHelperPlugin,
406
+ on as PLUGIN,
409
407
  mp as PaintBrush,
410
408
  ep as PaintBrushTypeEnum,
411
409
  $p as PanoCompassPlugin,
412
- up as PanoCursorRaycasterPlugin,
410
+ fp as PanoCursorRaycasterPlugin,
413
411
  me as PanoDoorLabelPlugin,
414
412
  Op as PanoFloorplanRadarPlugin,
415
413
  qp as PanoMeasurePlugin,
@@ -423,8 +421,8 @@ export {
423
421
  Pe as PanoTagPlugin,
424
422
  qe as PanoTagPluginController,
425
423
  ge as PanoVideoPlugin,
426
- pn as PanoVideoPluginType,
427
- Ze as PointType,
424
+ tn as PanoVideoPluginType,
425
+ We as PointType,
428
426
  Ap as ROOM_FETILE_TYPE_MAP,
429
427
  Dp as ROOM_TYPE_MAP,
430
428
  hp as Rotation,
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.info(
3
- "%c %c@realsee/dnalogel %cv2.20.0-alpha.0",
3
+ "%c %c@realsee/dnalogel %cv2.20.0-alpha.1",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",