@realsee/dnalogel 2.15.0-alpha.2 → 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 (270) 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 +36 -36
  4. package/dist/index.js +1686 -1663
  5. package/dist/index.umd.js +33 -33
  6. package/dist/shared-utils/logger.d.ts +17 -0
  7. package/docs/classes/CSS3DRender.html +31 -31
  8. package/docs/classes/CruisePluginController.html +25 -25
  9. package/docs/classes/Magnifier.html +20 -20
  10. package/docs/classes/ModelRoomLabelController.html +11 -11
  11. package/docs/classes/Object3DHelperController.html +24 -24
  12. package/docs/classes/PaintBrush.html +15 -15
  13. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  14. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  15. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  16. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  17. package/docs/classes/PanoTagPluginController.html +46 -46
  18. package/docs/classes/Util.BetterTween.html +8 -8
  19. package/docs/classes/Util.FivePointSelector.html +12 -12
  20. package/docs/classes/Util.Interval.html +12 -12
  21. package/docs/classes/Util.Magnifier.html +17 -17
  22. package/docs/classes/Util.PointDomHelper.html +11 -11
  23. package/docs/classes/Util.PointHelper.html +11 -11
  24. package/docs/classes/Util.Rectangle.html +13 -13
  25. package/docs/enums/CameraMovementEffect.html +7 -7
  26. package/docs/enums/ContentType.html +19 -19
  27. package/docs/enums/DIRECTION.html +9 -9
  28. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/DimensionType.html +7 -7
  30. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  31. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  32. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  33. package/docs/enums/Rotation.html +8 -8
  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 +5 -5
  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 +5 -5
  60. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  61. package/docs/functions/Util.getFrameTime.html +5 -5
  62. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  63. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  64. package/docs/functions/Util.isNil.html +5 -5
  65. package/docs/functions/Util.nextFrame.html +5 -5
  66. package/docs/functions/Util.notNil.html +5 -5
  67. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  68. package/docs/functions/Util.tweenProgress.html +5 -5
  69. package/docs/functions/pluginFlag.html +5 -5
  70. package/docs/index.html +4 -4
  71. package/docs/interfaces/AddTagConfig.html +6 -6
  72. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  73. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  74. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  75. package/docs/interfaces/EventMap.html +15 -15
  76. package/docs/interfaces/FloorplanBounding.html +8 -8
  77. package/docs/interfaces/FloorplanData.html +10 -10
  78. package/docs/interfaces/FloorplanEntrance.html +11 -11
  79. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  80. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  81. package/docs/interfaces/FloorplanFloorData.html +9 -9
  82. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  83. package/docs/interfaces/FloorplanObserver.html +9 -9
  84. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  85. package/docs/interfaces/FloorplanPosition.html +7 -7
  86. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  87. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  88. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  89. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  90. package/docs/interfaces/FloorplanServerData.html +7 -7
  91. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  92. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  93. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  94. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  95. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  96. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  97. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  98. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  99. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  100. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  101. package/docs/interfaces/HelperOffset.html +8 -8
  102. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  103. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  104. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  105. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  106. package/docs/interfaces/MinMax.html +7 -7
  107. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  108. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  109. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  110. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  111. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  112. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  113. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  114. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  115. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  116. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  117. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  118. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  119. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  120. package/docs/interfaces/Object3DHelperState.html +8 -8
  121. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  122. package/docs/interfaces/PaintBrushAction.html +12 -12
  123. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  124. package/docs/interfaces/PaintBrushState.html +10 -10
  125. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  126. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  127. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  128. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  129. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  130. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  131. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  132. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  133. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  134. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  135. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  136. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  137. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  138. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  139. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  140. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  141. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  142. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  143. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  144. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  145. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  146. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  147. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  148. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  149. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  150. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  151. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  152. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  153. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  154. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  155. package/docs/interfaces/Point.html +8 -8
  156. package/docs/interfaces/Room.html +9 -9
  157. package/docs/interfaces/RoomInfo.html +7 -7
  158. package/docs/interfaces/RoomLabel.html +14 -14
  159. package/docs/interfaces/RoomRules.html +5 -5
  160. package/docs/interfaces/Rooms.html +5 -5
  161. package/docs/interfaces/Scissor.html +9 -9
  162. package/docs/interfaces/State.html +8 -8
  163. package/docs/interfaces/TagCacheInterface.html +12 -12
  164. package/docs/interfaces/TagConfig.html +11 -11
  165. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  166. package/docs/interfaces/TagIconUrl.html +11 -11
  167. package/docs/interfaces/TagObjectGroup.html +6 -6
  168. package/docs/interfaces/TagStyle.html +6 -6
  169. package/docs/interfaces/Tags.html +9 -9
  170. package/docs/interfaces/TemporaryState.html +6 -6
  171. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  172. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  173. package/docs/modules/PanoVideoPluginType.html +5 -5
  174. package/docs/modules/Util.html +5 -5
  175. package/docs/modules.html +4 -4
  176. package/docs/types/ArrayPosition.html +5 -5
  177. package/docs/types/AudioAppearance.html +5 -5
  178. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  179. package/docs/types/CSS3DRenderExportType.html +5 -5
  180. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  181. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  182. package/docs/types/ClassFunctionParameters.html +5 -5
  183. package/docs/types/Color.html +5 -5
  184. package/docs/types/ContentTypeConfigKey.html +5 -5
  185. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  186. package/docs/types/ContentTypeMap.html +5 -5
  187. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  188. package/docs/types/Create3DElementReturnType.html +5 -5
  189. package/docs/types/CruisePluginExportType.html +5 -5
  190. package/docs/types/Direction-1.html +5 -5
  191. package/docs/types/Direction4.html +5 -5
  192. package/docs/types/FloorplanRuleLabels.html +5 -5
  193. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  194. package/docs/types/GuideLinePluginExportType.html +5 -5
  195. package/docs/types/HelperEventMap.html +5 -5
  196. package/docs/types/LoadTagConfig.html +5 -5
  197. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  198. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  199. package/docs/types/MediaData.html +5 -5
  200. package/docs/types/MediaStore.html +5 -5
  201. package/docs/types/ModelElement.html +5 -5
  202. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  203. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  204. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  205. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  206. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  207. package/docs/types/MoveArgs.html +5 -5
  208. package/docs/types/MoveOpts.html +5 -5
  209. package/docs/types/Object3DHelperEventMap.html +5 -5
  210. package/docs/types/ObjectFit.html +5 -5
  211. package/docs/types/PaintBrushEventMap.html +5 -5
  212. package/docs/types/PanoCompassPluginData.html +5 -5
  213. package/docs/types/PanoCompassPluginExportType.html +5 -5
  214. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  215. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  216. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  217. package/docs/types/PanoIndex.html +5 -5
  218. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  219. package/docs/types/PanoMeasureReturnType.html +5 -5
  220. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  221. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  222. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  223. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  224. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  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 +5 -5
  234. package/docs/types/RotateArgs.html +5 -5
  235. package/docs/types/RotateOpts.html +5 -5
  236. package/docs/types/RuleLabelsKey.html +5 -5
  237. package/docs/types/RuleLabelsValue.html +5 -5
  238. package/docs/types/StickType.html +5 -5
  239. package/docs/types/Tag.html +5 -5
  240. package/docs/types/Tag2D.html +5 -5
  241. package/docs/types/Tag3D.html +5 -5
  242. package/docs/types/TagContentType.html +5 -5
  243. package/docs/types/TagDimensionType.html +5 -5
  244. package/docs/types/TagElement.html +6 -6
  245. package/docs/types/TagEvents.html +5 -5
  246. package/docs/types/TagGLTFObject.html +6 -6
  247. package/docs/types/TagHooks.html +5 -5
  248. package/docs/types/TagIconSize.html +5 -5
  249. package/docs/types/TagId.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/itemLabelPluginServerParams.html +5 -5
  258. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  259. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  260. package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
  261. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +67 -67
  262. package/libs/PanoTagPlugin/controller/TagRender.js +56 -50
  263. package/libs/PanoTagPlugin/controller/index.js +10 -7
  264. package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
  265. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
  266. package/libs/base/BasePlugin.js +1 -1
  267. package/libs/index.js +104 -102
  268. package/libs/shared-utils/logger.d.ts +17 -0
  269. package/libs/shared-utils/logger.js +16 -0
  270. package/package.json +1 -1
@@ -1,112 +1,112 @@
1
- import { SvelteComponent as q, init as A, safe_not_equal as J, append_styles as R, empty as X, insert as k, noop as B, detach as y, getContext as S, onMount as D, element as g, attr as a, binding_callbacks as G, space as K, set_style as j, toggle_class as v, append as U, listen as b, src_url_equal as I, run_all as Q } from "../../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as q, init as A, safe_not_equal as J, append_styles as R, empty as X, insert as k, noop as B, detach as y, getContext as S, onMount as D, element as g, attr as a, binding_callbacks as G, space as K, set_style as j, toggle_class as v, append as U, listen as I, src_url_equal as P, run_all as Q } from "../../../vendor/svelte/internal/index.js";
2
2
  import { Image_Play_Icon_With_Text as Y, Image_Play_Icon as Z } from "../../Assets/Icon.js";
3
- function x(o) {
4
- R(o, "svelte-159ski6", ".media-item.svelte-159ski6.svelte-159ski6{position:relative;height:100%}.media-content.svelte-159ski6.svelte-159ski6{position:relative;pointer-events:auto;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.media-content.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none}.video-icon.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-159ski6.svelte-159ski6{display:none;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none;display:block}.video-icon.svelte-159ski6.svelte-159ski6{pointer-events:auto}.video-icon.large.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem}.video-icon.small.svelte-159ski6.svelte-159ski6{width:1.75rem;height:1.75rem}.video-icon.svelte-159ski6 .video-icon-img.svelte-159ski6{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-159ski6 .video-icon-img.canPlay.svelte-159ski6{cursor:pointer}");
3
+ function x(l) {
4
+ R(l, "svelte-159ski6", ".media-item.svelte-159ski6.svelte-159ski6{position:relative;height:100%}.media-content.svelte-159ski6.svelte-159ski6{position:relative;pointer-events:auto;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.media-content.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none}.video-icon.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-159ski6.svelte-159ski6{display:none;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none;display:block}.video-icon.svelte-159ski6.svelte-159ski6{pointer-events:auto}.video-icon.large.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem}.video-icon.small.svelte-159ski6.svelte-159ski6{width:1.75rem;height:1.75rem}.video-icon.svelte-159ski6 .video-icon-img.svelte-159ski6{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-159ski6 .video-icon-img.canPlay.svelte-159ski6{cursor:pointer}");
5
5
  }
6
- function L(o) {
6
+ function L(l) {
7
7
  let e;
8
- function i(l, r) {
9
- if (l[2].type === "Image")
8
+ function i(o, r) {
9
+ if (o[2].type === "Image")
10
10
  return ee;
11
- if (l[2].type === "Video")
11
+ if (o[2].type === "Video")
12
12
  return $;
13
13
  }
14
- let t = i(o), n = t && t(o);
14
+ let t = i(l), n = t && t(l);
15
15
  return {
16
16
  c() {
17
17
  e = g("div"), n && n.c(), a(e, "class", "media-item svelte-159ski6"), a(e, "draggable", "false");
18
18
  },
19
- m(l, r) {
20
- k(l, e, r), n && n.m(e, null);
19
+ m(o, r) {
20
+ k(o, e, r), n && n.m(e, null);
21
21
  },
22
- p(l, r) {
23
- t === (t = i(l)) && n ? n.p(l, r) : (n && n.d(1), n = t && t(l), n && (n.c(), n.m(e, null)));
22
+ p(o, r) {
23
+ t === (t = i(o)) && n ? n.p(o, r) : (n && n.d(1), n = t && t(o), n && (n.c(), n.m(e, null)));
24
24
  },
25
- d(l) {
26
- l && y(e), n && n.d();
25
+ d(o) {
26
+ o && y(e), n && n.d();
27
27
  }
28
28
  };
29
29
  }
30
- function $(o) {
31
- let e, i, t, n, l, r;
30
+ function $(l) {
31
+ let e, i, t, n, o, r;
32
32
  function c(d, m) {
33
33
  return d[7] && d[2].videoCoverUrl ? ie : te;
34
34
  }
35
- let u = c(o), f = u(o);
35
+ let u = c(l), f = u(l);
36
36
  return {
37
37
  c() {
38
- f.c(), e = K(), i = g("div"), t = g("div"), n = g("div"), a(n, "class", "video-icon-img svelte-159ski6"), j(n, "background-image", "url(" + o[20]() + ")"), v(n, "canPlay", o[5]), a(t, "class", "video-icon svelte-159ski6"), v(t, "large", o[4] === "large"), v(t, "small", o[4] === "small"), a(i, "class", "video-play-button-container svelte-159ski6"), v(i, "showPlayButton", o[9]);
38
+ f.c(), e = K(), i = g("div"), t = g("div"), n = g("div"), a(n, "class", "video-icon-img svelte-159ski6"), j(n, "background-image", "url(" + l[20]() + ")"), v(n, "canPlay", l[5]), a(t, "class", "video-icon svelte-159ski6"), v(t, "large", l[4] === "large"), v(t, "small", l[4] === "small"), a(i, "class", "video-play-button-container svelte-159ski6"), v(i, "showPlayButton", l[10]);
39
39
  },
40
40
  m(d, m) {
41
- f.m(d, m), k(d, e, m), k(d, i, m), U(i, t), U(t, n), l || (r = b(n, "click", o[21]), l = !0);
41
+ f.m(d, m), k(d, e, m), k(d, i, m), U(i, t), U(t, n), o || (r = I(n, "click", l[21]), o = !0);
42
42
  },
43
43
  p(d, m) {
44
- u === (u = c(d)) && f ? f.p(d, m) : (f.d(1), f = u(d), f && (f.c(), f.m(e.parentNode, e))), m & 8 && j(n, "background-image", "url(" + d[20]() + ")"), m & 32 && v(n, "canPlay", d[5]), m & 16 && v(t, "large", d[4] === "large"), m & 16 && v(t, "small", d[4] === "small"), m & 512 && v(i, "showPlayButton", d[9]);
44
+ u === (u = c(d)) && f ? f.p(d, m) : (f.d(1), f = u(d), f && (f.c(), f.m(e.parentNode, e))), m & 8 && j(n, "background-image", "url(" + d[20]() + ")"), m & 32 && v(n, "canPlay", d[5]), m & 16 && v(t, "large", d[4] === "large"), m & 16 && v(t, "small", d[4] === "small"), m & 1024 && v(i, "showPlayButton", d[10]);
45
45
  },
46
46
  d(d) {
47
- f.d(d), d && y(e), d && y(i), l = !1, r();
47
+ f.d(d), d && y(e), d && y(i), o = !1, r();
48
48
  }
49
49
  };
50
50
  }
51
- function ee(o) {
51
+ function ee(l) {
52
52
  let e, i, t, n;
53
53
  return {
54
54
  c() {
55
- e = g("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${o[6]};`), I(e.src, t = o[2].url) || a(e, "src", t), a(e, "alt", n = o[2].name), a(e, "draggable", !1);
55
+ e = g("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${l[6]};`), P(e.src, t = l[2].url) || a(e, "src", t), a(e, "alt", n = l[2].name), a(e, "draggable", !1);
56
56
  },
57
- m(l, r) {
58
- k(l, e, r);
57
+ m(o, r) {
58
+ k(o, e, r);
59
59
  },
60
- p(l, r) {
61
- r & 64 && i !== (i = `object-fit: ${l[6]};`) && a(e, "style", i), r & 4 && !I(e.src, t = l[2].url) && a(e, "src", t), r & 4 && n !== (n = l[2].name) && a(e, "alt", n);
60
+ p(o, r) {
61
+ r & 64 && i !== (i = `object-fit: ${o[6]};`) && a(e, "style", i), r & 4 && !P(e.src, t = o[2].url) && a(e, "src", t), r & 4 && n !== (n = o[2].name) && a(e, "alt", n);
62
62
  },
63
- d(l) {
64
- l && y(e);
63
+ d(o) {
64
+ o && y(e);
65
65
  }
66
66
  };
67
67
  }
68
- function te(o) {
69
- let e, i, t, n, l, r, c;
68
+ function te(l) {
69
+ let e, i, t, n, o, r, c;
70
70
  return {
71
71
  c() {
72
- e = g("video"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${o[6]};`), I(e.src, t = o[2].videoCoverUrl ? o[2].url : o[2].url + "#t=0.1") || a(e, "src", t), a(e, "poster", n = o[2].videoCoverUrl), a(e, "preload", l = o[2].videoCoverUrl ? "none" : "auto"), a(e, "disablepictureinpicture", ""), e.playsInline = !0, a(e, "paused", ""), e.muted = !0, a(e, "draggable", !1), e.loop = !1, a(e, "crossorigin", ""), e.controls = !1, v(e, "showPlayButton", o[9]);
72
+ e = g("video"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${l[6]};`), P(e.src, t = l[2].videoCoverUrl ? l[2].url : l[2].url + "#t=0.1") || a(e, "src", t), a(e, "poster", n = l[2].videoCoverUrl), a(e, "preload", o = l[2].videoCoverUrl ? "none" : "auto"), a(e, "disablepictureinpicture", ""), e.playsInline = !0, a(e, "paused", ""), e.muted = !0, a(e, "draggable", !1), e.loop = !1, a(e, "crossorigin", ""), e.controls = !1, v(e, "showPlayButton", l[10]);
73
73
  },
74
74
  m(u, f) {
75
- k(u, e, f), o[19](e), r || (c = [
76
- b(e, "play", o[14]),
77
- b(e, "pause", o[15]),
78
- b(e, "error", o[16]),
79
- b(e, "ended", o[17]),
80
- b(e, "click", o[18])
75
+ k(u, e, f), l[19](e), r || (c = [
76
+ I(e, "play", l[14]),
77
+ I(e, "pause", l[15]),
78
+ I(e, "error", l[16]),
79
+ I(e, "ended", l[17]),
80
+ I(e, "click", l[18])
81
81
  ], r = !0);
82
82
  },
83
83
  p(u, f) {
84
- f & 64 && i !== (i = `object-fit: ${u[6]};`) && a(e, "style", i), f & 4 && !I(e.src, t = u[2].videoCoverUrl ? u[2].url : u[2].url + "#t=0.1") && a(e, "src", t), f & 4 && n !== (n = u[2].videoCoverUrl) && a(e, "poster", n), f & 4 && l !== (l = u[2].videoCoverUrl ? "none" : "auto") && a(e, "preload", l), f & 512 && v(e, "showPlayButton", u[9]);
84
+ f & 64 && i !== (i = `object-fit: ${u[6]};`) && a(e, "style", i), f & 4 && !P(e.src, t = u[2].videoCoverUrl ? u[2].url : u[2].url + "#t=0.1") && a(e, "src", t), f & 4 && n !== (n = u[2].videoCoverUrl) && a(e, "poster", n), f & 4 && o !== (o = u[2].videoCoverUrl ? "none" : "auto") && a(e, "preload", o), f & 1024 && v(e, "showPlayButton", u[10]);
85
85
  },
86
86
  d(u) {
87
- u && y(e), o[19](null), r = !1, Q(c);
87
+ u && y(e), l[19](null), r = !1, Q(c);
88
88
  }
89
89
  };
90
90
  }
91
- function ie(o) {
91
+ function ie(l) {
92
92
  let e, i, t, n;
93
93
  return {
94
94
  c() {
95
- e = g("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${o[6]};`), I(e.src, t = o[2].videoCoverUrl) || a(e, "src", t), a(e, "alt", n = o[2].name), a(e, "draggable", !1);
95
+ e = g("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${l[6]};`), P(e.src, t = l[2].videoCoverUrl) || a(e, "src", t), a(e, "alt", n = l[2].name), a(e, "draggable", !1);
96
96
  },
97
- m(l, r) {
98
- k(l, e, r);
97
+ m(o, r) {
98
+ k(o, e, r);
99
99
  },
100
- p(l, r) {
101
- r & 64 && i !== (i = `object-fit: ${l[6]};`) && a(e, "style", i), r & 4 && !I(e.src, t = l[2].videoCoverUrl) && a(e, "src", t), r & 4 && n !== (n = l[2].name) && a(e, "alt", n);
100
+ p(o, r) {
101
+ r & 64 && i !== (i = `object-fit: ${o[6]};`) && a(e, "style", i), r & 4 && !P(e.src, t = o[2].videoCoverUrl) && a(e, "src", t), r & 4 && n !== (n = o[2].name) && a(e, "alt", n);
102
102
  },
103
- d(l) {
104
- l && y(e);
103
+ d(o) {
104
+ o && y(e);
105
105
  }
106
106
  };
107
107
  }
108
- function le(o) {
109
- let e, i = o[2] && L(o);
108
+ function oe(l) {
109
+ let e, i = l[2] && L(l);
110
110
  return {
111
111
  c() {
112
112
  i && i.c(), e = X();
@@ -124,13 +124,13 @@ function le(o) {
124
124
  }
125
125
  };
126
126
  }
127
- function oe(o, e, i) {
128
- let t, n, { mediaInstance: l = { videoInstance: void 0, paused: !0 } } = e, { tag: r } = e, { media: c } = e, { playButtonIfNeed: u = "withoutText" } = e, { playButtonSizeIfNeed: f = "small" } = e, { canPlay: d = !0 } = e, { objectFit: m = "fill" } = e, { disableVideoIfHavePoster: C = !1 } = e, p = !0, P = !1;
127
+ function le(l, e, i) {
128
+ let t, n, { mediaInstance: o = { videoInstance: void 0, paused: !0 } } = e, { tag: r } = e, { media: c } = e, { playButtonIfNeed: u = "withoutText" } = e, { playButtonSizeIfNeed: f = "small" } = e, { canPlay: d = !0 } = e, { objectFit: m = "fill" } = e, { disableVideoIfHavePoster: C = !1 } = e, p = !0, b = !1;
129
129
  function N() {
130
- i(12, P = (c == null ? void 0 : c.type) === "Video" && Boolean(c.videoCoverUrl));
130
+ i(8, b = (c == null ? void 0 : c.type) === "Video" && Boolean(c.videoCoverUrl));
131
131
  }
132
132
  const w = S("mediaStore"), h = S("hooks"), _ = () => {
133
- P || !t || (i(8, t.muted = !0, t), t.play(), t.pause(), i(8, t.muted = !1, t), i(12, P = !0));
133
+ console.debug("loadPoster"), !b && (!t || (i(9, t.muted = !0, t), t.play(), t.pause(), i(9, t.muted = !1, t), i(8, b = !0), console.debug("loadPoster end")));
134
134
  };
135
135
  h.on("loadVideoFirstFrame", _), D(() => {
136
136
  w.subscribe(({ currentMediaElement: s }) => {
@@ -138,28 +138,28 @@ function oe(o, e, i) {
138
138
  });
139
139
  });
140
140
  const V = (s) => {
141
- i(9, p = !1), i(0, l.paused = !1, l), t && w.set({ currentMediaElement: t }), h.emit("playStateChange", {
141
+ i(10, p = !1), i(0, o.paused = !1, o), i(8, b = !0), t && w.set({ currentMediaElement: t }), h.emit("playStateChange", {
142
142
  event: s,
143
143
  state: "playing",
144
144
  tag: r,
145
145
  mediaInstance: t
146
146
  });
147
147
  }, E = (s) => {
148
- i(9, p = !0), i(0, l.paused = !0, l), h.emit("playStateChange", {
148
+ i(10, p = !0), i(0, o.paused = !0, o), h.emit("playStateChange", {
149
149
  event: s,
150
150
  state: "paused",
151
151
  tag: r,
152
152
  mediaInstance: t
153
153
  });
154
154
  }, z = (s) => {
155
- i(9, p = !0), i(0, l.paused = !0, l), h.emit("playStateChange", {
155
+ i(10, p = !0), i(0, o.paused = !0, o), h.emit("playStateChange", {
156
156
  event: s,
157
157
  state: "paused",
158
158
  tag: r,
159
159
  mediaInstance: t
160
160
  });
161
161
  }, F = (s) => {
162
- i(9, p = !0), i(0, l.paused = !0, l), h.emit("playStateChange", {
162
+ i(10, p = !0), i(0, o.paused = !0, o), h.emit("playStateChange", {
163
163
  event: s,
164
164
  state: "paused",
165
165
  tag: r,
@@ -170,21 +170,21 @@ function oe(o, e, i) {
170
170
  };
171
171
  function W(s) {
172
172
  G[s ? "unshift" : "push"](() => {
173
- l.videoInstance = s, i(0, l);
173
+ o.videoInstance = s, i(0, o);
174
174
  });
175
175
  }
176
176
  const H = () => u === "withText" ? Y : u === "withoutText" ? Z : u, T = (s) => {
177
- !d || t && (i(8, t.muted = !1, t), t.play());
177
+ !d || t && (i(9, t.muted = !1, t), t.play());
178
178
  };
179
- return o.$$set = (s) => {
180
- "mediaInstance" in s && i(0, l = s.mediaInstance), "tag" in s && i(1, r = s.tag), "media" in s && i(2, c = s.media), "playButtonIfNeed" in s && i(3, u = s.playButtonIfNeed), "playButtonSizeIfNeed" in s && i(4, f = s.playButtonSizeIfNeed), "canPlay" in s && i(5, d = s.canPlay), "objectFit" in s && i(6, m = s.objectFit), "disableVideoIfHavePoster" in s && i(7, C = s.disableVideoIfHavePoster);
181
- }, o.$$.update = () => {
182
- if (o.$$.dirty & 1 && i(8, t = l.videoInstance), o.$$.dirty & 4 && i(13, n = c == null ? void 0 : c.url), o.$$.dirty & 8192 && Boolean(n) && N(), o.$$.dirty & 256 && t && i(9, p = t.paused), o.$$.dirty & 4356 && (c == null ? void 0 : c.type) === "Video" && !P) {
179
+ return l.$$set = (s) => {
180
+ "mediaInstance" in s && i(0, o = s.mediaInstance), "tag" in s && i(1, r = s.tag), "media" in s && i(2, c = s.media), "playButtonIfNeed" in s && i(3, u = s.playButtonIfNeed), "playButtonSizeIfNeed" in s && i(4, f = s.playButtonSizeIfNeed), "canPlay" in s && i(5, d = s.canPlay), "objectFit" in s && i(6, m = s.objectFit), "disableVideoIfHavePoster" in s && i(7, C = s.disableVideoIfHavePoster);
181
+ }, l.$$.update = () => {
182
+ if (l.$$.dirty & 1 && i(9, t = o.videoInstance), l.$$.dirty & 4 && i(13, n = c == null ? void 0 : c.url), l.$$.dirty & 8192 && Boolean(n) && N(), l.$$.dirty & 512 && t && i(10, p = t.paused), l.$$.dirty & 772 && (c == null ? void 0 : c.type) === "Video" && !b) {
183
183
  const s = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, M = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && s;
184
184
  t && M && t.paused && (document.removeEventListener("WeixinJSBridgeReady", _), document.removeEventListener("touchstart", _), document.removeEventListener("click", _), document.addEventListener("WeixinJSBridgeReady", _), document.addEventListener("touchstart", _), document.addEventListener("click", _));
185
185
  }
186
186
  }, [
187
- l,
187
+ o,
188
188
  r,
189
189
  c,
190
190
  u,
@@ -192,11 +192,11 @@ function oe(o, e, i) {
192
192
  d,
193
193
  m,
194
194
  C,
195
+ b,
195
196
  t,
196
197
  p,
197
198
  w,
198
199
  h,
199
- P,
200
200
  n,
201
201
  V,
202
202
  E,
@@ -213,8 +213,8 @@ class re extends q {
213
213
  super(), A(
214
214
  this,
215
215
  e,
216
- oe,
217
216
  le,
217
+ oe,
218
218
  J,
219
219
  {
220
220
  mediaInstance: 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>;
@@ -4,7 +4,7 @@ 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
5
  class o {
6
6
  constructor(r, t) {
7
- s(this, "VERSION", "2.15.0-alpha.2");
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");