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

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 (236) hide show
  1. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  2. package/dist/index.cjs.js +16 -16
  3. package/dist/index.js +23 -13
  4. package/dist/index.umd.js +1 -1
  5. package/docs/assets/search.js +1 -1
  6. package/docs/classes/CSS3DRender.html +31 -31
  7. package/docs/classes/CruisePluginController.html +24 -24
  8. package/docs/classes/Magnifier.html +16 -16
  9. package/docs/classes/ModelRoomLabelController.html +11 -11
  10. package/docs/classes/Object3DHelperController.html +24 -24
  11. package/docs/classes/PaintBrush.html +15 -15
  12. package/docs/classes/PanoTagPluginController.html +57 -40
  13. package/docs/classes/Util.BetterTween.html +8 -8
  14. package/docs/classes/Util.FivePointSelector.html +12 -12
  15. package/docs/classes/Util.Interval.html +12 -12
  16. package/docs/classes/Util.Magnifier.html +17 -17
  17. package/docs/classes/Util.PointDomHelper.html +11 -11
  18. package/docs/classes/Util.PointHelper.html +11 -11
  19. package/docs/classes/Util.Rectangle.html +13 -13
  20. package/docs/enums/CameraMovementEffect.html +7 -7
  21. package/docs/enums/ContentType.html +16 -16
  22. package/docs/enums/DIRECTION.html +9 -9
  23. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  24. package/docs/enums/DimensionType.html +7 -7
  25. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  26. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  27. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  28. package/docs/enums/PointType.html +7 -7
  29. package/docs/enums/Rotation.html +8 -8
  30. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  31. package/docs/functions/CameraMovementPlugin.html +4 -4
  32. package/docs/functions/CruisePlugin.html +4 -4
  33. package/docs/functions/GuideLinePlugin.html +5 -5
  34. package/docs/functions/ItemLabelPlugin.html +4 -4
  35. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  36. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  37. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  38. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  39. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  40. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  41. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  42. package/docs/functions/ModelViewPlugin.html +4 -4
  43. package/docs/functions/Object3DHelperPlugin.html +4 -4
  44. package/docs/functions/PanoCompassPlugin.html +4 -4
  45. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  46. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  47. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  48. package/docs/functions/PanoMeasurePlugin.html +4 -4
  49. package/docs/functions/PanoRulerPlugin.html +4 -4
  50. package/docs/functions/PanoRulerProPlugin.html +4 -4
  51. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  52. package/docs/functions/PanoTagPlugin.html +4 -4
  53. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  54. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  55. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  56. package/docs/functions/Util.getFrameTime.html +5 -5
  57. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  58. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  59. package/docs/functions/Util.isNil.html +5 -5
  60. package/docs/functions/Util.nextFrame.html +5 -5
  61. package/docs/functions/Util.notNil.html +5 -5
  62. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  63. package/docs/functions/Util.tweenProgress.html +5 -5
  64. package/docs/functions/pluginFlag.html +5 -5
  65. package/docs/index.html +4 -4
  66. package/docs/interfaces/AddTagConfig.html +6 -6
  67. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  68. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  69. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  70. package/docs/interfaces/EventMap.html +15 -15
  71. package/docs/interfaces/FloorplanBounding.html +8 -8
  72. package/docs/interfaces/FloorplanData.html +10 -10
  73. package/docs/interfaces/FloorplanEntrance.html +11 -11
  74. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  75. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  76. package/docs/interfaces/FloorplanFloorData.html +9 -9
  77. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  78. package/docs/interfaces/FloorplanObserver.html +9 -9
  79. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  80. package/docs/interfaces/FloorplanPosition.html +7 -7
  81. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  82. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  83. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  84. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  85. package/docs/interfaces/FloorplanServerData.html +7 -7
  86. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  87. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  88. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  89. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  90. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  91. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  92. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  93. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  94. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  95. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  96. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  97. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  98. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  99. package/docs/interfaces/LineJson.html +7 -7
  100. package/docs/interfaces/MinMax.html +7 -7
  101. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  102. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  103. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  104. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  105. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  106. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  107. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  108. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  109. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  110. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  111. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  112. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  113. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  114. package/docs/interfaces/Object3DHelperState.html +8 -8
  115. package/docs/interfaces/OpenParameter.html +7 -7
  116. package/docs/interfaces/PaintBrushAction.html +12 -12
  117. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  118. package/docs/interfaces/PaintBrushState.html +10 -10
  119. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  120. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  121. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  122. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  123. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  124. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  125. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  126. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  127. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  128. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  129. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  130. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  131. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  132. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  133. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  134. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  135. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  136. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  137. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  138. package/docs/interfaces/Point.html +8 -8
  139. package/docs/interfaces/PointJson.html +8 -8
  140. package/docs/interfaces/Room.html +9 -9
  141. package/docs/interfaces/RoomInfo.html +7 -7
  142. package/docs/interfaces/RoomLabel.html +14 -14
  143. package/docs/interfaces/RoomRules.html +5 -5
  144. package/docs/interfaces/Rooms.html +5 -5
  145. package/docs/interfaces/Scissor.html +9 -9
  146. package/docs/interfaces/State.html +8 -8
  147. package/docs/interfaces/TagCache.html +10 -10
  148. package/docs/interfaces/TagConfig.html +10 -10
  149. package/docs/interfaces/TagIconUrl.html +9 -9
  150. package/docs/interfaces/Tags.html +9 -9
  151. package/docs/interfaces/TemporaryState.html +6 -6
  152. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  153. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  154. package/docs/modules/Util.html +5 -5
  155. package/docs/modules.html +4 -4
  156. package/docs/types/ArrayPosition.html +5 -5
  157. package/docs/types/CSS3DRenderExportType.html +5 -5
  158. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  159. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  160. package/docs/types/Color.html +5 -5
  161. package/docs/types/ContentTypeConfigKey.html +5 -5
  162. package/docs/types/ContentTypeMap.html +5 -5
  163. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  164. package/docs/types/Create3DElementReturnType.html +5 -5
  165. package/docs/types/CruisePluginExportType.html +5 -5
  166. package/docs/types/Direction-1.html +5 -5
  167. package/docs/types/Direction4.html +5 -5
  168. package/docs/types/FloorplanRuleLabels.html +5 -5
  169. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  170. package/docs/types/GuideLinePluginExportType.html +5 -5
  171. package/docs/types/HelperEventMap.html +5 -5
  172. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  173. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  174. package/docs/types/MediaData.html +5 -5
  175. package/docs/types/MediaStore.html +5 -5
  176. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  177. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  178. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  179. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  180. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  181. package/docs/types/MoveArgs.html +5 -5
  182. package/docs/types/MoveOpts.html +5 -5
  183. package/docs/types/Object3DHelperEventMap.html +5 -5
  184. package/docs/types/ObjectFit.html +5 -5
  185. package/docs/types/PaintBrushEventMap.html +5 -5
  186. package/docs/types/PanoCompassPluginData.html +5 -5
  187. package/docs/types/PanoCompassPluginExportType.html +5 -5
  188. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  189. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  190. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  191. package/docs/types/PanoIndex.html +5 -5
  192. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  193. package/docs/types/PanoMeasureReturnType.html +5 -5
  194. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  195. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  196. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  197. package/docs/types/PlaneTag.html +5 -5
  198. package/docs/types/PlaneTagElement.html +5 -5
  199. package/docs/types/Point2DElement.html +5 -5
  200. package/docs/types/Point2DTag.html +5 -5
  201. package/docs/types/Point3DElement.html +5 -5
  202. package/docs/types/Point3DTag.html +5 -5
  203. package/docs/types/PointTag.html +5 -5
  204. package/docs/types/PointTagElement.html +5 -5
  205. package/docs/types/Position.html +5 -5
  206. package/docs/types/RotateArgs.html +5 -5
  207. package/docs/types/RotateOpts.html +5 -5
  208. package/docs/types/RuleLabelsKey.html +5 -5
  209. package/docs/types/RuleLabelsValue.html +5 -5
  210. package/docs/types/StickType.html +5 -5
  211. package/docs/types/Tag.html +5 -5
  212. package/docs/types/Tag2D.html +5 -5
  213. package/docs/types/Tag3D.html +5 -5
  214. package/docs/types/TagContentType.html +5 -5
  215. package/docs/types/TagDimensionType.html +5 -5
  216. package/docs/types/TagElement.html +5 -5
  217. package/docs/types/TagEvents.html +5 -5
  218. package/docs/types/TagHooks.html +5 -5
  219. package/docs/types/TagIconSize.html +5 -5
  220. package/docs/types/TagId.html +5 -5
  221. package/docs/types/TagPointType.html +5 -5
  222. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  223. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  224. package/docs/types/WorkCode.html +5 -5
  225. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  226. package/docs/variables/PLUGIN.html +5 -5
  227. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  228. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  229. package/docs/variables/VERSION.html +5 -5
  230. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  231. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  232. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  233. package/libs/PanoTagPlugin/Components/TagItem.js +44 -43
  234. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  235. package/libs/PanoTagPlugin/controller/index.js +29 -20
  236. package/package.json +1 -1
@@ -1,32 +1,32 @@
1
- import { SvelteComponent as K, init as M, safe_not_equal as N, append_styles as O, element as D, space as Q, attr as u, set_style as g, toggle_class as p, insert as R, append as I, transition_in as d, group_outros as q, transition_out as c, check_outros as L, detach as U, getContext as V, create_component as F, mount_component as G, destroy_component as H } from "../../vendor/svelte/internal/index.js";
2
- import { Tag as W } from "./Tag/index.js";
1
+ import { SvelteComponent as M, init as N, safe_not_equal as O, append_styles as Q, element as q, space as R, attr as m, set_style as g, toggle_class as p, insert as U, append as D, transition_in as d, group_outros as L, transition_out as c, check_outros as j, detach as V, getContext as W, create_component as G, mount_component as H, destroy_component as J } from "../../vendor/svelte/internal/index.js";
2
+ import { Tag as X } from "./Tag/index.js";
3
3
  import "three";
4
- import { noTypecheck as j } from "../utils/noTypecheck.js";
5
- import { TagPoint as X } from "./Common/TagPoint.js";
6
- function Y(i) {
7
- O(i, "svelte-bdubcv", ".tag.hide.svelte-bdubcv{opacity:0;pointer-events:none}.tag.disable.svelte-bdubcv{display:none}.tag.withAnimation.svelte-bdubcv{transition:opacity 0.3s linear}.wrapper.svelte-bdubcv{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
4
+ import { noTypecheck as B } from "../utils/noTypecheck.js";
5
+ import { TagPoint as Y } from "./Common/TagPoint.js";
6
+ function Z(i) {
7
+ Q(i, "svelte-bdubcv", ".tag.hide.svelte-bdubcv{opacity:0;pointer-events:none}.tag.disable.svelte-bdubcv{display:none}.tag.withAnimation.svelte-bdubcv{transition:opacity 0.3s linear}.wrapper.svelte-bdubcv{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
8
8
  }
9
- function B(i) {
9
+ function E(i) {
10
10
  let t, e;
11
- return t = new W({
11
+ return t = new X({
12
12
  props: {
13
13
  mediaStore: i[2],
14
14
  withAnimation: i[0],
15
- tag: j(i[1]),
16
- hooks: i[13],
15
+ tag: B(i[1]),
16
+ hooks: i[14],
17
17
  state: i[3],
18
18
  temporaryState: i[4]
19
19
  }
20
20
  }), {
21
21
  c() {
22
- F(t.$$.fragment);
22
+ G(t.$$.fragment);
23
23
  },
24
24
  m(a, o) {
25
- G(t, a, o), e = !0;
25
+ H(t, a, o), e = !0;
26
26
  },
27
27
  p(a, o) {
28
28
  const n = {};
29
- o & 4 && (n.mediaStore = a[2]), o & 1 && (n.withAnimation = a[0]), o & 2 && (n.tag = j(a[1])), o & 8 && (n.state = a[3]), o & 16 && (n.temporaryState = a[4]), t.$set(n);
29
+ o & 4 && (n.mediaStore = a[2]), o & 1 && (n.withAnimation = a[0]), o & 2 && (n.tag = B(a[1])), o & 8 && (n.state = a[3]), o & 16 && (n.temporaryState = a[4]), t.$set(n);
30
30
  },
31
31
  i(a) {
32
32
  e || (d(t.$$.fragment, a), e = !0);
@@ -35,18 +35,18 @@ function B(i) {
35
35
  c(t.$$.fragment, a), e = !1;
36
36
  },
37
37
  d(a) {
38
- H(t, a);
38
+ J(t, a);
39
39
  }
40
40
  };
41
41
  }
42
- function E(i) {
42
+ function F(i) {
43
43
  let t, e;
44
- return t = new X({ props: { tag: i[1] } }), {
44
+ return t = new Y({ props: { tag: i[1] } }), {
45
45
  c() {
46
- F(t.$$.fragment);
46
+ G(t.$$.fragment);
47
47
  },
48
48
  m(a, o) {
49
- G(t, a, o), e = !0;
49
+ H(t, a, o), e = !0;
50
50
  },
51
51
  p(a, o) {
52
52
  const n = {};
@@ -59,25 +59,25 @@ function E(i) {
59
59
  c(t.$$.fragment, a), e = !1;
60
60
  },
61
61
  d(a) {
62
- H(t, a);
62
+ J(t, a);
63
63
  }
64
64
  };
65
65
  }
66
- function Z(i) {
67
- let t, e, a, o, n = i[1].stickType === "2DPoint" && B(i), f = i[12] && E(i);
66
+ function x(i) {
67
+ let t, e, a, o, n = i[12] && E(i), f = i[13] && F(i);
68
68
  return {
69
69
  c() {
70
- t = D("div"), e = D("div"), n && n.c(), a = Q(), f && f.c(), u(e, "class", "wrapper svelte-bdubcv"), u(e, "data-tag-id", i[11]), g(e, "left", i[7]), g(e, "top", i[6]), g(e, "z-index", i[5]), u(t, "class", "tag svelte-bdubcv"), u(t, "data-tag-id", i[11]), u(t, "data-tag-unfolded", i[8]), p(t, "disable", i[10]), p(t, "hide", i[9]), p(t, "withAnimation", i[0]);
70
+ t = q("div"), e = q("div"), n && n.c(), a = R(), f && f.c(), m(e, "class", "wrapper svelte-bdubcv"), m(e, "data-tag-id", i[11]), g(e, "left", i[7]), g(e, "top", i[6]), g(e, "z-index", i[5]), m(t, "class", "tag svelte-bdubcv"), m(t, "data-tag-id", i[11]), m(t, "data-tag-unfolded", i[8]), p(t, "disable", i[10]), p(t, "hide", i[9]), p(t, "withAnimation", i[0]);
71
71
  },
72
72
  m(r, l) {
73
- R(r, t, l), I(t, e), n && n.m(e, null), I(e, a), f && f.m(e, null), o = !0;
73
+ U(r, t, l), D(t, e), n && n.m(e, null), D(e, a), f && f.m(e, null), o = !0;
74
74
  },
75
75
  p(r, [l]) {
76
- r[1].stickType === "2DPoint" ? n ? (n.p(r, l), l & 2 && d(n, 1)) : (n = B(r), n.c(), d(n, 1), n.m(e, a)) : n && (q(), c(n, 1, 1, () => {
76
+ r[12] ? n ? (n.p(r, l), l & 4096 && d(n, 1)) : (n = E(r), n.c(), d(n, 1), n.m(e, a)) : n && (L(), c(n, 1, 1, () => {
77
77
  n = null;
78
- }), L()), r[12] ? f ? (f.p(r, l), l & 4096 && d(f, 1)) : (f = E(r), f.c(), d(f, 1), f.m(e, null)) : f && (q(), c(f, 1, 1, () => {
78
+ }), j()), r[13] ? f ? (f.p(r, l), l & 8192 && d(f, 1)) : (f = F(r), f.c(), d(f, 1), f.m(e, null)) : f && (L(), c(f, 1, 1, () => {
79
79
  f = null;
80
- }), L()), (!o || l & 2048) && u(e, "data-tag-id", r[11]), l & 128 && g(e, "left", r[7]), l & 64 && g(e, "top", r[6]), l & 32 && g(e, "z-index", r[5]), (!o || l & 2048) && u(t, "data-tag-id", r[11]), (!o || l & 256) && u(t, "data-tag-unfolded", r[8]), (!o || l & 1024) && p(t, "disable", r[10]), (!o || l & 512) && p(t, "hide", r[9]), (!o || l & 1) && p(t, "withAnimation", r[0]);
80
+ }), j()), (!o || l & 2048) && m(e, "data-tag-id", r[11]), l & 128 && g(e, "left", r[7]), l & 64 && g(e, "top", r[6]), l & 32 && g(e, "z-index", r[5]), (!o || l & 2048) && m(t, "data-tag-id", r[11]), (!o || l & 256) && m(t, "data-tag-unfolded", r[8]), (!o || l & 1024) && p(t, "disable", r[10]), (!o || l & 512) && p(t, "hide", r[9]), (!o || l & 1) && p(t, "withAnimation", r[0]);
81
81
  },
82
82
  i(r) {
83
83
  o || (d(n), d(f), o = !0);
@@ -86,24 +86,25 @@ function Z(i) {
86
86
  c(n), c(f), o = !1;
87
87
  },
88
88
  d(r) {
89
- r && U(t), n && n.d(), f && f.d();
89
+ r && V(t), n && n.d(), f && f.d();
90
90
  }
91
91
  };
92
92
  }
93
- function x(i, t, e) {
94
- let a, o, n, f, r, l, b, h, { withAnimation: _ = !1 } = t, { tag: s } = t, { mediaStore: S } = t, { state: w } = t, { temporaryState: v } = t;
95
- const J = V("hooks");
96
- return i.$$set = (m) => {
97
- "withAnimation" in m && e(0, _ = m.withAnimation), "tag" in m && e(1, s = m.tag), "mediaStore" in m && e(2, S = m.mediaStore), "state" in m && e(3, w = m.state), "temporaryState" in m && e(4, v = m.temporaryState);
93
+ function $(i, t, e) {
94
+ let a, o, n, f, r, l, b, h, _, { withAnimation: S = !1 } = t, { tag: s } = t, { mediaStore: w } = t, { state: v } = t, { temporaryState: y } = t;
95
+ const K = W("hooks");
96
+ return i.$$set = (u) => {
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 m, y, k, T, A, P, z, C;
100
- i.$$.dirty & 2 && e(12, a = (() => !(s.contentType === "Link" || s.contentType === "Audio" && s.data.appearance === "plane"))()), i.$$.dirty & 2 && e(11, o = s.id), i.$$.dirty & 2 && e(10, n = !((m = s.pointTagStyle) != null && m.leftPercent) || !((y = s.pointTagStyle) != null && y.topPercent) || s.enabled === !1 || !s.state), i.$$.dirty & 2 && e(9, f = !((k = s.state) != null && k.visible) || ((T = s.temporaryState) == null ? void 0 : T.visible) === !1), i.$$.dirty & 2 && e(8, r = (A = s.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(7, l = ((P = s.pointTagStyle) == null ? void 0 : P.leftPercent) + "%"), i.$$.dirty & 2 && e(6, b = ((z = s.pointTagStyle) == null ? void 0 : z.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (C = s.state) != null && C.unfolded ? 1 : 0);
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);
101
101
  }, [
102
- _,
103
- s,
104
102
  S,
103
+ s,
105
104
  w,
106
105
  v,
106
+ y,
107
+ _,
107
108
  h,
108
109
  b,
109
110
  l,
@@ -112,17 +113,17 @@ function x(i, t, e) {
112
113
  n,
113
114
  o,
114
115
  a,
115
- J
116
+ K
116
117
  ];
117
118
  }
118
- class ae extends K {
119
+ class oe extends M {
119
120
  constructor(t) {
120
- super(), M(
121
+ super(), N(
121
122
  this,
122
123
  t,
124
+ $,
123
125
  x,
124
- Z,
125
- N,
126
+ O,
126
127
  {
127
128
  withAnimation: 0,
128
129
  tag: 1,
@@ -130,10 +131,10 @@ class ae extends K {
130
131
  state: 3,
131
132
  temporaryState: 4
132
133
  },
133
- Y
134
+ Z
134
135
  );
135
136
  }
136
137
  }
137
138
  export {
138
- ae as TagItem
139
+ oe as TagItem
139
140
  };
@@ -63,6 +63,7 @@ declare class PanoTagPluginController extends TagComputer {
63
63
  userAction?: boolean;
64
64
  visibleWithAnimation?: boolean;
65
65
  }): void;
66
+ changeUnfoldedById(id: TagId, unfolded: boolean): void;
66
67
  /**
67
68
  * @description: 修改3D标签normal
68
69
  */
@@ -1,17 +1,17 @@
1
- var S = Object.defineProperty, y = Object.defineProperties;
1
+ var A = 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 g = (h, a, e) => a in h ? S(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 ? A(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
- w.call(a, e) && g(h, e, a[e]);
7
+ w.call(a, e) && u(h, e, a[e]);
8
8
  if (T)
9
9
  for (var e of T(a))
10
- E.call(a, e) && g(h, e, a[e]);
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) => (g(h, typeof a != "symbol" ? a + "" : a, e), e);
14
- var p = (h, a, e) => new Promise((t, i) => {
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) => {
15
15
  var s = (n) => {
16
16
  try {
17
17
  r(e.next(n));
@@ -31,9 +31,9 @@ import { Subscribe as k } from "@realsee/five";
31
31
  import { Quaternion as F } from "three";
32
32
  import v from "object-assign-deep";
33
33
  import { writable as R } from "../../vendor/svelte/store/index.js";
34
- import { TagContainer as L } from "../Components/TagContainer.js";
35
- import { Tag as U } from "../Components/Tag/index.js";
36
- import { arrayPositionToVector3 as u } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
34
+ import { TagContainer as U } from "../Components/TagContainer.js";
35
+ import { Tag as L } from "../Components/Tag/index.js";
36
+ import { arrayPositionToVector3 as p } 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,11 +44,11 @@ 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 A = "2.0.0-dev.7", m = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, re = (h) => `${m}--${h}`;
47
+ const S = "2.0.0-dev.8", m = `DnalogelPlugin-PanoTagPlugin@${S}`, $ = !1, re = (h) => `${m}--${h}`;
48
48
  class ae extends z {
49
49
  constructor(e, t) {
50
50
  super(e);
51
- l(this, "version", A);
51
+ l(this, "version", S);
52
52
  l(this, "state", { enabled: !0, visible: !0 });
53
53
  l(this, "params");
54
54
  l(this, "debug");
@@ -100,7 +100,7 @@ class ae extends z {
100
100
  this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
101
101
  }
102
102
  show(e) {
103
- return p(this, null, function* () {
103
+ return g(this, null, function* () {
104
104
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
105
105
  if (this.store.disposed)
106
106
  return this.disposedErrorLog();
@@ -108,7 +108,7 @@ class ae extends z {
108
108
  });
109
109
  }
110
110
  hide(e) {
111
- return p(this, null, function* () {
111
+ return g(this, null, function* () {
112
112
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
113
113
  if (this.store.disposed)
114
114
  return this.disposedErrorLog();
@@ -140,9 +140,18 @@ class ae extends z {
140
140
  const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = f({}, this.state);
141
141
  this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
142
142
  }
143
+ changeUnfoldedById(e, t) {
144
+ var o;
145
+ const i = this.getTagById(e);
146
+ if (!i)
147
+ return;
148
+ i.state.unfolded = t;
149
+ const s = this.filterPointTag();
150
+ (o = this.TagContainerSvelte) == null || o.$set({ tags: s });
151
+ }
143
152
  changeTagNormalById(e, t) {
144
153
  const i = this.getTagById(e);
145
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = u(t), this.updateRenderPlaneTag());
154
+ !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = p(t), this.updateRenderPlaneTag());
146
155
  }
147
156
  changeDataById(e, t, i = !0) {
148
157
  const s = this.getTagById(e);
@@ -153,7 +162,7 @@ class ae extends z {
153
162
  }
154
163
  changeTagById(e, t, i = !0) {
155
164
  const s = this.getTagById(e);
156
- !t || (i ? v(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = u(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
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());
157
166
  }
158
167
  destroyTagById(e) {
159
168
  (Array.isArray(e) ? e : [e]).forEach((i) => {
@@ -165,7 +174,7 @@ class ae extends z {
165
174
  this.mediaStore.set({ currentMediaElement: null });
166
175
  }
167
176
  setVisibleAndUnfolded() {
168
- return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
177
+ return g(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
169
178
  return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
170
179
  setTimeout(() => {
171
180
  this.setUnfoldedByPanoIndex(), t();
@@ -278,7 +287,7 @@ class ae extends z {
278
287
  this.updateRenderPointTag();
279
288
  }
280
289
  handleFivePanoArrived() {
281
- return p(this, null, function* () {
290
+ return g(this, null, function* () {
282
291
  yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
283
292
  e.temporaryState = c(f({}, e.temporaryState), { visible: !0 });
284
293
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
@@ -303,7 +312,7 @@ class ae extends z {
303
312
  const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
304
313
  if (!i)
305
314
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
306
- this.TagContainerSvelte = new L({
315
+ this.TagContainerSvelte = new U({
307
316
  target: i,
308
317
  props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
309
318
  });
@@ -328,11 +337,11 @@ class ae extends z {
328
337
  return;
329
338
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = N(this.five)), t.stickType === "3DPoint" && !t.normal)
330
339
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
331
- const s = t.stickType === "Plane" ? t.position : M(this.five.camera.position, u(t.position), u(t.normal)), o = t.stickType === "Plane" ? I(t.position) : u(t.normal), r = this.getTagConfig(t).tag3DConfig, n = this.css3DRenderPlugin.create3DDomContainer(s, r);
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);
332
341
  if (!n)
333
342
  return;
334
343
  this.store.css3DRenderDisposer.set(t.id, n.dispose), t.tag3DContentSvelte = {
335
- svelteApp: new U({
344
+ svelteApp: new L({
336
345
  target: n.container,
337
346
  props: {
338
347
  tag: t,
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.2",
10
+ "version": "2.3.5-dev.3",
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*",