@realsee/dnalogel 3.78.1-alpha.0 → 3.79.0-alpha.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 (61) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +10 -8
  3. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +2 -3
  4. package/dist/index.cjs.js +96 -101
  5. package/dist/index.js +14483 -16495
  6. package/dist/index.umd.js +89 -94
  7. package/libs/CruisePlugin/Move.js +14 -27
  8. package/libs/CruisePlugin/Work.js +61 -74
  9. package/libs/CruisePlugin/index.js +18 -31
  10. package/libs/GuideLinePlugin/Controller.js +18 -31
  11. package/libs/GuideLinePlugin/GuideLineItem.js +16 -29
  12. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
  13. package/libs/GuideLinePlugin/GuideLineModeItem.js +16 -27
  14. package/libs/GuideLinePlugin/index.js +18 -31
  15. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +1 -1
  16. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +87 -77
  17. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +189 -135
  18. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopup.js +460 -432
  19. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +38 -126
  20. package/libs/PanoTagPlugin/Components/Tag/index.js +292 -393
  21. package/libs/PanoTagPlugin/Components/TagContainer.js +125 -135
  22. package/libs/PanoTagPlugin/Components/TagItem.js +275 -281
  23. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +61 -74
  24. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +95 -108
  25. package/libs/PanoTagPlugin/controller/index.js +41 -54
  26. package/libs/PanoTagPlugin/index.js +23 -36
  27. package/libs/PanoTagPlugin/tag.config.js +31 -1
  28. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +10 -8
  29. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +2 -3
  30. package/libs/base/BasePlugin.js +1 -1
  31. package/libs/index.js +169 -182
  32. package/libs/shared-utils/logger.js +1 -1
  33. package/libs/shared-utils/url/replace-static-prefix.js +12 -7
  34. package/libs/vendor/svelte/internal/index.js +235 -225
  35. package/package.json +2 -2
  36. package/dist/PanoTagPlugin/Components/Common/Arrow.svelte.d.ts +0 -1
  37. package/dist/PanoTagPlugin/Components/Common/Line/Polyline.svelte.d.ts +0 -1
  38. package/dist/PanoTagPlugin/Components/Common/Line/Straight.svelte.d.ts +0 -1
  39. package/dist/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +0 -1
  40. package/dist/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +0 -1
  41. package/dist/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +0 -1
  42. package/dist/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +0 -1
  43. package/dist/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +0 -1
  44. package/dist/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +0 -1
  45. package/dist/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +0 -1
  46. package/dist/PanoTagPlugin/utils/constants.d.ts +0 -3
  47. package/dist/PanoTagPlugin/utils/doUtil.d.ts +0 -1
  48. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +0 -198
  49. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.svelte.d.ts +0 -1
  50. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +0 -258
  51. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.svelte.d.ts +0 -1
  52. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +0 -358
  53. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.svelte.d.ts +0 -1
  54. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +0 -259
  55. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.svelte.d.ts +0 -1
  56. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +0 -216
  57. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.svelte.d.ts +0 -1
  58. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +0 -219
  59. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.svelte.d.ts +0 -1
  60. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +0 -134
  61. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.svelte.d.ts +0 -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 = (m, o, t) => o in m ? k(m, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[o] = t, b = (m, o) => {
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) => {
6
6
  for (var t in o || (o = {}))
7
- w.call(o, t) && f(m, t, o[t]);
7
+ w.call(o, t) && f(e, t, o[t]);
8
8
  if (C)
9
9
  for (var t of C(o))
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) => {
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) => {
15
15
  var n = (r) => {
16
16
  try {
17
17
  a(t.next(r));
@@ -24,8 +24,8 @@ var y = (m, o, t) => new Promise((e, p) => {
24
24
  } catch (i) {
25
25
  p(i);
26
26
  }
27
- }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(n, d);
28
- a((t = t.apply(m, o)).next());
27
+ }, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(n, d);
28
+ a((t = t.apply(e, 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,60 +69,13 @@ 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/TextTag/index.js";
73
- import "../../Components/Tag/TextTag/TextTag.js";
74
- import "../../Components/Common/Line/Straight.js";
72
+ import "../../Components/Tag/MarketingTag.js";
73
+ import "../../utils/px2rem.js";
74
+ import "../../Components/Common/Shadow.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";
86
77
  import "../../../shared-utils/svelte/resizeObserver.js";
87
78
  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";
126
79
  import "../../Components/Tag/Assets/marketingIcon.js";
127
80
  import "../../../shared-utils/five/vector3ToScreen.js";
128
81
  import "../../../shared-utils/five/getFiveModel.js";
@@ -163,20 +116,53 @@ import "../../../shared-utils/five/getPosition.js";
163
116
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
164
117
  import "../../../shared-utils/three/PointSelector/utils/contents.js";
165
118
  import "../../../Sculpt/utils/three/rayOnLine.js";
119
+ import "../../../vendor/animejs/lib/anime.es.js";
166
120
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
167
121
  import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
168
122
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
169
123
  import "@realsee/five";
170
124
  import "../../utils/noTypecheck.js";
171
125
  import "../../Components/Tag/AudioTag/index.js";
172
- import "../../Components/Tag/AudioTag/AudioTag.js";
126
+ import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
127
+ import "../../Components/Common/Icon/audioIcon.js";
128
+ import "../../Components/Common/Text/MText.js";
173
129
  import "../../Components/Common/Audio.js";
174
130
  import "../../utils/audio/SharedAudio.js";
175
131
  import "../../../shared-utils/audio.js";
176
132
  import "../../utils/audio/AudioDiagnostics.js";
177
- import "../../Components/Common/Icon/audioIcon.js";
178
- import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
179
133
  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";
180
166
  import "../../Components/Tag/LinkTag.js";
181
167
  import "../../Components/Common/Icon/Icon.js";
182
168
  import "../../utils/getImageInfo.js";
@@ -197,6 +183,7 @@ import "../../../shared-utils/url/defaultUrls.js";
197
183
  import "../../../shared-utils/vectorToCoordinate.js";
198
184
  import "../../../shared-utils/formatRad.js";
199
185
  import "../../../shared-utils/five/lookPoint.js";
186
+ import "../../../shared-utils/uuid.js";
200
187
  import "../../utils/tagPosition.js";
201
188
  import "../../utils/checkRange.js";
202
189
  import "../../../shared-utils/url/getUrl.js";
@@ -204,9 +191,9 @@ import "../../../shared-utils/five/getFloorIndex.js";
204
191
  import "../../../shared-utils/safeObj.js";
205
192
  import "../../utils/Cache.js";
206
193
  import "../../../shared-utils/promise/withResolvers.js";
207
- class rr extends R {
208
- constructor(t, e) {
209
- super(t, e);
194
+ class qo extends R {
195
+ constructor(t, m) {
196
+ super(t, m);
210
197
  v(this, "loading", !1);
211
198
  /** 加载外部模型 */
212
199
  v(this, "loadModel", () => y(this, null, function* () {
@@ -214,7 +201,7 @@ class rr extends R {
214
201
  const t = this.data.modelUrl;
215
202
  if (!t || (this.loading = !0, yield H(this.five), !this.plugin.tags.includes(this)))
216
203
  return;
217
- const e = A(t).then((r) => y(this, null, function* () {
204
+ const m = A(t).then((r) => y(this, null, function* () {
218
205
  var l;
219
206
  const i = Object.assign(r.scene, {
220
207
  customID: this.id,
@@ -226,9 +213,9 @@ class rr extends R {
226
213
  });
227
214
  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;
228
215
  }));
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))
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))
232
219
  return;
233
220
  this.model.object = p;
234
221
  const n = this.plugin.gltfObjectGroup.children.find((r) => r.customID === this.id);
@@ -281,8 +268,8 @@ class rr extends R {
281
268
  this.state.unfolded = !0, L(this.five), this.loadModel().then(() => this.updateVisible());
282
269
  }
283
270
  applyVisible() {
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);
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);
286
273
  }
287
274
  set(...t) {
288
275
  super.set(...t), this.loadModel();
@@ -290,13 +277,13 @@ class rr extends R {
290
277
  setData(...t) {
291
278
  var p;
292
279
  super.setData(...t);
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 });
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 });
295
282
  }
296
283
  computeNormal() {
297
284
  return E(this.data.mediaPosition);
298
285
  }
299
286
  }
300
287
  export {
301
- rr as ModelTag
288
+ qo as ModelTag
302
289
  };
@@ -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
- m(t.next(r));
17
+ p(t.next(r));
18
18
  } catch (n) {
19
19
  i(n);
20
20
  }
21
21
  }, l = (r) => {
22
22
  try {
23
- m(t.throw(r));
23
+ p(t.throw(r));
24
24
  } catch (n) {
25
25
  i(n);
26
26
  }
27
- }, m = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(o, l);
28
- m((t = t.apply(c, d)).next());
27
+ }, p = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(o, l);
28
+ p((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,59 +68,13 @@ 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/TextTag/index.js";
72
- import "../../Components/Tag/TextTag/TextTag.js";
73
- import "../../Components/Common/Line/Straight.js";
71
+ import "../../Components/Tag/MarketingTag.js";
72
+ import "../../utils/px2rem.js";
73
+ import "../../Components/Common/Shadow.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";
84
76
  import "../../../shared-utils/svelte/resizeObserver.js";
85
77
  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";
124
78
  import "../../Components/Tag/Assets/marketingIcon.js";
125
79
  import "../../../shared-utils/five/vector3ToScreen.js";
126
80
  import "../../../shared-utils/five/getFiveModel.js";
@@ -163,20 +117,53 @@ import "../../../shared-utils/five/getPosition.js";
163
117
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
164
118
  import "../../../shared-utils/three/PointSelector/utils/contents.js";
165
119
  import "../../../Sculpt/utils/three/rayOnLine.js";
120
+ import "../../../vendor/animejs/lib/anime.es.js";
166
121
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
167
122
  import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
168
123
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
169
124
  import "@realsee/five";
170
125
  import "../../utils/noTypecheck.js";
171
126
  import "../../Components/Tag/AudioTag/index.js";
172
- import "../../Components/Tag/AudioTag/AudioTag.js";
127
+ import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
128
+ import "../../Components/Common/Icon/audioIcon.js";
129
+ import "../../Components/Common/Text/MText.js";
173
130
  import "../../Components/Common/Audio.js";
174
131
  import "../../utils/audio/SharedAudio.js";
175
132
  import "../../../shared-utils/audio.js";
176
133
  import "../../utils/audio/AudioDiagnostics.js";
177
- import "../../Components/Common/Icon/audioIcon.js";
178
- import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
179
134
  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";
180
167
  import "../../Components/Tag/LinkTag.js";
181
168
  import "../../Components/Common/Icon/Icon.js";
182
169
  import "../../utils/getImageInfo.js";
@@ -301,7 +288,7 @@ import "../../../Sculpt/Objects/Line/index.js";
301
288
  import "../../../Sculpt/Editors/RectangleMeshEditor.js";
302
289
  import "../../../Sculpt/utils/sortPositionsByCameraPosition.js";
303
290
  const Z = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map();
304
- class Yr extends B {
291
+ class Nr extends B {
305
292
  constructor(t, e) {
306
293
  super(t, e);
307
294
  y(this, "_floorIndex");
@@ -327,8 +314,8 @@ class Yr extends B {
327
314
  this._floorIndexDirty = !0;
328
315
  }
329
316
  applyVisible() {
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));
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));
332
319
  }
333
320
  set(t, e = !0) {
334
321
  super.set(t, e), x(this.five).then(() => {
@@ -336,64 +323,64 @@ class Yr extends B {
336
323
  });
337
324
  }
338
325
  setData(...t) {
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 });
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 });
341
328
  }
342
329
  /** 计算楼层索引 */
343
330
  computeFloorIndex() {
344
- var m, r;
331
+ var p, r;
345
332
  const t = /* @__PURE__ */ new Map();
346
- ((r = (m = this.five.works.getWork(this.workUtil.workCode)) == null ? void 0 : m.observers) != null ? r : []).forEach((n) => {
333
+ ((r = (p = this.five.works.getWork(this.workUtil.workCode)) == null ? void 0 : p.observers) != null ? r : []).forEach((n) => {
347
334
  var h;
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);
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);
352
339
  }
353
340
  });
354
341
  const i = G(...this.position.map(T)), o = [], l = [];
355
- if (t.forEach((n, s) => {
356
- l.push({ floorIndex: s, box: n }), n.containsPoint(i) && o.push({ floorIndex: s, box: n });
342
+ if (t.forEach((n, m) => {
343
+ l.push({ floorIndex: m, box: n }), n.containsPoint(i) && o.push({ floorIndex: m, box: n });
357
344
  }), o.length === 1)
358
345
  return o[0].floorIndex;
359
346
  if (o.length > 1) {
360
- let n = 1 / 0, s = o[0].floorIndex;
347
+ let n = 1 / 0, m = o[0].floorIndex;
361
348
  return o.forEach(({ floorIndex: h, box: u }) => {
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;
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;
367
354
  }
368
355
  if (l.length > 0) {
369
- let n = 1 / 0, s = l[0].floorIndex;
356
+ let n = 1 / 0, m = l[0].floorIndex;
370
357
  return l.forEach(({ floorIndex: h, box: u }) => {
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;
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;
376
363
  }
377
364
  }
378
365
  loadModel() {
379
366
  return C(this, null, function* () {
380
- var e, i, o, l, m, r;
367
+ var e, i, o, l, p, r;
381
368
  if (yield x(this.five), this.computeRenderType() === "Mesh")
382
369
  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();
383
370
  else {
384
371
  H(this.five);
385
372
  const n = this.position.map(T);
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);
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);
391
378
  let v;
392
- p.mode === "behind" && this.config.clickable !== !1 && (v = this.addObjectClickHandler(this, p, (g) => {
379
+ s.mode === "behind" && this.config.clickable !== !1 && (v = this.addObjectClickHandler(this, s, (g) => {
393
380
  this.plugin.hooks.emit("click", { event: g, target: "TagContent", tag: this });
394
381
  }));
395
382
  const f = new N({
396
- target: s,
383
+ target: m,
397
384
  props: {
398
385
  tag: this,
399
386
  hooks: this.plugin.hooks,
@@ -406,13 +393,13 @@ class Yr extends B {
406
393
  this.tag3DContentSvelte = {
407
394
  svelteApp: f,
408
395
  domContainer: {
409
- css3DObject: p
396
+ css3DObject: s
410
397
  },
411
- css3DInstance: p,
398
+ css3DInstance: s,
412
399
  initialNormal: a,
413
400
  currentNormal: a,
414
401
  dispose: () => {
415
- f.$destroy(), p.dispose(), v == null || v();
402
+ f.$destroy(), s.dispose(), v == null || v();
416
403
  }
417
404
  }, this.five.needsRender = !0;
418
405
  }
@@ -457,20 +444,20 @@ class Yr extends B {
457
444
  }), this.rectanglePlane.editor.disable();
458
445
  }
459
446
  renderVideoPlane() {
460
- var s, h, u;
447
+ var m, h, u;
461
448
  const t = this.data.mediaData[0];
462
449
  if (!t)
463
450
  return;
464
451
  const { url: e } = t;
465
452
  if (!e)
466
453
  return;
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)))();
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)))();
468
455
  (l || r) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0);
469
456
  const n = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== i))();
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, {
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, {
474
461
  videoCoverSrc: t.videoCoverUrl,
475
462
  playButton: this.data.playIcon,
476
463
  paused: !((h = this.data.autoplayConfig) != null && h.autoplayVideo),
@@ -501,8 +488,8 @@ class Yr extends B {
501
488
  a.initialRenderHooks(v), this.mediaPlane = a, this.play = () => a.play(), this.pause = () => a.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
502
489
  }
503
490
  if (n) {
504
- const p = this.rectanglePlane.data.points.map(P);
505
- (u = this.mediaPlane) == null || u.changePointsOrParams({ cornerPoints: p, params: { objectFit: i } });
491
+ const s = this.rectanglePlane.data.points.map(P);
492
+ (u = this.mediaPlane) == null || u.changePointsOrParams({ cornerPoints: s, params: { objectFit: i } });
506
493
  }
507
494
  this.five.needsRender = !0;
508
495
  }
@@ -515,17 +502,17 @@ class Yr extends B {
515
502
  if (!i)
516
503
  return;
517
504
  let o = this.position.map(P);
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(
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(
520
507
  this.mediaPlane,
521
508
  "click",
522
- (p) => {
523
- this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: p.origDomEvent });
509
+ (s) => {
510
+ this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: s.origDomEvent });
524
511
  },
525
512
  { noEmitWhenHide: !0 }
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 } });
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 } });
529
516
  }
530
517
  this.five.needsRender = !0;
531
518
  }
@@ -537,5 +524,5 @@ class Yr extends B {
537
524
  }
538
525
  }
539
526
  export {
540
- Yr as PlaneTag
527
+ Nr as PlaneTag
541
528
  };