@realsee/dnalogel 2.3.9-alpha.0 → 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 (248) hide show
  1. package/dist/PanoTagPlugin/controller/index.d.ts +2 -2
  2. package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
  3. package/dist/index.cjs.js +16 -16
  4. package/dist/index.js +2520 -2508
  5. package/dist/index.umd.js +17 -17
  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 +45 -45
  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/AudioAppearance.html +5 -5
  158. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  159. package/docs/types/CSS3DRenderExportType.html +5 -5
  160. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  161. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  162. package/docs/types/Color.html +5 -5
  163. package/docs/types/ContentTypeConfigKey.html +5 -5
  164. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  165. package/docs/types/ContentTypeMap.html +5 -5
  166. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  167. package/docs/types/Create3DElementReturnType.html +5 -5
  168. package/docs/types/CruisePluginExportType.html +5 -5
  169. package/docs/types/Direction-1.html +5 -5
  170. package/docs/types/Direction4.html +5 -5
  171. package/docs/types/FloorplanRuleLabels.html +5 -5
  172. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  173. package/docs/types/GuideLinePluginExportType.html +5 -5
  174. package/docs/types/HelperEventMap.html +5 -5
  175. package/docs/types/LoadTagConfig.html +5 -5
  176. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  177. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  178. package/docs/types/MediaData.html +5 -5
  179. package/docs/types/MediaStore.html +5 -5
  180. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  181. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  182. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  183. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  184. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  185. package/docs/types/MoveArgs.html +5 -5
  186. package/docs/types/MoveOpts.html +5 -5
  187. package/docs/types/Object3DHelperEventMap.html +5 -5
  188. package/docs/types/ObjectFit.html +5 -5
  189. package/docs/types/PaintBrushEventMap.html +5 -5
  190. package/docs/types/PanoCompassPluginData.html +5 -5
  191. package/docs/types/PanoCompassPluginExportType.html +5 -5
  192. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  193. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  194. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  195. package/docs/types/PanoIndex.html +5 -5
  196. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  197. package/docs/types/PanoMeasureReturnType.html +5 -5
  198. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  199. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  200. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  201. package/docs/types/PlaneTag.html +5 -5
  202. package/docs/types/PlaneTagElement.html +5 -5
  203. package/docs/types/Point2DElement.html +5 -5
  204. package/docs/types/Point2DTag.html +5 -5
  205. package/docs/types/Point3DElement.html +5 -5
  206. package/docs/types/Point3DTag.html +5 -5
  207. package/docs/types/PointTag.html +5 -5
  208. package/docs/types/PointTagElement.html +5 -5
  209. package/docs/types/Position.html +5 -5
  210. package/docs/types/RotateArgs.html +5 -5
  211. package/docs/types/RotateOpts.html +5 -5
  212. package/docs/types/RuleLabelsKey.html +5 -5
  213. package/docs/types/RuleLabelsValue.html +5 -5
  214. package/docs/types/StickType.html +5 -5
  215. package/docs/types/Tag.html +5 -5
  216. package/docs/types/Tag2D.html +5 -5
  217. package/docs/types/Tag3D.html +5 -5
  218. package/docs/types/TagContentType.html +5 -5
  219. package/docs/types/TagDimensionType.html +5 -5
  220. package/docs/types/TagElement.html +5 -5
  221. package/docs/types/TagEvents.html +5 -5
  222. package/docs/types/TagHooks.html +5 -5
  223. package/docs/types/TagIconSize.html +5 -5
  224. package/docs/types/TagId.html +5 -5
  225. package/docs/types/TagPointType.html +5 -5
  226. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  227. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  228. package/docs/types/WorkCode.html +5 -5
  229. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  230. package/docs/variables/PLUGIN.html +5 -5
  231. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  232. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  233. package/docs/variables/VERSION.html +5 -5
  234. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  235. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  236. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  237. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +164 -143
  238. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +54 -54
  239. package/libs/PanoTagPlugin/Components/Tag/index.js +110 -91
  240. package/libs/PanoTagPlugin/Components/TagContainer.js +37 -18
  241. package/libs/PanoTagPlugin/Components/TagItem.js +63 -44
  242. package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
  243. package/libs/PanoTagPlugin/controller/index.js +49 -35
  244. package/libs/PanoTagPlugin/index.js +29 -25
  245. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
  246. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +7 -1
  247. package/libs/PanoTagPlugin/utils/index.js +10 -9
  248. 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
  };
@@ -35,11 +35,11 @@ declare class PanoTagPluginController extends TagComputer {
35
35
  /**
36
36
  * @description: 加载数据
37
37
  */
38
- load(data: Tags, config?: LoadTagConfig): void;
38
+ load(data: Tags, config?: LoadTagConfig): Promise<boolean>;
39
39
  /**
40
40
  * @description: 添加标签
41
41
  */
42
- addTag(tag: Tag | Tag[], config?: AddTagConfig): void;
42
+ addTag(tag: Tag | Tag[], config?: AddTagConfig): Promise<boolean>;
43
43
  /**
44
44
  * @description: 改变配置
45
45
  */
@@ -36,7 +36,7 @@ import L from "../Components/Tag/index.js";
36
36
  import { arrayPositionToVector3 as g } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
37
  import { addDebugPoints as O } from "../utils/addDebugPoints.js";
38
38
  import { planeNormal as I } from "../utils/planeNormal.js";
39
- import { actionAfterFiveModelLoad as B } from "../utils/actionAfterFiveModelLoad.js";
39
+ import { waitFiveModelLoaded as B } from "../utils/actionAfterFiveModelLoad.js";
40
40
  import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
41
41
  import { debounce as C } from "../utils/debounce.js";
42
42
  import { throttle as V } from "../utils/throttle.js";
@@ -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-dev.15", 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,25 +147,35 @@ 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
- var i, s;
147
- this.clearTags(), console.log(v, " load:", { data: e }), this.config = c({}, this.config, {
148
- globalConfig: (i = e.globalConfig) != null ? i : {},
149
- contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
150
- }), this.addTag(e.tagList, t), this.debug && O(this.five, this.tags);
150
+ return m(this, null, function* () {
151
+ var i, s;
152
+ if (this.clearTags(), console.log(v, " load:", { data: e }), this.config = c({}, this.config, {
153
+ globalConfig: (i = e.globalConfig) != null ? i : {},
154
+ contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
155
+ }), this.debug)
156
+ try {
157
+ O(this.five, this.tags);
158
+ } catch (o) {
159
+ console.error(o);
160
+ }
161
+ return this.addTag(e.tagList, t);
162
+ });
151
163
  }
152
164
  addTag(e, t) {
153
- const s = (Array.isArray(e) ? e : [e]).map((o) => {
154
- const n = this.getTagConfig(o);
155
- return f(p({}, o), {
156
- state: p({ visible: void 0, unfolded: _ }, n.initialState),
157
- hooks: new R(),
158
- clickable: n.clickable,
159
- mergedConfig: n
165
+ return m(this, null, function* () {
166
+ const s = (Array.isArray(e) ? e : [e]).map((o) => {
167
+ const n = this.getTagConfig(o);
168
+ return f(p({}, o), {
169
+ state: p({ visible: void 0, unfolded: _ }, n.initialState),
170
+ hooks: new R(),
171
+ clickable: n.clickable,
172
+ mergedConfig: n
173
+ });
174
+ }).filter((o) => o.position);
175
+ return s.forEach(W), this.tags.push(...s), B(this.five).then(() => {
176
+ var o, n, r;
177
+ return this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), !0;
160
178
  });
161
- }).filter((o) => o.position);
162
- s.forEach(W), this.tags.push(...s), B(this.five, () => {
163
- var o, n, r;
164
- this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
165
179
  });
166
180
  }
167
181
  changeConfig(e, t = !0) {
@@ -450,7 +464,7 @@ class wt extends N {
450
464
  }
451
465
  }
452
466
  export {
453
- wt as PanoTagPluginController,
454
- wt as default,
455
- Pt as pluginFlag
467
+ kt as PanoTagPluginController,
468
+ kt as default,
469
+ Ft as pluginFlag
456
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
  };
@@ -1,2 +1,3 @@
1
1
  import type { Five } from '@realsee/five';
2
2
  export declare function actionAfterFiveModelLoad(five: Five, fuc: () => any): void;
3
+ export declare function waitFiveModelLoaded(five: Five): Promise<void>;
@@ -1,6 +1,12 @@
1
1
  function d(e, o) {
2
2
  e.model.loaded ? o() : e.once("modelLoaded", () => o());
3
3
  }
4
+ function l(e) {
5
+ return new Promise((o) => {
6
+ e.model.loaded ? o() : e.once("modelLoaded", () => o());
7
+ });
8
+ }
4
9
  export {
5
- d as actionAfterFiveModelLoad
10
+ d as actionAfterFiveModelLoad,
11
+ l as waitFiveModelLoaded
6
12
  };
@@ -3,34 +3,35 @@ import { even as a } from "../../CSS3DRenderPlugin/utils/even.js";
3
3
  import { random as n } from "../../CSS3DRenderPlugin/utils/random.js";
4
4
  import { anyPositionToVector3 as f, arrayPositionToVector3 as x, positionToVector3 as s } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
5
5
  import { addDebugPoints as l } from "./addDebugPoints.js";
6
- import { noTypecheck as d } from "./noTypecheck.js";
6
+ import { noTypecheck as P } from "./noTypecheck.js";
7
7
  import { planeNormal as T } from "./planeNormal.js";
8
8
  import { tagPosition as b } from "./tagPosition.js";
9
9
  import { checkRange as u } from "./checkRange.js";
10
- import { actionAfterFiveModelLoad as v } from "./actionAfterFiveModelLoad.js";
10
+ import { actionAfterFiveModelLoad as y, waitFiveModelLoaded as F } from "./actionAfterFiveModelLoad.js";
11
11
  import { normalPositionToPositions as k } from "./normalPositionToPositions.js";
12
12
  import { debounce as S } from "./debounce.js";
13
- import { throttle as A } from "./throttle.js";
14
- import { binarySearchFirstBig as D, searchFirstValueSmallThanLastValue as M } from "./search.js";
13
+ import { throttle as z } from "./throttle.js";
14
+ import { binarySearchFirstBig as B, searchFirstValueSmallThanLastValue as D } from "./search.js";
15
15
  import { resizeObserver as O } from "./resizeObserver.js";
16
16
  import "three";
17
17
  export {
18
- v as actionAfterFiveModelLoad,
18
+ y as actionAfterFiveModelLoad,
19
19
  l as addDebugPoints,
20
20
  f as anyPositionToVector3,
21
21
  x as arrayPositionToVector3,
22
- D as binarySearchFirstBig,
22
+ B as binarySearchFirstBig,
23
23
  t as centerPoint,
24
24
  u as checkRange,
25
25
  S as debounce,
26
26
  a as even,
27
- d as noTypecheck,
27
+ P as noTypecheck,
28
28
  k as normalPositionToPositions,
29
29
  T as planeNormal,
30
30
  s as positionToVector3,
31
31
  n as random,
32
32
  O as resizeObserver,
33
- M as searchFirstValueSmallThanLastValue,
33
+ D as searchFirstValueSmallThanLastValue,
34
34
  b as tagPosition,
35
- A as throttle
35
+ z as throttle,
36
+ F as waitFiveModelLoaded
36
37
  };
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.0",
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*",