@realsee/dnalogel 2.15.0 → 2.15.1-alpha.0

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 (269) hide show
  1. package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
  2. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
  3. package/dist/index.cjs.js +35 -35
  4. package/dist/index.js +1122 -1100
  5. package/dist/index.umd.js +32 -32
  6. package/dist/shared-utils/logger.d.ts +17 -0
  7. package/docs/classes/CSS3DRender.html +4 -4
  8. package/docs/classes/CruisePluginController.html +4 -4
  9. package/docs/classes/Magnifier.html +4 -4
  10. package/docs/classes/ModelRoomLabelController.html +4 -4
  11. package/docs/classes/Object3DHelperController.html +4 -4
  12. package/docs/classes/PaintBrush.html +4 -4
  13. package/docs/classes/PanoMeasurePluginLine.html +4 -4
  14. package/docs/classes/PanoMeasurePluginModel.html +4 -4
  15. package/docs/classes/PanoMeasurePluginPoint.html +4 -4
  16. package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
  17. package/docs/classes/PanoTagPluginController.html +4 -4
  18. package/docs/classes/Util.BetterTween.html +4 -4
  19. package/docs/classes/Util.FivePointSelector.html +4 -4
  20. package/docs/classes/Util.Interval.html +4 -4
  21. package/docs/classes/Util.Magnifier.html +4 -4
  22. package/docs/classes/Util.PointDomHelper.html +4 -4
  23. package/docs/classes/Util.PointHelper.html +4 -4
  24. package/docs/classes/Util.Rectangle.html +4 -4
  25. package/docs/enums/CameraMovementEffect.html +4 -4
  26. package/docs/enums/ContentType.html +4 -4
  27. package/docs/enums/DIRECTION.html +4 -4
  28. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
  29. package/docs/enums/DimensionType.html +4 -4
  30. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
  31. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
  32. package/docs/enums/PaintBrushTypeEnum.html +4 -4
  33. package/docs/enums/Rotation.html +4 -4
  34. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  35. package/docs/functions/CameraMovementPlugin.html +4 -4
  36. package/docs/functions/CruisePlugin.html +4 -4
  37. package/docs/functions/GuideLinePlugin.html +4 -4
  38. package/docs/functions/ItemLabelPlugin.html +4 -4
  39. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  40. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  41. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  42. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  43. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  44. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  45. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  46. package/docs/functions/ModelViewPlugin.html +4 -4
  47. package/docs/functions/Object3DHelperPlugin.html +4 -4
  48. package/docs/functions/PanoCompassPlugin.html +4 -4
  49. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  50. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  51. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  52. package/docs/functions/PanoMeasurePlugin.html +4 -4
  53. package/docs/functions/PanoRulerPlugin.html +4 -4
  54. package/docs/functions/PanoRulerProPlugin.html +4 -4
  55. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  56. package/docs/functions/PanoTagPlugin.html +4 -4
  57. package/docs/functions/PanoVideoPlugin.html +4 -4
  58. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  59. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  60. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  61. package/docs/functions/Util.getFrameTime.html +4 -4
  62. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  63. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  64. package/docs/functions/Util.isNil.html +4 -4
  65. package/docs/functions/Util.nextFrame.html +4 -4
  66. package/docs/functions/Util.notNil.html +4 -4
  67. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  68. package/docs/functions/Util.tweenProgress.html +4 -4
  69. package/docs/functions/pluginFlag.html +4 -4
  70. package/docs/index.html +4 -4
  71. package/docs/interfaces/AddTagConfig.html +4 -4
  72. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  73. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  74. package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
  75. package/docs/interfaces/EventMap.html +4 -4
  76. package/docs/interfaces/FloorplanBounding.html +4 -4
  77. package/docs/interfaces/FloorplanData.html +4 -4
  78. package/docs/interfaces/FloorplanEntrance.html +4 -4
  79. package/docs/interfaces/FloorplanExtraObject.html +4 -4
  80. package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
  81. package/docs/interfaces/FloorplanFloorData.html +4 -4
  82. package/docs/interfaces/FloorplanImagePosition.html +4 -4
  83. package/docs/interfaces/FloorplanObserver.html +4 -4
  84. package/docs/interfaces/FloorplanOutlineItem.html +4 -4
  85. package/docs/interfaces/FloorplanPosition.html +4 -4
  86. package/docs/interfaces/FloorplanRoomItem.html +4 -4
  87. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  88. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  89. package/docs/interfaces/FloorplanServerComputedData.html +4 -4
  90. package/docs/interfaces/FloorplanServerData.html +4 -4
  91. package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
  92. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
  93. package/docs/interfaces/FloorplanServerEntrance.html +4 -4
  94. package/docs/interfaces/FloorplanServerFloorData.html +4 -4
  95. package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
  96. package/docs/interfaces/FloorplanServerObserver.html +4 -4
  97. package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
  98. package/docs/interfaces/FloorplanServerPosition.html +4 -4
  99. package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
  100. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  101. package/docs/interfaces/HelperOffset.html +4 -4
  102. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  103. package/docs/interfaces/ItemLabelPluginData.html +4 -4
  104. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
  105. package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
  106. package/docs/interfaces/MinMax.html +4 -4
  107. package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
  108. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
  109. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
  110. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
  111. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
  112. package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
  113. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
  114. package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
  115. package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
  116. package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
  117. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
  118. package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
  119. package/docs/interfaces/ModelViewPluginExportType.html +4 -4
  120. package/docs/interfaces/Object3DHelperState.html +4 -4
  121. package/docs/interfaces/ObjectHelperControllers.html +4 -4
  122. package/docs/interfaces/PaintBrushAction.html +4 -4
  123. package/docs/interfaces/PaintBrushConfigs.html +4 -4
  124. package/docs/interfaces/PaintBrushState.html +4 -4
  125. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
  126. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  127. package/docs/interfaces/PanoMeasureParameterType.html +4 -4
  128. package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -4
  129. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -4
  130. package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -4
  131. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
  132. package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
  133. package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
  134. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
  135. package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
  136. package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
  137. package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
  138. package/docs/interfaces/PanoRulerProPluginState.html +4 -4
  139. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  140. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  141. package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
  142. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
  143. package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
  144. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
  145. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
  146. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
  147. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
  148. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -4
  149. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -4
  150. package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -4
  151. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -4
  152. package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -4
  153. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -4
  154. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -4
  155. package/docs/interfaces/Point.html +4 -4
  156. package/docs/interfaces/Room.html +4 -4
  157. package/docs/interfaces/RoomInfo.html +4 -4
  158. package/docs/interfaces/RoomLabel.html +4 -4
  159. package/docs/interfaces/RoomRules.html +4 -4
  160. package/docs/interfaces/Rooms.html +4 -4
  161. package/docs/interfaces/Scissor.html +4 -4
  162. package/docs/interfaces/State.html +4 -4
  163. package/docs/interfaces/TagCacheInterface.html +4 -4
  164. package/docs/interfaces/TagConfig.html +4 -4
  165. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  166. package/docs/interfaces/TagIconUrl.html +4 -4
  167. package/docs/interfaces/TagObjectGroup.html +6 -6
  168. package/docs/interfaces/TagStyle.html +4 -4
  169. package/docs/interfaces/Tags.html +4 -4
  170. package/docs/interfaces/TemporaryState.html +4 -4
  171. package/docs/interfaces/Util.MagnifierParameter.html +4 -4
  172. package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
  173. package/docs/modules/PanoVideoPluginType.html +4 -4
  174. package/docs/modules/Util.html +4 -4
  175. package/docs/modules.html +4 -4
  176. package/docs/types/ArrayPosition.html +4 -4
  177. package/docs/types/AudioAppearance.html +5 -5
  178. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  179. package/docs/types/CSS3DRenderExportType.html +4 -4
  180. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  181. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  182. package/docs/types/ClassFunctionParameters.html +4 -4
  183. package/docs/types/Color.html +4 -4
  184. package/docs/types/ContentTypeConfigKey.html +5 -5
  185. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  186. package/docs/types/ContentTypeMap.html +4 -4
  187. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  188. package/docs/types/Create3DElementReturnType.html +4 -4
  189. package/docs/types/CruisePluginExportType.html +4 -4
  190. package/docs/types/Direction-1.html +4 -4
  191. package/docs/types/Direction4.html +4 -4
  192. package/docs/types/FloorplanRuleLabels.html +4 -4
  193. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  194. package/docs/types/GuideLinePluginExportType.html +4 -4
  195. package/docs/types/HelperEventMap.html +4 -4
  196. package/docs/types/LoadTagConfig.html +4 -4
  197. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  198. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  199. package/docs/types/MediaData.html +4 -4
  200. package/docs/types/MediaStore.html +5 -5
  201. package/docs/types/ModelElement.html +5 -5
  202. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  203. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  204. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  205. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  206. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  207. package/docs/types/MoveArgs.html +4 -4
  208. package/docs/types/MoveOpts.html +4 -4
  209. package/docs/types/Object3DHelperEventMap.html +4 -4
  210. package/docs/types/ObjectFit.html +4 -4
  211. package/docs/types/PaintBrushEventMap.html +4 -4
  212. package/docs/types/PanoCompassPluginData.html +4 -4
  213. package/docs/types/PanoCompassPluginExportType.html +4 -4
  214. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  215. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  216. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  217. package/docs/types/PanoIndex.html +4 -4
  218. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  219. package/docs/types/PanoMeasureReturnType.html +4 -4
  220. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  221. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  222. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  223. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  224. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  225. package/docs/types/PlaneTag.html +5 -5
  226. package/docs/types/PlaneTagElement.html +5 -5
  227. package/docs/types/Point2DElement.html +5 -5
  228. package/docs/types/Point2DTag.html +5 -5
  229. package/docs/types/Point3DElement.html +5 -5
  230. package/docs/types/Point3DTag.html +5 -5
  231. package/docs/types/PointTag.html +5 -5
  232. package/docs/types/PointTagElement.html +5 -5
  233. package/docs/types/Position.html +4 -4
  234. package/docs/types/RotateArgs.html +4 -4
  235. package/docs/types/RotateOpts.html +4 -4
  236. package/docs/types/RuleLabelsKey.html +4 -4
  237. package/docs/types/RuleLabelsValue.html +4 -4
  238. package/docs/types/StickType.html +4 -4
  239. package/docs/types/Tag.html +4 -4
  240. package/docs/types/Tag2D.html +5 -5
  241. package/docs/types/Tag3D.html +5 -5
  242. package/docs/types/TagContentType.html +4 -4
  243. package/docs/types/TagDimensionType.html +4 -4
  244. package/docs/types/TagElement.html +5 -5
  245. package/docs/types/TagEvents.html +4 -4
  246. package/docs/types/TagGLTFObject.html +5 -5
  247. package/docs/types/TagHooks.html +4 -4
  248. package/docs/types/TagIconSize.html +5 -5
  249. package/docs/types/TagId.html +4 -4
  250. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  251. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  252. package/docs/types/WorkCode.html +4 -4
  253. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  254. package/docs/variables/PLUGIN.html +4 -4
  255. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  256. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  257. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  258. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  259. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  260. package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
  261. package/libs/PanoTagPlugin/controller/TagRender.js +56 -50
  262. package/libs/PanoTagPlugin/controller/index.js +10 -7
  263. package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
  264. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
  265. package/libs/base/BasePlugin.js +3 -3
  266. package/libs/index.js +104 -103
  267. package/libs/shared-utils/logger.d.ts +17 -0
  268. package/libs/shared-utils/logger.js +16 -0
  269. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { SvelteComponent as ae, init as le, safe_not_equal as oe, append_styles as re, empty as U, insert as q, transition_in as c, transition_out as p, check_outros as D, detach as w, getContext as F, onMount as me, onDestroy as ue, element as G, attr as H, toggle_class as I, append as se, group_outros as M, add_render_callback as fe, create_in_transition as de, identity as J, create_out_transition as ce, binding_callbacks as E, assign as W, bind as X, create_component as S, mount_component as N, get_spread_update as Y, get_spread_object as Z, add_flush_callback as x, destroy_component as j, destroy_each as _e } from "../../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as ae, init as le, safe_not_equal as oe, append_styles as re, empty as U, insert as D, transition_in as c, transition_out as p, check_outros as q, detach as w, getContext as F, onMount as me, onDestroy as se, element as G, attr as H, toggle_class as y, append as ue, group_outros as M, add_render_callback as fe, create_in_transition as de, identity as J, create_out_transition as ce, binding_callbacks as E, assign as W, bind as X, create_component as S, mount_component as N, get_spread_update as Y, get_spread_object as Z, add_flush_callback as x, destroy_component as j, destroy_each as _e } from "../../../vendor/svelte/internal/index.js";
2
2
  import { Carousel as ge } from "../../../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
3
3
  import { fly as K } from "../../../vendor/svelte/transition/index.js";
4
4
  import $ from "./MediaItem.js";
@@ -40,37 +40,37 @@ function P(t, i, l) {
40
40
  return n[25] = i[l], n[26] = i, n[27] = l, n;
41
41
  }
42
42
  function Q(t) {
43
- let i, l, n, e, u, r, a;
44
- const o = [he, be], s = [];
45
- function y(f, _) {
43
+ let i, l, n, e, s, r, a;
44
+ const o = [he, be], u = [];
45
+ function I(f, _) {
46
46
  return f[13] && f[10].length > 1 ? 0 : 1;
47
47
  }
48
- return n = y(t), e = s[n] = o[n](t), {
48
+ return n = I(t), e = u[n] = o[n](t), {
49
49
  c() {
50
- i = G("div"), l = G("div"), e.c(), H(l, "class", "media-list svelte-1mrbqlg"), I(l, "carouselEnabled", t[13]), H(i, "class", "media-list-wrapper svelte-1mrbqlg"), I(i, "unfolded", t[5]);
50
+ i = G("div"), l = G("div"), e.c(), H(l, "class", "media-list svelte-1mrbqlg"), y(l, "carouselEnabled", t[13]), H(i, "class", "media-list-wrapper svelte-1mrbqlg"), y(i, "unfolded", t[5]);
51
51
  },
52
52
  m(f, _) {
53
- q(f, i, _), se(i, l), s[n].m(l, null), a = !0;
53
+ D(f, i, _), ue(i, l), u[n].m(l, null), a = !0;
54
54
  },
55
55
  p(f, _) {
56
56
  t = f;
57
57
  let b = n;
58
- n = y(t), n === b ? s[n].p(t, _) : (M(), p(s[b], 1, 1, () => {
59
- s[b] = null;
60
- }), D(), e = s[n], e ? e.p(t, _) : (e = s[n] = o[n](t), e.c()), c(e, 1), e.m(l, null)), (!a || _ & 8192) && I(l, "carouselEnabled", t[13]), (!a || _ & 32) && I(i, "unfolded", t[5]);
58
+ n = I(t), n === b ? u[n].p(t, _) : (M(), p(u[b], 1, 1, () => {
59
+ u[b] = null;
60
+ }), q(), e = u[n], e ? e.p(t, _) : (e = u[n] = o[n](t), e.c()), c(e, 1), e.m(l, null)), (!a || _ & 8192) && y(l, "carouselEnabled", t[13]), (!a || _ & 32) && y(i, "unfolded", t[5]);
61
61
  },
62
62
  i(f) {
63
63
  a || (c(e), f && fe(() => {
64
- r && r.end(1), u = de(i, K, t[6] ? {
64
+ r && r.end(1), s = de(i, K, t[6] ? {
65
65
  y: 4,
66
66
  duration: t[4],
67
67
  delay: t[2],
68
68
  easing: J
69
- } : void 0), u.start();
69
+ } : void 0), s.start();
70
70
  }), a = !0);
71
71
  },
72
72
  o(f) {
73
- p(e), u && u.invalidate(), f && (r = ce(i, K, t[6] ? {
73
+ p(e), s && s.invalidate(), f && (r = ce(i, K, t[6] ? {
74
74
  y: 4,
75
75
  duration: t[4],
76
76
  delay: t[3],
@@ -78,7 +78,7 @@ function Q(t) {
78
78
  } : void 0)), a = !1;
79
79
  },
80
80
  d(f) {
81
- f && w(i), s[n].d(), f && r && r.end();
81
+ f && w(i), u[n].d(), f && r && r.end();
82
82
  }
83
83
  };
84
84
  }
@@ -89,13 +89,13 @@ function be(t) {
89
89
  t[7],
90
90
  { tag: t[0] }
91
91
  ];
92
- function u(a) {
92
+ function s(a) {
93
93
  t[20](a);
94
94
  }
95
95
  let r = {};
96
96
  for (let a = 0; a < e.length; a += 1)
97
97
  r = W(r, e[a]);
98
- return t[8][0] !== void 0 && (r.mediaInstance = t[8][0]), i = new $({ props: r }), E.push(() => X(i, "mediaInstance", u)), {
98
+ return t[8][0] !== void 0 && (r.mediaInstance = t[8][0]), i = new $({ props: r }), E.push(() => X(i, "mediaInstance", s)), {
99
99
  c() {
100
100
  S(i.$$.fragment);
101
101
  },
@@ -103,12 +103,12 @@ function be(t) {
103
103
  N(i, a, o), n = !0;
104
104
  },
105
105
  p(a, o) {
106
- const s = o & 131 ? Y(e, [
106
+ const u = o & 131 ? Y(e, [
107
107
  o & 2 && { media: a[1][0] },
108
108
  o & 128 && Z(a[7]),
109
109
  o & 1 && { tag: a[0] }
110
110
  ]) : {};
111
- !l && o & 256 && (l = !0, s.mediaInstance = a[8][0], x(() => l = !1)), i.$set(s);
111
+ !l && o & 256 && (l = !0, u.mediaInstance = a[8][0], x(() => l = !1)), i.$set(u);
112
112
  },
113
113
  i(a) {
114
114
  n || (c(i.$$.fragment, a), n = !0);
@@ -125,19 +125,19 @@ function he(t) {
125
125
  let i, l, n = {
126
126
  dots: !1,
127
127
  arrows: !1,
128
- $$slots: { default: [ye] },
128
+ $$slots: { default: [Ie] },
129
129
  $$scope: { ctx: t }
130
130
  };
131
131
  return i = new ge({ props: n }), t[18](i), i.$on("pageChange", t[19]), {
132
132
  c() {
133
133
  S(i.$$.fragment);
134
134
  },
135
- m(e, u) {
136
- N(i, e, u), l = !0;
135
+ m(e, s) {
136
+ N(i, e, s), l = !0;
137
137
  },
138
- p(e, u) {
138
+ p(e, s) {
139
139
  const r = {};
140
- u & 268436865 && (r.$$scope = { dirty: u, ctx: e }), i.$set(r);
140
+ s & 268436865 && (r.$$scope = { dirty: s, ctx: e }), i.$set(r);
141
141
  },
142
142
  i(e) {
143
143
  l || (c(i.$$.fragment, e), l = !0);
@@ -157,13 +157,13 @@ function R(t) {
157
157
  { media: t[25] },
158
158
  { tag: t[0] }
159
159
  ];
160
- function u(a) {
160
+ function s(a) {
161
161
  t[17](a, t[27]);
162
162
  }
163
163
  let r = {};
164
164
  for (let a = 0; a < e.length; a += 1)
165
165
  r = W(r, e[a]);
166
- return t[8][t[27]] !== void 0 && (r.mediaInstance = t[8][t[27]]), i = new $({ props: r }), E.push(() => X(i, "mediaInstance", u)), {
166
+ return t[8][t[27]] !== void 0 && (r.mediaInstance = t[8][t[27]]), i = new $({ props: r }), E.push(() => X(i, "mediaInstance", s)), {
167
167
  c() {
168
168
  S(i.$$.fragment);
169
169
  },
@@ -172,12 +172,12 @@ function R(t) {
172
172
  },
173
173
  p(a, o) {
174
174
  t = a;
175
- const s = o & 1153 ? Y(e, [
175
+ const u = o & 1153 ? Y(e, [
176
176
  o & 128 && Z(t[7]),
177
177
  o & 1024 && { media: t[25] },
178
178
  o & 1 && { tag: t[0] }
179
179
  ]) : {};
180
- !l && o & 256 && (l = !0, s.mediaInstance = t[8][t[27]], x(() => l = !1)), i.$set(s);
180
+ !l && o & 256 && (l = !0, u.mediaInstance = t[8][t[27]], x(() => l = !1)), i.$set(u);
181
181
  },
182
182
  i(a) {
183
183
  n || (c(i.$$.fragment, a), n = !0);
@@ -190,11 +190,11 @@ function R(t) {
190
190
  }
191
191
  };
192
192
  }
193
- function ye(t) {
193
+ function Ie(t) {
194
194
  let i, l, n = t[10], e = [];
195
195
  for (let r = 0; r < n.length; r += 1)
196
196
  e[r] = R(P(t, n, r));
197
- const u = (r) => p(e[r], 1, 1, () => {
197
+ const s = (r) => p(e[r], 1, 1, () => {
198
198
  e[r] = null;
199
199
  });
200
200
  return {
@@ -206,19 +206,19 @@ function ye(t) {
206
206
  m(r, a) {
207
207
  for (let o = 0; o < e.length; o += 1)
208
208
  e[o].m(r, a);
209
- q(r, i, a), l = !0;
209
+ D(r, i, a), l = !0;
210
210
  },
211
211
  p(r, a) {
212
212
  if (a & 1409) {
213
213
  n = r[10];
214
214
  let o;
215
215
  for (o = 0; o < n.length; o += 1) {
216
- const s = P(r, n, o);
217
- e[o] ? (e[o].p(s, a), c(e[o], 1)) : (e[o] = R(s), e[o].c(), c(e[o], 1), e[o].m(i.parentNode, i));
216
+ const u = P(r, n, o);
217
+ e[o] ? (e[o].p(u, a), c(e[o], 1)) : (e[o] = R(u), e[o].c(), c(e[o], 1), e[o].m(i.parentNode, i));
218
218
  }
219
219
  for (M(), o = n.length; o < e.length; o += 1)
220
- u(o);
221
- D();
220
+ s(o);
221
+ q();
222
222
  }
223
223
  },
224
224
  i(r) {
@@ -239,19 +239,19 @@ function ye(t) {
239
239
  }
240
240
  };
241
241
  }
242
- function Ie(t) {
242
+ function ye(t) {
243
243
  let i, l, n = t[5] && Q(t);
244
244
  return {
245
245
  c() {
246
246
  n && n.c(), i = U();
247
247
  },
248
- m(e, u) {
249
- n && n.m(e, u), q(e, i, u), l = !0;
248
+ m(e, s) {
249
+ n && n.m(e, s), D(e, i, s), l = !0;
250
250
  },
251
- p(e, [u]) {
252
- e[5] ? n ? (n.p(e, u), u & 32 && c(n, 1)) : (n = Q(e), n.c(), c(n, 1), n.m(i.parentNode, i)) : n && (M(), p(n, 1, 1, () => {
251
+ p(e, [s]) {
252
+ e[5] ? n ? (n.p(e, s), s & 32 && c(n, 1)) : (n = Q(e), n.c(), c(n, 1), n.m(i.parentNode, i)) : n && (M(), p(n, 1, 1, () => {
253
253
  n = null;
254
- }), D());
254
+ }), q());
255
255
  },
256
256
  i(e) {
257
257
  l || (c(n), l = !0);
@@ -265,7 +265,7 @@ function Ie(t) {
265
265
  };
266
266
  }
267
267
  function ke(t, i, l) {
268
- let n, e, u, r, { tag: a } = i, { mediaData: o } = i, { inDelay: s = 0 } = i, { outDelay: y = 0 } = i, { duration: f = 0 } = i, { unfolded: _ = !0 } = i, { animation: b = !0 } = i, { mediaItemConfig: L } = i, { enableCarousel: k = !0 } = i, { autoplayConfig: C = { autoplay: !0, autoplayVideo: !1 } } = i, g = [], v = 0, h, B = null;
268
+ let n, e, s, r, { tag: a } = i, { mediaData: o } = i, { inDelay: u = 0 } = i, { outDelay: I = 0 } = i, { duration: f = 0 } = i, { unfolded: _ = !0 } = i, { animation: b = !0 } = i, { mediaItemConfig: L } = i, { enableCarousel: k = !0 } = i, { autoplayConfig: C = { autoplay: !0, autoplayVideo: !1 } } = i, g = [], v = 0, h, B = null;
269
269
  const O = F("hooks"), T = F("mediaStore");
270
270
  function V() {
271
271
  const m = g[v], d = m == null ? void 0 : m.videoInstance;
@@ -274,14 +274,14 @@ function ke(t, i, l) {
274
274
  me(() => {
275
275
  O.on("click", (m) => {
276
276
  var d, z, A;
277
- !((A = (z = (d = a.tag3DContentSvelte) == null ? void 0 : d.domContainer) == null ? void 0 : z.css3DObject) != null && A.opacityMesh) || m.tag.id === a.id && V();
277
+ !((A = (z = (d = a.tag3DContentSvelte) == null ? void 0 : d.css3DInstance) == null ? void 0 : z.css3DObject) != null && A.opacityMesh) || m.tag.id === a.id && V();
278
278
  }), B = setInterval(
279
279
  () => {
280
280
  r && (h == null || h.goToNext());
281
281
  },
282
282
  3e3
283
283
  );
284
- }), ue(() => {
284
+ }), se(() => {
285
285
  clearInterval(B), O.off("click", V);
286
286
  });
287
287
  function ee(m, d) {
@@ -299,21 +299,21 @@ function ke(t, i, l) {
299
299
  t.$$.not_equal(g[0], m) && (g[0] = m, l(8, g));
300
300
  }
301
301
  return t.$$set = (m) => {
302
- "tag" in m && l(0, a = m.tag), "mediaData" in m && l(1, o = m.mediaData), "inDelay" in m && l(2, s = m.inDelay), "outDelay" in m && l(3, y = m.outDelay), "duration" in m && l(4, f = m.duration), "unfolded" in m && l(5, _ = m.unfolded), "animation" in m && l(6, b = m.animation), "mediaItemConfig" in m && l(7, L = m.mediaItemConfig), "enableCarousel" in m && l(15, k = m.enableCarousel), "autoplayConfig" in m && l(16, C = m.autoplayConfig);
302
+ "tag" in m && l(0, a = m.tag), "mediaData" in m && l(1, o = m.mediaData), "inDelay" in m && l(2, u = m.inDelay), "outDelay" in m && l(3, I = m.outDelay), "duration" in m && l(4, f = m.duration), "unfolded" in m && l(5, _ = m.unfolded), "animation" in m && l(6, b = m.animation), "mediaItemConfig" in m && l(7, L = m.mediaItemConfig), "enableCarousel" in m && l(15, k = m.enableCarousel), "autoplayConfig" in m && l(16, C = m.autoplayConfig);
303
303
  }, t.$$.update = () => {
304
- t.$$.dirty & 256 && l(9, n = g.every((m) => m.paused)), t.$$.dirty & 32770 && l(13, e = k && (o == null ? void 0 : o.length) > 1), t.$$.dirty & 2 && l(10, u = o), t.$$.dirty & 67072 && (r = u.length > 1 && C.autoplay && n);
304
+ t.$$.dirty & 256 && l(9, n = g.every((m) => m.paused)), t.$$.dirty & 32770 && l(13, e = k && (o == null ? void 0 : o.length) > 1), t.$$.dirty & 2 && l(10, s = o), t.$$.dirty & 67072 && (r = s.length > 1 && C.autoplay && n);
305
305
  }, [
306
306
  a,
307
307
  o,
308
- s,
309
- y,
308
+ u,
309
+ I,
310
310
  f,
311
311
  _,
312
312
  b,
313
313
  L,
314
314
  g,
315
315
  n,
316
- u,
316
+ s,
317
317
  v,
318
318
  h,
319
319
  e,
@@ -332,7 +332,7 @@ class it extends ae {
332
332
  this,
333
333
  i,
334
334
  ke,
335
- Ie,
335
+ ye,
336
336
  oe,
337
337
  {
338
338
  tag: 0,
@@ -1,7 +1,7 @@
1
1
  var j = Object.defineProperty;
2
2
  var w = (l, p, t) => p in l ? j(l, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[p] = t;
3
- var d = (l, p, t) => (w(l, typeof p != "symbol" ? p + "" : p, t), t);
4
- var D = (l, p, t) => new Promise((e, i) => {
3
+ var c = (l, p, t) => (w(l, typeof p != "symbol" ? p + "" : p, t), t);
4
+ var b = (l, p, t) => new Promise((e, i) => {
5
5
  var o = (s) => {
6
6
  try {
7
7
  a(t.next(s));
@@ -18,16 +18,16 @@ var D = (l, p, t) => new Promise((e, i) => {
18
18
  a((t = t.apply(l, p)).next());
19
19
  });
20
20
  import { TagComputer as O } from "./TagComputer.js";
21
- import { Group as P, Quaternion as x, Vector3 as f, Matrix4 as T } from "three";
21
+ import { Group as P, Quaternion as x, Vector3 as D, Matrix4 as T } from "three";
22
22
  import G from "../Components/TagContainer.js";
23
23
  import k from "../Components/Tag/index.js";
24
- import { arrayPositionToVector3 as b } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
24
+ import { arrayPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
25
  import { centerPoint as A } from "../../shared-utils/three/centerPoint.js";
26
26
  import "@realsee/five/gltf-loader";
27
27
  import R from "../utils/model/imagePlane.js";
28
- import { isMediaModelTag as S } from "../utils/tag/tagCheck.js";
28
+ import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
29
29
  import { CSS3DRenderPlugin as E } from "../../CSS3DRenderPlugin/index.js";
30
- import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
30
+ import { loadGLTF as I } from "../../shared-utils/three/GLTFLoader.js";
31
31
  import "@realsee/five";
32
32
  import "../utils/tagPosition.js";
33
33
  import "../../shared-utils/three/loadTexture.js";
@@ -135,18 +135,18 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
135
135
  class Le extends O {
136
136
  constructor(t) {
137
137
  super(t);
138
- d(this, "group", new P());
139
- d(this, "imagePlaneGroup", new P());
140
- d(this, "gltfObjectGroup", new P());
141
- d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
142
- d(this, "temporaryState", { visible: !0 });
143
- d(this, "TagContainerSvelte");
144
- d(this, "loadModel", (t) => D(this, null, function* () {
138
+ c(this, "group", new P());
139
+ c(this, "imagePlaneGroup", new P());
140
+ c(this, "gltfObjectGroup", new P());
141
+ c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
142
+ c(this, "temporaryState", { visible: !0 });
143
+ c(this, "TagContainerSvelte");
144
+ c(this, "loadModel", (t) => b(this, null, function* () {
145
145
  var s;
146
146
  const e = t.data.modelUrl;
147
147
  if (!e)
148
148
  return;
149
- const i = V(e).then((r) => Object.assign(r.scene, { customID: t.id, isTagModel: !0 }));
149
+ const i = I(e).then((r) => Object.assign(r.scene, { customID: t.id, isTagModel: !0 }));
150
150
  t.model = { promise: i };
151
151
  const o = yield i;
152
152
  if (((s = t.model) == null ? void 0 : s.promise) !== i || (t.model.object = o, !this.tags.includes(t)))
@@ -155,13 +155,13 @@ class Le extends O {
155
155
  const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
156
156
  if (a && this.gltfObjectGroup.remove(a), this.getRenderType(t) === "Mesh") {
157
157
  if (!t.imagePlane) {
158
- const r = t.data.mediaPosition.map(b);
159
- t.imagePlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(b));
160
- const m = new f().addVectors(r[0], r[2]).divideScalar(2);
158
+ const r = t.data.mediaPosition.map(S);
159
+ t.imagePlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(S));
160
+ const m = new D().addVectors(r[0], r[2]).divideScalar(2);
161
161
  t.imagePlane.position.copy(m), o.add(t.imagePlane);
162
162
  }
163
163
  } else
164
- this.updateTagCss3DObjectMatrix(t, o);
164
+ o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix();
165
165
  return this.gltfObjectGroup.add(o), o;
166
166
  }));
167
167
  this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
@@ -181,7 +181,7 @@ class Le extends O {
181
181
  const i = (n = e.data.mediaData[0]) == null ? void 0 : n.url;
182
182
  if (!i || (e.imagePlane && (e.imagePlane.visible = (s = (a = e.state) == null ? void 0 : a.visible) != null ? s : !0), ((r = e.imagePlane) == null ? void 0 : r.imageSrc) === i))
183
183
  return;
184
- const o = e.position.map(b);
184
+ const o = e.position.map(S);
185
185
  e.imagePlane = new R(i, o), e.imagePlane.setMatrixByCornerPoints(o), this.imagePlaneGroup.add(e.imagePlane);
186
186
  });
187
187
  }
@@ -189,7 +189,7 @@ class Le extends O {
189
189
  this.sort([...this.filterCSS3DTag]).forEach((e) => {
190
190
  var i, o;
191
191
  if (e.tag3DContentSvelte) {
192
- const { svelteApp: n, domContainer: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
192
+ const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
193
193
  if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
194
194
  const m = new x().setFromUnitVectors(s, r);
195
195
  a.css3DObject.setRotationFromQuaternion(m);
@@ -209,41 +209,47 @@ class Le extends O {
209
209
  const r = (o = this.getTagConfig(e).tag3DConfig) != null ? o : {};
210
210
  if (this.getRenderType(e) === "BehindDom") {
211
211
  r.mode = "behind", r.container = document.createElement("div");
212
- const h = "black";
213
- r.container.style.backgroundColor = h, r.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
214
- var u;
212
+ const g = "black";
213
+ r.container.style.backgroundColor = g, r.container.style.border = `3px solid ${g}`, this.css3DRenderPlugin.hooks.on("render", () => {
214
+ var h;
215
215
  if (m.css3DObject.opacityMesh) {
216
- const g = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (c) => {
217
- this.hooks.emit("click", { event: c, target: "TagContent", tag: e });
216
+ const d = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
217
+ this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
218
218
  });
219
- (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(g);
219
+ (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.push(d);
220
220
  }
221
221
  });
222
222
  }
223
223
  const m = this.css3DRenderPlugin.create3DDomContainer(n, r);
224
224
  if (!m)
225
225
  return;
226
- this.store.css3DRenderDisposer.set(e.id, [m.dispose]), e.tag3DContentSvelte = {
227
- svelteApp: new k({
228
- target: m.container,
229
- props: {
230
- tag: e,
231
- hooks: this.hooks,
232
- state: this.state,
233
- mediaStore: this.mediaStore,
234
- temporaryState: this.temporaryState
235
- }
236
- }),
226
+ this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
227
+ const u = new k({
228
+ target: m.container,
229
+ props: {
230
+ tag: e,
231
+ hooks: this.hooks,
232
+ state: this.state,
233
+ mediaStore: this.mediaStore,
234
+ temporaryState: this.temporaryState
235
+ }
236
+ });
237
+ e.tag3DContentSvelte = {
238
+ svelteApp: u,
237
239
  domContainer: m,
240
+ css3DInstance: m,
238
241
  initialNormal: a,
239
- currentNormal: a
242
+ currentNormal: a,
243
+ dispose: () => {
244
+ u.$destroy(), m.dispose();
245
+ }
240
246
  };
241
247
  }
242
248
  }), this.clearUnusedPanelTag();
243
249
  }
244
250
  updateRenderModelTag() {
245
251
  const t = (i) => !this.enabledModelTagSet.has(i.customID);
246
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(S).forEach((i) => {
252
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(C).forEach((i) => {
247
253
  var o;
248
254
  (o = i.model) == null || o.promise.then((n) => {
249
255
  n.visible = this.getCurrentVisibleState(i);
@@ -257,20 +263,20 @@ class Le extends O {
257
263
  });
258
264
  }
259
265
  updateTagCss3DObjectMatrix(t, e) {
260
- var C, v, M, y;
261
- const i = (M = (v = (C = t.mergedConfig) == null ? void 0 : C.tag3DConfig) == null ? void 0 : v.ratio) != null ? M : 216e-5, o = (y = t.tag3DContentSvelte) == null ? void 0 : y.domContainer.css3DObject;
266
+ var f, v, M, y;
267
+ const i = (M = (v = (f = t.mergedConfig) == null ? void 0 : f.tag3DConfig) == null ? void 0 : v.ratio) != null ? M : 216e-5, o = (y = t.tag3DContentSvelte) == null ? void 0 : y.css3DInstance.css3DObject;
262
268
  if (!o)
263
269
  return;
264
- const n = S(t) ? t.data.mediaPosition : t.position;
270
+ const n = C(t) ? t.data.mediaPosition : t.position;
265
271
  e.updateWorldMatrix(!1, !1);
266
- const a = e.matrixWorld, s = new f().fromArray(n[0]), r = new f().fromArray(n[2]), m = A(s, r).add(new f(0, 0, 5e-4)), h = new T().setPosition(m), u = new T().makeScale(i, i, i), g = new T().multiply(a).multiply(h).multiply(u);
267
- g.decompose(o.position, o.quaternion, o.scale);
268
- const c = o.opacityMesh;
269
- c && g.decompose(c.position, c.quaternion, c.scale);
272
+ const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = A(s, r).add(new D(0, 0, 5e-4)), u = new T().setPosition(m), g = new T().makeScale(i, i, i), h = new T().multiply(a).multiply(u).multiply(g);
273
+ h.decompose(o.position, o.quaternion, o.scale);
274
+ const d = o.opacityMesh;
275
+ d && h.decompose(d.position, d.quaternion, d.scale);
270
276
  }
271
277
  addMediaModelTag(t) {
272
- return D(this, null, function* () {
273
- const e = t.filter(S).map((i) => this.loadModel(i));
278
+ return b(this, null, function* () {
279
+ const e = t.filter(C).map((i) => this.loadModel(i));
274
280
  yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
275
281
  });
276
282
  }
@@ -297,7 +303,7 @@ class Le extends O {
297
303
  withAnimation: this.store.visibleWithAnimation
298
304
  }), this.filterCSS3DTag.forEach((e) => {
299
305
  var i, o, n, a, s;
300
- (a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
306
+ (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), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
301
307
  state: this.state,
302
308
  temporaryState: this.temporaryState,
303
309
  withAnimation: this.store.visibleWithAnimation
@@ -312,7 +318,7 @@ class Le extends O {
312
318
  clearUnusedPanelTag() {
313
319
  this.filter2DPointTag.forEach((t) => {
314
320
  var e;
315
- (e = t.tag3DContentSvelte) == null || e.domContainer.dispose(), t.tag3DContentSvelte = void 0;
321
+ (e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
316
322
  });
317
323
  for (const [t, e] of this.store.css3DRenderDisposer) {
318
324
  const i = this.getTagById(t);
@@ -27,10 +27,10 @@ var f = (d, a, e) => new Promise((t, i) => {
27
27
  }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
28
28
  r((e = e.apply(d, a)).next());
29
29
  });
30
- import { Subscribe as w } from "@realsee/five";
30
+ import { Subscribe as M } from "@realsee/five";
31
31
  import c from "object-assign-deep";
32
32
  import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
33
- import { addDebugPoints as M } from "../utils/addDebugPoints.js";
33
+ import { addDebugPoints as w } from "../utils/addDebugPoints.js";
34
34
  import "three";
35
35
  import "@realsee/five/gltf-loader";
36
36
  import "../../shared-utils/three/loadTexture.js";
@@ -187,7 +187,7 @@ class Zt extends k {
187
187
  const i = yield this.addTag(e.tagList, t);
188
188
  if (this.debug)
189
189
  try {
190
- M(this.five, this.tags);
190
+ w(this.five, this.tags);
191
191
  } catch (r) {
192
192
  console.error(r);
193
193
  }
@@ -203,7 +203,7 @@ class Zt extends k {
203
203
  visible: void 0,
204
204
  unfolded: !this.can("fold", o)
205
205
  }, r.initialState),
206
- hooks: new w(),
206
+ hooks: new M(),
207
207
  mergedConfig: r,
208
208
  unfold: () => this.changeUnfoldedById(o.id, !0),
209
209
  fold: () => this.changeUnfoldedById(o.id, !1),
@@ -323,13 +323,16 @@ class Zt extends k {
323
323
  this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.updateTagModelVisible(), this.five.needsRender = !0;
324
324
  }
325
325
  handleEnable() {
326
- this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.updateRenderAllTags(), this.five.needsRender = !0;
326
+ this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.group.traverse((e) => {
327
+ var t;
328
+ (t = e == null ? void 0 : e.updateTagCss3DObjectMatrix) == null || t.call(e);
329
+ }), this.updateRenderAllTags(), this.five.needsRender = !0;
327
330
  }
328
331
  handleDisable() {
329
332
  var e, t, i;
330
333
  this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filterCSS3DTag.forEach((s) => {
331
334
  var o;
332
- (o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
335
+ (o = s.tag3DContentSvelte) == null || o.dispose(), s.tag3DContentSvelte = void 0;
333
336
  }), this.five.needsRender = !0;
334
337
  }
335
338
  addEventListener() {
@@ -414,7 +417,7 @@ class Zt extends k {
414
417
  }
415
418
  changeTagMode(e, t) {
416
419
  var i, s, o, r, n, h;
417
- ((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.domContainer) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((g) => g == null ? void 0 : g()), e.tag3DContentSvelte = void 0);
420
+ ((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((g) => g == null ? void 0 : g()), e.tag3DContentSvelte = void 0);
418
421
  }
419
422
  }
420
423
  export {
@@ -89,9 +89,12 @@ export declare type TagElement<C extends TagContentType = TagContentType, S exte
89
89
  };
90
90
  tag3DContentSvelte: {
91
91
  svelteApp: TagContentSvelte;
92
+ /** @deprecated rename to css3DInstance */
92
93
  domContainer: NonNullable<Create3DDomContainerReturnType>;
94
+ css3DInstance: NonNullable<Create3DDomContainerReturnType>;
93
95
  initialNormal: Vector3;
94
96
  currentNormal: Vector3;
97
+ dispose: () => void;
95
98
  };
96
99
  imagePlane: ImagePlane;
97
100
  model: {
@@ -42,6 +42,7 @@ export interface TagStyle {
42
42
  export declare type TagGLTFObject = GLTFObject & {
43
43
  customID: number | string;
44
44
  isTagModel: boolean;
45
+ updateTagCss3DObjectMatrix?: () => void;
45
46
  };
46
47
  export interface TagObjectGroup extends Group {
47
48
  children: Array<TagGLTFObjectGroup>;
@@ -2,9 +2,9 @@ var i = Object.defineProperty;
2
2
  var a = (e, r, t) => r in e ? i(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var s = (e, r, t) => (a(e, typeof r != "symbol" ? r + "" : r, t), t);
4
4
  import { Subscribe as c } from "../shared-utils/Subscribe.js";
5
- class x {
5
+ class o {
6
6
  constructor(r, t) {
7
- s(this, "VERSION", "2.15.0");
7
+ s(this, "VERSION", "2.15.1-alpha.0");
8
8
  s(this, "five");
9
9
  s(this, "hooks", new c());
10
10
  s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
@@ -15,5 +15,5 @@ class x {
15
15
  }
16
16
  }
17
17
  export {
18
- x as Controller
18
+ o as Controller
19
19
  };