@realsee/dnalogel 2.11.0-aplha.0 → 2.11.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 (301) hide show
  1. package/dist/ModelRoomLabelPlugin/Controller.d.ts +2 -0
  2. package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +4 -3
  3. package/dist/PanoVideoPlugin/VideoMeshController.d.ts +7 -0
  4. package/dist/index.cjs.js +45 -45
  5. package/dist/index.js +1986 -1933
  6. package/dist/index.umd.js +28 -28
  7. package/dist/shared-utils/audio.d.ts +3 -0
  8. package/docs/classes/CSS3DRender.html +31 -31
  9. package/docs/classes/CruisePluginController.html +25 -25
  10. package/docs/classes/Magnifier.html +20 -20
  11. package/docs/classes/ModelRoomLabelController.html +11 -11
  12. package/docs/classes/Object3DHelperController.html +25 -25
  13. package/docs/classes/PaintBrush.html +15 -15
  14. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  15. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  16. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  17. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  18. package/docs/classes/PanoTagPluginController.html +47 -47
  19. package/docs/classes/Util.BetterTween.html +8 -8
  20. package/docs/classes/Util.FivePointSelector.html +12 -12
  21. package/docs/classes/Util.Interval.html +12 -12
  22. package/docs/classes/Util.Magnifier.html +17 -17
  23. package/docs/classes/Util.PointDomHelper.html +11 -11
  24. package/docs/classes/Util.PointHelper.html +11 -11
  25. package/docs/classes/Util.Rectangle.html +13 -13
  26. package/docs/enums/CameraMovementEffect.html +7 -7
  27. package/docs/enums/ContentType.html +19 -19
  28. package/docs/enums/DIRECTION.html +9 -9
  29. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  30. package/docs/enums/DimensionType.html +7 -7
  31. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  32. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  33. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  34. package/docs/enums/PointType.html +7 -7
  35. package/docs/enums/Rotation.html +8 -8
  36. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  37. package/docs/functions/CameraMovementPlugin.html +4 -4
  38. package/docs/functions/CruisePlugin.html +4 -4
  39. package/docs/functions/GuideLinePlugin.html +5 -5
  40. package/docs/functions/ItemLabelPlugin.html +4 -4
  41. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  42. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  43. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  44. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  45. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  46. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  47. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  48. package/docs/functions/ModelViewPlugin.html +4 -4
  49. package/docs/functions/Object3DHelperPlugin.html +4 -4
  50. package/docs/functions/PanoCompassPlugin.html +4 -4
  51. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  52. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  53. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  54. package/docs/functions/PanoMeasurePlugin.html +4 -4
  55. package/docs/functions/PanoRulerPlugin.html +4 -4
  56. package/docs/functions/PanoRulerProPlugin.html +4 -4
  57. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  58. package/docs/functions/PanoTagPlugin.html +4 -4
  59. package/docs/functions/PanoVideoPlugin.html +4 -4
  60. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  61. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  62. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  63. package/docs/functions/Util.getFrameTime.html +5 -5
  64. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  65. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  66. package/docs/functions/Util.isNil.html +5 -5
  67. package/docs/functions/Util.nextFrame.html +5 -5
  68. package/docs/functions/Util.notNil.html +5 -5
  69. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  70. package/docs/functions/Util.tweenProgress.html +5 -5
  71. package/docs/functions/pluginFlag.html +5 -5
  72. package/docs/index.html +4 -4
  73. package/docs/interfaces/AddTagConfig.html +6 -6
  74. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  75. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  76. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  77. package/docs/interfaces/EventMap.html +15 -15
  78. package/docs/interfaces/FloorplanBounding.html +8 -8
  79. package/docs/interfaces/FloorplanData.html +10 -10
  80. package/docs/interfaces/FloorplanEntrance.html +11 -11
  81. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  82. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  83. package/docs/interfaces/FloorplanFloorData.html +9 -9
  84. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  85. package/docs/interfaces/FloorplanObserver.html +9 -9
  86. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  87. package/docs/interfaces/FloorplanPosition.html +7 -7
  88. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  89. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  90. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  91. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  92. package/docs/interfaces/FloorplanServerData.html +7 -7
  93. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  94. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  95. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  96. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  97. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  98. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  99. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  100. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  101. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  102. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  103. package/docs/interfaces/HelperOffset.html +8 -8
  104. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  105. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  106. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  107. package/docs/interfaces/MinMax.html +7 -7
  108. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  109. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  110. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  111. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  112. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  113. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  114. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  115. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  116. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  117. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  118. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  119. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  120. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  121. package/docs/interfaces/Object3DHelperState.html +8 -8
  122. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  123. package/docs/interfaces/PaintBrushAction.html +12 -12
  124. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  125. package/docs/interfaces/PaintBrushState.html +10 -10
  126. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  127. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  128. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  129. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  130. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  131. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  132. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  133. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  134. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  135. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  136. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  137. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  138. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  139. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  140. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  141. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  142. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  143. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  144. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  145. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  146. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  147. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  148. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  149. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  150. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  151. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  152. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  153. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  154. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  155. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  156. package/docs/interfaces/Point.html +8 -8
  157. package/docs/interfaces/Room.html +9 -9
  158. package/docs/interfaces/RoomInfo.html +7 -7
  159. package/docs/interfaces/RoomLabel.html +14 -14
  160. package/docs/interfaces/RoomRules.html +5 -5
  161. package/docs/interfaces/Rooms.html +5 -5
  162. package/docs/interfaces/Scissor.html +9 -9
  163. package/docs/interfaces/State.html +8 -8
  164. package/docs/interfaces/TagCache.html +12 -12
  165. package/docs/interfaces/TagConfig.html +10 -10
  166. package/docs/interfaces/TagIconUrl.html +11 -11
  167. package/docs/interfaces/TagStyle.html +6 -6
  168. package/docs/interfaces/Tags.html +9 -9
  169. package/docs/interfaces/TemporaryState.html +6 -6
  170. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  171. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  172. package/docs/modules/PanoVideoPluginType.html +5 -5
  173. package/docs/modules/Util.html +5 -5
  174. package/docs/modules.html +4 -4
  175. package/docs/types/ArrayPosition.html +5 -5
  176. package/docs/types/AudioAppearance.html +5 -5
  177. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  178. package/docs/types/CSS3DRenderExportType.html +5 -5
  179. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  180. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  181. package/docs/types/ClassFunctionParameters.html +5 -5
  182. package/docs/types/Color.html +5 -5
  183. package/docs/types/ContentTypeConfigKey.html +5 -5
  184. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  185. package/docs/types/ContentTypeMap.html +5 -5
  186. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  187. package/docs/types/Create3DElementReturnType.html +5 -5
  188. package/docs/types/CruisePluginExportType.html +5 -5
  189. package/docs/types/Direction-1.html +5 -5
  190. package/docs/types/Direction4.html +5 -5
  191. package/docs/types/FloorplanRuleLabels.html +5 -5
  192. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  193. package/docs/types/GuideLinePluginExportType.html +5 -5
  194. package/docs/types/HelperEventMap.html +5 -5
  195. package/docs/types/LoadTagConfig.html +5 -5
  196. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  198. package/docs/types/MediaData.html +5 -5
  199. package/docs/types/MediaStore.html +5 -5
  200. package/docs/types/ModelElement.html +5 -5
  201. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  202. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  203. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  204. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  205. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  206. package/docs/types/MoveArgs.html +5 -5
  207. package/docs/types/MoveOpts.html +5 -5
  208. package/docs/types/Object3DHelperEventMap.html +5 -5
  209. package/docs/types/ObjectFit.html +5 -5
  210. package/docs/types/PaintBrushEventMap.html +5 -5
  211. package/docs/types/PanoCompassPluginData.html +5 -5
  212. package/docs/types/PanoCompassPluginExportType.html +5 -5
  213. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  214. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  215. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  216. package/docs/types/PanoIndex.html +5 -5
  217. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  218. package/docs/types/PanoMeasureReturnType.html +5 -5
  219. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  220. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  221. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  222. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  223. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  224. package/docs/types/PlaneTag.html +5 -5
  225. package/docs/types/PlaneTagElement.html +5 -5
  226. package/docs/types/Point2DElement.html +5 -5
  227. package/docs/types/Point2DTag.html +5 -5
  228. package/docs/types/Point3DElement.html +5 -5
  229. package/docs/types/Point3DTag.html +5 -5
  230. package/docs/types/PointTag.html +5 -5
  231. package/docs/types/PointTagElement.html +5 -5
  232. package/docs/types/Position.html +5 -5
  233. package/docs/types/RotateArgs.html +5 -5
  234. package/docs/types/RotateOpts.html +5 -5
  235. package/docs/types/RuleLabelsKey.html +5 -5
  236. package/docs/types/RuleLabelsValue.html +5 -5
  237. package/docs/types/StickType.html +5 -5
  238. package/docs/types/Tag.html +5 -5
  239. package/docs/types/Tag2D.html +5 -5
  240. package/docs/types/Tag3D.html +5 -5
  241. package/docs/types/TagContentType.html +5 -5
  242. package/docs/types/TagDimensionType.html +5 -5
  243. package/docs/types/TagElement.html +5 -5
  244. package/docs/types/TagEvents.html +5 -5
  245. package/docs/types/TagGLTFObject.html +5 -5
  246. package/docs/types/TagHooks.html +5 -5
  247. package/docs/types/TagIconSize.html +5 -5
  248. package/docs/types/TagId.html +5 -5
  249. package/docs/types/TagPointType.html +5 -5
  250. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  251. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  252. package/docs/types/WorkCode.html +5 -5
  253. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  254. package/docs/variables/PLUGIN.html +5 -5
  255. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  256. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  257. package/docs/variables/VERSION.html +5 -5
  258. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  259. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  260. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  261. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +10 -10
  262. package/libs/ModelRoomLabelPlugin/Controller.d.ts +2 -0
  263. package/libs/ModelRoomLabelPlugin/Controller.js +18 -15
  264. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +74 -72
  265. package/libs/PanoTagPlugin/Components/Common/Audio.js +61 -42
  266. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +67 -64
  267. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +53 -50
  268. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +1 -1
  269. package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
  270. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
  271. package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
  272. package/libs/PanoTagPlugin/controller/index.js +74 -77
  273. package/libs/PanoTagPlugin/index.js +1 -1
  274. package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +4 -3
  275. package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +69 -61
  276. package/libs/PanoVideoPlugin/VideoMeshController.d.ts +7 -0
  277. package/libs/PanoVideoPlugin/VideoMeshController.js +62 -39
  278. package/libs/base/BasePlugin.js +3 -3
  279. package/libs/index.js +1 -1
  280. package/libs/shared-utils/audio.d.ts +3 -0
  281. package/libs/shared-utils/audio.js +38 -60
  282. package/package.json +1 -1
  283. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  284. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  285. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  286. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  287. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  288. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  289. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -121
  290. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  291. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  292. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  293. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  294. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  295. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  296. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  297. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  298. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  299. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  300. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  301. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
@@ -1,4 +1,4 @@
1
- import { SvelteComponent as K, init as P, safe_not_equal as Q, append_styles as V, empty as X, insert as S, transition_in as g, transition_out as h, check_outros as E, detach as T, element as $, create_component as y, space as D, attr as k, add_render_callback as G, set_style as Y, toggle_class as L, mount_component as z, append as c, add_resize_listener as Z, listen as x, group_outros as H, destroy_component as R, create_in_transition as ee, create_out_transition as te, bubble as ie } from "../../../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as K, init as P, safe_not_equal as Q, append_styles as V, empty as X, insert as S, transition_in as g, transition_out as h, check_outros as E, detach as T, element as w, create_component as k, space as D, attr as $, add_render_callback as G, set_style as Y, toggle_class as L, mount_component as y, append as c, add_resize_listener as Z, listen as x, group_outros as H, destroy_component as z, create_in_transition as ee, create_out_transition as te, bubble as ie } from "../../../../vendor/svelte/internal/index.js";
2
2
  import { cubicInOut as N } from "../../../../vendor/svelte/easing/index.js";
3
3
  import { fade as O } from "../../../../vendor/svelte/transition/index.js";
4
4
  import ne from "../../Common/Audio.js";
@@ -6,8 +6,8 @@ import oe from "../../Common/Line/Straight.js";
6
6
  import J from "../../Common/Shadow.js";
7
7
  import le from "../../Common/Text/FlyMText.js";
8
8
  import re from "../../Common/Icon/audioIcon.js";
9
- import "../../../../shared-utils/audio.js";
10
9
  import "../../../utils/audio/SharedAudio.js";
10
+ import "../../../../shared-utils/audio.js";
11
11
  import "../../../../shared-utils/uuid.js";
12
12
  import "../../Common/Text/FlyText.js";
13
13
  import "animejs";
@@ -23,8 +23,8 @@ function ae(e) {
23
23
  V(e, "svelte-1s6gk4a", ".audio-tag.svelte-1s6gk4a{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.audio-icon__wrapper.svelte-1s6gk4a{position:relative;vertical-align:top;width:100%;height:100%}.content.svelte-1s6gk4a{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-1s6gk4a{position:relative;width:100%;height:100%}.audio-icon.svelte-1s6gk4a{pointer-events:none;vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.audio.svelte-1s6gk4a{position:relative;width:100%;height:100%}");
24
24
  }
25
25
  function j(e) {
26
- var M, b;
27
- let n, i, o, t, a, u, m, l, s, d, w, _, v, U, I;
26
+ var I, M;
27
+ let n, i, o, t, a, u, m, r, s, d, v, _, b, R, U;
28
28
  i = new J({
29
29
  props: {
30
30
  visible: e[6],
@@ -46,35 +46,35 @@ function j(e) {
46
46
  props: {
47
47
  unfolded: e[6],
48
48
  length: e[3],
49
- outDelay: e[4] + 20 * Math.min((b = (M = e[5]) == null ? void 0 : M.length) != null ? b : 10, 15),
49
+ outDelay: e[4] + 20 * Math.min((M = (I = e[5]) == null ? void 0 : I.length) != null ? M : 10, 15),
50
50
  useLinearColor: !0
51
51
  }
52
52
  }), {
53
53
  c() {
54
- n = $("div"), y(i.$$.fragment), o = D(), t = $("div"), a = $("div"), u = $("div"), f && f.c(), m = D(), l = $("div"), y(s.$$.fragment), w = D(), y(_.$$.fragment), k(u, "class", "audio-icon svelte-1s6gk4a"), G(() => e[14].call(l)), Y(l, "display", "inline-block"), k(a, "class", "wrapper svelte-1s6gk4a"), k(t, "class", "content svelte-1s6gk4a"), k(n, "class", "audio-tag svelte-1s6gk4a"), L(n, "unfolded", e[6]);
54
+ n = w("div"), k(i.$$.fragment), o = D(), t = w("div"), a = w("div"), u = w("div"), f && f.c(), m = D(), r = w("div"), k(s.$$.fragment), v = D(), k(_.$$.fragment), $(u, "class", "audio-icon svelte-1s6gk4a"), G(() => e[15].call(r)), Y(r, "display", "inline-block"), $(a, "class", "wrapper svelte-1s6gk4a"), $(t, "class", "content svelte-1s6gk4a"), $(n, "class", "audio-tag svelte-1s6gk4a"), L(n, "unfolded", e[6]);
55
55
  },
56
- m(r, p) {
57
- S(r, n, p), z(i, n, null), c(n, o), c(n, t), c(t, a), c(a, u), f && f.m(u, null), c(a, m), c(a, l), z(s, l, null), d = Z(l, e[14].bind(l)), c(n, w), z(_, n, null), v = !0, U || (I = x(l, "click", e[7]), U = !0);
56
+ m(l, p) {
57
+ S(l, n, p), y(i, n, null), c(n, o), c(n, t), c(t, a), c(a, u), f && f.m(u, null), c(a, m), c(a, r), y(s, r, null), d = Z(r, e[15].bind(r)), c(n, v), y(_, n, null), b = !0, R || (U = x(r, "click", e[7]), R = !0);
58
58
  },
59
- p(r, p) {
59
+ p(l, p) {
60
60
  var q, F;
61
61
  const W = {};
62
- p & 64 && (W.visible = r[6]), p & 8 && (W.left = r[3] / 2 + "px"), i.$set(W), r[6] ? f ? (f.p(r, p), p & 64 && g(f, 1)) : (f = B(r), f.c(), g(f, 1), f.m(u, null)) : f && (H(), h(f, 1, 1, () => {
62
+ p & 64 && (W.visible = l[6]), p & 8 && (W.left = l[3] / 2 + "px"), i.$set(W), l[6] ? f ? (f.p(l, p), p & 64 && g(f, 1)) : (f = B(l), f.c(), g(f, 1), f.m(u, null)) : f && (H(), h(f, 1, 1, () => {
63
63
  f = null;
64
64
  }), E());
65
65
  const A = {};
66
- p & 64 && (A.visible = r[6]), p & 2 && (A.textUnfolded = r[1]), p & 32 && (A.content = r[5]), s.$set(A);
66
+ p & 64 && (A.visible = l[6]), p & 2 && (A.textUnfolded = l[1]), p & 32 && (A.content = l[5]), s.$set(A);
67
67
  const C = {};
68
- p & 64 && (C.unfolded = r[6]), p & 8 && (C.length = r[3]), p & 48 && (C.outDelay = r[4] + 20 * Math.min((F = (q = r[5]) == null ? void 0 : q.length) != null ? F : 10, 15)), _.$set(C), (!v || p & 64) && L(n, "unfolded", r[6]);
68
+ p & 64 && (C.unfolded = l[6]), p & 8 && (C.length = l[3]), p & 48 && (C.outDelay = l[4] + 20 * Math.min((F = (q = l[5]) == null ? void 0 : q.length) != null ? F : 10, 15)), _.$set(C), (!b || p & 64) && L(n, "unfolded", l[6]);
69
69
  },
70
- i(r) {
71
- v || (g(i.$$.fragment, r), g(f), g(s.$$.fragment, r), g(_.$$.fragment, r), v = !0);
70
+ i(l) {
71
+ b || (g(i.$$.fragment, l), g(f), g(s.$$.fragment, l), g(_.$$.fragment, l), b = !0);
72
72
  },
73
- o(r) {
74
- h(i.$$.fragment, r), h(f), h(s.$$.fragment, r), h(_.$$.fragment, r), v = !1;
73
+ o(l) {
74
+ h(i.$$.fragment, l), h(f), h(s.$$.fragment, l), h(_.$$.fragment, l), b = !1;
75
75
  },
76
- d(r) {
77
- r && T(n), R(i), f && f.d(), R(s), d(), R(_), U = !1, I();
76
+ d(l) {
77
+ l && T(n), z(i), f && f.d(), z(s), d(), z(_), R = !1, U();
78
78
  }
79
79
  };
80
80
  }
@@ -94,20 +94,20 @@ function B(e) {
94
94
  $$slots: { default: [se] },
95
95
  $$scope: { ctx: e }
96
96
  }
97
- }), t.$on("play", e[11]), t.$on("pause", e[12]), t.$on("audioRef", e[13]), {
97
+ }), t.$on("play", e[11]), t.$on("pause", e[12]), t.$on("error", e[13]), t.$on("audioRef", e[14]), {
98
98
  c() {
99
- n = $("div"), y(i.$$.fragment), o = D(), y(t.$$.fragment), k(n, "class", "audio svelte-1s6gk4a");
99
+ n = w("div"), k(i.$$.fragment), o = D(), k(t.$$.fragment), $(n, "class", "audio svelte-1s6gk4a");
100
100
  },
101
- m(l, s) {
102
- S(l, n, s), z(i, n, null), c(n, o), z(t, n, null), m = !0;
101
+ m(r, s) {
102
+ S(r, n, s), y(i, n, null), c(n, o), y(t, n, null), m = !0;
103
103
  },
104
- p(l, s) {
105
- e = l;
104
+ p(r, s) {
105
+ e = r;
106
106
  const d = {};
107
- s & 64 && (d.enable = e[6]), s & 1 && (d.url = e[0].data.audioUrl), s & 1 && (d.hooksInfo = { tag: e[0] }), s & 32772 && (d.$$scope = { dirty: s, ctx: e }), t.$set(d);
107
+ s & 64 && (d.enable = e[6]), s & 1 && (d.url = e[0].data.audioUrl), s & 1 && (d.hooksInfo = { tag: e[0] }), s & 65540 && (d.$$scope = { dirty: s, ctx: e }), t.$set(d);
108
108
  },
109
- i(l) {
110
- m || (g(i.$$.fragment, l), g(t.$$.fragment, l), l && G(() => {
109
+ i(r) {
110
+ m || (g(i.$$.fragment, r), g(t.$$.fragment, r), r && G(() => {
111
111
  u && u.end(1), a = ee(n, O, {
112
112
  duration: 1e3,
113
113
  delay: 0,
@@ -115,16 +115,16 @@ function B(e) {
115
115
  }), a.start();
116
116
  }), m = !0);
117
117
  },
118
- o(l) {
118
+ o(r) {
119
119
  var s, d;
120
- h(i.$$.fragment, l), h(t.$$.fragment, l), a && a.invalidate(), l && (u = te(n, O, {
120
+ h(i.$$.fragment, r), h(t.$$.fragment, r), a && a.invalidate(), r && (u = te(n, O, {
121
121
  duration: 1e3,
122
122
  delay: 20 * Math.min((d = (s = e[5]) == null ? void 0 : s.length) != null ? d : 10, 15),
123
123
  easing: N
124
124
  })), m = !1;
125
125
  },
126
- d(l) {
127
- l && T(n), R(i), R(t), l && u && u.end();
126
+ d(r) {
127
+ r && T(n), z(i), z(t), r && u && u.end();
128
128
  }
129
129
  };
130
130
  }
@@ -132,10 +132,10 @@ function se(e) {
132
132
  let n, i, o;
133
133
  return i = new re({ props: { playing: e[2] } }), {
134
134
  c() {
135
- n = $("div"), y(i.$$.fragment), k(n, "class", "audio-icon__wrapper svelte-1s6gk4a");
135
+ n = w("div"), k(i.$$.fragment), $(n, "class", "audio-icon__wrapper svelte-1s6gk4a");
136
136
  },
137
137
  m(t, a) {
138
- S(t, n, a), z(i, n, null), o = !0;
138
+ S(t, n, a), y(i, n, null), o = !0;
139
139
  },
140
140
  p(t, a) {
141
141
  const u = {};
@@ -148,7 +148,7 @@ function se(e) {
148
148
  h(i.$$.fragment, t), o = !1;
149
149
  },
150
150
  d(t) {
151
- t && T(n), R(i);
151
+ t && T(n), z(i);
152
152
  }
153
153
  };
154
154
  }
@@ -179,41 +179,44 @@ function fe(e) {
179
179
  }
180
180
  function ue(e, n, i) {
181
181
  let o, t, a;
182
- var u, m, l;
183
- let { tag: s } = n, d = !1, w = !1, _;
184
- function v() {
182
+ var u, m, r;
183
+ let { tag: s } = n, d = !1, v = !1, _;
184
+ function b() {
185
185
  i(1, d = !d);
186
186
  }
187
- const U = () => {
188
- i(2, w = !0);
189
- }, I = () => {
190
- i(2, w = !1);
187
+ const R = () => {
188
+ i(2, v = !0);
189
+ }, U = () => {
190
+ i(2, v = !1);
191
+ }, f = () => {
192
+ i(2, v = !1);
191
193
  };
192
- function f(b) {
193
- ie.call(this, e, b);
194
+ function I(l) {
195
+ ie.call(this, e, l);
194
196
  }
195
197
  function M() {
196
198
  _ = this.clientWidth, i(3, _);
197
199
  }
198
- return e.$$set = (b) => {
199
- "tag" in b && i(0, s = b.tag);
200
+ return e.$$set = (l) => {
201
+ "tag" in l && i(0, s = l.tag);
200
202
  }, e.$$.update = () => {
201
- e.$$.dirty & 257 && i(6, o = !!(!(i(8, u = s.state) === null || u === void 0) && u.unfolded)), e.$$.dirty & 1537 && i(5, t = i(10, l = i(9, m = s.data.title) !== null && m !== void 0 ? m : s.data.text) !== null && l !== void 0 ? l : ""), e.$$.dirty & 2 && i(4, a = d ? 450 : 0);
203
+ e.$$.dirty & 257 && i(6, o = !!(!(i(8, u = s.state) === null || u === void 0) && u.unfolded)), e.$$.dirty & 1537 && i(5, t = i(10, r = i(9, m = s.data.title) !== null && m !== void 0 ? m : s.data.text) !== null && r !== void 0 ? r : ""), e.$$.dirty & 2 && i(4, a = d ? 450 : 0);
202
204
  }, [
203
205
  s,
204
206
  d,
205
- w,
207
+ v,
206
208
  _,
207
209
  a,
208
210
  t,
209
211
  o,
210
- v,
212
+ b,
211
213
  u,
212
214
  m,
213
- l,
215
+ r,
216
+ R,
214
217
  U,
215
- I,
216
218
  f,
219
+ I,
217
220
  M
218
221
  ];
219
222
  }
@@ -4,8 +4,8 @@ import v from "./AudioPlaneTag.js";
4
4
  import "../../../../vendor/svelte/easing/index.js";
5
5
  import "../../../../vendor/svelte/transition/index.js";
6
6
  import "../../Common/Audio.js";
7
- import "../../../../shared-utils/audio.js";
8
7
  import "../../../utils/audio/SharedAudio.js";
8
+ import "../../../../shared-utils/audio.js";
9
9
  import "../../Common/Line/Straight.js";
10
10
  import "../../../../shared-utils/uuid.js";
11
11
  import "../../Common/Shadow.js";
@@ -80,8 +80,8 @@ import "../../../shared-utils/animationFrame/BetterTween.js";
80
80
  import "../../../shared-utils/animationFrame/index.js";
81
81
  import "./AudioTag/AudioTag.js";
82
82
  import "../Common/Audio.js";
83
- import "../../../shared-utils/audio.js";
84
83
  import "../../utils/audio/SharedAudio.js";
84
+ import "../../../shared-utils/audio.js";
85
85
  import "../Common/Icon/audioIcon.js";
86
86
  import "./AudioTag/AudioPlaneTag.js";
87
87
  import "../Common/Icon/Icon.js";
@@ -79,8 +79,8 @@ import "../utils/tag/tagCheck.js";
79
79
  import "./Tag/AudioTag/index.js";
80
80
  import "./Tag/AudioTag/AudioTag.js";
81
81
  import "./Common/Audio.js";
82
- import "../../shared-utils/audio.js";
83
82
  import "../utils/audio/SharedAudio.js";
83
+ import "../../shared-utils/audio.js";
84
84
  import "./Common/Icon/audioIcon.js";
85
85
  import "./Tag/AudioTag/AudioPlaneTag.js";
86
86
  import "./Tag/MediaPlane.js";
@@ -79,8 +79,8 @@ import "../utils/tag/tagCheck.js";
79
79
  import "./Tag/AudioTag/index.js";
80
80
  import "./Tag/AudioTag/AudioTag.js";
81
81
  import "./Common/Audio.js";
82
- import "../../shared-utils/audio.js";
83
82
  import "../utils/audio/SharedAudio.js";
83
+ import "../../shared-utils/audio.js";
84
84
  import "./Common/Icon/audioIcon.js";
85
85
  import "./Tag/AudioTag/AudioPlaneTag.js";
86
86
  import "./Tag/MediaPlane.js";
@@ -1,51 +1,51 @@
1
- var V = Object.defineProperty, B = Object.defineProperties;
2
- var G = Object.getOwnPropertyDescriptors;
3
- var R = Object.getOwnPropertySymbols;
4
- var x = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
5
- var P = (h, d, e) => d in h ? V(h, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[d] = e, p = (h, d) => {
6
- for (var e in d || (d = {}))
7
- x.call(d, e) && P(h, e, d[e]);
8
- if (R)
9
- for (var e of R(d))
10
- N.call(d, e) && P(h, e, d[e]);
1
+ var I = Object.defineProperty, L = Object.defineProperties;
2
+ var V = Object.getOwnPropertyDescriptors;
3
+ var F = Object.getOwnPropertySymbols;
4
+ var B = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
+ var P = (h, a, e) => a in h ? I(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
6
+ for (var e in a || (a = {}))
7
+ B.call(a, e) && P(h, e, a[e]);
8
+ if (F)
9
+ for (var e of F(a))
10
+ x.call(a, e) && P(h, e, a[e]);
11
11
  return h;
12
- }, T = (h, d) => B(h, G(d));
13
- var l = (h, d, e) => (P(h, typeof d != "symbol" ? d + "" : d, e), e);
14
- var c = (h, d, e) => new Promise((t, i) => {
12
+ }, T = (h, a) => L(h, V(a));
13
+ var l = (h, a, e) => (P(h, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var c = (h, a, e) => new Promise((t, i) => {
15
15
  var s = (n) => {
16
16
  try {
17
17
  r(e.next(n));
18
- } catch (a) {
19
- i(a);
18
+ } catch (d) {
19
+ i(d);
20
20
  }
21
21
  }, o = (n) => {
22
22
  try {
23
23
  r(e.throw(n));
24
- } catch (a) {
25
- i(a);
24
+ } catch (d) {
25
+ i(d);
26
26
  }
27
27
  }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
28
- r((e = e.apply(h, d)).next());
28
+ r((e = e.apply(h, a)).next());
29
29
  });
30
- import { Subscribe as W } from "@realsee/five";
31
- import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as z } from "three";
30
+ import { Subscribe as G } from "@realsee/five";
31
+ import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as N } from "three";
32
32
  import v from "object-assign-deep";
33
- import { writable as _ } from "../../vendor/svelte/store/index.js";
34
- import $ from "../Components/TagContainer.js";
35
- import q from "../Components/Tag/index.js";
33
+ import { writable as W } from "../../vendor/svelte/store/index.js";
34
+ import z from "../Components/TagContainer.js";
35
+ import _ from "../Components/Tag/index.js";
36
36
  import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
- import { addDebugPoints as H } from "../utils/addDebugPoints.js";
37
+ import { addDebugPoints as $ } from "../utils/addDebugPoints.js";
38
38
  import { planeNormal as k } from "../utils/planeNormal.js";
39
- import { isMediaModelTag as f } from "../utils/tag/tagCheck.js";
40
- import { waitFiveModelLoaded as J } from "../utils/actionAfterFiveModelLoad.js";
41
- import { normalPositionToPositions as Q } from "../utils/normalPositionToPositions.js";
39
+ import { isMediaModelTag as m } from "../utils/tag/tagCheck.js";
40
+ import { waitFiveModelLoaded as q } from "../utils/actionAfterFiveModelLoad.js";
41
+ import { normalPositionToPositions as H } from "../utils/normalPositionToPositions.js";
42
42
  import { debounce as j } from "../utils/debounce.js";
43
- import { throttle as X } from "../utils/throttle.js";
43
+ import { throttle as J } from "../utils/throttle.js";
44
44
  import { resizeObserver as U } from "../utils/resizeObserver.js";
45
- import { TagComputer as K } from "./TagComputer.js";
46
- import { CSS3DRenderPlugin as Y } from "../../CSS3DRenderPlugin/index.js";
47
- import Z from "../utils/tag/format.js";
48
- import { generateBlankAudio as I, AudioNamespace as L } from "../../shared-utils/audio.js";
45
+ import { TagComputer as Q } from "./TagComputer.js";
46
+ import { CSS3DRenderPlugin as X } from "../../CSS3DRenderPlugin/index.js";
47
+ import K from "../utils/tag/format.js";
48
+ import { generateBlankAudio as Y, AudioNamespace as Z } from "../../shared-utils/audio.js";
49
49
  import { loadGLTF as ee } from "../../shared-utils/three/GLTFLoader.js";
50
50
  import "../../vendor/svelte/internal/index.js";
51
51
  import "../Components/TagItem.js";
@@ -141,7 +141,7 @@ import "../../CSS3DRenderPlugin/Controller.js";
141
141
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
142
142
  import "@realsee/five/gltf-loader";
143
143
  const M = "DnalogelPlugin-PanoTagPlugin", te = !1, di = (h) => `${M}--${h}`;
144
- class li extends K {
144
+ class li extends Q {
145
145
  constructor(e, t) {
146
146
  super(e);
147
147
  l(this, "state", { enabled: !0, visible: !0 });
@@ -150,7 +150,7 @@ class li extends K {
150
150
  l(this, "css3DRenderPlugin");
151
151
  l(this, "TagContainerSvelte");
152
152
  l(this, "temporaryState", { visible: !0 });
153
- l(this, "mediaStore", _({
153
+ l(this, "mediaStore", W({
154
154
  currentMediaElement: null
155
155
  }));
156
156
  l(this, "group", new E());
@@ -172,12 +172,12 @@ class li extends K {
172
172
  l(this, "handleFiveInitAnimationEnded", () => {
173
173
  const e = this.five.getCurrentState().mode;
174
174
  this.tags.forEach((t) => {
175
- f(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
175
+ m(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
176
176
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
177
177
  });
178
178
  l(this, "handleFiveModelShownFloorChange", () => {
179
179
  this.tags.forEach((e) => {
180
- !f(e) || (e.state.visible = this.getVisible(e));
180
+ !m(e) || (e.state.visible = this.getVisible(e));
181
181
  }), this.updateRenderAllTags();
182
182
  });
183
183
  l(this, "loadModel", (e) => c(this, null, function* () {
@@ -185,16 +185,16 @@ class li extends K {
185
185
  const t = e.data.modelUrl;
186
186
  if (!t)
187
187
  return;
188
- const i = ee(t).then((a) => Object.assign(a.scene, { customID: e.id, isTagModel: !0 }));
188
+ const i = ee(t).then((d) => Object.assign(d.scene, { customID: e.id, isTagModel: !0 }));
189
189
  e.model = { promise: i };
190
190
  const s = yield i;
191
191
  if (((n = e.model) == null ? void 0 : n.promise) !== i || (e.model.object = s, !this.tags.includes(e)))
192
192
  return;
193
193
  s.visible = e.state.visible, new S().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), this.getVisibleByFloorIndex(e) || (s.visible = !1);
194
- const r = this.gltfObjectGroup.children.find((a) => a.customID === e.id);
194
+ const r = this.gltfObjectGroup.children.find((d) => d.customID === e.id);
195
195
  return r && this.gltfObjectGroup.remove(r), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
196
196
  }));
197
- this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, I(1, { namespace: L.GetAudioDuration }), I(1, { namespace: L.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
197
+ this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, Y(1, { namespace: Z.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
198
198
  }
199
199
  load(e, t) {
200
200
  return c(this, null, function* () {
@@ -206,7 +206,7 @@ class li extends K {
206
206
  const i = yield this.addTag(e.tagList, t);
207
207
  if (this.debug)
208
208
  try {
209
- H(this.five, this.tags);
209
+ $(this.five, this.tags);
210
210
  } catch (r) {
211
211
  console.error(r);
212
212
  }
@@ -219,12 +219,12 @@ class li extends K {
219
219
  const r = this.getTagConfig(o);
220
220
  return T(p({}, o), {
221
221
  state: p({ visible: void 0, unfolded: te }, r.initialState),
222
- hooks: new W(),
222
+ hooks: new G(),
223
223
  clickable: r.clickable,
224
224
  mergedConfig: r
225
225
  });
226
226
  }).filter((o) => o.position);
227
- return s.forEach(Z), this.tags.push(...s), J(this.five).then(() => {
227
+ return s.forEach(K), this.tags.push(...s), q(this.five).then(() => {
228
228
  var o, r, n;
229
229
  return this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), this.addMediaModelTag(s);
230
230
  });
@@ -270,8 +270,8 @@ class li extends K {
270
270
  dispose() {
271
271
  var e, t, i, s, o, r;
272
272
  this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
273
- var a;
274
- return (a = n.tag3DContentSvelte) == null ? void 0 : a.svelteApp.$destroy();
273
+ var d;
274
+ return (d = n.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
275
275
  }), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.hooks.emit("dispose");
276
276
  }
277
277
  setState(e, t) {
@@ -285,9 +285,11 @@ class li extends K {
285
285
  const i = this.getTagById(e);
286
286
  if (!i)
287
287
  return;
288
- i.state.unfolded = t;
289
- const s = this.filterPointTag();
290
- (o = this.TagContainerSvelte) == null || o.$set({ tags: s });
288
+ let s = !1;
289
+ if (t && this.can("unfold", i) && (i.state.unfolded = !0, s = !0), t && (this.can("unfold", i) ? (i.state.unfolded = !0, s = !0) : console.warn(`tag ${e} cannot be unfolded`)), t || (this.can("fold", i) ? (i.state.unfolded = !1, s = !0) : console.warn(`tag ${e} cannot be folded`)), s) {
290
+ const r = this.filterPointTag();
291
+ (o = this.TagContainerSvelte) == null || o.$set({ tags: r });
292
+ }
291
293
  }
292
294
  changeTagNormalById(e, t) {
293
295
  const i = this.getTagById(e);
@@ -314,25 +316,20 @@ class li extends K {
314
316
  this.mediaStore.set({ currentMediaElement: null });
315
317
  }
316
318
  updateTagCss3DObjectMatrix(e, t) {
317
- var D, w, O, F;
318
- const i = (O = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? O : 216e-5, s = (F = e.tag3DContentSvelte) == null ? void 0 : F.domContainer.css3DObject;
319
+ var D, w, R, O;
320
+ const i = (R = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? R : 216e-5, s = (O = e.tag3DContentSvelte) == null ? void 0 : O.domContainer.css3DObject;
319
321
  if (!s)
320
322
  return;
321
- const o = f(e) ? e.data.mediaPosition : e.position;
323
+ const o = m(e) ? e.data.mediaPosition : e.position;
322
324
  t.updateWorldMatrix(!1, !1);
323
- const r = t.matrixWorld, n = new A().fromArray(o[0]), a = new A().fromArray(o[2]), m = new A().lerpVectors(n, a, 0.5).add(new A(0, 0, 5e-4)), g = new S().setPosition(m), y = new S().makeScale(i, i, i), b = new S().multiply(r).multiply(g).multiply(y);
325
+ const r = t.matrixWorld, n = new A().fromArray(o[0]), d = new A().fromArray(o[2]), f = new A().lerpVectors(n, d, 0.5).add(new A(0, 0, 5e-4)), g = new S().setPosition(f), y = new S().makeScale(i, i, i), b = new S().multiply(r).multiply(g).multiply(y);
324
326
  b.decompose(s.position, s.quaternion, s.scale);
325
327
  const u = s.opacityMesh;
326
328
  !u || b.decompose(u.position, u.quaternion, u.scale);
327
329
  }
328
330
  updateTagCss3DObjectVisible(e) {
329
- var s, o, r, n, a;
330
- const t = (s = e.tag3DContentSvelte) == null ? void 0 : s.domContainer.css3DObject;
331
- if (!t)
332
- return;
333
- t.visible = (r = (o = e.state) == null ? void 0 : o.visible) != null ? r : !0;
334
- const i = t.opacityMesh;
335
- !i || (i.visible = (a = (n = e.state) == null ? void 0 : n.visible) != null ? a : !0);
331
+ var t, i, s, o, r;
332
+ (r = (i = (t = e.tag3DContentSvelte) == null ? void 0 : t.domContainer) == null ? void 0 : i.css3DObject) == null || r.setVisible(this.state.visible && ((o = (s = e.state) == null ? void 0 : s.visible) != null ? o : !0)), this.five.needsRender = !0;
336
333
  }
337
334
  setVisibleAndUnfolded() {
338
335
  return c(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
@@ -345,10 +342,10 @@ class li extends K {
345
342
  });
346
343
  }
347
344
  handleShow() {
348
- this.state.visible = !0, this.updateTagContainerVisible();
345
+ this.state.visible = !0, this.group.visible = !0, this.updateTagContainerVisible(), this.five.needsRender = !0;
349
346
  }
350
347
  handleHide() {
351
- this.pauseCurrentMedia(), this.state.visible = !1, this.updateTagContainerVisible();
348
+ this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.five.needsRender = !0;
352
349
  }
353
350
  handleEnable() {
354
351
  this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
@@ -361,9 +358,9 @@ class li extends K {
361
358
  });
362
359
  }
363
360
  addEventListener() {
364
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), a = this.loadVideoFirstFrame.bind(this), m = this.clickhandler.bind(this), g = this.five.currentMode;
365
- return this.handleFiveModeChange(g), 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", r), e.on("panoArrived", n), e.on("panoArrived", a), t.on("click", m), () => {
366
- 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", r), e.off("panoArrived", n), e.off("panoArrived", a), t.off("click", m), this.store.eventListenerDisposer = void 0;
361
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), f = this.clickhandler.bind(this), g = this.five.currentMode;
362
+ return this.handleFiveModeChange(g), 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", r), e.on("panoArrived", n), e.on("panoArrived", d), t.on("click", f), () => {
363
+ 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", r), e.off("panoArrived", n), e.off("panoArrived", d), t.off("click", f), this.store.eventListenerDisposer = void 0;
367
364
  };
368
365
  }
369
366
  loadVideoFirstFrame() {
@@ -385,7 +382,7 @@ class li extends K {
385
382
  }, i = () => {
386
383
  !this.state.enabled || this.hide();
387
384
  }, { observe: s, unobserve: o } = U(
388
- X(() => {
385
+ J(() => {
389
386
  !this.store.resizeObserverDisposer || i();
390
387
  }, 500),
391
388
  e
@@ -399,7 +396,7 @@ class li extends K {
399
396
  }
400
397
  handleFiveModeChange(e) {
401
398
  this.setModelMedialVisible(), this.tags.forEach((t) => {
402
- f(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
399
+ m(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
403
400
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
404
401
  }
405
402
  handleFiveWantsMoveToPano() {
@@ -434,8 +431,8 @@ class li extends K {
434
431
  temporaryState: this.temporaryState,
435
432
  withAnimation: this.store.visibleWithAnimation
436
433
  }), this.filter3DTag().forEach((t) => {
437
- var i;
438
- (i = t.tag3DContentSvelte) == null || i.svelteApp.$set({
434
+ var i, s, o, r;
435
+ (o = (s = (i = t.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : s.css3DObject) == null || o.setVisible(this.state.visible), (r = t.tag3DContentSvelte) == null || r.svelteApp.$set({
439
436
  state: this.state,
440
437
  temporaryState: this.temporaryState,
441
438
  withAnimation: this.store.visibleWithAnimation
@@ -476,7 +473,7 @@ class li extends K {
476
473
  const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
477
474
  if (!i)
478
475
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
479
- this.TagContainerSvelte = new $({
476
+ this.TagContainerSvelte = new z({
480
477
  target: i,
481
478
  props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
482
479
  });
@@ -484,8 +481,8 @@ class li extends K {
484
481
  }
485
482
  updateRenderPlaneTag() {
486
483
  this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((t) => {
487
- var n, a, m;
488
- if (f(t) && ((n = t.model) == null ? void 0 : n.object) && this.updateTagCss3DObjectMatrix(t, (a = t.model) == null ? void 0 : a.object), t.tag3DContentSvelte) {
484
+ var n, d, f;
485
+ if (m(t) && ((n = t.model) == null ? void 0 : n.object) && this.updateTagCss3DObjectMatrix(t, (d = t.model) == null ? void 0 : d.object), t.tag3DContentSvelte) {
489
486
  const { svelteApp: g, domContainer: y, initialNormal: b, currentNormal: u } = t.tag3DContentSvelte;
490
487
  if (this.updateTagCss3DObjectVisible(t), g.$set({
491
488
  tag: t,
@@ -493,16 +490,16 @@ class li extends K {
493
490
  state: this.state,
494
491
  temporaryState: this.temporaryState
495
492
  }), !b.equals(u)) {
496
- const D = new z().setFromUnitVectors(b, u);
493
+ const D = new N().setFromUnitVectors(b, u);
497
494
  y.css3DObject.setRotationFromQuaternion(D);
498
495
  }
499
496
  return;
500
497
  }
501
- if (((m = t.state) == null ? void 0 : m.visible) === !1)
498
+ if (((f = t.state) == null ? void 0 : f.visible) === !1)
502
499
  return;
503
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Y(this.five)), t.stickType === "3DPoint" && !t.normal)
500
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = X(this.five)), t.stickType === "3DPoint" && !t.normal)
504
501
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
505
- const i = (() => t.stickType === "Plane" ? t.position : f(t) ? t.data.mediaPosition : Q(
502
+ const i = (() => t.stickType === "Plane" ? t.position : m(t) ? t.data.mediaPosition : H(
506
503
  this.five.camera.position,
507
504
  C(t.position),
508
505
  C(t.normal)
@@ -521,7 +518,7 @@ class li extends K {
521
518
  return;
522
519
  const o = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(i, o);
523
520
  !r || (this.updateTagCss3DObjectVisible(t), this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
524
- svelteApp: new q({
521
+ svelteApp: new _({
525
522
  target: r.container,
526
523
  props: {
527
524
  tag: t,
@@ -539,7 +536,7 @@ class li extends K {
539
536
  }
540
537
  updateRenderModelTag() {
541
538
  const e = (i) => !this.enabledModelTagSet.has(i.customID);
542
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(f).forEach((i) => {
539
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(m).forEach((i) => {
543
540
  var s;
544
541
  (s = i.model) == null || s.promise.then((o) => {
545
542
  o.visible = i.state.visible;
@@ -563,7 +560,7 @@ class li extends K {
563
560
  }
564
561
  addMediaModelTag(e) {
565
562
  return c(this, null, function* () {
566
- const t = e.filter(f).map(this.loadModel);
563
+ const t = e.filter(m).map(this.loadModel);
567
564
  yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
568
565
  });
569
566
  }
@@ -86,8 +86,8 @@ import "./utils/tag/tagCheck.js";
86
86
  import "./Components/Tag/AudioTag/index.js";
87
87
  import "./Components/Tag/AudioTag/AudioTag.js";
88
88
  import "./Components/Common/Audio.js";
89
- import "../shared-utils/audio.js";
90
89
  import "./utils/audio/SharedAudio.js";
90
+ import "../shared-utils/audio.js";
91
91
  import "./Components/Common/Icon/audioIcon.js";
92
92
  import "./Components/Tag/AudioTag/AudioPlaneTag.js";
93
93
  import "./Components/Tag/MediaPlane.js";
@@ -1,16 +1,17 @@
1
1
  export declare class SharedAudio extends Audio {
2
- sharedAudioSrc?: string;
3
- sharedAudioPaused: boolean;
4
2
  get paused(): boolean;
5
3
  get currentTime(): number;
4
+ private sharedAudioSrc?;
5
+ private sharedAudioPaused;
6
6
  private sharedAudioCurrentTime;
7
7
  private tryplaying;
8
8
  private audioInstance?;
9
9
  private eventListenerDisposer?;
10
10
  constructor(src?: string);
11
11
  play(): Promise<void>;
12
- pause(): void;
12
+ pause(e?: Event): void;
13
13
  dispose(): void;
14
14
  private clear;
15
+ private endedHandler;
15
16
  private addEventListeners;
16
17
  }