@realsee/dnalogel 2.19.0-0 → 2.19.0-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -4
  2. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  3. package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
  4. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
  5. package/dist/index.cjs.js +22 -22
  6. package/dist/index.js +1146 -1144
  7. package/dist/index.umd.js +22 -22
  8. package/docs/classes/CSS3DRender.html +30 -30
  9. package/docs/classes/CruisePluginController.html +25 -25
  10. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  11. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
  12. package/docs/classes/Magnifier.html +19 -19
  13. package/docs/classes/ModelRoomLabelController.html +10 -10
  14. package/docs/classes/Object3DHelperController.html +24 -24
  15. package/docs/classes/PaintBrush.html +14 -14
  16. package/docs/classes/PanoMeasurePluginLine.html +22 -22
  17. package/docs/classes/PanoMeasurePluginModel.html +21 -21
  18. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  19. package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
  20. package/docs/classes/PanoTagPluginController.html +45 -45
  21. package/docs/classes/Util.BetterTween.html +8 -8
  22. package/docs/classes/Util.FivePointSelector.html +11 -11
  23. package/docs/classes/Util.Interval.html +11 -11
  24. package/docs/classes/Util.Magnifier.html +16 -16
  25. package/docs/classes/Util.PointDomHelper.html +10 -10
  26. package/docs/classes/Util.PointHelper.html +10 -10
  27. package/docs/classes/Util.Rectangle.html +12 -12
  28. package/docs/enums/CameraMovementEffect.html +6 -6
  29. package/docs/enums/ContentType.html +19 -19
  30. package/docs/enums/DIRECTION.html +8 -8
  31. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  32. package/docs/enums/DimensionType.html +6 -6
  33. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  34. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  35. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  36. package/docs/enums/Rotation.html +7 -7
  37. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  38. package/docs/functions/CameraMovementPlugin.html +3 -3
  39. package/docs/functions/CruisePlugin.html +3 -3
  40. package/docs/functions/GuideLinePlugin.html +4 -4
  41. package/docs/functions/ItemLabelPlugin.html +3 -3
  42. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  43. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  44. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  45. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  46. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  47. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  48. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  49. package/docs/functions/ModelViewPlugin.html +3 -3
  50. package/docs/functions/Object3DHelperPlugin.html +3 -3
  51. package/docs/functions/PanoCompassPlugin.html +3 -3
  52. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  53. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  54. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  55. package/docs/functions/PanoMeasurePlugin.html +3 -3
  56. package/docs/functions/PanoRulerPlugin.html +3 -3
  57. package/docs/functions/PanoRulerProPlugin.html +3 -3
  58. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  59. package/docs/functions/PanoTagPlugin.html +3 -3
  60. package/docs/functions/PanoVideoPlugin.html +3 -3
  61. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  62. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  63. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  64. package/docs/functions/Util.getFrameTime.html +4 -4
  65. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  66. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  67. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  68. package/docs/functions/Util.isModelLike.html +4 -4
  69. package/docs/functions/Util.isNil.html +4 -4
  70. package/docs/functions/Util.isPanoramaLike.html +4 -4
  71. package/docs/functions/Util.nextFrame.html +4 -4
  72. package/docs/functions/Util.notNil.html +4 -4
  73. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  74. package/docs/functions/Util.tweenProgress.html +4 -4
  75. package/docs/functions/Util.uuid.html +4 -4
  76. package/docs/functions/pluginFlag.html +4 -4
  77. package/docs/index.html +4 -4
  78. package/docs/interfaces/AddTagConfig.html +5 -5
  79. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  80. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  81. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  82. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  83. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  84. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  85. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  86. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  87. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  88. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  89. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  90. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  91. package/docs/interfaces/EventMap.html +14 -14
  92. package/docs/interfaces/FloorplanBounding.html +7 -7
  93. package/docs/interfaces/FloorplanData.html +9 -9
  94. package/docs/interfaces/FloorplanEntrance.html +10 -10
  95. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  96. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  97. package/docs/interfaces/FloorplanFloorData.html +8 -8
  98. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  99. package/docs/interfaces/FloorplanObserver.html +8 -8
  100. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  101. package/docs/interfaces/FloorplanPosition.html +6 -6
  102. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  103. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  104. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  105. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  106. package/docs/interfaces/FloorplanServerData.html +6 -6
  107. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  108. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  109. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  110. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  111. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  112. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  113. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  114. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  115. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  116. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  117. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  118. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  119. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  120. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  121. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  122. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  123. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  124. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  125. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  126. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  127. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  128. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  129. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  130. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  131. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  132. package/docs/interfaces/HelperOffset.html +7 -7
  133. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  134. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  135. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  136. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  137. package/docs/interfaces/MinMax.html +6 -6
  138. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  139. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  140. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  141. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  142. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  143. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  144. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  145. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  146. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  147. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  148. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  149. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  150. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  151. package/docs/interfaces/Object3DHelperState.html +7 -7
  152. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  153. package/docs/interfaces/PaintBrushAction.html +11 -11
  154. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  155. package/docs/interfaces/PaintBrushState.html +9 -9
  156. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  157. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  158. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  159. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  160. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  161. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  162. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  163. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  164. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  165. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  166. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  167. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  168. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  169. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  170. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  171. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  172. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  173. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  174. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  175. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  176. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  177. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  178. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  179. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  180. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  181. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  182. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  183. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  184. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  185. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  186. package/docs/interfaces/Point.html +7 -7
  187. package/docs/interfaces/Room.html +8 -8
  188. package/docs/interfaces/RoomInfo.html +6 -6
  189. package/docs/interfaces/RoomLabel.html +13 -13
  190. package/docs/interfaces/RoomRules.html +4 -4
  191. package/docs/interfaces/Rooms.html +4 -4
  192. package/docs/interfaces/Scissor.html +8 -8
  193. package/docs/interfaces/State.html +7 -7
  194. package/docs/interfaces/TagCacheInterface.html +11 -11
  195. package/docs/interfaces/TagConfig.html +12 -12
  196. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  197. package/docs/interfaces/TagIconUrl.html +11 -11
  198. package/docs/interfaces/TagObjectGroup.html +5 -5
  199. package/docs/interfaces/TagStyle.html +5 -5
  200. package/docs/interfaces/Tags.html +8 -8
  201. package/docs/interfaces/TemporaryState.html +5 -5
  202. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  203. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  204. package/docs/modules/CruisePluginTypes.html +4 -4
  205. package/docs/modules/GuideLineItem.html +4 -4
  206. package/docs/modules/GuideLineModeItem.html +4 -4
  207. package/docs/modules/GuideLinePluginType.html +4 -4
  208. package/docs/modules/PanoVideoPluginType.html +4 -4
  209. package/docs/modules/Util.html +4 -4
  210. package/docs/modules.html +4 -4
  211. package/docs/types/ArrayPosition.html +4 -4
  212. package/docs/types/AudioAppearance.html +4 -4
  213. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  214. package/docs/types/CSS3DRenderExportType.html +4 -4
  215. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  216. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  217. package/docs/types/ClassFunctionParameters.html +4 -4
  218. package/docs/types/Color.html +4 -4
  219. package/docs/types/ContentTypeConfigKey.html +4 -4
  220. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  221. package/docs/types/ContentTypeMap.html +4 -4
  222. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  223. package/docs/types/Create3DElementReturnType.html +4 -4
  224. package/docs/types/CruisePluginExportType.html +4 -4
  225. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  226. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  227. package/docs/types/Direction-1.html +4 -4
  228. package/docs/types/Direction4.html +4 -4
  229. package/docs/types/ElementRenderer.html +4 -4
  230. package/docs/types/FloorplanRuleLabels.html +4 -4
  231. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  232. package/docs/types/GuideLinePluginExportType.html +4 -4
  233. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  234. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  235. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  236. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  237. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  238. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  239. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  240. package/docs/types/HelperEventMap.html +4 -4
  241. package/docs/types/LoadTagConfig.html +4 -4
  242. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  243. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  244. package/docs/types/MediaData.html +4 -4
  245. package/docs/types/MediaStore.html +4 -4
  246. package/docs/types/ModelElement.html +4 -4
  247. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  248. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  249. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  250. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  251. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  252. package/docs/types/MoveArgs.html +4 -4
  253. package/docs/types/MoveOpts.html +4 -4
  254. package/docs/types/Object3DHelperEventMap.html +4 -4
  255. package/docs/types/ObjectFit.html +4 -4
  256. package/docs/types/PaintBrushEventMap.html +4 -4
  257. package/docs/types/PanoCompassPluginData.html +4 -4
  258. package/docs/types/PanoCompassPluginExportType.html +4 -4
  259. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  260. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  261. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  262. package/docs/types/PanoIndex.html +4 -4
  263. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  264. package/docs/types/PanoMeasureReturnType.html +4 -4
  265. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  266. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  267. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  268. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  269. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  270. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  271. package/docs/types/PlaneTag.html +4 -4
  272. package/docs/types/PlaneTagElement.html +4 -4
  273. package/docs/types/Point2DElement.html +4 -4
  274. package/docs/types/Point2DTag.html +4 -4
  275. package/docs/types/Point3DElement.html +4 -4
  276. package/docs/types/Point3DTag.html +4 -4
  277. package/docs/types/PointTag.html +4 -4
  278. package/docs/types/PointTagElement.html +4 -4
  279. package/docs/types/Position.html +4 -4
  280. package/docs/types/RotateArgs.html +4 -4
  281. package/docs/types/RotateOpts.html +4 -4
  282. package/docs/types/RuleLabelsKey.html +4 -4
  283. package/docs/types/RuleLabelsValue.html +4 -4
  284. package/docs/types/StickType.html +4 -4
  285. package/docs/types/Tag.html +4 -4
  286. package/docs/types/Tag2D.html +4 -4
  287. package/docs/types/Tag3D.html +4 -4
  288. package/docs/types/TagContentType.html +4 -4
  289. package/docs/types/TagDimensionType.html +4 -4
  290. package/docs/types/TagElement.html +4 -4
  291. package/docs/types/TagEvents.html +4 -4
  292. package/docs/types/TagGLTFObject.html +5 -5
  293. package/docs/types/TagHooks.html +4 -4
  294. package/docs/types/TagIconSize.html +4 -4
  295. package/docs/types/TagId.html +4 -4
  296. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  297. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  298. package/docs/types/WorkCode.html +4 -4
  299. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  300. package/docs/variables/PLUGIN.html +4 -4
  301. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  302. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  303. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  304. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  305. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  306. package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -4
  307. package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -39
  308. package/libs/PanoTagPlugin/controller/TagRender.js +83 -77
  309. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  310. package/libs/PanoTagPlugin/controller/index.js +16 -16
  311. package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
  312. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
  313. package/libs/base/BasePlugin.js +1 -1
  314. package/libs/shared-utils/logger.js +1 -1
  315. package/package.json +1 -1
@@ -1,29 +1,29 @@
1
1
  var k = Object.defineProperty;
2
- var w = (f, h, t) => h in f ? k(f, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[h] = t;
3
- var g = (f, h, t) => (w(f, typeof h != "symbol" ? h + "" : h, t), t);
4
- var P = (f, h, t) => new Promise((e, i) => {
5
- var o = (r) => {
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 g = (f, h, t) => (E(f, typeof h != "symbol" ? h + "" : h, t), t);
4
+ var D = (f, h, t) => new Promise((e, o) => {
5
+ var i = (r) => {
6
6
  try {
7
- a(t.next(r));
7
+ n(t.next(r));
8
8
  } catch (s) {
9
- i(s);
9
+ o(s);
10
10
  }
11
- }, n = (r) => {
11
+ }, a = (r) => {
12
12
  try {
13
- a(t.throw(r));
13
+ n(t.throw(r));
14
14
  } catch (s) {
15
- i(s);
15
+ o(s);
16
16
  }
17
- }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(o, n);
18
- a((t = t.apply(f, h)).next());
17
+ }, n = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, a);
18
+ n((t = t.apply(f, h)).next());
19
19
  });
20
- import { TagComputer as E } from "./TagComputer.js";
21
- import { Group as v, Quaternion as O, Vector3 as T, Matrix4 as D } from "three";
20
+ import { TagComputer as w } from "./TagComputer.js";
21
+ import { Group as P, Quaternion as O, Vector3 as v, Matrix4 as T } from "three";
22
22
  import x from "../Components/TagContainer.js";
23
23
  import A from "../Components/Tag/index.js";
24
- import { arrayPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
24
+ import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
25
  import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
26
- import { isMediaModelTag as C, isStickModelTag as I } from "../utils/tag/tagCheck.js";
26
+ import { isMediaModelTag as S, isStickModelTag as I } from "../utils/tag/tagCheck.js";
27
27
  import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
28
28
  import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
29
29
  import { VideoPlane as R, ImagePlane as j } from "../utils/model/mediaPlane.js";
@@ -140,12 +140,12 @@ import "../../CSS3DRenderPlugin/Controller.js";
140
140
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
141
141
  import "@realsee/five/gltf-loader";
142
142
  const L = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
143
- class ti extends E {
143
+ class ti extends w {
144
144
  constructor(t) {
145
145
  super(t);
146
- g(this, "group", new v());
147
- g(this, "imagePlaneGroup", new v());
148
- g(this, "gltfObjectGroup", new v());
146
+ g(this, "group", new P());
147
+ g(this, "imagePlaneGroup", new P());
148
+ g(this, "gltfObjectGroup", new P());
149
149
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
150
150
  g(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
151
151
  /** 临时状态 */
@@ -153,41 +153,47 @@ class ti extends E {
153
153
  /** 点标签 */
154
154
  g(this, "TagContainerSvelte");
155
155
  /** 加载外部模型 */
156
- g(this, "loadModel", (t) => P(this, null, function* () {
157
- var a;
156
+ g(this, "loadModel", (t) => D(this, null, function* () {
157
+ var n;
158
158
  const e = t.data.modelUrl;
159
159
  if (!e)
160
160
  return;
161
- const i = F(e).then((r) => {
161
+ const o = F(e).then((r) => {
162
162
  var m, u, p, d, c;
163
- const s = Object.assign(r.scene, { customID: t.id, isTagModel: !0 });
164
- return s.visible = this.getCurrentVisibleState(t), new D().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (p = (u = (m = this.config) == null ? void 0 : m.globalConfig) == null ? void 0 : u.modelConfig) != null && p.autoLookAtEnabled && ((c = (d = t.config) == null ? void 0 : d.modelConfig) != null && c.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
163
+ const s = Object.assign(r.scene, {
164
+ customID: t.id,
165
+ isTagModel: !0,
166
+ removeEventListener: this.addObjectClickHandler(t, r.scene, (b) => {
167
+ this.hooks.emit("click", { target: "TagModel", tag: t, event: b });
168
+ })
169
+ });
170
+ return s.visible = this.getCurrentVisibleState(t), new T().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (p = (u = (m = this.config) == null ? void 0 : m.globalConfig) == null ? void 0 : u.modelConfig) != null && p.autoLookAtEnabled && ((c = (d = t.config) == null ? void 0 : d.modelConfig) != null && c.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
165
171
  });
166
- t.model = { promise: i };
167
- const o = yield i;
168
- if (((a = t.model) == null ? void 0 : a.promise) !== i || !this.tags.includes(t))
172
+ t.model = { promise: o };
173
+ const i = yield o;
174
+ if (((n = t.model) == null ? void 0 : n.promise) !== o || !this.tags.includes(t))
169
175
  return;
170
- t.model.object = o;
171
- const n = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
172
- if (n && this.gltfObjectGroup.remove(n), this.updateRender3DDomTag(), C(t)) {
176
+ t.model.object = i;
177
+ const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
178
+ if (a && (this.gltfObjectGroup.remove(a), a.removeEventListener()), this.updateRender3DDomTag(), S(t)) {
173
179
  if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
174
- const r = t.data.mediaPosition.map(S);
175
- t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(S), {
180
+ const r = t.data.mediaPosition.map(C);
181
+ t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(C), {
176
182
  objectFit: t.data.objectFit
177
183
  });
178
- const s = new T().addVectors(r[0], r[2]).divideScalar(2);
179
- t.mediaPlane.position.copy(s), o.add(t.mediaPlane);
184
+ const s = new v().addVectors(r[0], r[2]).divideScalar(2);
185
+ t.mediaPlane.position.copy(s), i.add(t.mediaPlane);
180
186
  }
181
- this.getRenderType(t) !== "Mesh" && (o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix());
187
+ this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
182
188
  }
183
- return this.gltfObjectGroup.add(o), o;
189
+ return this.gltfObjectGroup.add(i), i;
184
190
  }));
185
191
  this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
186
192
  }
187
193
  clearTags() {
188
194
  this.tags.forEach((t) => {
189
- var e, i;
190
- (i = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || i.remove(t.mediaPlane);
195
+ var e, o;
196
+ (o = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || o.remove(t.mediaPlane);
191
197
  }), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
192
198
  }
193
199
  /**
@@ -202,20 +208,20 @@ class ti extends E {
202
208
  updateRenderImagePlane() {
203
209
  this.sort(this.filterImagePlane).forEach((e) => {
204
210
  var r, s, l, m, u;
205
- const i = e.data.mediaData[0];
206
- if (!i)
211
+ const o = e.data.mediaData[0];
212
+ if (!o)
207
213
  return;
208
- const { url: o, type: n } = i;
209
- if (!o || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof R && ((l = e.data.autoplayConfig) != null && l.autoplayVideo || e.mediaPlane.pause())), ((m = e.mediaPlane) == null ? void 0 : m.src) === o))
214
+ const { url: i, type: a } = 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 R && ((l = e.data.autoplayConfig) != null && l.autoplayVideo || e.mediaPlane.pause())), ((m = e.mediaPlane) == null ? void 0 : m.src) === i))
210
216
  return;
211
- const a = e.position.map(S);
212
- if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
213
- e.mediaPlane = new j(o, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
217
+ const n = e.position.map(C);
218
+ if (e.mediaPlane && e.mediaPlane.removeFromParent(), a === "Image")
219
+ e.mediaPlane = new j(i, n, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
214
220
  this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
215
221
  });
216
- else if (n === "Video") {
217
- const p = new R(o, a, {
218
- videoCoverSrc: i.videoCoverUrl,
222
+ else if (a === "Video") {
223
+ const p = new R(i, n, {
224
+ videoCoverSrc: o.videoCoverUrl,
219
225
  playButton: e.data.playIcon,
220
226
  paused: !((u = e.data.autoplayConfig) != null && u.autoplayVideo),
221
227
  objectFit: e.data.objectFit,
@@ -236,26 +242,26 @@ class ti extends E {
236
242
  */
237
243
  updateRender3DDomTag() {
238
244
  this.sort([...this.filterCSS3DTag]).forEach((e) => {
239
- var i, o, n;
245
+ var o, i, a;
240
246
  if (e.tag3DContentSvelte) {
241
- const { svelteApp: a, css3DInstance: r, initialNormal: s, currentNormal: l } = e.tag3DContentSvelte;
242
- if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(l)) {
247
+ const { svelteApp: n, css3DInstance: r, initialNormal: s, currentNormal: l } = e.tag3DContentSvelte;
248
+ if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(l)) {
243
249
  const m = new O().setFromUnitVectors(s, l);
244
250
  r.css3DObject.setRotationFromQuaternion(m);
245
251
  }
246
252
  return;
247
253
  } else {
248
- if (C(e) && !((i = e.model) != null && i.object) || ((o = e.state) == null ? void 0 : o.visible) === !1 || !this.state.visible || !this.state.enabled)
254
+ if (S(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
249
255
  return;
250
256
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), e.stickType === "3DPoint" && !e.normal)
251
257
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
252
- const a = this.getPositions(e);
253
- if (!a)
258
+ const n = this.getPositions(e);
259
+ if (!n)
254
260
  return;
255
261
  const r = this.getTagNormal(e);
256
262
  if (!r)
257
263
  return;
258
- const l = (n = this.getTagConfig(e).tag3DConfig) != null ? n : {};
264
+ const l = (a = this.getTagConfig(e).tag3DConfig) != null ? a : {};
259
265
  if (this.getRenderType(e) === "BehindDom") {
260
266
  l.mode = "behind", l.container = document.createElement("div");
261
267
  const p = "black";
@@ -269,7 +275,7 @@ class ti extends E {
269
275
  }
270
276
  });
271
277
  }
272
- const m = this.css3DRenderPlugin.create3DDomContainer(a, l);
278
+ const m = this.css3DRenderPlugin.create3DDomContainer(n, l);
273
279
  if (!m)
274
280
  return;
275
281
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
@@ -305,13 +311,13 @@ class ti extends E {
305
311
  * FIXME: 有性能问题,但是之前的逻辑都是这么写,暂时先这样吧
306
312
  */
307
313
  updateRenderModelTag() {
308
- const t = (i) => !this.enabledModelTagSet.has(i.customID);
309
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
310
- var o;
311
- (o = i.model) == null || o.promise.then((n) => {
314
+ const t = (i) => !this.enabledModelTagSet.has(i.customID), e = this.gltfObjectGroup.children.filter(t);
315
+ e.forEach((i) => i.removeEventListener()), this.gltfObjectGroup.remove(...e), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
316
+ var a;
317
+ (a = i.model) == null || a.promise.then((n) => {
312
318
  n.visible = this.getCurrentVisibleState(i);
313
319
  });
314
- });
320
+ }), this.five.needsRender = !0;
315
321
  }
316
322
  updateTagModelVisible() {
317
323
  this.tags.forEach((t) => {
@@ -325,20 +331,20 @@ class ti extends E {
325
331
  */
326
332
  updateTagCss3DObjectMatrix(t, e) {
327
333
  var c, b, y, M;
328
- const i = (y = (b = (c = t.mergedConfig) == null ? void 0 : c.tag3DConfig) == null ? void 0 : b.ratio) != null ? y : 216e-5, o = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
329
- if (!o)
334
+ const o = (y = (b = (c = t.mergedConfig) == null ? void 0 : c.tag3DConfig) == null ? void 0 : b.ratio) != null ? y : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
335
+ if (!i)
330
336
  return;
331
- const n = C(t) ? t.data.mediaPosition : t.position;
337
+ const a = S(t) ? t.data.mediaPosition : t.position;
332
338
  e.updateWorldMatrix(!1, !1);
333
- const a = e.matrixWorld, r = new T().fromArray(n[0]), s = new T().fromArray(n[2]), l = G(r, s).add(new T(0, 0, 5e-4)), m = new D().setPosition(l), u = new D().makeScale(i, i, i), p = new D().multiply(a).multiply(m).multiply(u);
334
- p.decompose(o.position, o.quaternion, o.scale);
335
- const d = o.opacityMesh;
339
+ const n = e.matrixWorld, r = new v().fromArray(a[0]), s = new v().fromArray(a[2]), l = G(r, s).add(new v(0, 0, 5e-4)), m = new T().setPosition(l), u = new T().makeScale(o, o, o), p = new T().multiply(n).multiply(m).multiply(u);
340
+ p.decompose(i.position, i.quaternion, i.scale);
341
+ const d = i.opacityMesh;
336
342
  d && p.decompose(d.position, d.quaternion, d.scale);
337
343
  }
338
344
  /** 添加模型标签 */
339
345
  addMediaModelTag(t) {
340
- return P(this, null, function* () {
341
- const e = t.filter(I).map((i) => this.loadModel(i));
346
+ return D(this, null, function* () {
347
+ const e = t.filter(I).map((o) => this.loadModel(o));
342
348
  yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
343
349
  });
344
350
  }
@@ -351,11 +357,11 @@ class ti extends E {
351
357
  if (this.setPointTagPosition(), this.TagContainerSvelte)
352
358
  this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
353
359
  else {
354
- const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
355
- if (!i)
360
+ const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
361
+ if (!o)
356
362
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
357
363
  this.TagContainerSvelte = new x({
358
- target: i,
364
+ target: o,
359
365
  props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
360
366
  });
361
367
  }
@@ -367,8 +373,8 @@ class ti extends E {
367
373
  temporaryState: this.temporaryState,
368
374
  withAnimation: this.store.visibleWithAnimation
369
375
  }), this.filterCSS3DTag.forEach((e) => {
370
- var i, o, n, a, r;
371
- (a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
376
+ var o, i, a, n, r;
377
+ (n = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || n.setVisible((this.state.visible && ((a = e.state) == null ? void 0 : a.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
372
378
  state: this.state,
373
379
  temporaryState: this.temporaryState,
374
380
  withAnimation: this.store.visibleWithAnimation
@@ -377,7 +383,7 @@ class ti extends E {
377
383
  }
378
384
  disposeAllCSS3DContainer() {
379
385
  for (const [t, e] of this.store.css3DRenderDisposer)
380
- e == null || e.forEach((i) => i == null ? void 0 : i());
386
+ e == null || e.forEach((o) => o == null ? void 0 : o());
381
387
  this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
382
388
  }
383
389
  /**
@@ -389,8 +395,8 @@ class ti extends E {
389
395
  (e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
390
396
  });
391
397
  for (const [t, e] of this.store.css3DRenderDisposer) {
392
- const i = this.getTagById(t);
393
- (!i || i.stickType === "2DPoint") && (e == null || e.forEach((o) => o == null ? void 0 : o()), this.store.css3DRenderDisposer.delete(t));
398
+ const o = this.getTagById(t);
399
+ (!o || o.stickType === "2DPoint") && (e == null || e.forEach((i) => i == null ? void 0 : i()), this.store.css3DRenderDisposer.delete(t));
394
400
  }
395
401
  }
396
402
  }
@@ -49,7 +49,7 @@ export declare abstract class TagUtil extends TagCache {
49
49
  protected getDistance(tag: Tag<any, any>, panoIndex?: number): number;
50
50
  protected getPositions(tag: TagElement<any, any>): any;
51
51
  protected preventWhenMouseDown: () => false | void;
52
- protected addObjectClickHandler(tag: TagElement, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
52
+ protected addObjectClickHandler(tag: TagElement<any, any>, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
53
53
  protected getTagNormal(tag: TagElement<any, 'Plane'> | TagElement<any, 'Model'> | TagElement<any, '3DPoint'>): THREE.Vector3;
54
54
  protected get filterPointTag(): PointTagElement[];
55
55
  protected get filter2DPointTag(): Point2DElement[];
@@ -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 c } from "../../vendor/object-assign-deep/objectAssignDeep.js";
32
+ import { objectAssignDeepExports as p } 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";
@@ -170,7 +170,7 @@ class ci extends N {
170
170
  g(this, "debug");
171
171
  /** 更改 tag 模型 */
172
172
  g(this, "changeTagModel", (e, t) => f(this, null, function* () {
173
- e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
173
+ e.data = p({}, 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 = l({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: V.PlayAudio });
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 });
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;
@@ -199,7 +199,7 @@ class ci extends N {
199
199
  load(e, t) {
200
200
  return f(this, null, function* () {
201
201
  var s, o;
202
- this.clearTags(), console.info(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = c({}, this.config, {
202
+ this.clearTags(), console.info(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
203
203
  globalConfig: (s = e.globalConfig) != null ? s : {},
204
204
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
205
205
  });
@@ -223,7 +223,7 @@ class ci extends N {
223
223
  const n = this.getTagConfig(o);
224
224
  return u(l({}, o), {
225
225
  id: (d = o.id) != null ? d : z(),
226
- data: c({}, n.initialData, o.data),
226
+ data: p({}, n.initialData, o.data),
227
227
  state: l({
228
228
  visible: void 0,
229
229
  unfolded: !this.can("fold", o)
@@ -247,19 +247,19 @@ class ci extends N {
247
247
  * @description: 改变配置
248
248
  */
249
249
  changeConfig(e, t = !0) {
250
- t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
250
+ t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
251
251
  }
252
252
  /**
253
253
  * @description: 改变全局配置
254
254
  */
255
255
  changeGlobalConfig(e, t = !0) {
256
- t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
256
+ t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
257
257
  }
258
258
  /**
259
259
  * @description: 改变类型配置
260
260
  */
261
261
  changeContentTypeConfig(e, t, i = !0) {
262
- 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();
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();
263
263
  }
264
264
  show(e) {
265
265
  return f(this, null, function* () {
@@ -334,7 +334,7 @@ class ci extends N {
334
334
  */
335
335
  changeDataById(e, t, i = !0) {
336
336
  const s = this.getTagById(e);
337
- s && (i ? s.data = c({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
337
+ s && (i ? s.data = p({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
338
338
  }
339
339
  /**
340
340
  * @description: 改变tag的stickType
@@ -347,7 +347,7 @@ class ci extends N {
347
347
  */
348
348
  changeTagById(e, t, i = !0) {
349
349
  const s = this.getTagById(e);
350
- 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());
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());
351
351
  }
352
352
  /**
353
353
  * @description: 销毁tag
@@ -394,9 +394,9 @@ class ci extends N {
394
394
  * @description: 添加 cameraUpdate, panoArrived 等事件监听
395
395
  */
396
396
  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), p = 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", p), () => {
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", p), this.store.eventListenerDisposer = void 0;
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;
400
400
  };
401
401
  }
402
402
  addResizeListener() {
@@ -491,9 +491,9 @@ class ci extends N {
491
491
  o.position.copy(n.position), o.quaternion.copy(n.quaternion);
492
492
  const r = this.five.camera.position;
493
493
  o.lookAt(r.clone().setY(o.position.y));
494
- const d = n.quaternion.clone(), p = o.quaternion.clone(), m = x();
494
+ const d = n.quaternion.clone(), c = o.quaternion.clone(), m = x();
495
495
  m.onUpdate(({ progress: P }) => {
496
- n.quaternion.copy(d.clone().slerp(p, P));
496
+ n.quaternion.copy(d.clone().slerp(c, P));
497
497
  }), m.play();
498
498
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
499
499
  });
@@ -510,7 +510,7 @@ class ci extends N {
510
510
  }
511
511
  changeTagMode(e, t) {
512
512
  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((p) => p == null ? void 0 : p()), e.tag3DContentSvelte = void 0);
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);
514
514
  }
515
515
  }
516
516
  export {
@@ -33,6 +33,9 @@ export interface EventMap extends BasePlugin.EventMap<State> {
33
33
  target: 'AudioTagPlayIcon';
34
34
  tag: TagElement;
35
35
  audioInstance: HTMLAudioElement;
36
+ } | {
37
+ target: 'TagModel';
38
+ tag: TagElement<'Model', 'Model'> | TagElement<'MediaModel', 'Model'>;
36
39
  })) => void;
37
40
  playStateChange: (params: {
38
41
  event: Event;
@@ -44,6 +44,7 @@ export interface TagStyle {
44
44
  export type TagGLTFObject = GLTFObject & {
45
45
  customID: number | string;
46
46
  isTagModel: boolean;
47
+ removeEventListener: () => void;
47
48
  updateTagCss3DObjectMatrix?: () => void;
48
49
  };
49
50
  /** 返回一个销毁函数 */
@@ -14,7 +14,7 @@ let n = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.19.0-0");
17
+ e(this, "VERSION", "2.19.0-2");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.info(
3
- "%c %c@realsee/dnalogel %cv2.19.0-0",
3
+ "%c %c@realsee/dnalogel %cv2.19.0-2",
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",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.19.0-0",
10
+ "version": "2.19.0-2",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",