@realsee/dnalogel 2.3.5-dev.3 → 2.3.5-dev.4

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 (238) hide show
  1. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  2. package/dist/index.cjs.js +13 -13
  3. package/dist/index.js +1323 -1321
  4. package/dist/index.umd.js +14 -14
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +24 -24
  7. package/docs/classes/Magnifier.html +16 -16
  8. package/docs/classes/ModelRoomLabelController.html +11 -11
  9. package/docs/classes/Object3DHelperController.html +24 -24
  10. package/docs/classes/PaintBrush.html +15 -15
  11. package/docs/classes/PanoTagPluginController.html +41 -41
  12. package/docs/classes/Util.BetterTween.html +8 -8
  13. package/docs/classes/Util.FivePointSelector.html +12 -12
  14. package/docs/classes/Util.Interval.html +12 -12
  15. package/docs/classes/Util.Magnifier.html +17 -17
  16. package/docs/classes/Util.PointDomHelper.html +11 -11
  17. package/docs/classes/Util.PointHelper.html +11 -11
  18. package/docs/classes/Util.Rectangle.html +13 -13
  19. package/docs/enums/CameraMovementEffect.html +7 -7
  20. package/docs/enums/ContentType.html +16 -16
  21. package/docs/enums/DIRECTION.html +9 -9
  22. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  23. package/docs/enums/DimensionType.html +7 -7
  24. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  25. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  27. package/docs/enums/PointType.html +7 -7
  28. package/docs/enums/Rotation.html +8 -8
  29. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  30. package/docs/functions/CameraMovementPlugin.html +4 -4
  31. package/docs/functions/CruisePlugin.html +4 -4
  32. package/docs/functions/GuideLinePlugin.html +5 -5
  33. package/docs/functions/ItemLabelPlugin.html +4 -4
  34. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  35. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  36. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  37. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  38. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  39. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  40. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  41. package/docs/functions/ModelViewPlugin.html +4 -4
  42. package/docs/functions/Object3DHelperPlugin.html +4 -4
  43. package/docs/functions/PanoCompassPlugin.html +4 -4
  44. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  45. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  46. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  47. package/docs/functions/PanoMeasurePlugin.html +4 -4
  48. package/docs/functions/PanoRulerPlugin.html +4 -4
  49. package/docs/functions/PanoRulerProPlugin.html +4 -4
  50. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  51. package/docs/functions/PanoTagPlugin.html +4 -4
  52. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  53. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  54. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  55. package/docs/functions/Util.getFrameTime.html +5 -5
  56. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  57. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  58. package/docs/functions/Util.isNil.html +5 -5
  59. package/docs/functions/Util.nextFrame.html +5 -5
  60. package/docs/functions/Util.notNil.html +5 -5
  61. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  62. package/docs/functions/Util.tweenProgress.html +5 -5
  63. package/docs/functions/pluginFlag.html +5 -5
  64. package/docs/index.html +4 -4
  65. package/docs/interfaces/AddTagConfig.html +6 -6
  66. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  67. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  68. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  69. package/docs/interfaces/EventMap.html +15 -15
  70. package/docs/interfaces/FloorplanBounding.html +8 -8
  71. package/docs/interfaces/FloorplanData.html +10 -10
  72. package/docs/interfaces/FloorplanEntrance.html +11 -11
  73. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  74. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  75. package/docs/interfaces/FloorplanFloorData.html +9 -9
  76. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  77. package/docs/interfaces/FloorplanObserver.html +9 -9
  78. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  79. package/docs/interfaces/FloorplanPosition.html +7 -7
  80. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  81. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  82. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  83. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  84. package/docs/interfaces/FloorplanServerData.html +7 -7
  85. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  86. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  87. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  88. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  89. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  90. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  91. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  92. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  93. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  94. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  95. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  96. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  97. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  98. package/docs/interfaces/LineJson.html +7 -7
  99. package/docs/interfaces/MinMax.html +7 -7
  100. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  101. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  102. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  103. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  104. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  105. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  106. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  107. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  108. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  109. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  110. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  111. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  112. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  113. package/docs/interfaces/Object3DHelperState.html +8 -8
  114. package/docs/interfaces/OpenParameter.html +7 -7
  115. package/docs/interfaces/PaintBrushAction.html +12 -12
  116. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  117. package/docs/interfaces/PaintBrushState.html +10 -10
  118. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  119. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  120. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  121. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  122. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  123. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  124. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  125. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  126. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  127. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  128. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  129. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  130. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  131. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  132. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  133. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  134. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  135. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  136. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  137. package/docs/interfaces/Point.html +8 -8
  138. package/docs/interfaces/PointJson.html +8 -8
  139. package/docs/interfaces/Room.html +9 -9
  140. package/docs/interfaces/RoomInfo.html +7 -7
  141. package/docs/interfaces/RoomLabel.html +14 -14
  142. package/docs/interfaces/RoomRules.html +5 -5
  143. package/docs/interfaces/Rooms.html +5 -5
  144. package/docs/interfaces/Scissor.html +9 -9
  145. package/docs/interfaces/State.html +8 -8
  146. package/docs/interfaces/TagCache.html +10 -10
  147. package/docs/interfaces/TagConfig.html +10 -10
  148. package/docs/interfaces/TagIconUrl.html +9 -9
  149. package/docs/interfaces/Tags.html +9 -9
  150. package/docs/interfaces/TemporaryState.html +6 -6
  151. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  152. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  153. package/docs/modules/Util.html +5 -5
  154. package/docs/modules.html +4 -4
  155. package/docs/types/ArrayPosition.html +5 -5
  156. package/docs/types/CSS3DRenderExportType.html +5 -5
  157. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  158. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  159. package/docs/types/Color.html +5 -5
  160. package/docs/types/ContentTypeConfigKey.html +5 -5
  161. package/docs/types/ContentTypeMap.html +5 -5
  162. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  163. package/docs/types/Create3DElementReturnType.html +5 -5
  164. package/docs/types/CruisePluginExportType.html +5 -5
  165. package/docs/types/Direction-1.html +5 -5
  166. package/docs/types/Direction4.html +5 -5
  167. package/docs/types/FloorplanRuleLabels.html +5 -5
  168. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  169. package/docs/types/GuideLinePluginExportType.html +5 -5
  170. package/docs/types/HelperEventMap.html +5 -5
  171. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  172. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  173. package/docs/types/MediaData.html +5 -5
  174. package/docs/types/MediaStore.html +5 -5
  175. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  176. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  177. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  178. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  179. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  180. package/docs/types/MoveArgs.html +5 -5
  181. package/docs/types/MoveOpts.html +5 -5
  182. package/docs/types/Object3DHelperEventMap.html +5 -5
  183. package/docs/types/ObjectFit.html +5 -5
  184. package/docs/types/PaintBrushEventMap.html +5 -5
  185. package/docs/types/PanoCompassPluginData.html +5 -5
  186. package/docs/types/PanoCompassPluginExportType.html +5 -5
  187. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  188. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  189. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  190. package/docs/types/PanoIndex.html +5 -5
  191. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  192. package/docs/types/PanoMeasureReturnType.html +5 -5
  193. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  194. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  195. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  196. package/docs/types/PlaneTag.html +5 -5
  197. package/docs/types/PlaneTagElement.html +5 -5
  198. package/docs/types/Point2DElement.html +5 -5
  199. package/docs/types/Point2DTag.html +5 -5
  200. package/docs/types/Point3DElement.html +5 -5
  201. package/docs/types/Point3DTag.html +5 -5
  202. package/docs/types/PointTag.html +5 -5
  203. package/docs/types/PointTagElement.html +5 -5
  204. package/docs/types/Position.html +5 -5
  205. package/docs/types/RotateArgs.html +5 -5
  206. package/docs/types/RotateOpts.html +5 -5
  207. package/docs/types/RuleLabelsKey.html +5 -5
  208. package/docs/types/RuleLabelsValue.html +5 -5
  209. package/docs/types/StickType.html +5 -5
  210. package/docs/types/Tag.html +5 -5
  211. package/docs/types/Tag2D.html +5 -5
  212. package/docs/types/Tag3D.html +5 -5
  213. package/docs/types/TagContentType.html +5 -5
  214. package/docs/types/TagDimensionType.html +5 -5
  215. package/docs/types/TagElement.html +5 -5
  216. package/docs/types/TagEvents.html +5 -5
  217. package/docs/types/TagHooks.html +5 -5
  218. package/docs/types/TagIconSize.html +5 -5
  219. package/docs/types/TagId.html +5 -5
  220. package/docs/types/TagPointType.html +5 -5
  221. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  222. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  223. package/docs/types/WorkCode.html +5 -5
  224. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  225. package/docs/variables/PLUGIN.html +5 -5
  226. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  227. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  228. package/docs/variables/VERSION.html +5 -5
  229. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  230. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  231. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  232. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +39 -39
  233. package/libs/PanoTagPlugin/Components/TagItem.js +2 -2
  234. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  235. package/libs/PanoTagPlugin/controller/TagComputer.js +32 -29
  236. package/libs/PanoTagPlugin/controller/index.js +49 -50
  237. package/libs/PanoTagPlugin/utils/tag/format.js +4 -4
  238. package/package.json +1 -1
@@ -1,76 +1,76 @@
1
- import { SvelteComponent as A, init as F, safe_not_equal as M, append_styles as U, element as w, space as $, create_component as D, attr as y, set_style as u, toggle_class as _, insert as B, append as f, mount_component as I, listen as E, transition_in as R, transition_out as j, detach as G, destroy_component as q, getContext as H } from "../../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as M, init as U, safe_not_equal as B, append_styles as E, element as j, space as T, create_component as I, attr as w, set_style as g, toggle_class as y, insert as $, mount_component as R, append as _, listen as G, transition_in as q, transition_out as A, detach as P, destroy_component as F, getContext as H } from "../../../vendor/svelte/internal/index.js";
2
2
  import { Shadow as J } from "./Shadow.js";
3
3
  import { Icon as K } from "./Icon/Icon.js";
4
4
  import { Image_Default_Point as L } from "../../Assets/Icon.js";
5
5
  import { px2rem as b } from "../../utils/px2rem.js";
6
- function N(o) {
7
- U(o, "svelte-u8kmhd", '@charset "UTF-8";.click-helper.svelte-u8kmhd.svelte-u8kmhd{position:absolute;pointer-events:auto;cursor:pointer;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-u8kmhd.svelte-u8kmhd{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-u8kmhd.svelte-u8kmhd,.tag-unfolded-point.svelte-u8kmhd.svelte-u8kmhd{transition:all 0.5s}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:after{content:"";position:absolute;width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:1}.tag-point-wrapper.folded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:0}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:1;scale:1}');
6
+ function N(n) {
7
+ E(n, "svelte-gna22j", '@charset "UTF-8";.tag-point-click-helper.svelte-gna22j.svelte-gna22j{position:absolute;pointer-events:auto;cursor:pointer;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-gna22j.svelte-gna22j{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-gna22j.svelte-gna22j,.tag-unfolded-point.svelte-gna22j.svelte-gna22j{transition:all 0.5s}.tag-point-wrapper.svelte-gna22j .tag-unfolded-point.svelte-gna22j{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-gna22j .tag-unfolded-point.svelte-gna22j:after{content:"";position:absolute;width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-gna22j .tag-unfolded-point.svelte-gna22j:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-gna22j .tag-folded-point.svelte-gna22j{opacity:1}.tag-point-wrapper.folded.svelte-gna22j .tag-unfolded-point.svelte-gna22j{opacity:0}.tag-point-wrapper.unfolded.svelte-gna22j .tag-folded-point.svelte-gna22j{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-gna22j .tag-unfolded-point.svelte-gna22j{opacity:1;scale:1}');
8
8
  }
9
- function O(o) {
10
- let t, s, p, d, h, a, c, n, r, l, g, k;
9
+ function O(n) {
10
+ let l, r, t, d, u, p, c, i, a, s, m, v;
11
11
  return d = new J({
12
12
  props: {
13
13
  center: !0,
14
14
  blurRadius: 12,
15
15
  spreadRadius: 5
16
16
  }
17
- }), r = new K({
17
+ }), a = new K({
18
18
  props: {
19
- icon: o[2],
20
- width: o[1]
19
+ icon: n[2],
20
+ width: n[1]
21
21
  }
22
22
  }), {
23
23
  c() {
24
- t = w("div"), s = w("div"), p = $(), D(d.$$.fragment), h = $(), a = w("div"), c = $(), n = w("div"), D(r.$$.fragment), y(s, "class", "click-helper svelte-u8kmhd"), y(a, "class", "tag-unfolded-point svelte-u8kmhd"), u(a, "transition-delay", (o[3] ? T : 0) + "ms"), y(n, "class", "tag-folded-point svelte-u8kmhd"), u(n, "transition-delay", (o[3] ? T : 0) + "ms"), y(t, "class", "tag-point-wrapper svelte-u8kmhd"), _(t, "unfolded", o[0]), _(t, "folded", o[3]), u(t, "width", b(o[1])), u(t, "height", b(o[1]));
24
+ l = j("div"), r = T(), t = j("div"), I(d.$$.fragment), u = T(), p = j("div"), c = T(), i = j("div"), I(a.$$.fragment), w(l, "class", "tag-point-click-helper svelte-gna22j"), w(p, "class", "tag-unfolded-point svelte-gna22j"), g(p, "transition-delay", (n[3] ? k : 0) + "ms"), w(i, "class", "tag-folded-point svelte-gna22j"), g(i, "transition-delay", (n[3] ? k : 0) + "ms"), w(t, "class", "tag-point-wrapper svelte-gna22j"), y(t, "unfolded", n[0]), y(t, "folded", n[3]), g(t, "width", b(n[1])), g(t, "height", b(n[1]));
25
25
  },
26
- m(e, i) {
27
- B(e, t, i), f(t, s), f(t, p), I(d, t, null), f(t, h), f(t, a), f(t, c), f(t, n), I(r, n, null), l = !0, g || (k = E(s, "click", o[4]), g = !0);
26
+ m(e, o) {
27
+ $(e, l, o), $(e, r, o), $(e, t, o), R(d, t, null), _(t, u), _(t, p), _(t, c), _(t, i), R(a, i, null), s = !0, m || (v = G(l, "click", n[4]), m = !0);
28
28
  },
29
- p(e, [i]) {
30
- i & 8 && u(a, "transition-delay", (e[3] ? T : 0) + "ms");
31
- const m = {};
32
- i & 4 && (m.icon = e[2]), i & 2 && (m.width = e[1]), r.$set(m), i & 8 && u(n, "transition-delay", (e[3] ? T : 0) + "ms"), (!l || i & 1) && _(t, "unfolded", e[0]), (!l || i & 8) && _(t, "folded", e[3]), i & 2 && u(t, "width", b(e[1])), i & 2 && u(t, "height", b(e[1]));
29
+ p(e, [o]) {
30
+ o & 8 && g(p, "transition-delay", (e[3] ? k : 0) + "ms");
31
+ const f = {};
32
+ o & 4 && (f.icon = e[2]), o & 2 && (f.width = e[1]), a.$set(f), o & 8 && g(i, "transition-delay", (e[3] ? k : 0) + "ms"), (!s || o & 1) && y(t, "unfolded", e[0]), (!s || o & 8) && y(t, "folded", e[3]), o & 2 && g(t, "width", b(e[1])), o & 2 && g(t, "height", b(e[1]));
33
33
  },
34
34
  i(e) {
35
- l || (R(d.$$.fragment, e), R(r.$$.fragment, e), l = !0);
35
+ s || (q(d.$$.fragment, e), q(a.$$.fragment, e), s = !0);
36
36
  },
37
37
  o(e) {
38
- j(d.$$.fragment, e), j(r.$$.fragment, e), l = !1;
38
+ A(d.$$.fragment, e), A(a.$$.fragment, e), s = !1;
39
39
  },
40
40
  d(e) {
41
- e && G(t), q(d), q(r), g = !1, k();
41
+ e && P(l), e && P(r), e && P(t), F(d), F(a), m = !1, v();
42
42
  }
43
43
  };
44
44
  }
45
- const T = 800;
46
- function Q(o, t, s) {
47
- let p, d, h, a;
45
+ const k = 800;
46
+ function Q(n, l, r) {
47
+ let t, d, u, p;
48
48
  const c = H("hooks");
49
- let { tag: n } = t, r, l = !1;
50
- const g = () => {
51
- r !== void 0 && clearTimeout(r), l = !0, r = setTimeout(
49
+ let { tag: i } = l, a, s = !1;
50
+ const m = () => {
51
+ a !== void 0 && clearTimeout(a), s = !0, a = setTimeout(
52
52
  () => {
53
- l = !1;
53
+ s = !1;
54
54
  },
55
55
  800
56
56
  );
57
- }, k = (e) => {
58
- l || c.emit("click", { event: e, target: "TagPoint", tag: n });
57
+ }, v = (e) => {
58
+ s || c.emit("click", { event: e, target: "TagPoint", tag: i });
59
59
  };
60
- return o.$$set = (e) => {
61
- "tag" in e && s(5, n = e.tag);
62
- }, o.$$.update = () => {
63
- var e, i, m, P;
64
- o.$$.dirty & 32 && s(0, p = (e = n.state) == null ? void 0 : e.unfolded), o.$$.dirty & 1 && s(3, d = !p), o.$$.dirty & 32 && s(2, h = (m = (i = n.style) == null ? void 0 : i.point) != null && m.url ? (P = n.style) == null ? void 0 : P.point : { url: L }), o.$$.dirty & 32 && s(1, a = (() => {
65
- var S, z, C;
66
- const v = (C = (z = (S = n.style) == null ? void 0 : S.point) == null ? void 0 : z.size) != null ? C : "S";
67
- return typeof v == "number" ? v : v === "S" ? 20 : v === "M" ? 24 : 20;
60
+ return n.$$set = (e) => {
61
+ "tag" in e && r(5, i = e.tag);
62
+ }, n.$$.update = () => {
63
+ var e, o, f, S;
64
+ n.$$.dirty & 32 && r(0, t = (e = i.state) == null ? void 0 : e.unfolded), n.$$.dirty & 1 && r(3, d = !t), n.$$.dirty & 32 && r(2, u = (f = (o = i.style) == null ? void 0 : o.point) != null && f.url ? (S = i.style) == null ? void 0 : S.point : { url: L }), n.$$.dirty & 32 && r(1, p = (() => {
65
+ var z, C, D;
66
+ const h = (D = (C = (z = i.style) == null ? void 0 : z.point) == null ? void 0 : C.size) != null ? D : "S";
67
+ return typeof h == "number" ? h : h === "S" ? 20 : h === "M" ? 24 : 20;
68
68
  })());
69
- }, g(), [p, a, h, d, k, n];
69
+ }, m(), [t, p, u, d, v, i];
70
70
  }
71
- class x extends A {
72
- constructor(t) {
73
- super(), F(this, t, Q, O, M, { tag: 5 }, N);
71
+ class x extends M {
72
+ constructor(l) {
73
+ super(), U(this, l, Q, O, B, { tag: 5 }, N);
74
74
  }
75
75
  }
76
76
  export {
@@ -96,8 +96,8 @@ function $(i, t, e) {
96
96
  return i.$$set = (u) => {
97
97
  "withAnimation" in u && e(0, S = u.withAnimation), "tag" in u && e(1, s = u.tag), "mediaStore" in u && e(2, w = u.mediaStore), "state" in u && e(3, v = u.state), "temporaryState" in u && e(4, y = u.temporaryState);
98
98
  }, i.$$.update = () => {
99
- var u, T, k, A, P, z, C, I;
100
- i.$$.dirty & 2 && e(13, a = (() => !(s.contentType === "Link" || s.contentType === "Audio" && s.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => s.contentType === "2DPoint")()), i.$$.dirty & 2 && e(11, n = s.id), i.$$.dirty & 2 && e(10, f = !((u = s.pointTagStyle) != null && u.leftPercent) || !((T = s.pointTagStyle) != null && T.topPercent) || s.enabled === !1 || !s.state), i.$$.dirty & 2 && e(9, r = !((k = s.state) != null && k.visible) || ((A = s.temporaryState) == null ? void 0 : A.visible) === !1), i.$$.dirty & 2 && e(8, l = (P = s.state) == null ? void 0 : P.unfolded), i.$$.dirty & 2 && e(7, b = ((z = s.pointTagStyle) == null ? void 0 : z.leftPercent) + "%"), i.$$.dirty & 2 && e(6, h = ((C = s.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(5, _ = (I = s.state) != null && I.unfolded ? 1 : 0);
99
+ var u, k, T, A, P, z, C, I;
100
+ i.$$.dirty & 2 && e(13, a = (() => !(s.contentType === "Link" || s.contentType === "Audio" && s.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => s.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, n = s.id), i.$$.dirty & 2 && e(10, f = !((u = s.pointTagStyle) != null && u.leftPercent) || !((k = s.pointTagStyle) != null && k.topPercent) || s.enabled === !1 || !s.state), i.$$.dirty & 2 && e(9, r = !((T = s.state) != null && T.visible) || ((A = s.temporaryState) == null ? void 0 : A.visible) === !1), i.$$.dirty & 2 && e(8, l = (P = s.state) == null ? void 0 : P.unfolded), i.$$.dirty & 2 && e(7, b = ((z = s.pointTagStyle) == null ? void 0 : z.leftPercent) + "%"), i.$$.dirty & 2 && e(6, h = ((C = s.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(5, _ = (I = s.state) != null && I.unfolded ? 1 : 0);
101
101
  }, [
102
102
  S,
103
103
  s,
@@ -7,6 +7,7 @@ export declare abstract class TagComputer extends TagCacheController {
7
7
  globalConfig?: Tags['globalConfig'];
8
8
  contentTypeConfig?: Tags['contentTypeConfig'];
9
9
  };
10
+ protected get isPanorama(): boolean;
10
11
  private raycaster;
11
12
  protected constructor(five: Five);
12
13
  getTagById(id: TagId): TagElement<TagContentType, StickType>;
@@ -2,22 +2,22 @@ var U = Object.defineProperty, j = Object.defineProperties;
2
2
  var w = Object.getOwnPropertyDescriptors;
3
3
  var k = Object.getOwnPropertySymbols;
4
4
  var B = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
- var P = (u, c, e) => c in u ? U(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e, x = (u, c) => {
5
+ var T = (u, c, e) => c in u ? U(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e, x = (u, c) => {
6
6
  for (var e in c || (c = {}))
7
- B.call(c, e) && P(u, e, c[e]);
7
+ B.call(c, e) && T(u, e, c[e]);
8
8
  if (k)
9
9
  for (var e of k(c))
10
- A.call(c, e) && P(u, e, c[e]);
10
+ A.call(c, e) && T(u, e, c[e]);
11
11
  return u;
12
12
  }, D = (u, c) => j(u, w(c));
13
- var y = (u, c, e) => (P(u, typeof c != "symbol" ? c + "" : c, e), e);
14
- import C from "object-assign-deep";
13
+ var y = (u, c, e) => (T(u, typeof c != "symbol" ? c + "" : c, e), e);
14
+ import P from "object-assign-deep";
15
15
  import * as I from "three";
16
16
  import { DefaultConfig as E } from "../tag.config.js";
17
17
  import { is3DTag as V, isPointTag as R } from "../utils/tag/tagCheck.js";
18
18
  import { arrayPositionToVector3 as M, anyPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
19
19
  import { planeNormal as $ } from "../utils/planeNormal.js";
20
- import { tagPosition as T } from "../utils/tagPosition.js";
20
+ import { tagPosition as C } from "../utils/tagPosition.js";
21
21
  import { checkRange as v } from "../utils/checkRange.js";
22
22
  import { TagCacheController as z } from "./TagCacheController.js";
23
23
  class q extends z {
@@ -27,6 +27,9 @@ class q extends z {
27
27
  y(this, "config", E);
28
28
  y(this, "raycaster", new I.Raycaster());
29
29
  }
30
+ get isPanorama() {
31
+ return this.five.currentMode === "Panorama";
32
+ }
30
33
  getTagById(e) {
31
34
  const t = this.tags.find((i) => i.id === e);
32
35
  if (!t) {
@@ -36,13 +39,13 @@ class q extends z {
36
39
  return t;
37
40
  }
38
41
  changeConfig(e, t = !0) {
39
- t ? this.config = C({}, this.config, e) : this.config = e, this.clearCache();
42
+ t ? this.config = P({}, this.config, e) : this.config = e, this.clearCache();
40
43
  }
41
44
  changeGlobalConfig(e, t = !0) {
42
- t ? this.config.globalConfig = C({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.clearCache();
45
+ t ? this.config.globalConfig = P({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.clearCache();
43
46
  }
44
47
  changeContentTypeConfig(e, t, i = !0) {
45
- this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = C({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache();
48
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = P({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache();
46
49
  }
47
50
  getVisibleByPanoIndex(e, t) {
48
51
  var n;
@@ -51,7 +54,7 @@ class q extends z {
51
54
  return i.visible;
52
55
  {
53
56
  const l = (() => {
54
- var d, p, r;
57
+ var d, p, f;
55
58
  const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, a = this.getDistance(e);
56
59
  if (typeof o == "function")
57
60
  return o(this.five, { tag: e, distance: a });
@@ -64,11 +67,11 @@ class q extends z {
64
67
  if (o.intersectRaycaster !== !1 && o.intersectRaycaster) {
65
68
  if (s === void 0)
66
69
  return !1;
67
- const f = (r = this.five.work.observers[s]) == null ? void 0 : r.position;
68
- if (f === void 0)
69
- throw new Error(`getVisible(): observerPosition is ${f}`);
70
- const h = T(e.position).sub(f).normalize();
71
- this.raycaster.set(f, h);
70
+ const r = (f = this.five.work.observers[s]) == null ? void 0 : f.position;
71
+ if (r === void 0)
72
+ throw new Error(`getVisible(): observerPosition is ${r}`);
73
+ const h = C(e.position).sub(r).normalize();
74
+ this.raycaster.set(r, h);
72
75
  const [g] = this.five.model.intersectRaycaster(this.raycaster), b = (() => {
73
76
  var m;
74
77
  return typeof o.intersectRaycaster == "object" && (m = o.intersectRaycaster.distanceAccuracy) != null ? m : 0.01;
@@ -126,19 +129,19 @@ class q extends z {
126
129
  return !1;
127
130
  }
128
131
  if (n.autoUnfold.strategy === "MinimumDistance") {
129
- const d = this.filterPointTag().filter((r) => this.getVisibleByPanoIndex(r)).filter((r) => {
130
- const f = this.getTagProject(r);
131
- if (!f)
132
+ const d = this.filterPointTag().filter((f) => this.getVisibleByPanoIndex(f)).filter((f) => {
133
+ const r = this.getTagProject(f);
134
+ if (!r)
132
135
  return !1;
133
- const { x: h, y: g, z: b } = f;
136
+ const { x: h, y: g, z: b } = r;
134
137
  return !(Math.abs(b) > 1 || Math.abs(h) > 1 || Math.abs(g) > 1);
135
- }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
138
+ }).map((f) => ({ tag: f, id: f.id, tagConfig: this.getTagConfig(f).unfoldedConfig })).filter(({ tag: f, tagConfig: r }) => {
136
139
  var h, g;
137
- return !(typeof f != "object" || f.keep || f.autoUnfold === !1 || ((h = f.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
138
- }).map((r) => D(x({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
140
+ return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((h = r.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = r.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
141
+ }).map((f) => D(x({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: r }) => {
139
142
  var h, g;
140
- return !(r === void 0 || typeof f != "object" || f.autoUnfold === !1 || ((h = f.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || f.autoUnfold.distance && v(r, f.autoUnfold.distance) === !1);
141
- }).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
143
+ return !(f === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((h = r.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = r.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || r.autoUnfold.distance && v(f, r.autoUnfold.distance) === !1);
144
+ }).sort((f, r) => f.distance - r.distance).findIndex((f) => f.id === e.id);
142
145
  if (d === -1 || d <= ((l = n.autoUnfold.maxNumber) != null ? l : 1) - 1 === !1)
143
146
  return !1;
144
147
  }
@@ -158,7 +161,7 @@ class q extends z {
158
161
  const a = (o = (l = this.five.work) == null ? void 0 : l.observers[i]) == null ? void 0 : o.position;
159
162
  if (a === void 0)
160
163
  throw new Error(`getDistance(): observerPosition is ${a}`);
161
- const d = (() => R(e) ? M(e == null ? void 0 : e.position) : T(e.position))(), p = a.distanceTo(d);
164
+ const d = (() => R(e) ? M(e == null ? void 0 : e.position) : C(e.position))(), p = a.distanceTo(d);
162
165
  return s.distance = p, p;
163
166
  }
164
167
  }
@@ -177,8 +180,8 @@ class q extends z {
177
180
  const d = (() => e.stickType === "3DPoint" ? S(e.normal) : $(e.position))();
178
181
  if (!d)
179
182
  return;
180
- const p = new I.Vector3().copy(a).sub(T(e.position)), r = d.angleTo(p) * 180 / Math.PI;
181
- return s.angle = r, s.angle;
183
+ const p = new I.Vector3().copy(a).sub(C(e.position)), f = d.angleTo(p) * 180 / Math.PI;
184
+ return s.angle = f, s.angle;
182
185
  }
183
186
  }
184
187
  getTagConfig(e) {
@@ -195,7 +198,7 @@ class q extends z {
195
198
  const [a = "Any", d = "Any"] = o || [];
196
199
  (e.stickType === a || a === "Any") && (e.contentType === d || d === "Any") && (t[l] = this.config.contentTypeConfig[l]);
197
200
  });
198
- const i = C({}, this.config.globalConfig, ...Object.values(t), e.config);
201
+ const i = P({}, this.config.globalConfig, ...Object.values(t), e.config);
199
202
  return typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep }), i;
200
203
  }
201
204
  can(e, t) {
@@ -256,7 +259,7 @@ class q extends z {
256
259
  getTagProject(e) {
257
260
  if (!this.getVisibleByPanoIndex(e))
258
261
  return;
259
- const i = T(e.position), { x: s, y: n, z: l } = i.project(this.five.camera);
262
+ const i = C(e.position), { x: s, y: n, z: l } = i.project(this.five.camera);
260
263
  if (!(l > 1))
261
264
  return { x: s, y: n, z: l };
262
265
  }
@@ -1,8 +1,8 @@
1
- var A = Object.defineProperty, y = Object.defineProperties;
1
+ var S = Object.defineProperty, y = Object.defineProperties;
2
2
  var P = Object.getOwnPropertyDescriptors;
3
3
  var T = Object.getOwnPropertySymbols;
4
4
  var w = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
- var u = (h, a, e) => a in h ? A(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, f = (h, a) => {
5
+ var u = (h, a, e) => a in h ? S(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, f = (h, a) => {
6
6
  for (var e in a || (a = {}))
7
7
  w.call(a, e) && u(h, e, a[e]);
8
8
  if (T)
@@ -10,30 +10,30 @@ var u = (h, a, e) => a in h ? A(h, a, { enumerable: !0, configurable: !0, writab
10
10
  E.call(a, e) && u(h, e, a[e]);
11
11
  return h;
12
12
  }, c = (h, a) => y(h, P(a));
13
- var l = (h, a, e) => (u(h, typeof a != "symbol" ? a + "" : a, e), e);
14
- var g = (h, a, e) => new Promise((t, i) => {
13
+ var d = (h, a, e) => (u(h, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var p = (h, a, e) => new Promise((t, i) => {
15
15
  var s = (n) => {
16
16
  try {
17
17
  r(e.next(n));
18
- } catch (d) {
19
- i(d);
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
21
  }, o = (n) => {
22
22
  try {
23
23
  r(e.throw(n));
24
- } catch (d) {
25
- i(d);
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
27
  }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
28
28
  r((e = e.apply(h, a)).next());
29
29
  });
30
- import { Subscribe as k } from "@realsee/five";
31
- import { Quaternion as F } from "three";
30
+ import { Subscribe as F } from "@realsee/five";
31
+ import { Quaternion as k } from "three";
32
32
  import v from "object-assign-deep";
33
33
  import { writable as R } from "../../vendor/svelte/store/index.js";
34
34
  import { TagContainer as U } from "../Components/TagContainer.js";
35
35
  import { Tag as L } from "../Components/Tag/index.js";
36
- import { arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
36
+ import { arrayPositionToVector3 as g } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
37
  import { addDebugPoints as O } from "../utils/addDebugPoints.js";
38
38
  import { planeNormal as I } from "../utils/planeNormal.js";
39
39
  import { actionAfterFiveModelLoad as B } from "../utils/actionAfterFiveModelLoad.js";
@@ -44,28 +44,28 @@ import { resizeObserver as D } from "../utils/resizeObserver.js";
44
44
  import { TagComputer as z } from "./TagComputer.js";
45
45
  import { CSS3DRenderPlugin as N } from "../../CSS3DRenderPlugin/index.js";
46
46
  import { formatTag as W } from "../utils/tag/format.js";
47
- const S = "2.0.0-dev.8", m = `DnalogelPlugin-PanoTagPlugin@${S}`, $ = !1, re = (h) => `${m}--${h}`;
48
- class ae extends z {
47
+ const A = "2.0.0-dev.9", m = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, ae = (h) => `${m}--${h}`;
48
+ class he extends z {
49
49
  constructor(e, t) {
50
50
  super(e);
51
- l(this, "version", S);
52
- l(this, "state", { enabled: !0, visible: !0 });
53
- l(this, "params");
54
- l(this, "debug");
55
- l(this, "css3DRenderPlugin");
56
- l(this, "TagContainerSvelte");
57
- l(this, "temporaryState", { visible: !0 });
58
- l(this, "mediaStore", R({
51
+ d(this, "version", A);
52
+ d(this, "state", { enabled: !0, visible: !0 });
53
+ d(this, "params");
54
+ d(this, "debug");
55
+ d(this, "css3DRenderPlugin");
56
+ d(this, "TagContainerSvelte");
57
+ d(this, "temporaryState", { visible: !0 });
58
+ d(this, "mediaStore", R({
59
59
  currentMediaElement: null
60
60
  }));
61
- l(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
62
- l(this, "store", {
61
+ d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
62
+ d(this, "store", {
63
63
  disposers: [],
64
64
  disposed: !1,
65
65
  resizeObserverDisposerAdding: !1,
66
66
  css3DRenderDisposer: /* @__PURE__ */ new Map()
67
67
  });
68
- l(this, "disposedErrorLog", () => {
68
+ d(this, "disposedErrorLog", () => {
69
69
  console.error(`${m} is disposed`);
70
70
  });
71
71
  this.params = f({
@@ -85,22 +85,20 @@ class ae extends z {
85
85
  const r = this.getTagConfig(o);
86
86
  return c(f({}, o), {
87
87
  state: f({ visible: void 0, unfolded: $ }, r.initialState),
88
- hooks: new k(),
88
+ hooks: new F(),
89
89
  clickable: r.clickable
90
90
  });
91
91
  }).filter((o) => o.position);
92
92
  s.forEach(W), this.tags.push(...s), B(this.five, () => {
93
- var r, n, d;
94
- this.store.eventListenerDisposer && ((n = (r = this.store).eventListenerDisposer) == null || n.call(r)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener());
95
- const o = this.five.getCurrentState().mode;
96
- o && o !== "Panorama" && this.temporaryHide(), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (d = t == null ? void 0 : t.withAnimation) != null ? d : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
93
+ var o, r, n;
94
+ this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
97
95
  });
98
96
  }
99
97
  clearTags() {
100
98
  this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
101
99
  }
102
100
  show(e) {
103
- return g(this, null, function* () {
101
+ return p(this, null, function* () {
104
102
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
105
103
  if (this.store.disposed)
106
104
  return this.disposedErrorLog();
@@ -108,7 +106,7 @@ class ae extends z {
108
106
  });
109
107
  }
110
108
  hide(e) {
111
- return g(this, null, function* () {
109
+ return p(this, null, function* () {
112
110
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
113
111
  if (this.store.disposed)
114
112
  return this.disposedErrorLog();
@@ -130,8 +128,8 @@ class ae extends z {
130
128
  dispose() {
131
129
  var e, t, i, s, o, r;
132
130
  this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
133
- var d;
134
- return (d = n.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
131
+ var l;
132
+ return (l = n.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
135
133
  }), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.clearCache(), this.hooks.emit("dispose");
136
134
  }
137
135
  setState(e, t) {
@@ -151,7 +149,7 @@ class ae extends z {
151
149
  }
152
150
  changeTagNormalById(e, t) {
153
151
  const i = this.getTagById(e);
154
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = p(t), this.updateRenderPlaneTag());
152
+ !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = g(t), this.updateRenderPlaneTag());
155
153
  }
156
154
  changeDataById(e, t, i = !0) {
157
155
  const s = this.getTagById(e);
@@ -162,7 +160,7 @@ class ae extends z {
162
160
  }
163
161
  changeTagById(e, t, i = !0) {
164
162
  const s = this.getTagById(e);
165
- !t || (i ? v(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = p(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
163
+ !t || (i ? v(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = g(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
166
164
  }
167
165
  destroyTagById(e) {
168
166
  (Array.isArray(e) ? e : [e]).forEach((i) => {
@@ -174,12 +172,13 @@ class ae extends z {
174
172
  this.mediaStore.set({ currentMediaElement: null });
175
173
  }
176
174
  setVisibleAndUnfolded() {
177
- return g(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
178
- return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
179
- setTimeout(() => {
180
- this.setUnfoldedByPanoIndex(), t();
181
- }, 10);
182
- }) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
175
+ return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
176
+ if (!!this.isPanorama)
177
+ return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
178
+ setTimeout(() => {
179
+ this.setUnfoldedByPanoIndex(), t();
180
+ }, 10);
181
+ }) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
183
182
  });
184
183
  }
185
184
  handleShow() {
@@ -199,9 +198,9 @@ class ae extends z {
199
198
  });
200
199
  }
201
200
  addEventListener() {
202
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), b = this.clickhandler.bind(this);
203
- return e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", d), t.on("click", b), () => {
204
- e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", d), t.off("click", b), this.store.eventListenerDisposer = void 0;
201
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), b = this.clickhandler.bind(this);
202
+ return this.five.currentMode && (this.isPanorama ? (this.handleFivePanoArrived(), this.temporaryShow({ withAnimation: !0 })) : this.temporaryHide()), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", l), t.on("click", b), () => {
203
+ e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", l), t.off("click", b), this.store.eventListenerDisposer = void 0;
205
204
  };
206
205
  }
207
206
  loadVideoFirstFrame() {
@@ -287,7 +286,7 @@ class ae extends z {
287
286
  this.updateRenderPointTag();
288
287
  }
289
288
  handleFivePanoArrived() {
290
- return g(this, null, function* () {
289
+ return p(this, null, function* () {
291
290
  yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
292
291
  e.temporaryState = c(f({}, e.temporaryState), { visible: !0 });
293
292
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
@@ -329,15 +328,15 @@ class ae extends z {
329
328
  state: this.state,
330
329
  temporaryState: this.temporaryState
331
330
  }), !r.equals(n)) {
332
- const d = new F().setFromUnitVectors(r, n);
333
- o.css3DObject.setRotationFromQuaternion(d);
331
+ const l = new k().setFromUnitVectors(r, n);
332
+ o.css3DObject.setRotationFromQuaternion(l);
334
333
  }
335
334
  } else {
336
335
  if (((i = t.state) == null ? void 0 : i.visible) === !1)
337
336
  return;
338
337
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = N(this.five)), t.stickType === "3DPoint" && !t.normal)
339
338
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
340
- const s = t.stickType === "Plane" ? t.position : M(this.five.camera.position, p(t.position), p(t.normal)), o = t.stickType === "Plane" ? I(t.position) : p(t.normal), r = this.getTagConfig(t).tag3DConfig, n = this.css3DRenderPlugin.create3DDomContainer(s, r);
339
+ const s = t.stickType === "Plane" ? t.position : M(this.five.camera.position, g(t.position), g(t.normal)), o = t.stickType === "Plane" ? I(t.position) : g(t.normal), r = this.getTagConfig(t).tag3DConfig, n = this.css3DRenderPlugin.create3DDomContainer(s, r);
341
340
  if (!n)
342
341
  return;
343
342
  this.store.css3DRenderDisposer.set(t.id, n.dispose), t.tag3DContentSvelte = {
@@ -375,6 +374,6 @@ class ae extends z {
375
374
  }
376
375
  }
377
376
  export {
378
- ae as PanoTagPluginController,
379
- re as pluginFlag
377
+ he as PanoTagPluginController,
378
+ ae as pluginFlag
380
379
  };
@@ -1,12 +1,12 @@
1
- function o(n) {
2
- var i, t;
1
+ function r(n) {
2
+ var i, t, o, p;
3
3
  if (!n.stickType) {
4
4
  const e = (() => n.pointType === "PointTag" && n.dimensionType === "3D" ? "3DPoint" : n.pointType === "PlaneTag" ? "Plane" : "2DPoint")();
5
5
  n.stickType = e;
6
6
  }
7
7
  if (n.contentType === "VRLink" || n.contentType === "PanoLink" || n.contentType === "Link") {
8
8
  const e = n;
9
- !((i = e.data) != null && i.icon) && !((t = e.style) != null && t.point) && (e.data.icon = {
9
+ !((t = (i = e.data) == null ? void 0 : i.icon) != null && t.url) && !((p = (o = e.style) == null ? void 0 : o.point) != null && p.url) && (e.data.icon = {
10
10
  url: "//vrlab-static.ljcdn.com/release/web/test.09dee741.png",
11
11
  steps: 28
12
12
  });
@@ -14,5 +14,5 @@ function o(n) {
14
14
  return n;
15
15
  }
16
16
  export {
17
- o as formatTag
17
+ r as formatTag
18
18
  };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.3.5-dev.3",
10
+ "version": "2.3.5-dev.4",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",