@realsee/dnalogel 2.3.9-alpha.1 → 2.3.9-alpha.2

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 (242) hide show
  1. package/dist/index.cjs.js +16 -16
  2. package/dist/index.js +2494 -2494
  3. package/dist/index.umd.js +17 -17
  4. package/docs/classes/CSS3DRender.html +31 -31
  5. package/docs/classes/CruisePluginController.html +24 -24
  6. package/docs/classes/Magnifier.html +16 -16
  7. package/docs/classes/ModelRoomLabelController.html +11 -11
  8. package/docs/classes/Object3DHelperController.html +24 -24
  9. package/docs/classes/PaintBrush.html +15 -15
  10. package/docs/classes/PanoTagPluginController.html +41 -41
  11. package/docs/classes/Util.BetterTween.html +8 -8
  12. package/docs/classes/Util.FivePointSelector.html +12 -12
  13. package/docs/classes/Util.Interval.html +12 -12
  14. package/docs/classes/Util.Magnifier.html +17 -17
  15. package/docs/classes/Util.PointDomHelper.html +11 -11
  16. package/docs/classes/Util.PointHelper.html +11 -11
  17. package/docs/classes/Util.Rectangle.html +13 -13
  18. package/docs/enums/CameraMovementEffect.html +7 -7
  19. package/docs/enums/ContentType.html +16 -16
  20. package/docs/enums/DIRECTION.html +9 -9
  21. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  22. package/docs/enums/DimensionType.html +7 -7
  23. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  24. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  25. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  26. package/docs/enums/PointType.html +7 -7
  27. package/docs/enums/Rotation.html +8 -8
  28. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  29. package/docs/functions/CameraMovementPlugin.html +4 -4
  30. package/docs/functions/CruisePlugin.html +4 -4
  31. package/docs/functions/GuideLinePlugin.html +5 -5
  32. package/docs/functions/ItemLabelPlugin.html +4 -4
  33. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  34. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  35. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  36. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  37. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  38. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  39. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  40. package/docs/functions/ModelViewPlugin.html +4 -4
  41. package/docs/functions/Object3DHelperPlugin.html +4 -4
  42. package/docs/functions/PanoCompassPlugin.html +4 -4
  43. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  44. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  45. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  46. package/docs/functions/PanoMeasurePlugin.html +4 -4
  47. package/docs/functions/PanoRulerPlugin.html +4 -4
  48. package/docs/functions/PanoRulerProPlugin.html +4 -4
  49. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  50. package/docs/functions/PanoTagPlugin.html +4 -4
  51. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  52. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  53. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  54. package/docs/functions/Util.getFrameTime.html +5 -5
  55. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  56. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  57. package/docs/functions/Util.isNil.html +5 -5
  58. package/docs/functions/Util.nextFrame.html +5 -5
  59. package/docs/functions/Util.notNil.html +5 -5
  60. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  61. package/docs/functions/Util.tweenProgress.html +5 -5
  62. package/docs/functions/pluginFlag.html +5 -5
  63. package/docs/index.html +4 -4
  64. package/docs/interfaces/AddTagConfig.html +6 -6
  65. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  66. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  67. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  68. package/docs/interfaces/EventMap.html +15 -15
  69. package/docs/interfaces/FloorplanBounding.html +8 -8
  70. package/docs/interfaces/FloorplanData.html +10 -10
  71. package/docs/interfaces/FloorplanEntrance.html +11 -11
  72. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  73. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  74. package/docs/interfaces/FloorplanFloorData.html +9 -9
  75. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  76. package/docs/interfaces/FloorplanObserver.html +9 -9
  77. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  78. package/docs/interfaces/FloorplanPosition.html +7 -7
  79. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  80. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  81. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  82. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  83. package/docs/interfaces/FloorplanServerData.html +7 -7
  84. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  85. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  86. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  87. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  88. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  89. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  90. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  91. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  92. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  93. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  94. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  95. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  96. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  97. package/docs/interfaces/LineJson.html +7 -7
  98. package/docs/interfaces/MinMax.html +7 -7
  99. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  100. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  101. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  102. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  103. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  104. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  105. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  106. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  107. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  108. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  109. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  110. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  111. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  112. package/docs/interfaces/Object3DHelperState.html +8 -8
  113. package/docs/interfaces/OpenParameter.html +7 -7
  114. package/docs/interfaces/PaintBrushAction.html +12 -12
  115. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  116. package/docs/interfaces/PaintBrushState.html +10 -10
  117. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  118. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  119. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  120. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  121. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  122. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  123. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  124. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  125. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  126. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  127. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  128. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  129. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  130. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  131. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  132. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  133. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  134. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  135. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  136. package/docs/interfaces/Point.html +8 -8
  137. package/docs/interfaces/PointJson.html +8 -8
  138. package/docs/interfaces/Room.html +9 -9
  139. package/docs/interfaces/RoomInfo.html +7 -7
  140. package/docs/interfaces/RoomLabel.html +14 -14
  141. package/docs/interfaces/RoomRules.html +5 -5
  142. package/docs/interfaces/Rooms.html +5 -5
  143. package/docs/interfaces/Scissor.html +9 -9
  144. package/docs/interfaces/State.html +8 -8
  145. package/docs/interfaces/TagCache.html +10 -10
  146. package/docs/interfaces/TagConfig.html +10 -10
  147. package/docs/interfaces/TagIconUrl.html +9 -9
  148. package/docs/interfaces/Tags.html +9 -9
  149. package/docs/interfaces/TemporaryState.html +6 -6
  150. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  151. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  152. package/docs/modules/Util.html +5 -5
  153. package/docs/modules.html +4 -4
  154. package/docs/types/ArrayPosition.html +5 -5
  155. package/docs/types/AudioAppearance.html +5 -5
  156. package/docs/types/AudioTagTypeConfigKey.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/ContentTypeConfigKeySplit.html +5 -5
  163. package/docs/types/ContentTypeMap.html +5 -5
  164. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  165. package/docs/types/Create3DElementReturnType.html +5 -5
  166. package/docs/types/CruisePluginExportType.html +5 -5
  167. package/docs/types/Direction-1.html +5 -5
  168. package/docs/types/Direction4.html +5 -5
  169. package/docs/types/FloorplanRuleLabels.html +5 -5
  170. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  171. package/docs/types/GuideLinePluginExportType.html +5 -5
  172. package/docs/types/HelperEventMap.html +5 -5
  173. package/docs/types/LoadTagConfig.html +5 -5
  174. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  175. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  176. package/docs/types/MediaData.html +5 -5
  177. package/docs/types/MediaStore.html +5 -5
  178. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  179. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  180. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  181. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  182. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  183. package/docs/types/MoveArgs.html +5 -5
  184. package/docs/types/MoveOpts.html +5 -5
  185. package/docs/types/Object3DHelperEventMap.html +5 -5
  186. package/docs/types/ObjectFit.html +5 -5
  187. package/docs/types/PaintBrushEventMap.html +5 -5
  188. package/docs/types/PanoCompassPluginData.html +5 -5
  189. package/docs/types/PanoCompassPluginExportType.html +5 -5
  190. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  191. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  192. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  193. package/docs/types/PanoIndex.html +5 -5
  194. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  195. package/docs/types/PanoMeasureReturnType.html +5 -5
  196. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  197. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  198. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  199. package/docs/types/PlaneTag.html +5 -5
  200. package/docs/types/PlaneTagElement.html +5 -5
  201. package/docs/types/Point2DElement.html +5 -5
  202. package/docs/types/Point2DTag.html +5 -5
  203. package/docs/types/Point3DElement.html +5 -5
  204. package/docs/types/Point3DTag.html +5 -5
  205. package/docs/types/PointTag.html +5 -5
  206. package/docs/types/PointTagElement.html +5 -5
  207. package/docs/types/Position.html +5 -5
  208. package/docs/types/RotateArgs.html +5 -5
  209. package/docs/types/RotateOpts.html +5 -5
  210. package/docs/types/RuleLabelsKey.html +5 -5
  211. package/docs/types/RuleLabelsValue.html +5 -5
  212. package/docs/types/StickType.html +5 -5
  213. package/docs/types/Tag.html +5 -5
  214. package/docs/types/Tag2D.html +5 -5
  215. package/docs/types/Tag3D.html +5 -5
  216. package/docs/types/TagContentType.html +5 -5
  217. package/docs/types/TagDimensionType.html +5 -5
  218. package/docs/types/TagElement.html +5 -5
  219. package/docs/types/TagEvents.html +5 -5
  220. package/docs/types/TagHooks.html +5 -5
  221. package/docs/types/TagIconSize.html +5 -5
  222. package/docs/types/TagId.html +5 -5
  223. package/docs/types/TagPointType.html +5 -5
  224. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  225. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  226. package/docs/types/WorkCode.html +5 -5
  227. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  228. package/docs/variables/PLUGIN.html +5 -5
  229. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  230. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  231. package/docs/variables/VERSION.html +5 -5
  232. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  233. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  234. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  235. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +164 -143
  236. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +54 -54
  237. package/libs/PanoTagPlugin/Components/Tag/index.js +110 -91
  238. package/libs/PanoTagPlugin/Components/TagContainer.js +37 -18
  239. package/libs/PanoTagPlugin/Components/TagItem.js +63 -44
  240. package/libs/PanoTagPlugin/controller/index.js +33 -29
  241. package/libs/PanoTagPlugin/index.js +29 -25
  242. package/package.json +1 -1
@@ -38,6 +38,25 @@ import "swiper/css";
38
38
  import "swiper/css/autoplay";
39
39
  import "./Common/MediaItem.js";
40
40
  import "./Tag/MarketingTag.js";
41
+ import "hammerjs";
42
+ import "@realsee/five";
43
+ import "@tweenjs/tween.js";
44
+ import "../../CSS3DRenderPlugin/CSS3DRender.js";
45
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
46
+ import "three/examples/jsm/renderers/CSS3DRenderer";
47
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
48
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
49
+ import "../../CSS3DRenderPlugin/utils/even.js";
50
+ import "../../shared-utils/Subscribe.js";
51
+ import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
52
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
53
+ import "../../CSS3DRenderPlugin/utils/centerPoint.js";
54
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
55
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
56
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
57
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
58
+ import "../../shared-utils/animationFrame/BetterTween.js";
59
+ import "../../shared-utils/animationFrame/index.js";
41
60
  import "./Tag/AudioTag/index.js";
42
61
  import "./Tag/AudioTag/AudioTag.js";
43
62
  import "./Common/Audio.js";
@@ -85,12 +104,12 @@ function x(o) {
85
104
  c() {
86
105
  G(e.$$.fragment);
87
106
  },
88
- m(i, r) {
89
- H(e, i, r), t = !0;
107
+ m(i, n) {
108
+ H(e, i, n), t = !0;
90
109
  },
91
- p(i, r) {
92
- const p = {};
93
- r & 4 && (p.mediaStore = i[2]), r & 1 && (p.withAnimation = i[0]), r & 2 && (p.tag = F(i[1])), r & 8 && (p.state = i[3]), r & 16 && (p.temporaryState = i[4]), e.$set(p);
110
+ p(i, n) {
111
+ const l = {};
112
+ n & 4 && (l.mediaStore = i[2]), n & 1 && (l.withAnimation = i[0]), n & 2 && (l.tag = F(i[1])), n & 8 && (l.state = i[3]), n & 16 && (l.temporaryState = i[4]), e.$set(l);
94
113
  },
95
114
  i(i) {
96
115
  t || (v(e.$$.fragment, i), t = !0);
@@ -126,12 +145,12 @@ function tt(o) {
126
145
  c() {
127
146
  G(e.$$.fragment);
128
147
  },
129
- m(i, r) {
130
- H(e, i, r), t = !0;
148
+ m(i, n) {
149
+ H(e, i, n), t = !0;
131
150
  },
132
- p(i, r) {
133
- const p = {};
134
- r & 2 && (p.tag = i[1]), e.$set(p);
151
+ p(i, n) {
152
+ const l = {};
153
+ n & 2 && (l.tag = i[1]), e.$set(l);
135
154
  },
136
155
  i(i) {
137
156
  t || (v(e.$$.fragment, i), t = !0);
@@ -145,71 +164,71 @@ function tt(o) {
145
164
  };
146
165
  }
147
166
  function et(o) {
148
- let e, t, i, r, p, f, s, g, u;
167
+ let e, t, i, n, l, f, s, g, u;
149
168
  const w = [x, Z], c = [];
150
- function T(n, l) {
151
- return n[12] ? 0 : 1;
169
+ function T(r, m) {
170
+ return r[12] ? 0 : 1;
152
171
  }
153
- i = T(o), r = c[i] = w[i](o);
172
+ i = T(o), n = c[i] = w[i](o);
154
173
  const a = [tt, $], _ = [];
155
- function A(n, l) {
156
- return n[13] ? 0 : 1;
174
+ function A(r, m) {
175
+ return r[13] ? 0 : 1;
157
176
  }
158
177
  return f = A(o), s = _[f] = a[f](o), {
159
178
  c() {
160
- e = P("div"), t = P("div"), r.c(), p = Q(), s.c(), d(t, "class", "wrapper svelte-bdubcv"), d(t, "data-tag-unfolded", o[8]), d(t, "data-tag-id", o[11]), d(t, "data-content-type", g = o[1].contentType), h(t, "left", o[7]), h(t, "top", o[6]), h(t, "z-index", o[5]), d(e, "class", "tag svelte-bdubcv"), d(e, "data-tag-id", o[11]), y(e, "disable", o[10]), y(e, "hide", o[9]), y(e, "withAnimation", o[0]);
179
+ e = P("div"), t = P("div"), n.c(), l = Q(), s.c(), d(t, "class", "wrapper svelte-bdubcv"), d(t, "data-tag-unfolded", o[8]), d(t, "data-tag-id", o[11]), d(t, "data-content-type", g = o[1].contentType), h(t, "left", o[7]), h(t, "top", o[6]), h(t, "z-index", o[5]), d(e, "class", "tag svelte-bdubcv"), d(e, "data-tag-id", o[11]), y(e, "disable", o[10]), y(e, "hide", o[9]), y(e, "withAnimation", o[0]);
161
180
  },
162
- m(n, l) {
163
- z(n, e, l), j(e, t), c[i].m(t, null), j(t, p), _[f].m(t, null), u = !0;
181
+ m(r, m) {
182
+ z(r, e, m), j(e, t), c[i].m(t, null), j(t, l), _[f].m(t, null), u = !0;
164
183
  },
165
- p(n, [l]) {
166
- let m = i;
167
- i = T(n), i === m ? c[i].p(n, l) : (E(), k(c[m], 1, 1, () => {
168
- c[m] = null;
169
- }), B(), r = c[i], r ? r.p(n, l) : (r = c[i] = w[i](n), r.c()), v(r, 1), r.m(t, p));
184
+ p(r, [m]) {
185
+ let p = i;
186
+ i = T(r), i === p ? c[i].p(r, m) : (E(), k(c[p], 1, 1, () => {
187
+ c[p] = null;
188
+ }), B(), n = c[i], n ? n.p(r, m) : (n = c[i] = w[i](r), n.c()), v(n, 1), n.m(t, l));
170
189
  let b = f;
171
- f = A(n), f === b ? _[f].p(n, l) : (E(), k(_[b], 1, 1, () => {
190
+ f = A(r), f === b ? _[f].p(r, m) : (E(), k(_[b], 1, 1, () => {
172
191
  _[b] = null;
173
- }), B(), s = _[f], s ? s.p(n, l) : (s = _[f] = a[f](n), s.c()), v(s, 1), s.m(t, null)), (!u || l & 256) && d(t, "data-tag-unfolded", n[8]), (!u || l & 2048) && d(t, "data-tag-id", n[11]), (!u || l & 2 && g !== (g = n[1].contentType)) && d(t, "data-content-type", g), l & 128 && h(t, "left", n[7]), l & 64 && h(t, "top", n[6]), l & 32 && h(t, "z-index", n[5]), (!u || l & 2048) && d(e, "data-tag-id", n[11]), (!u || l & 1024) && y(e, "disable", n[10]), (!u || l & 512) && y(e, "hide", n[9]), (!u || l & 1) && y(e, "withAnimation", n[0]);
192
+ }), B(), s = _[f], s ? s.p(r, m) : (s = _[f] = a[f](r), s.c()), v(s, 1), s.m(t, null)), (!u || m & 256) && d(t, "data-tag-unfolded", r[8]), (!u || m & 2048) && d(t, "data-tag-id", r[11]), (!u || m & 2 && g !== (g = r[1].contentType)) && d(t, "data-content-type", g), m & 128 && h(t, "left", r[7]), m & 64 && h(t, "top", r[6]), m & 32 && h(t, "z-index", r[5]), (!u || m & 2048) && d(e, "data-tag-id", r[11]), (!u || m & 1024) && y(e, "disable", r[10]), (!u || m & 512) && y(e, "hide", r[9]), (!u || m & 1) && y(e, "withAnimation", r[0]);
174
193
  },
175
- i(n) {
176
- u || (v(r), v(s), u = !0);
194
+ i(r) {
195
+ u || (v(n), v(s), u = !0);
177
196
  },
178
- o(n) {
179
- k(r), k(s), u = !1;
197
+ o(r) {
198
+ k(n), k(s), u = !1;
180
199
  },
181
- d(n) {
182
- n && C(e), c[i].d(), _[f].d();
200
+ d(r) {
201
+ r && C(e), c[i].d(), _[f].d();
183
202
  }
184
203
  };
185
204
  }
186
205
  function it(o, e, t) {
187
- let i, r, p, f, s, g, u, w, c, { withAnimation: T = !1 } = e, { tag: a } = e, { mediaStore: _ } = e, { state: A } = e, { temporaryState: n } = e;
188
- const l = U("hooks");
189
- return o.$$set = (m) => {
190
- "withAnimation" in m && t(0, T = m.withAnimation), "tag" in m && t(1, a = m.tag), "mediaStore" in m && t(2, _ = m.mediaStore), "state" in m && t(3, A = m.state), "temporaryState" in m && t(4, n = m.temporaryState);
206
+ let i, n, l, f, s, g, u, w, c, { withAnimation: T = !1 } = e, { tag: a } = e, { mediaStore: _ } = e, { state: A } = e, { temporaryState: r } = e;
207
+ const m = U("hooks");
208
+ return o.$$set = (p) => {
209
+ "withAnimation" in p && t(0, T = p.withAnimation), "tag" in p && t(1, a = p.tag), "mediaStore" in p && t(2, _ = p.mediaStore), "state" in p && t(3, A = p.state), "temporaryState" in p && t(4, r = p.temporaryState);
191
210
  }, o.$$.update = () => {
192
- var m, b, L, I, q, D, R, V;
193
- o.$$.dirty & 2 && t(13, i = (() => !(a.contentType === "Link" || a.contentType === "VRLink" || a.contentType === "PanoLink" || a.contentType === "Audio" && a.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, r = (() => a.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, p = a.id), o.$$.dirty & 2 && t(10, f = !((m = a.pointTagStyle) != null && m.leftPercent) || !((b = a.pointTagStyle) != null && b.topPercent) || a.enabled === !1 || !a.state), o.$$.dirty & 2 && t(9, s = !((L = a.state) != null && L.visible) || ((I = a.temporaryState) == null ? void 0 : I.visible) === !1), o.$$.dirty & 2 && t(8, g = (q = a.state) == null ? void 0 : q.unfolded), o.$$.dirty & 2 && t(7, u = ((D = a.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), o.$$.dirty & 2 && t(6, w = ((R = a.pointTagStyle) == null ? void 0 : R.topPercent) + "%"), o.$$.dirty & 2 && t(5, c = (V = a.state) != null && V.unfolded ? 1 : 0);
211
+ var p, b, L, I, q, D, R, V;
212
+ o.$$.dirty & 2 && t(13, i = (() => !(a.contentType === "Link" || a.contentType === "VRLink" || a.contentType === "PanoLink" || a.contentType === "Audio" && a.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => a.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, l = a.id), o.$$.dirty & 2 && t(10, f = !((p = a.pointTagStyle) != null && p.leftPercent) || !((b = a.pointTagStyle) != null && b.topPercent) || a.enabled === !1 || !a.state), o.$$.dirty & 2 && t(9, s = !((L = a.state) != null && L.visible) || ((I = a.temporaryState) == null ? void 0 : I.visible) === !1), o.$$.dirty & 2 && t(8, g = (q = a.state) == null ? void 0 : q.unfolded), o.$$.dirty & 2 && t(7, u = ((D = a.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), o.$$.dirty & 2 && t(6, w = ((R = a.pointTagStyle) == null ? void 0 : R.topPercent) + "%"), o.$$.dirty & 2 && t(5, c = (V = a.state) != null && V.unfolded ? 1 : 0);
194
213
  }, [
195
214
  T,
196
215
  a,
197
216
  _,
198
217
  A,
199
- n,
218
+ r,
200
219
  c,
201
220
  w,
202
221
  u,
203
222
  g,
204
223
  s,
205
224
  f,
206
- p,
207
- r,
225
+ l,
226
+ n,
208
227
  i,
209
- l
228
+ m
210
229
  ];
211
230
  }
212
- class ee extends K {
231
+ class ke extends K {
213
232
  constructor(e) {
214
233
  super(), M(
215
234
  this,
@@ -229,5 +248,5 @@ class ee extends K {
229
248
  }
230
249
  }
231
250
  export {
232
- ee as default
251
+ ke as default
233
252
  };
@@ -9,9 +9,9 @@ var u = (h, a, e) => a in h ? S(h, a, { enumerable: !0, configurable: !0, writab
9
9
  for (var e of T(a))
10
10
  E.call(a, e) && u(h, e, a[e]);
11
11
  return h;
12
- }, m = (h, a) => y(h, P(a));
12
+ }, f = (h, a) => y(h, P(a));
13
13
  var d = (h, a, e) => (u(h, typeof a != "symbol" ? a + "" : a, e), e);
14
- var f = (h, a, e) => new Promise((t, i) => {
14
+ var m = (h, a, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
17
17
  n(e.next(r));
@@ -85,6 +85,23 @@ import "swiper/css";
85
85
  import "swiper/css/autoplay";
86
86
  import "../Components/Common/MediaItem.js";
87
87
  import "../Components/Tag/MarketingTag.js";
88
+ import "hammerjs";
89
+ import "@tweenjs/tween.js";
90
+ import "../../CSS3DRenderPlugin/CSS3DRender.js";
91
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
92
+ import "three/examples/jsm/renderers/CSS3DRenderer";
93
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
94
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
95
+ import "../../CSS3DRenderPlugin/utils/even.js";
96
+ import "../../shared-utils/Subscribe.js";
97
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
98
+ import "../../CSS3DRenderPlugin/utils/centerPoint.js";
99
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
100
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
101
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
102
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
103
+ import "../../shared-utils/animationFrame/BetterTween.js";
104
+ import "../../shared-utils/animationFrame/index.js";
88
105
  import "../Components/Tag/AudioTag/index.js";
89
106
  import "../Components/Tag/AudioTag/AudioTag.js";
90
107
  import "../Components/Common/Audio.js";
@@ -98,26 +115,13 @@ import "../Components/Tag/CustomTag.js";
98
115
  import "../tag.config.js";
99
116
  import "../utils/tag/tagCheck.js";
100
117
  import "../utils/tagPosition.js";
101
- import "../../CSS3DRenderPlugin/utils/centerPoint.js";
102
118
  import "../utils/checkRange.js";
103
119
  import "./TagCacheController.js";
104
120
  import "../../base/BasePlugin.js";
105
- import "../../shared-utils/Subscribe.js";
106
121
  import "../../CSS3DRenderPlugin/Controller.js";
107
- import "../../CSS3DRenderPlugin/CSS3DRender.js";
108
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
109
- import "three/examples/jsm/renderers/CSS3DRenderer";
110
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
111
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
112
- import "../../CSS3DRenderPlugin/utils/even.js";
113
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
114
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
115
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
116
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
117
122
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
118
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
119
- const A = "2.0.0", v = `DnalogelPlugin-PanoTagPlugin@${A}`, _ = !1, Pt = (h) => `${v}--${h}`;
120
- class wt extends N {
123
+ const A = "2.0.1", v = `DnalogelPlugin-PanoTagPlugin@${A}`, _ = !1, Ft = (h) => `${v}--${h}`;
124
+ class kt extends N {
121
125
  constructor(e, t) {
122
126
  super(e);
123
127
  d(this, "version", A);
@@ -143,7 +147,7 @@ class wt extends N {
143
147
  this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
144
148
  }
145
149
  load(e, t) {
146
- return f(this, null, function* () {
150
+ return m(this, null, function* () {
147
151
  var i, s;
148
152
  if (this.clearTags(), console.log(v, " load:", { data: e }), this.config = c({}, this.config, {
149
153
  globalConfig: (i = e.globalConfig) != null ? i : {},
@@ -158,10 +162,10 @@ class wt extends N {
158
162
  });
159
163
  }
160
164
  addTag(e, t) {
161
- return f(this, null, function* () {
165
+ return m(this, null, function* () {
162
166
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
163
167
  const n = this.getTagConfig(o);
164
- return m(p({}, o), {
168
+ return f(p({}, o), {
165
169
  state: p({ visible: void 0, unfolded: _ }, n.initialState),
166
170
  hooks: new R(),
167
171
  clickable: n.clickable,
@@ -184,7 +188,7 @@ class wt extends N {
184
188
  this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
185
189
  }
186
190
  show(e) {
187
- return f(this, null, function* () {
191
+ return m(this, null, function* () {
188
192
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
189
193
  if (this.store.disposed)
190
194
  return this.disposedErrorLog();
@@ -192,7 +196,7 @@ class wt extends N {
192
196
  });
193
197
  }
194
198
  hide(e) {
195
- return f(this, null, function* () {
199
+ return m(this, null, function* () {
196
200
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
197
201
  if (this.store.disposed)
198
202
  return this.disposedErrorLog();
@@ -258,7 +262,7 @@ class wt extends N {
258
262
  this.mediaStore.set({ currentMediaElement: null });
259
263
  }
260
264
  setVisibleAndUnfolded() {
261
- return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
265
+ return m(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
262
266
  if (!!this.isPanorama)
263
267
  return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
264
268
  setTimeout(() => {
@@ -326,7 +330,7 @@ class wt extends N {
326
330
  handleFiveWantsMoveToPano() {
327
331
  this.tags.forEach((e) => {
328
332
  const t = this.getTagConfig(e);
329
- typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = m(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = m(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
333
+ typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = f(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = f(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
330
334
  }), this.updateTagContainerVisible();
331
335
  }
332
336
  temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
@@ -372,9 +376,9 @@ class wt extends N {
372
376
  this.updateRenderPointTag();
373
377
  }
374
378
  handleFivePanoArrived() {
375
- return f(this, null, function* () {
379
+ return m(this, null, function* () {
376
380
  yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
377
- e.temporaryState = m(p({}, e.temporaryState), { visible: !0 });
381
+ e.temporaryState = f(p({}, e.temporaryState), { visible: !0 });
378
382
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
379
383
  });
380
384
  }
@@ -460,7 +464,7 @@ class wt extends N {
460
464
  }
461
465
  }
462
466
  export {
463
- wt as PanoTagPluginController,
464
- wt as default,
465
- Pt as pluginFlag
467
+ kt as PanoTagPluginController,
468
+ kt as default,
469
+ Ft as pluginFlag
466
470
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./controller/index.js";
2
- import { default as Qo, pluginFlag as Ro } from "./controller/index.js";
3
- import { ContentType as Uo } from "./typings/tag/TagData.js";
4
- import { DimensionType as Wo, PointType as Xo } from "./typings/tag/Utils.js";
2
+ import { default as Vo, pluginFlag as Wo } from "./controller/index.js";
3
+ import { ContentType as Yo } from "./typings/tag/TagData.js";
4
+ import { DimensionType as _o, PointType as $o } from "./typings/tag/Utils.js";
5
5
  import "@realsee/five";
6
6
  import "three";
7
7
  import "object-assign-deep";
@@ -46,6 +46,24 @@ import "swiper/css/autoplay";
46
46
  import "./utils/noTypecheck.js";
47
47
  import "./Components/Common/MediaItem.js";
48
48
  import "./Components/Tag/MarketingTag.js";
49
+ import "hammerjs";
50
+ import "@tweenjs/tween.js";
51
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
52
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
53
+ import "three/examples/jsm/renderers/CSS3DRenderer";
54
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
55
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
56
+ import "../CSS3DRenderPlugin/utils/even.js";
57
+ import "../shared-utils/Subscribe.js";
58
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
59
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
60
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
61
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
62
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
63
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
64
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
65
+ import "../shared-utils/animationFrame/BetterTween.js";
66
+ import "../shared-utils/animationFrame/index.js";
49
67
  import "./Components/Tag/AudioTag/index.js";
50
68
  import "./Components/Tag/AudioTag/AudioTag.js";
51
69
  import "./Components/Common/Audio.js";
@@ -59,7 +77,6 @@ import "./Components/Common/Icon/Icon.js";
59
77
  import "./utils/getImageInfo.js";
60
78
  import "./Components/Tag/CustomTag.js";
61
79
  import "./Components/Common/TagPoint.js";
62
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
63
80
  import "./utils/addDebugPoints.js";
64
81
  import "./utils/planeNormal.js";
65
82
  import "./utils/actionAfterFiveModelLoad.js";
@@ -71,33 +88,20 @@ import "./controller/TagComputer.js";
71
88
  import "./tag.config.js";
72
89
  import "./utils/tag/tagCheck.js";
73
90
  import "./utils/tagPosition.js";
74
- import "../CSS3DRenderPlugin/utils/centerPoint.js";
75
91
  import "./utils/checkRange.js";
76
92
  import "./controller/TagCacheController.js";
77
93
  import "../base/BasePlugin.js";
78
- import "../shared-utils/Subscribe.js";
79
94
  import "../CSS3DRenderPlugin/index.js";
80
95
  import "../CSS3DRenderPlugin/Controller.js";
81
- import "../CSS3DRenderPlugin/CSS3DRender.js";
82
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
83
- import "three/examples/jsm/renderers/CSS3DRenderer";
84
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
85
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
86
- import "../CSS3DRenderPlugin/utils/even.js";
87
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
88
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
89
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
90
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
91
96
  import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
92
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
93
97
  import "./utils/tag/format.js";
94
- const Mo = (o, r) => new t(o, r);
98
+ const Ro = (o, r) => new t(o, r);
95
99
  export {
96
- Uo as ContentType,
97
- Wo as DimensionType,
98
- Mo as PanoTagPlugin,
99
- Qo as PanoTagPluginController,
100
- Xo as PointType,
101
- Mo as default,
102
- Ro as pluginFlag
100
+ Yo as ContentType,
101
+ _o as DimensionType,
102
+ Ro as PanoTagPlugin,
103
+ Vo as PanoTagPluginController,
104
+ $o as PointType,
105
+ Ro as default,
106
+ Wo as pluginFlag
103
107
  };
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.9-alpha.1",
10
+ "version": "2.3.9-alpha.2",
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*",