@realsee/dnalogel 2.3.9-alpha.1 → 2.3.9-alpha.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 (254) hide show
  1. package/dist/index.cjs.js +54 -54
  2. package/dist/index.js +4837 -4792
  3. package/dist/index.umd.js +47 -47
  4. package/dist/shared-utils/audio.d.ts +19 -0
  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/AudioAppearance.html +5 -5
  157. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  158. package/docs/types/CSS3DRenderExportType.html +5 -5
  159. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  160. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  161. package/docs/types/Color.html +5 -5
  162. package/docs/types/ContentTypeConfigKey.html +5 -5
  163. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  164. package/docs/types/ContentTypeMap.html +5 -5
  165. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  166. package/docs/types/Create3DElementReturnType.html +5 -5
  167. package/docs/types/CruisePluginExportType.html +5 -5
  168. package/docs/types/Direction-1.html +5 -5
  169. package/docs/types/Direction4.html +5 -5
  170. package/docs/types/FloorplanRuleLabels.html +5 -5
  171. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  172. package/docs/types/GuideLinePluginExportType.html +5 -5
  173. package/docs/types/HelperEventMap.html +5 -5
  174. package/docs/types/LoadTagConfig.html +5 -5
  175. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  176. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  177. package/docs/types/MediaData.html +5 -5
  178. package/docs/types/MediaStore.html +5 -5
  179. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  180. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  181. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  182. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  183. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  184. package/docs/types/MoveArgs.html +5 -5
  185. package/docs/types/MoveOpts.html +5 -5
  186. package/docs/types/Object3DHelperEventMap.html +5 -5
  187. package/docs/types/ObjectFit.html +5 -5
  188. package/docs/types/PaintBrushEventMap.html +5 -5
  189. package/docs/types/PanoCompassPluginData.html +5 -5
  190. package/docs/types/PanoCompassPluginExportType.html +5 -5
  191. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  192. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  193. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  194. package/docs/types/PanoIndex.html +5 -5
  195. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  196. package/docs/types/PanoMeasureReturnType.html +5 -5
  197. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  198. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  199. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  200. package/docs/types/PlaneTag.html +5 -5
  201. package/docs/types/PlaneTagElement.html +5 -5
  202. package/docs/types/Point2DElement.html +5 -5
  203. package/docs/types/Point2DTag.html +5 -5
  204. package/docs/types/Point3DElement.html +5 -5
  205. package/docs/types/Point3DTag.html +5 -5
  206. package/docs/types/PointTag.html +5 -5
  207. package/docs/types/PointTagElement.html +5 -5
  208. package/docs/types/Position.html +5 -5
  209. package/docs/types/RotateArgs.html +5 -5
  210. package/docs/types/RotateOpts.html +5 -5
  211. package/docs/types/RuleLabelsKey.html +5 -5
  212. package/docs/types/RuleLabelsValue.html +5 -5
  213. package/docs/types/StickType.html +5 -5
  214. package/docs/types/Tag.html +5 -5
  215. package/docs/types/Tag2D.html +5 -5
  216. package/docs/types/Tag3D.html +5 -5
  217. package/docs/types/TagContentType.html +5 -5
  218. package/docs/types/TagDimensionType.html +5 -5
  219. package/docs/types/TagElement.html +5 -5
  220. package/docs/types/TagEvents.html +5 -5
  221. package/docs/types/TagHooks.html +5 -5
  222. package/docs/types/TagIconSize.html +5 -5
  223. package/docs/types/TagId.html +5 -5
  224. package/docs/types/TagPointType.html +5 -5
  225. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  226. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  227. package/docs/types/WorkCode.html +5 -5
  228. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  229. package/docs/variables/PLUGIN.html +5 -5
  230. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  231. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  232. package/docs/variables/VERSION.html +5 -5
  233. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  234. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  235. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  236. package/libs/CruisePlugin/Controller.js +1 -1
  237. package/libs/PanoTagPlugin/Components/Common/Audio.js +131 -132
  238. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  239. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +1 -1
  240. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +66 -64
  241. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +17 -16
  242. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +3 -2
  243. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +164 -143
  244. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +54 -54
  245. package/libs/PanoTagPlugin/Components/Tag/index.js +111 -91
  246. package/libs/PanoTagPlugin/Components/TagContainer.js +38 -18
  247. package/libs/PanoTagPlugin/Components/TagItem.js +64 -44
  248. package/libs/PanoTagPlugin/controller/index.js +40 -35
  249. package/libs/PanoTagPlugin/index.js +30 -25
  250. package/libs/index.js +93 -92
  251. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +25 -32
  252. package/libs/shared-utils/audio.d.ts +19 -0
  253. package/libs/shared-utils/audio.js +75 -0
  254. package/package.json +1 -1
@@ -38,9 +38,29 @@ 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";
63
+ import "../../shared-utils/audio.js";
44
64
  import "./Common/Icon/audioIcon.js";
45
65
  import "./Tag/AudioTag/AudioPlaneTag.js";
46
66
  import "../utils/timeToString.js";
@@ -85,12 +105,12 @@ function x(o) {
85
105
  c() {
86
106
  G(e.$$.fragment);
87
107
  },
88
- m(i, r) {
89
- H(e, i, r), t = !0;
108
+ m(i, n) {
109
+ H(e, i, n), t = !0;
90
110
  },
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);
111
+ p(i, n) {
112
+ const l = {};
113
+ 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
114
  },
95
115
  i(i) {
96
116
  t || (v(e.$$.fragment, i), t = !0);
@@ -126,12 +146,12 @@ function tt(o) {
126
146
  c() {
127
147
  G(e.$$.fragment);
128
148
  },
129
- m(i, r) {
130
- H(e, i, r), t = !0;
149
+ m(i, n) {
150
+ H(e, i, n), t = !0;
131
151
  },
132
- p(i, r) {
133
- const p = {};
134
- r & 2 && (p.tag = i[1]), e.$set(p);
152
+ p(i, n) {
153
+ const l = {};
154
+ n & 2 && (l.tag = i[1]), e.$set(l);
135
155
  },
136
156
  i(i) {
137
157
  t || (v(e.$$.fragment, i), t = !0);
@@ -145,71 +165,71 @@ function tt(o) {
145
165
  };
146
166
  }
147
167
  function et(o) {
148
- let e, t, i, r, p, f, s, g, u;
168
+ let e, t, i, n, l, f, s, g, u;
149
169
  const w = [x, Z], c = [];
150
- function T(n, l) {
151
- return n[12] ? 0 : 1;
170
+ function T(r, m) {
171
+ return r[12] ? 0 : 1;
152
172
  }
153
- i = T(o), r = c[i] = w[i](o);
173
+ i = T(o), n = c[i] = w[i](o);
154
174
  const a = [tt, $], _ = [];
155
- function A(n, l) {
156
- return n[13] ? 0 : 1;
175
+ function A(r, m) {
176
+ return r[13] ? 0 : 1;
157
177
  }
158
178
  return f = A(o), s = _[f] = a[f](o), {
159
179
  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]);
180
+ 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
181
  },
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;
182
+ m(r, m) {
183
+ z(r, e, m), j(e, t), c[i].m(t, null), j(t, l), _[f].m(t, null), u = !0;
164
184
  },
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));
185
+ p(r, [m]) {
186
+ let p = i;
187
+ i = T(r), i === p ? c[i].p(r, m) : (E(), k(c[p], 1, 1, () => {
188
+ c[p] = null;
189
+ }), 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
190
  let b = f;
171
- f = A(n), f === b ? _[f].p(n, l) : (E(), k(_[b], 1, 1, () => {
191
+ f = A(r), f === b ? _[f].p(r, m) : (E(), k(_[b], 1, 1, () => {
172
192
  _[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]);
193
+ }), 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
194
  },
175
- i(n) {
176
- u || (v(r), v(s), u = !0);
195
+ i(r) {
196
+ u || (v(n), v(s), u = !0);
177
197
  },
178
- o(n) {
179
- k(r), k(s), u = !1;
198
+ o(r) {
199
+ k(n), k(s), u = !1;
180
200
  },
181
- d(n) {
182
- n && C(e), c[i].d(), _[f].d();
201
+ d(r) {
202
+ r && C(e), c[i].d(), _[f].d();
183
203
  }
184
204
  };
185
205
  }
186
206
  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);
207
+ 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;
208
+ const m = U("hooks");
209
+ return o.$$set = (p) => {
210
+ "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
211
  }, 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);
212
+ var p, b, L, I, q, D, R, V;
213
+ 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
214
  }, [
195
215
  T,
196
216
  a,
197
217
  _,
198
218
  A,
199
- n,
219
+ r,
200
220
  c,
201
221
  w,
202
222
  u,
203
223
  g,
204
224
  s,
205
225
  f,
206
- p,
207
- r,
226
+ l,
227
+ n,
208
228
  i,
209
- l
229
+ m
210
230
  ];
211
231
  }
212
- class ee extends K {
232
+ class ve extends K {
213
233
  constructor(e) {
214
234
  super(), M(
215
235
  this,
@@ -229,5 +249,5 @@ class ee extends K {
229
249
  }
230
250
  }
231
251
  export {
232
- ee as default
252
+ ve as default
233
253
  };
@@ -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));
@@ -28,9 +28,9 @@ var f = (h, a, e) => new Promise((t, i) => {
28
28
  n((e = e.apply(h, a)).next());
29
29
  });
30
30
  import { Subscribe as R } from "@realsee/five";
31
- import { Quaternion as F } from "three";
31
+ import { Quaternion as k } from "three";
32
32
  import c from "object-assign-deep";
33
- import { writable as k } from "../../vendor/svelte/store/index.js";
33
+ import { writable as F } from "../../vendor/svelte/store/index.js";
34
34
  import U from "../Components/TagContainer.js";
35
35
  import L from "../Components/Tag/index.js";
36
36
  import { arrayPositionToVector3 as g } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
@@ -44,6 +44,7 @@ import { resizeObserver as D } from "../utils/resizeObserver.js";
44
44
  import { TagComputer as N } from "./TagComputer.js";
45
45
  import { CSS3DRenderPlugin as z } from "../../CSS3DRenderPlugin/index.js";
46
46
  import W from "../utils/tag/format.js";
47
+ import { generateBlankAudio as _ } from "../../shared-utils/audio.js";
47
48
  import "../../vendor/svelte/internal/index.js";
48
49
  import "../Components/TagItem.js";
49
50
  import "../utils/noTypecheck.js";
@@ -85,6 +86,23 @@ import "swiper/css";
85
86
  import "swiper/css/autoplay";
86
87
  import "../Components/Common/MediaItem.js";
87
88
  import "../Components/Tag/MarketingTag.js";
89
+ import "hammerjs";
90
+ import "@tweenjs/tween.js";
91
+ import "../../CSS3DRenderPlugin/CSS3DRender.js";
92
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
93
+ import "three/examples/jsm/renderers/CSS3DRenderer";
94
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
95
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
96
+ import "../../CSS3DRenderPlugin/utils/even.js";
97
+ import "../../shared-utils/Subscribe.js";
98
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
99
+ import "../../CSS3DRenderPlugin/utils/centerPoint.js";
100
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
101
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
102
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
103
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
104
+ import "../../shared-utils/animationFrame/BetterTween.js";
105
+ import "../../shared-utils/animationFrame/index.js";
88
106
  import "../Components/Tag/AudioTag/index.js";
89
107
  import "../Components/Tag/AudioTag/AudioTag.js";
90
108
  import "../Components/Common/Audio.js";
@@ -98,26 +116,13 @@ import "../Components/Tag/CustomTag.js";
98
116
  import "../tag.config.js";
99
117
  import "../utils/tag/tagCheck.js";
100
118
  import "../utils/tagPosition.js";
101
- import "../../CSS3DRenderPlugin/utils/centerPoint.js";
102
119
  import "../utils/checkRange.js";
103
120
  import "./TagCacheController.js";
104
121
  import "../../base/BasePlugin.js";
105
- import "../../shared-utils/Subscribe.js";
106
122
  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
123
  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 {
124
+ const A = "2.0.2", v = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, Ut = (h) => `${v}--${h}`;
125
+ class Lt extends N {
121
126
  constructor(e, t) {
122
127
  super(e);
123
128
  d(this, "version", A);
@@ -127,7 +132,7 @@ class wt extends N {
127
132
  d(this, "css3DRenderPlugin");
128
133
  d(this, "TagContainerSvelte");
129
134
  d(this, "temporaryState", { visible: !0 });
130
- d(this, "mediaStore", k({
135
+ d(this, "mediaStore", F({
131
136
  currentMediaElement: null
132
137
  }));
133
138
  d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
@@ -140,10 +145,10 @@ class wt extends N {
140
145
  d(this, "disposedErrorLog", () => {
141
146
  console.error(`${v} is disposed`);
142
147
  });
143
- 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 });
148
+ this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, _(1), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
144
149
  }
145
150
  load(e, t) {
146
- return f(this, null, function* () {
151
+ return m(this, null, function* () {
147
152
  var i, s;
148
153
  if (this.clearTags(), console.log(v, " load:", { data: e }), this.config = c({}, this.config, {
149
154
  globalConfig: (i = e.globalConfig) != null ? i : {},
@@ -158,11 +163,11 @@ class wt extends N {
158
163
  });
159
164
  }
160
165
  addTag(e, t) {
161
- return f(this, null, function* () {
166
+ return m(this, null, function* () {
162
167
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
163
168
  const n = this.getTagConfig(o);
164
- return m(p({}, o), {
165
- state: p({ visible: void 0, unfolded: _ }, n.initialState),
169
+ return f(p({}, o), {
170
+ state: p({ visible: void 0, unfolded: $ }, n.initialState),
166
171
  hooks: new R(),
167
172
  clickable: n.clickable,
168
173
  mergedConfig: n
@@ -184,7 +189,7 @@ class wt extends N {
184
189
  this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
185
190
  }
186
191
  show(e) {
187
- return f(this, null, function* () {
192
+ return m(this, null, function* () {
188
193
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
189
194
  if (this.store.disposed)
190
195
  return this.disposedErrorLog();
@@ -192,7 +197,7 @@ class wt extends N {
192
197
  });
193
198
  }
194
199
  hide(e) {
195
- return f(this, null, function* () {
200
+ return m(this, null, function* () {
196
201
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
197
202
  if (this.store.disposed)
198
203
  return this.disposedErrorLog();
@@ -258,7 +263,7 @@ class wt extends N {
258
263
  this.mediaStore.set({ currentMediaElement: null });
259
264
  }
260
265
  setVisibleAndUnfolded() {
261
- return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
266
+ return m(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
262
267
  if (!!this.isPanorama)
263
268
  return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
264
269
  setTimeout(() => {
@@ -326,7 +331,7 @@ class wt extends N {
326
331
  handleFiveWantsMoveToPano() {
327
332
  this.tags.forEach((e) => {
328
333
  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) }));
334
+ 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
335
  }), this.updateTagContainerVisible();
331
336
  }
332
337
  temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
@@ -372,9 +377,9 @@ class wt extends N {
372
377
  this.updateRenderPointTag();
373
378
  }
374
379
  handleFivePanoArrived() {
375
- return f(this, null, function* () {
380
+ return m(this, null, function* () {
376
381
  yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
377
- e.temporaryState = m(p({}, e.temporaryState), { visible: !0 });
382
+ e.temporaryState = f(p({}, e.temporaryState), { visible: !0 });
378
383
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
379
384
  });
380
385
  }
@@ -414,7 +419,7 @@ class wt extends N {
414
419
  state: this.state,
415
420
  temporaryState: this.temporaryState
416
421
  }), !n.equals(r)) {
417
- const l = new F().setFromUnitVectors(n, r);
422
+ const l = new k().setFromUnitVectors(n, r);
418
423
  o.css3DObject.setRotationFromQuaternion(l);
419
424
  }
420
425
  } else {
@@ -460,7 +465,7 @@ class wt extends N {
460
465
  }
461
466
  }
462
467
  export {
463
- wt as PanoTagPluginController,
464
- wt as default,
465
- Pt as pluginFlag
468
+ Lt as PanoTagPluginController,
469
+ Lt as default,
470
+ Ut as pluginFlag
466
471
  };
@@ -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 Wo, pluginFlag as Xo } from "./controller/index.js";
3
+ import { ContentType as Zo } from "./typings/tag/TagData.js";
4
+ import { DimensionType as $o, PointType as or } from "./typings/tag/Utils.js";
5
5
  import "@realsee/five";
6
6
  import "three";
7
7
  import "object-assign-deep";
@@ -46,9 +46,28 @@ 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";
70
+ import "../shared-utils/audio.js";
52
71
  import "./Components/Common/Icon/audioIcon.js";
53
72
  import "./Components/Tag/AudioTag/AudioPlaneTag.js";
54
73
  import "./utils/timeToString.js";
@@ -59,7 +78,6 @@ import "./Components/Common/Icon/Icon.js";
59
78
  import "./utils/getImageInfo.js";
60
79
  import "./Components/Tag/CustomTag.js";
61
80
  import "./Components/Common/TagPoint.js";
62
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
63
81
  import "./utils/addDebugPoints.js";
64
82
  import "./utils/planeNormal.js";
65
83
  import "./utils/actionAfterFiveModelLoad.js";
@@ -71,33 +89,20 @@ import "./controller/TagComputer.js";
71
89
  import "./tag.config.js";
72
90
  import "./utils/tag/tagCheck.js";
73
91
  import "./utils/tagPosition.js";
74
- import "../CSS3DRenderPlugin/utils/centerPoint.js";
75
92
  import "./utils/checkRange.js";
76
93
  import "./controller/TagCacheController.js";
77
94
  import "../base/BasePlugin.js";
78
- import "../shared-utils/Subscribe.js";
79
95
  import "../CSS3DRenderPlugin/index.js";
80
96
  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
97
  import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
92
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
93
98
  import "./utils/tag/format.js";
94
- const Mo = (o, r) => new t(o, r);
99
+ const So = (o, r) => new t(o, r);
95
100
  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
101
+ Zo as ContentType,
102
+ $o as DimensionType,
103
+ So as PanoTagPlugin,
104
+ Wo as PanoTagPluginController,
105
+ or as PointType,
106
+ So as default,
107
+ Xo as pluginFlag
103
108
  };