@realsee/dnalogel 3.79.0-alpha.0 → 3.79.0

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 (64) hide show
  1. package/CHANGELOG.md +832 -832
  2. package/dist/GuideLinePlugin/Controller.d.ts +34 -2
  3. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +7 -2
  4. package/dist/PanoTagPlugin/Components/Common/Arrow.svelte.d.ts +1 -0
  5. package/dist/PanoTagPlugin/Components/Common/Line/Polyline.svelte.d.ts +1 -0
  6. package/dist/PanoTagPlugin/Components/Common/Line/Straight.svelte.d.ts +1 -0
  7. package/dist/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +1 -0
  8. package/dist/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +1 -0
  9. package/dist/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +1 -0
  10. package/dist/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +1 -0
  11. package/dist/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +1 -0
  12. package/dist/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +1 -0
  13. package/dist/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +1 -0
  14. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -6
  15. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +3 -2
  16. package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
  17. package/dist/PanoTagPlugin/utils/doUtil.d.ts +1 -0
  18. package/dist/index.cjs.js +102 -97
  19. package/dist/index.js +16607 -14562
  20. package/dist/index.umd.js +95 -90
  21. package/libs/CruisePlugin/Move.js +27 -14
  22. package/libs/CruisePlugin/Work.js +74 -61
  23. package/libs/CruisePlugin/index.js +31 -18
  24. package/libs/GuideLinePlugin/Components/Tag.js +151 -163
  25. package/libs/GuideLinePlugin/Controller.d.ts +34 -2
  26. package/libs/GuideLinePlugin/Controller.js +85 -38
  27. package/libs/GuideLinePlugin/GuideLineItem.js +27 -14
  28. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +76 -69
  29. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +7 -2
  30. package/libs/GuideLinePlugin/GuideLineModeItem.js +27 -14
  31. package/libs/GuideLinePlugin/index.js +31 -18
  32. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +77 -87
  33. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +135 -189
  34. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopup.js +432 -460
  35. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +198 -0
  36. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +1 -0
  37. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +258 -0
  38. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +1 -0
  39. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +358 -0
  40. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +1 -0
  41. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +126 -38
  42. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +259 -0
  43. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +1 -0
  44. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +216 -0
  45. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +1 -0
  46. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +219 -0
  47. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +1 -0
  48. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +134 -0
  49. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +1 -0
  50. package/libs/PanoTagPlugin/Components/Tag/index.js +393 -292
  51. package/libs/PanoTagPlugin/Components/TagContainer.js +135 -125
  52. package/libs/PanoTagPlugin/Components/TagItem.js +321 -318
  53. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +74 -61
  54. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +108 -95
  55. package/libs/PanoTagPlugin/controller/index.js +54 -41
  56. package/libs/PanoTagPlugin/index.js +36 -23
  57. package/libs/PanoTagPlugin/tag.config.js +1 -31
  58. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -6
  59. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +3 -2
  60. package/libs/base/BasePlugin.js +5 -5
  61. package/libs/index.js +182 -169
  62. package/libs/shared-utils/logger.js +1 -1
  63. package/libs/vendor/svelte/internal/index.js +225 -235
  64. package/package.json +2 -1
@@ -2,16 +2,16 @@ var k = Object.defineProperty, O = Object.defineProperties;
2
2
  var F = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
4
  var w = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var f = (e, o, t) => o in e ? k(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, b = (e, o) => {
5
+ var f = (m, o, t) => o in m ? k(m, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[o] = t, b = (m, o) => {
6
6
  for (var t in o || (o = {}))
7
- w.call(o, t) && f(e, t, o[t]);
7
+ w.call(o, t) && f(m, t, o[t]);
8
8
  if (C)
9
9
  for (var t of C(o))
10
- x.call(o, t) && f(e, t, o[t]);
11
- return e;
12
- }, P = (e, o) => O(e, F(o));
13
- var v = (e, o, t) => (f(e, typeof o != "symbol" ? o + "" : o, t), t);
14
- var y = (e, o, t) => new Promise((m, p) => {
10
+ x.call(o, t) && f(m, t, o[t]);
11
+ return m;
12
+ }, P = (m, o) => O(m, F(o));
13
+ var v = (m, o, t) => (f(m, typeof o != "symbol" ? o + "" : o, t), t);
14
+ var y = (m, o, t) => new Promise((e, p) => {
15
15
  var n = (r) => {
16
16
  try {
17
17
  a(t.next(r));
@@ -24,8 +24,8 @@ var y = (e, o, t) => new Promise((m, p) => {
24
24
  } catch (i) {
25
25
  p(i);
26
26
  }
27
- }, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(n, d);
28
- a((t = t.apply(e, o)).next());
27
+ }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(n, d);
28
+ a((t = t.apply(m, o)).next());
29
29
  });
30
30
  import { initialCSS3DRender as L } from "../../../shared-utils/CSS3DRender/index.js";
31
31
  import { CSS3DObjectPlus as N } from "../../../shared-utils/CSS3DRender/CSS3DObject.js";
@@ -69,13 +69,60 @@ import "../../../shared-utils/three/getPositionsByObjectFit.js";
69
69
  import "../../../shared-utils/three/FragmentTransparencyMaterial.js";
70
70
  import "../../../shared-utils/three/getNormal.js";
71
71
  import "../../../vendor/svelte/internal/index.js";
72
- import "../../Components/Tag/MarketingTag.js";
73
- import "../../utils/px2rem.js";
74
- import "../../Components/Common/Shadow.js";
72
+ import "../../Components/Tag/TextTag/index.js";
73
+ import "../../Components/Tag/TextTag/TextTag.js";
74
+ import "../../Components/Common/Line/Straight.js";
75
75
  import "../../../vendor/svelte/transition/index.js";
76
76
  import "../../../vendor/svelte/easing/index.js";
77
+ import "../../../shared-utils/uuid.js";
78
+ import "../../Components/Common/Shadow.js";
79
+ import "../../Components/Common/Text/FlyMText.js";
80
+ import "../../Components/Common/Text/FlyText.js";
81
+ import "../../../vendor/animejs/lib/anime.es.js";
82
+ import "../../utils/search.js";
83
+ import "../../utils/constants.js";
84
+ import "../../Components/Common/Arrow.js";
85
+ import "../../utils/doUtil.js";
77
86
  import "../../../shared-utils/svelte/resizeObserver.js";
78
87
  import "../../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
88
+ import "../../Components/Tag/TextTag/TextPlaneTag.js";
89
+ import "../../Components/Common/Text/MText.js";
90
+ import "../../utils/px2rem.js";
91
+ import "../../Components/Tag/ImageTextTag.js";
92
+ import "../../Components/Common/Line/Polyline.js";
93
+ import "../../Components/Common/Media.js";
94
+ import "../../../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
95
+ import "../../../vendor/svelte-carousel/src/components/Dots/Dots.js";
96
+ import "../../../vendor/svelte-carousel/src/components/Dot/Dot.js";
97
+ import "../../../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
98
+ import "../../../vendor/svelte-carousel/src/direction.js";
99
+ import "../../../vendor/svelte-carousel/src/components/Progress/Progress.js";
100
+ import "../../../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
101
+ import "../../../vendor/svelte-carousel/src/actions/swipeable/event.js";
102
+ import "../../../vendor/svelte-carousel/src/utils/event.js";
103
+ import "../../../vendor/svelte-carousel/src/units.js";
104
+ import "../../../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
105
+ import "../../../vendor/svelte-carousel/src/actions/hoverable/event.js";
106
+ import "../../../vendor/svelte-carousel/src/actions/tappable/tappable.js";
107
+ import "../../../vendor/svelte-carousel/src/utils/math.js";
108
+ import "../../../vendor/svelte-carousel/src/actions/tappable/event.js";
109
+ import "../../../vendor/svelte-carousel/src/utils/page.js";
110
+ import "../../../vendor/svelte-carousel/src/utils/clones.js";
111
+ import "../../../vendor/svelte-carousel/src/utils/object.js";
112
+ import "../../../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
113
+ import "../../../vendor/easy-reactive/src/simply-reactive.js";
114
+ import "../../../vendor/lodash.get/index.js";
115
+ import "../../../_commonjsHelpers.js";
116
+ import "../../../vendor/lodash.clonedeep/index.js";
117
+ import "../../../vendor/easy-reactive/src/utils/subscription.js";
118
+ import "../../../vendor/easy-reactive/src/utils/object.js";
119
+ import "../../../vendor/lodash.isequal/index.js";
120
+ import "../../../vendor/easy-reactive/src/utils/watcher.js";
121
+ import "../../../vendor/svelte-carousel/src/utils/lazy.js";
122
+ import "../../../vendor/svelte-carousel/src/utils/ProgressManager.js";
123
+ import "../../../vendor/svelte-carousel/src/utils/interval.js";
124
+ import "../../Components/Common/MediaItem.js";
125
+ import "../../Components/Tag/MarketingTag.js";
79
126
  import "../../Components/Tag/Assets/marketingIcon.js";
80
127
  import "../../../shared-utils/five/vector3ToScreen.js";
81
128
  import "../../../shared-utils/five/getFiveModel.js";
@@ -116,53 +163,20 @@ import "../../../shared-utils/five/getPosition.js";
116
163
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
117
164
  import "../../../shared-utils/three/PointSelector/utils/contents.js";
118
165
  import "../../../Sculpt/utils/three/rayOnLine.js";
119
- import "../../../vendor/animejs/lib/anime.es.js";
120
166
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
121
167
  import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
122
168
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
123
169
  import "@realsee/five";
124
170
  import "../../utils/noTypecheck.js";
125
171
  import "../../Components/Tag/AudioTag/index.js";
126
- import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
127
- import "../../Components/Common/Icon/audioIcon.js";
128
- import "../../Components/Common/Text/MText.js";
172
+ import "../../Components/Tag/AudioTag/AudioTag.js";
129
173
  import "../../Components/Common/Audio.js";
130
174
  import "../../utils/audio/SharedAudio.js";
131
175
  import "../../../shared-utils/audio.js";
132
176
  import "../../utils/audio/AudioDiagnostics.js";
177
+ import "../../Components/Common/Icon/audioIcon.js";
178
+ import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
133
179
  import "../../Components/Tag/MediaPlane.js";
134
- import "../../Components/Common/Media.js";
135
- import "../../../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
136
- import "../../../vendor/svelte-carousel/src/components/Dots/Dots.js";
137
- import "../../../vendor/svelte-carousel/src/components/Dot/Dot.js";
138
- import "../../../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
139
- import "../../../vendor/svelte-carousel/src/direction.js";
140
- import "../../../vendor/svelte-carousel/src/components/Progress/Progress.js";
141
- import "../../../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
142
- import "../../../vendor/svelte-carousel/src/actions/swipeable/event.js";
143
- import "../../../vendor/svelte-carousel/src/utils/event.js";
144
- import "../../../vendor/svelte-carousel/src/units.js";
145
- import "../../../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
146
- import "../../../vendor/svelte-carousel/src/actions/hoverable/event.js";
147
- import "../../../vendor/svelte-carousel/src/actions/tappable/tappable.js";
148
- import "../../../vendor/svelte-carousel/src/utils/math.js";
149
- import "../../../vendor/svelte-carousel/src/actions/tappable/event.js";
150
- import "../../../vendor/svelte-carousel/src/utils/page.js";
151
- import "../../../vendor/svelte-carousel/src/utils/clones.js";
152
- import "../../../vendor/svelte-carousel/src/utils/object.js";
153
- import "../../../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
154
- import "../../../vendor/easy-reactive/src/simply-reactive.js";
155
- import "../../../vendor/lodash.get/index.js";
156
- import "../../../_commonjsHelpers.js";
157
- import "../../../vendor/lodash.clonedeep/index.js";
158
- import "../../../vendor/easy-reactive/src/utils/subscription.js";
159
- import "../../../vendor/easy-reactive/src/utils/object.js";
160
- import "../../../vendor/lodash.isequal/index.js";
161
- import "../../../vendor/easy-reactive/src/utils/watcher.js";
162
- import "../../../vendor/svelte-carousel/src/utils/lazy.js";
163
- import "../../../vendor/svelte-carousel/src/utils/ProgressManager.js";
164
- import "../../../vendor/svelte-carousel/src/utils/interval.js";
165
- import "../../Components/Common/MediaItem.js";
166
180
  import "../../Components/Tag/LinkTag.js";
167
181
  import "../../Components/Common/Icon/Icon.js";
168
182
  import "../../utils/getImageInfo.js";
@@ -183,7 +197,6 @@ import "../../../shared-utils/url/defaultUrls.js";
183
197
  import "../../../shared-utils/vectorToCoordinate.js";
184
198
  import "../../../shared-utils/formatRad.js";
185
199
  import "../../../shared-utils/five/lookPoint.js";
186
- import "../../../shared-utils/uuid.js";
187
200
  import "../../utils/tagPosition.js";
188
201
  import "../../utils/checkRange.js";
189
202
  import "../../../shared-utils/url/getUrl.js";
@@ -191,9 +204,9 @@ import "../../../shared-utils/five/getFloorIndex.js";
191
204
  import "../../../shared-utils/safeObj.js";
192
205
  import "../../utils/Cache.js";
193
206
  import "../../../shared-utils/promise/withResolvers.js";
194
- class qo extends R {
195
- constructor(t, m) {
196
- super(t, m);
207
+ class rr extends R {
208
+ constructor(t, e) {
209
+ super(t, e);
197
210
  v(this, "loading", !1);
198
211
  /** 加载外部模型 */
199
212
  v(this, "loadModel", () => y(this, null, function* () {
@@ -201,7 +214,7 @@ class qo extends R {
201
214
  const t = this.data.modelUrl;
202
215
  if (!t || (this.loading = !0, yield H(this.five), !this.plugin.tags.includes(this)))
203
216
  return;
204
- const m = A(t).then((r) => y(this, null, function* () {
217
+ const e = A(t).then((r) => y(this, null, function* () {
205
218
  var l;
206
219
  const i = Object.assign(r.scene, {
207
220
  customID: this.id,
@@ -213,9 +226,9 @@ class qo extends R {
213
226
  });
214
227
  return new T.Matrix4().fromArray(this.matrix).decompose(i.position, i.quaternion, i.scale), i.updateWorldMatrix(!0, !0), i.visible = this.visible, (l = this.getConfig().modelConfig) != null && l.autoLookAtEnabled && i.lookAt(this.five.camera.position.clone().setY(i.position.y)), i;
215
228
  }));
216
- this.model = { promise: m };
217
- const p = yield m;
218
- if (this.loading = !1, ((d = this.model) == null ? void 0 : d.promise) !== m || !this.plugin.tags.includes(this))
229
+ this.model = { promise: e };
230
+ const p = yield e;
231
+ if (this.loading = !1, ((d = this.model) == null ? void 0 : d.promise) !== e || !this.plugin.tags.includes(this))
219
232
  return;
220
233
  this.model.object = p;
221
234
  const n = this.plugin.gltfObjectGroup.children.find((r) => r.customID === this.id);
@@ -268,8 +281,8 @@ class qo extends R {
268
281
  this.state.unfolded = !0, L(this.five), this.loadModel().then(() => this.updateVisible());
269
282
  }
270
283
  applyVisible() {
271
- var t, m;
272
- (t = this.tag3DContentSvelte) == null || t.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }), (m = this.model) != null && m.object && (this.model.object.visible = this.visible);
284
+ var t, e;
285
+ (t = this.tag3DContentSvelte) == null || t.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }), (e = this.model) != null && e.object && (this.model.object.visible = this.visible);
273
286
  }
274
287
  set(...t) {
275
288
  super.set(...t), this.loadModel();
@@ -277,13 +290,13 @@ class qo extends R {
277
290
  setData(...t) {
278
291
  var p;
279
292
  super.setData(...t);
280
- const m = this.data.mediaPosition.map(S);
281
- this.computeRenderType() === "Mesh" ? this.mediaPlane && this.mediaPlane.src !== this.data.mediaData[0].url && (this.mediaPlane.removeFromParent(), this.mediaPlane = new D(this.data.mediaData[0].url, m, { objectFit: this.data.objectFit })) : (p = this.tag3DContentSvelte) == null || p.svelteApp.$set({ tag: this });
293
+ const e = this.data.mediaPosition.map(S);
294
+ this.computeRenderType() === "Mesh" ? this.mediaPlane && this.mediaPlane.src !== this.data.mediaData[0].url && (this.mediaPlane.removeFromParent(), this.mediaPlane = new D(this.data.mediaData[0].url, e, { objectFit: this.data.objectFit })) : (p = this.tag3DContentSvelte) == null || p.svelteApp.$set({ tag: this });
282
295
  }
283
296
  computeNormal() {
284
297
  return E(this.data.mediaPosition);
285
298
  }
286
299
  }
287
300
  export {
288
- qo as ModelTag
301
+ rr as ModelTag
289
302
  };
@@ -14,18 +14,18 @@ var y = (c, d, t) => (I(c, typeof d != "symbol" ? d + "" : d, t), t);
14
14
  var C = (c, d, t) => new Promise((e, i) => {
15
15
  var o = (r) => {
16
16
  try {
17
- p(t.next(r));
17
+ m(t.next(r));
18
18
  } catch (n) {
19
19
  i(n);
20
20
  }
21
21
  }, l = (r) => {
22
22
  try {
23
- p(t.throw(r));
23
+ m(t.throw(r));
24
24
  } catch (n) {
25
25
  i(n);
26
26
  }
27
- }, p = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(o, l);
28
- p((t = t.apply(c, d)).next());
27
+ }, m = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(o, l);
28
+ m((t = t.apply(c, d)).next());
29
29
  });
30
30
  import { CONST as M } from "../../../shared-utils/constants.js";
31
31
  import { CSS3DObjectPlus as _ } from "../../../shared-utils/CSS3DRender/CSS3DObject.js";
@@ -68,13 +68,59 @@ import "../../../shared-utils/three/getPositionsByObjectFit.js";
68
68
  import "../../../shared-utils/three/FragmentTransparencyMaterial.js";
69
69
  import "../../../shared-utils/three/getNormal.js";
70
70
  import "../../../vendor/svelte/internal/index.js";
71
- import "../../Components/Tag/MarketingTag.js";
72
- import "../../utils/px2rem.js";
73
- import "../../Components/Common/Shadow.js";
71
+ import "../../Components/Tag/TextTag/index.js";
72
+ import "../../Components/Tag/TextTag/TextTag.js";
73
+ import "../../Components/Common/Line/Straight.js";
74
74
  import "../../../vendor/svelte/transition/index.js";
75
75
  import "../../../vendor/svelte/easing/index.js";
76
+ import "../../Components/Common/Shadow.js";
77
+ import "../../Components/Common/Text/FlyMText.js";
78
+ import "../../Components/Common/Text/FlyText.js";
79
+ import "../../../vendor/animejs/lib/anime.es.js";
80
+ import "../../utils/search.js";
81
+ import "../../utils/constants.js";
82
+ import "../../Components/Common/Arrow.js";
83
+ import "../../utils/doUtil.js";
76
84
  import "../../../shared-utils/svelte/resizeObserver.js";
77
85
  import "../../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
86
+ import "../../Components/Tag/TextTag/TextPlaneTag.js";
87
+ import "../../Components/Common/Text/MText.js";
88
+ import "../../utils/px2rem.js";
89
+ import "../../Components/Tag/ImageTextTag.js";
90
+ import "../../Components/Common/Line/Polyline.js";
91
+ import "../../Components/Common/Media.js";
92
+ import "../../../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
93
+ import "../../../vendor/svelte-carousel/src/components/Dots/Dots.js";
94
+ import "../../../vendor/svelte-carousel/src/components/Dot/Dot.js";
95
+ import "../../../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
96
+ import "../../../vendor/svelte-carousel/src/direction.js";
97
+ import "../../../vendor/svelte-carousel/src/components/Progress/Progress.js";
98
+ import "../../../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
99
+ import "../../../vendor/svelte-carousel/src/actions/swipeable/event.js";
100
+ import "../../../vendor/svelte-carousel/src/utils/event.js";
101
+ import "../../../vendor/svelte-carousel/src/units.js";
102
+ import "../../../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
103
+ import "../../../vendor/svelte-carousel/src/actions/hoverable/event.js";
104
+ import "../../../vendor/svelte-carousel/src/actions/tappable/tappable.js";
105
+ import "../../../vendor/svelte-carousel/src/utils/math.js";
106
+ import "../../../vendor/svelte-carousel/src/actions/tappable/event.js";
107
+ import "../../../vendor/svelte-carousel/src/utils/page.js";
108
+ import "../../../vendor/svelte-carousel/src/utils/clones.js";
109
+ import "../../../vendor/svelte-carousel/src/utils/object.js";
110
+ import "../../../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
111
+ import "../../../vendor/easy-reactive/src/simply-reactive.js";
112
+ import "../../../vendor/lodash.get/index.js";
113
+ import "../../../_commonjsHelpers.js";
114
+ import "../../../vendor/lodash.clonedeep/index.js";
115
+ import "../../../vendor/easy-reactive/src/utils/subscription.js";
116
+ import "../../../vendor/easy-reactive/src/utils/object.js";
117
+ import "../../../vendor/lodash.isequal/index.js";
118
+ import "../../../vendor/easy-reactive/src/utils/watcher.js";
119
+ import "../../../vendor/svelte-carousel/src/utils/lazy.js";
120
+ import "../../../vendor/svelte-carousel/src/utils/ProgressManager.js";
121
+ import "../../../vendor/svelte-carousel/src/utils/interval.js";
122
+ import "../../Components/Common/MediaItem.js";
123
+ import "../../Components/Tag/MarketingTag.js";
78
124
  import "../../Components/Tag/Assets/marketingIcon.js";
79
125
  import "../../../shared-utils/five/vector3ToScreen.js";
80
126
  import "../../../shared-utils/five/getFiveModel.js";
@@ -117,53 +163,20 @@ import "../../../shared-utils/five/getPosition.js";
117
163
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
118
164
  import "../../../shared-utils/three/PointSelector/utils/contents.js";
119
165
  import "../../../Sculpt/utils/three/rayOnLine.js";
120
- import "../../../vendor/animejs/lib/anime.es.js";
121
166
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
122
167
  import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
123
168
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
124
169
  import "@realsee/five";
125
170
  import "../../utils/noTypecheck.js";
126
171
  import "../../Components/Tag/AudioTag/index.js";
127
- import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
128
- import "../../Components/Common/Icon/audioIcon.js";
129
- import "../../Components/Common/Text/MText.js";
172
+ import "../../Components/Tag/AudioTag/AudioTag.js";
130
173
  import "../../Components/Common/Audio.js";
131
174
  import "../../utils/audio/SharedAudio.js";
132
175
  import "../../../shared-utils/audio.js";
133
176
  import "../../utils/audio/AudioDiagnostics.js";
177
+ import "../../Components/Common/Icon/audioIcon.js";
178
+ import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
134
179
  import "../../Components/Tag/MediaPlane.js";
135
- import "../../Components/Common/Media.js";
136
- import "../../../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
137
- import "../../../vendor/svelte-carousel/src/components/Dots/Dots.js";
138
- import "../../../vendor/svelte-carousel/src/components/Dot/Dot.js";
139
- import "../../../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
140
- import "../../../vendor/svelte-carousel/src/direction.js";
141
- import "../../../vendor/svelte-carousel/src/components/Progress/Progress.js";
142
- import "../../../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
143
- import "../../../vendor/svelte-carousel/src/actions/swipeable/event.js";
144
- import "../../../vendor/svelte-carousel/src/utils/event.js";
145
- import "../../../vendor/svelte-carousel/src/units.js";
146
- import "../../../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
147
- import "../../../vendor/svelte-carousel/src/actions/hoverable/event.js";
148
- import "../../../vendor/svelte-carousel/src/actions/tappable/tappable.js";
149
- import "../../../vendor/svelte-carousel/src/utils/math.js";
150
- import "../../../vendor/svelte-carousel/src/actions/tappable/event.js";
151
- import "../../../vendor/svelte-carousel/src/utils/page.js";
152
- import "../../../vendor/svelte-carousel/src/utils/clones.js";
153
- import "../../../vendor/svelte-carousel/src/utils/object.js";
154
- import "../../../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
155
- import "../../../vendor/easy-reactive/src/simply-reactive.js";
156
- import "../../../vendor/lodash.get/index.js";
157
- import "../../../_commonjsHelpers.js";
158
- import "../../../vendor/lodash.clonedeep/index.js";
159
- import "../../../vendor/easy-reactive/src/utils/subscription.js";
160
- import "../../../vendor/easy-reactive/src/utils/object.js";
161
- import "../../../vendor/lodash.isequal/index.js";
162
- import "../../../vendor/easy-reactive/src/utils/watcher.js";
163
- import "../../../vendor/svelte-carousel/src/utils/lazy.js";
164
- import "../../../vendor/svelte-carousel/src/utils/ProgressManager.js";
165
- import "../../../vendor/svelte-carousel/src/utils/interval.js";
166
- import "../../Components/Common/MediaItem.js";
167
180
  import "../../Components/Tag/LinkTag.js";
168
181
  import "../../Components/Common/Icon/Icon.js";
169
182
  import "../../utils/getImageInfo.js";
@@ -288,7 +301,7 @@ import "../../../Sculpt/Objects/Line/index.js";
288
301
  import "../../../Sculpt/Editors/RectangleMeshEditor.js";
289
302
  import "../../../Sculpt/utils/sortPositionsByCameraPosition.js";
290
303
  const Z = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map();
291
- class Nr extends B {
304
+ class Yr extends B {
292
305
  constructor(t, e) {
293
306
  super(t, e);
294
307
  y(this, "_floorIndex");
@@ -314,8 +327,8 @@ class Nr extends B {
314
327
  this._floorIndexDirty = !0;
315
328
  }
316
329
  applyVisible() {
317
- var e, i, o, l, p, r;
318
- this.computeRenderType() === "Mesh" ? (this.initialSculpt(), ((i = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((l = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : l.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane()) : ((p = this.tag3DContentSvelte) == null || p.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }), (r = this.tag3DContentSvelte) != null && r.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible, this.five.needsRender = !0));
330
+ var e, i, o, l, m, r;
331
+ this.computeRenderType() === "Mesh" ? (this.initialSculpt(), ((i = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((l = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : l.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane()) : ((m = this.tag3DContentSvelte) == null || m.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }), (r = this.tag3DContentSvelte) != null && r.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible, this.five.needsRender = !0));
319
332
  }
320
333
  set(t, e = !0) {
321
334
  super.set(t, e), x(this.five).then(() => {
@@ -323,64 +336,64 @@ class Nr extends B {
323
336
  });
324
337
  }
325
338
  setData(...t) {
326
- var i, o, l, p, r;
327
- super.setData(...t), this.computeRenderType() === "Mesh" ? (((o = (i = this.data.mediaData) == null ? void 0 : i[0]) == null ? void 0 : o.type) === "Video" ? this.renderVideoPlane() : ((p = (l = this.data.mediaData) == null ? void 0 : l[0]) == null ? void 0 : p.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane(), this.mediaPlane && (this.mediaPlane.opacity = this.opacity)) : (r = this.tag3DContentSvelte) == null || r.svelteApp.$set({ tag: this });
339
+ var i, o, l, m, r;
340
+ super.setData(...t), this.computeRenderType() === "Mesh" ? (((o = (i = this.data.mediaData) == null ? void 0 : i[0]) == null ? void 0 : o.type) === "Video" ? this.renderVideoPlane() : ((m = (l = this.data.mediaData) == null ? void 0 : l[0]) == null ? void 0 : m.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane(), this.mediaPlane && (this.mediaPlane.opacity = this.opacity)) : (r = this.tag3DContentSvelte) == null || r.svelteApp.$set({ tag: this });
328
341
  }
329
342
  /** 计算楼层索引 */
330
343
  computeFloorIndex() {
331
- var p, r;
344
+ var m, r;
332
345
  const t = /* @__PURE__ */ new Map();
333
- ((r = (p = this.five.works.getWork(this.workUtil.workCode)) == null ? void 0 : p.observers) != null ? r : []).forEach((n) => {
346
+ ((r = (m = this.five.works.getWork(this.workUtil.workCode)) == null ? void 0 : m.observers) != null ? r : []).forEach((n) => {
334
347
  var h;
335
- const m = (h = n.floorIndex) != null ? h : 0;
336
- if (!t.has(m)) {
337
- const u = q(this.five, m);
338
- u.isEmpty() || t.set(m, u);
348
+ const s = (h = n.floorIndex) != null ? h : 0;
349
+ if (!t.has(s)) {
350
+ const u = q(this.five, s);
351
+ u.isEmpty() || t.set(s, u);
339
352
  }
340
353
  });
341
354
  const i = G(...this.position.map(T)), o = [], l = [];
342
- if (t.forEach((n, m) => {
343
- l.push({ floorIndex: m, box: n }), n.containsPoint(i) && o.push({ floorIndex: m, box: n });
355
+ if (t.forEach((n, s) => {
356
+ l.push({ floorIndex: s, box: n }), n.containsPoint(i) && o.push({ floorIndex: s, box: n });
344
357
  }), o.length === 1)
345
358
  return o[0].floorIndex;
346
359
  if (o.length > 1) {
347
- let n = 1 / 0, m = o[0].floorIndex;
360
+ let n = 1 / 0, s = o[0].floorIndex;
348
361
  return o.forEach(({ floorIndex: h, box: u }) => {
349
- const s = new E.Vector3();
350
- u.getCenter(s);
351
- const a = i.distanceTo(s);
352
- a < n && (n = a, m = h);
353
- }), m;
362
+ const p = new E.Vector3();
363
+ u.getCenter(p);
364
+ const a = i.distanceTo(p);
365
+ a < n && (n = a, s = h);
366
+ }), s;
354
367
  }
355
368
  if (l.length > 0) {
356
- let n = 1 / 0, m = l[0].floorIndex;
369
+ let n = 1 / 0, s = l[0].floorIndex;
357
370
  return l.forEach(({ floorIndex: h, box: u }) => {
358
- const s = new E.Vector3();
359
- u.getCenter(s);
360
- const a = i.distanceTo(s);
361
- a < n && (n = a, m = h);
362
- }), m;
371
+ const p = new E.Vector3();
372
+ u.getCenter(p);
373
+ const a = i.distanceTo(p);
374
+ a < n && (n = a, s = h);
375
+ }), s;
363
376
  }
364
377
  }
365
378
  loadModel() {
366
379
  return C(this, null, function* () {
367
- var e, i, o, l, p, r;
380
+ var e, i, o, l, m, r;
368
381
  if (yield x(this.five), this.computeRenderType() === "Mesh")
369
382
  this.initialSculpt(), ((i = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((l = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : l.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane();
370
383
  else {
371
384
  H(this.five);
372
385
  const n = this.position.map(T);
373
- (r = (p = this.tag3DContentSvelte) == null ? void 0 : p.dispose) == null || r.call(p);
374
- const m = document.createElement("div");
375
- m.classList.add("tag-media-container");
376
- const h = b({ mode: "front", cornerPoints: n, container: m }, this.config.tag3DConfig), u = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", s = new _(S(b({}, h), { mode: u })), a = this.computeNormal();
377
- s.position.add(a.clone().setLength(M.Z_FIGHTING_OFFSET)), this.plugin.group.add(s);
386
+ (r = (m = this.tag3DContentSvelte) == null ? void 0 : m.dispose) == null || r.call(m);
387
+ const s = document.createElement("div");
388
+ s.classList.add("tag-media-container");
389
+ const h = b({ mode: "front", cornerPoints: n, container: s }, this.config.tag3DConfig), u = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", p = new _(S(b({}, h), { mode: u })), a = this.computeNormal();
390
+ p.position.add(a.clone().setLength(M.Z_FIGHTING_OFFSET)), this.plugin.group.add(p);
378
391
  let v;
379
- s.mode === "behind" && this.config.clickable !== !1 && (v = this.addObjectClickHandler(this, s, (g) => {
392
+ p.mode === "behind" && this.config.clickable !== !1 && (v = this.addObjectClickHandler(this, p, (g) => {
380
393
  this.plugin.hooks.emit("click", { event: g, target: "TagContent", tag: this });
381
394
  }));
382
395
  const f = new N({
383
- target: m,
396
+ target: s,
384
397
  props: {
385
398
  tag: this,
386
399
  hooks: this.plugin.hooks,
@@ -393,13 +406,13 @@ class Nr extends B {
393
406
  this.tag3DContentSvelte = {
394
407
  svelteApp: f,
395
408
  domContainer: {
396
- css3DObject: s
409
+ css3DObject: p
397
410
  },
398
- css3DInstance: s,
411
+ css3DInstance: p,
399
412
  initialNormal: a,
400
413
  currentNormal: a,
401
414
  dispose: () => {
402
- f.$destroy(), s.dispose(), v == null || v();
415
+ f.$destroy(), p.dispose(), v == null || v();
403
416
  }
404
417
  }, this.five.needsRender = !0;
405
418
  }
@@ -444,20 +457,20 @@ class Nr extends B {
444
457
  }), this.rectanglePlane.editor.disable();
445
458
  }
446
459
  renderVideoPlane() {
447
- var m, h, u;
460
+ var s, h, u;
448
461
  const t = this.data.mediaData[0];
449
462
  if (!t)
450
463
  return;
451
464
  const { url: e } = t;
452
465
  if (!e)
453
466
  return;
454
- const i = (m = this.data.objectFit) != null ? m : "contain", o = this.currentVisible, l = (() => !!(this.mediaPlane && !o))(), p = (() => !!(!this.mediaPlane && o))(), r = (() => !!(this.mediaPlane && (this.mediaPlane.src !== e || this.mediaPlane.objectFit !== i)))();
467
+ const i = (s = this.data.objectFit) != null ? s : "contain", o = this.currentVisible, l = (() => !!(this.mediaPlane && !o))(), m = (() => !!(!this.mediaPlane && o))(), r = (() => !!(this.mediaPlane && (this.mediaPlane.src !== e || this.mediaPlane.objectFit !== i)))();
455
468
  (l || r) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0);
456
469
  const n = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== i))();
457
- if (p || r) {
458
- let s = this.position.map(P);
459
- this.rectanglePlane && (s = this.rectanglePlane.data.points.map(P));
460
- const a = new L(e, s, {
470
+ if (m || r) {
471
+ let p = this.position.map(P);
472
+ this.rectanglePlane && (p = this.rectanglePlane.data.points.map(P));
473
+ const a = new L(e, p, {
461
474
  videoCoverSrc: t.videoCoverUrl,
462
475
  playButton: this.data.playIcon,
463
476
  paused: !((h = this.data.autoplayConfig) != null && h.autoplayVideo),
@@ -488,8 +501,8 @@ class Nr extends B {
488
501
  a.initialRenderHooks(v), this.mediaPlane = a, this.play = () => a.play(), this.pause = () => a.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
489
502
  }
490
503
  if (n) {
491
- const s = this.rectanglePlane.data.points.map(P);
492
- (u = this.mediaPlane) == null || u.changePointsOrParams({ cornerPoints: s, params: { objectFit: i } });
504
+ const p = this.rectanglePlane.data.points.map(P);
505
+ (u = this.mediaPlane) == null || u.changePointsOrParams({ cornerPoints: p, params: { objectFit: i } });
493
506
  }
494
507
  this.five.needsRender = !0;
495
508
  }
@@ -502,17 +515,17 @@ class Nr extends B {
502
515
  if (!i)
503
516
  return;
504
517
  let o = this.position.map(P);
505
- const l = this.currentVisible, p = (() => !!(this.mediaPlane && !l))(), r = (() => !!(!this.mediaPlane && l))(), n = (() => !!(this.mediaPlane && this.mediaPlane.src !== i))(), m = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== e))();
506
- if ((p || n) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (r || n) && (this.rectanglePlane && (o = this.rectanglePlane.data.points.map(P)), this.mediaPlane = new A(i, o, { objectFit: this.data.objectFit, opacity: this.opacity }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
518
+ const l = this.currentVisible, m = (() => !!(this.mediaPlane && !l))(), r = (() => !!(!this.mediaPlane && l))(), n = (() => !!(this.mediaPlane && this.mediaPlane.src !== i))(), s = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== e))();
519
+ if ((m || n) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (r || n) && (this.rectanglePlane && (o = this.rectanglePlane.data.points.map(P)), this.mediaPlane = new A(i, o, { objectFit: this.data.objectFit, opacity: this.opacity }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
507
520
  this.mediaPlane,
508
521
  "click",
509
- (s) => {
510
- this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: s.origDomEvent });
522
+ (p) => {
523
+ this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: p.origDomEvent });
511
524
  },
512
525
  { noEmitWhenHide: !0 }
513
- ), this.plugin.imagePlaneGroup.add(this.mediaPlane)), m) {
514
- const s = this.rectanglePlane.data.points.map(P);
515
- (u = this.mediaPlane) == null || u.changePointsOrParams({ cornerPoints: s, params: { objectFit: e } });
526
+ ), this.plugin.imagePlaneGroup.add(this.mediaPlane)), s) {
527
+ const p = this.rectanglePlane.data.points.map(P);
528
+ (u = this.mediaPlane) == null || u.changePointsOrParams({ cornerPoints: p, params: { objectFit: e } });
516
529
  }
517
530
  this.five.needsRender = !0;
518
531
  }
@@ -524,5 +537,5 @@ class Nr extends B {
524
537
  }
525
538
  }
526
539
  export {
527
- Nr as PlaneTag
540
+ Yr as PlaneTag
528
541
  };