@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
@@ -171,23 +171,25 @@ import "../shared-utils/three/GLTFLoader.js";
171
171
  import "@realsee/five/gltf-loader";
172
172
  import "../PanoTagPlugin/utils/planeNormal.js";
173
173
  import "../PanoTagPlugin/Components/Tag/index.js";
174
- import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
175
- import "../PanoTagPlugin/utils/px2rem.js";
176
- import "../PanoTagPlugin/Components/Common/Shadow.js";
174
+ import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
175
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
176
+ import "../PanoTagPlugin/Components/Common/Line/Straight.js";
177
177
  import "../vendor/svelte/transition/index.js";
178
178
  import "../vendor/svelte/easing/index.js";
179
+ import "../PanoTagPlugin/Components/Common/Shadow.js";
180
+ import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
181
+ import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
182
+ import "../PanoTagPlugin/utils/search.js";
183
+ import "../PanoTagPlugin/utils/constants.js";
184
+ import "../PanoTagPlugin/Components/Common/Arrow.js";
185
+ import "../PanoTagPlugin/utils/doUtil.js";
179
186
  import "../shared-utils/svelte/resizeObserver.js";
180
187
  import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
181
- import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
182
- import "../PanoTagPlugin/utils/noTypecheck.js";
183
- import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
184
- import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
185
- import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
188
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
186
189
  import "../PanoTagPlugin/Components/Common/Text/MText.js";
187
- import "../PanoTagPlugin/Components/Common/Audio.js";
188
- import "../PanoTagPlugin/utils/audio/SharedAudio.js";
189
- import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
190
- import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
190
+ import "../PanoTagPlugin/utils/px2rem.js";
191
+ import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
192
+ import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
191
193
  import "../PanoTagPlugin/Components/Common/Media.js";
192
194
  import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
193
195
  import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
@@ -220,6 +222,17 @@ import "../vendor/svelte-carousel/src/utils/lazy.js";
220
222
  import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
221
223
  import "../vendor/svelte-carousel/src/utils/interval.js";
222
224
  import "../PanoTagPlugin/Components/Common/MediaItem.js";
225
+ import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
226
+ import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
227
+ import "../PanoTagPlugin/utils/noTypecheck.js";
228
+ import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
229
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
230
+ import "../PanoTagPlugin/Components/Common/Audio.js";
231
+ import "../PanoTagPlugin/utils/audio/SharedAudio.js";
232
+ import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
233
+ import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
234
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
235
+ import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
223
236
  import "../PanoTagPlugin/Components/Tag/LinkTag.js";
224
237
  import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
225
238
  import "../PanoTagPlugin/utils/getImageInfo.js";
@@ -359,7 +372,7 @@ import "./utils/coordinatesToVector.js";
359
372
  import "./utils/safeCall.js";
360
373
  import "./utils/sleep.js";
361
374
  import "../shared-utils/five/fiveLoaded.js";
362
- class Jp extends z {
375
+ class me extends z {
363
376
  constructor(t, r) {
364
377
  var h;
365
378
  super(t, r);
@@ -467,5 +480,5 @@ class Jp extends z {
467
480
  }
468
481
  }
469
482
  export {
470
- Jp as default
483
+ me as default
471
484
  };
@@ -18,13 +18,13 @@ var g = (h, f, t) => new Promise((i, r) => {
18
18
  } catch (e) {
19
19
  r(e);
20
20
  }
21
- }, p = (m) => {
21
+ }, n = (m) => {
22
22
  try {
23
23
  s(t.throw(m));
24
24
  } catch (e) {
25
25
  r(e);
26
26
  }
27
- }, s = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(o, p);
27
+ }, s = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(o, n);
28
28
  s((t = t.apply(h, f)).next());
29
29
  });
30
30
  import { GuideLinePlugin as U } from "../GuideLinePlugin/index.js";
@@ -141,23 +141,26 @@ import "../shared-utils/three/GLTFLoader.js";
141
141
  import "@realsee/five/gltf-loader";
142
142
  import "../PanoTagPlugin/utils/planeNormal.js";
143
143
  import "../PanoTagPlugin/Components/Tag/index.js";
144
- import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
145
- import "../PanoTagPlugin/utils/px2rem.js";
146
- import "../PanoTagPlugin/Components/Common/Shadow.js";
144
+ import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
145
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
146
+ import "../PanoTagPlugin/Components/Common/Line/Straight.js";
147
147
  import "../vendor/svelte/transition/index.js";
148
148
  import "../vendor/svelte/easing/index.js";
149
+ import "../PanoTagPlugin/Components/Common/Shadow.js";
150
+ import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
151
+ import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
152
+ import "../vendor/animejs/lib/anime.es.js";
153
+ import "../PanoTagPlugin/utils/search.js";
154
+ import "../PanoTagPlugin/utils/constants.js";
155
+ import "../PanoTagPlugin/Components/Common/Arrow.js";
156
+ import "../PanoTagPlugin/utils/doUtil.js";
149
157
  import "../shared-utils/svelte/resizeObserver.js";
150
158
  import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
151
- import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
152
- import "../PanoTagPlugin/utils/noTypecheck.js";
153
- import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
154
- import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
155
- import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
159
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
156
160
  import "../PanoTagPlugin/Components/Common/Text/MText.js";
157
- import "../PanoTagPlugin/Components/Common/Audio.js";
158
- import "../PanoTagPlugin/utils/audio/SharedAudio.js";
159
- import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
160
- import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
161
+ import "../PanoTagPlugin/utils/px2rem.js";
162
+ import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
163
+ import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
161
164
  import "../PanoTagPlugin/Components/Common/Media.js";
162
165
  import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
163
166
  import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
@@ -190,6 +193,17 @@ import "../vendor/svelte-carousel/src/utils/lazy.js";
190
193
  import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
191
194
  import "../vendor/svelte-carousel/src/utils/interval.js";
192
195
  import "../PanoTagPlugin/Components/Common/MediaItem.js";
196
+ import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
197
+ import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
198
+ import "../PanoTagPlugin/utils/noTypecheck.js";
199
+ import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
200
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
201
+ import "../PanoTagPlugin/Components/Common/Audio.js";
202
+ import "../PanoTagPlugin/utils/audio/SharedAudio.js";
203
+ import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
204
+ import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
205
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
206
+ import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
193
207
  import "../PanoTagPlugin/Components/Tag/LinkTag.js";
194
208
  import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
195
209
  import "../PanoTagPlugin/utils/getImageInfo.js";
@@ -311,7 +325,6 @@ import "../PanoTagPlugin/controller/Tag/BoxTag.js";
311
325
  import "../PanoTagPlugin/utils/sculptDataToBoxPosition.js";
312
326
  import "../PanoTagPlugin/controller/Tag/PolygonTag.js";
313
327
  import "../PanoTagPlugin/controller/Tag/MaskTag.js";
314
- import "../vendor/animejs/lib/anime.es.js";
315
328
  import "../PanoTagPlugin/controller/Tag/MaskTag.shaders.js";
316
329
  import "../PanoTagPlugin/Components/TagContainer.js";
317
330
  import "../PanoTagPlugin/Components/TagItem.js";
@@ -359,7 +372,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
359
372
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
360
373
  import "./Work.js";
361
374
  import "./utils/coordinatesToVector.js";
362
- class Za extends V {
375
+ class dm extends V {
363
376
  constructor(t, i) {
364
377
  super(t, i);
365
378
  C(this, "state", {
@@ -391,10 +404,10 @@ class Za extends V {
391
404
  */
392
405
  load(t, i, r) {
393
406
  return g(this, null, function* () {
394
- var a, n;
407
+ var a, p;
395
408
  this.clear();
396
- const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, p = yield this.formatData(t);
397
- this.data = I({ id: p.keyframesId }, p), this.hooks.emit("dataChange", p, o);
409
+ const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(t);
410
+ this.data = I({ id: n.keyframesId }, n), this.hooks.emit("dataChange", n, o);
398
411
  let s = [], m;
399
412
  const e = this.data.keyframes.filter((u) => u.data.panoIndex !== void 0);
400
413
  e.filter((u, l) => {
@@ -412,7 +425,7 @@ class Za extends V {
412
425
  const v = s.length;
413
426
  s[v] = [u];
414
427
  }
415
- }), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 && p.useGuildLine !== !1 && (this.GuideLine = U(this.five, this.config)), (n = this.GuideLine) == null || n.load({ routes: s.map((u) => ({ panoIndexList: u })), config: p.guildPluginOptions }), i ? this.setState(i, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug("WORKPLUGIN loaded", p), this.hooks.emit("dataLoaded", p);
428
+ }), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = U(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: s.map((u) => ({ panoIndexList: u })), config: n.guildPluginOptions }), i ? this.setState(i, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug("WORKPLUGIN loaded", n), this.hooks.emit("dataLoaded", n);
416
429
  });
417
430
  }
418
431
  /**
@@ -445,21 +458,21 @@ class Za extends V {
445
458
  keyframesId: x(),
446
459
  keyframes: i.keyframes.map((r, o) => {
447
460
  var m;
448
- const p = i.keyframes[o + 1], s = (() => !p || p.start === void 0 || r.end === void 0 ? 0 : p.start - r.end)();
461
+ const n = i.keyframes[o + 1], s = (() => !n || n.start === void 0 || r.end === void 0 ? 0 : n.start - r.end)();
449
462
  return k(I({ id: (m = r.uuid) != null ? m : x(), moveIndex: o, stay: s, index: o }, r), { guildPluginOptions: i.guildPluginOptions });
450
463
  })
451
464
  };
452
465
  if (i.panoIndexList) {
453
466
  let r = [];
454
- const { moveEffect: o, moveToFirstPanoEffect: p, moveToFirstPanoDuration: s } = i;
455
- return this.privateState.moveToFirstPanoEffect = p, this.privateState.moveToFirstPanoDuration = s, i.panoIndexList.forEach((m, e) => {
467
+ const { moveEffect: o, moveToFirstPanoEffect: n, moveToFirstPanoDuration: s } = i;
468
+ return this.privateState.moveToFirstPanoEffect = n, this.privateState.moveToFirstPanoDuration = s, i.panoIndexList.forEach((m, e) => {
456
469
  const a = (() => {
457
470
  var c, v;
458
- const n = i.panoIndexList.slice(e).find((w) => w !== m);
459
- if (n === void 0)
471
+ const p = i.panoIndexList.slice(e).find((w) => w !== m);
472
+ if (p === void 0)
460
473
  return;
461
- const u = this.workUtil.getObserverPosition(m), l = this.workUtil.getObserverPosition(n);
462
- if (!l || !u || ((c = this.workUtil.getObserver(m)) == null ? void 0 : c.floorIndex) !== ((v = this.workUtil.getObserver(n)) == null ? void 0 : v.floorIndex))
474
+ const u = this.workUtil.getObserverPosition(m), l = this.workUtil.getObserverPosition(p);
475
+ if (!l || !u || ((c = this.workUtil.getObserver(m)) == null ? void 0 : c.floorIndex) !== ((v = this.workUtil.getObserver(p)) == null ? void 0 : v.floorIndex))
463
476
  return;
464
477
  const d = new G.Vector3().subVectors(l, u);
465
478
  return _(d.normalize());
@@ -488,13 +501,13 @@ class Za extends V {
488
501
  handlePlay(t) {
489
502
  return g(this, null, function* () {
490
503
  var d, c, v, w;
491
- const { data: i, state: r, privateState: o, hooks: p } = this;
504
+ const { data: i, state: r, privateState: o, hooks: n } = this;
492
505
  if (o.playing || !(i != null && i.keyframes) || (i == null ? void 0 : i.keyframes.length) === 0)
493
506
  return;
494
507
  const s = x();
495
508
  o.playId = s, o.audio && o.audio.paused && (((c = this.data) == null ? void 0 : c.keyframes[(d = t == null ? void 0 : t.playFromIndex) != null ? d : 0]).data.effect === "Move" ? this.privateState.audio && (this.privateState.audio.pause(), this.privateState.audio.currentTime = 0, this.privateState.audio = null) : o.audio.play()), o.playing = !0, o.broke = !1;
496
509
  const m = i.keyframes, e = this.getPauseData();
497
- (t == null ? void 0 : t.notEmitEvent) !== !0 && p.emit("play", { userAction: (v = t == null ? void 0 : t.userAction) != null ? v : !0 });
510
+ (t == null ? void 0 : t.notEmitEvent) !== !0 && n.emit("play", { userAction: (v = t == null ? void 0 : t.userAction) != null ? v : !0 });
498
511
  let a = !1;
499
512
  const u = yield (() => g(this, null, function* () {
500
513
  var y, S;
@@ -533,7 +546,7 @@ class Za extends V {
533
546
  return;
534
547
  if (!(u !== void 0 && y.index < u))
535
548
  try {
536
- p.emit("playIndexChange", y.index, y), yield this.playKeyframe(y, {
549
+ n.emit("playIndexChange", y.index, y), yield this.playKeyframe(y, {
537
550
  moveEffect: a === !1 ? o.moveToFirstPanoEffect : void 0,
538
551
  duration: a === !1 && typeof o.moveToFirstPanoDuration == "number" ? o.moveToFirstPanoDuration : void 0
539
552
  }), y.stay && (yield Q(y.stay)), a === !1 && (a = !0);
@@ -541,27 +554,27 @@ class Za extends V {
541
554
  return Promise.resolve("broke");
542
555
  }
543
556
  }
544
- r.playing && s === o.playId && (this.setState({ playing: !1 }, { userAction: !1 }), p.emit("end"), this.clearPauseData());
557
+ r.playing && s === o.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
545
558
  });
546
559
  }
547
560
  /**
548
561
  * @description: Pause and record pause state
549
562
  */
550
563
  handlePause(t) {
551
- var p;
564
+ var n;
552
565
  const { state: i, privateState: r, hooks: o } = this;
553
- i.playing = !1, r.playing !== !1 && (r.playing = !1, r.audio && r.audio.pause(), (t == null ? void 0 : t.userAction) !== !1 && this.setPauseData(), r.broke || this.forceInteruptUpdateCamera(), (t == null ? void 0 : t.notEmitEvent) !== !0 && o.emit("pause", { userAction: (p = t == null ? void 0 : t.userAction) != null ? p : !0 }));
566
+ i.playing = !1, r.playing !== !1 && (r.playing = !1, r.audio && r.audio.pause(), (t == null ? void 0 : t.userAction) !== !1 && this.setPauseData(), r.broke || this.forceInteruptUpdateCamera(), (t == null ? void 0 : t.notEmitEvent) !== !0 && o.emit("pause", { userAction: (n = t == null ? void 0 : t.userAction) != null ? n : !0 }));
554
567
  }
555
568
  /**
556
569
  * @description: Change play speed
557
570
  */
558
571
  changeSpeed(t, i = !0) {
559
572
  var m;
560
- const { state: r, privateState: o, hooks: p } = this, { currentPlayKeyframe: s } = o;
561
- if (p.emit("speedChange", t, { userAction: i }), r.playing && s)
573
+ const { state: r, privateState: o, hooks: n } = this, { currentPlayKeyframe: s } = o;
574
+ if (n.emit("speedChange", t, { userAction: i }), r.playing && s)
562
575
  try {
563
- const e = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = s.keyframe, { privateState: n } = this;
564
- ((m = this.privateState.currentPlayKeyframe) == null ? void 0 : m.keyframe.id) !== a.id && (this.privateState.currentPlayKeyframe = { keyframe: a }), n.currentPlayQueue.push(this.getPlayPromise(a, { duration: e }));
576
+ const e = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = s.keyframe, { privateState: p } = this;
577
+ ((m = this.privateState.currentPlayKeyframe) == null ? void 0 : m.keyframe.id) !== a.id && (this.privateState.currentPlayKeyframe = { keyframe: a }), p.currentPlayQueue.push(this.getPlayPromise(a, { duration: e }));
565
578
  } catch (e) {
566
579
  console.error(e);
567
580
  }
@@ -606,9 +619,9 @@ class Za extends V {
606
619
  */
607
620
  getPlayPromise(r) {
608
621
  return g(this, arguments, function* (t, i = {}) {
609
- var p;
622
+ var n;
610
623
  const o = t.data;
611
- if (i.duration = (p = i.duration) != null ? p : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!o)
624
+ if (i.duration = (n = i.duration) != null ? n : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!o)
612
625
  return new Promise((s, m) => {
613
626
  let e = !1;
614
627
  this.addInterruptListener(() => {
@@ -683,7 +696,7 @@ class Za extends V {
683
696
  */
684
697
  updateCamera(r) {
685
698
  return g(this, arguments, function* (t, i = {}) {
686
- const { five: o, privateState: p, state: s } = this, m = (() => {
699
+ const { five: o, privateState: n, state: s } = this, m = (() => {
687
700
  var v, w;
688
701
  const d = (v = s.config) == null ? void 0 : v.speedConfig, c = (w = t.rotateSpeed) != null ? w : d == null ? void 0 : d.rotateSpeed;
689
702
  if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
@@ -691,10 +704,10 @@ class Za extends V {
691
704
  if (c !== void 0)
692
705
  return d.rotateSpeedUnit === "rad/ms" ? c : c / 1e3;
693
706
  })(), e = this.five.getCurrentState(), a = Math.PI * 2;
694
- let n = t.longitude;
695
- n !== void 0 && (n = (n % a + a) % a, t.direction === "left" ? n <= e.longitude && (n += a) : t.direction === "right" && n >= e.longitude && (n -= a));
696
- const u = (() => i.duration ? i.duration : m ? M(e, k(I({}, t), { longitude: n })) / m : 800)();
697
- p.currentPlayKeyframe && (p.currentPlayKeyframe.originDuration = u);
707
+ let p = t.longitude;
708
+ p !== void 0 && (p = (p % a + a) % a, t.direction === "left" ? p <= e.longitude && (p += a) : t.direction === "right" && p >= e.longitude && (p -= a));
709
+ const u = (() => i.duration ? i.duration : m ? M(e, k(I({}, t), { longitude: p })) / m : 800)();
710
+ n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = u);
698
711
  const l = this.getSpeededDuration(u);
699
712
  return new Promise((d) => {
700
713
  O(
@@ -715,7 +728,7 @@ class Za extends V {
715
728
  {
716
729
  progress: 0.25,
717
730
  value: {
718
- longitude: n !== void 0 ? (e.longitude + (n + e.longitude) / 2) / 2 : e.longitude,
731
+ longitude: p !== void 0 ? (e.longitude + (p + e.longitude) / 2) / 2 : e.longitude,
719
732
  latitude: e.latitude,
720
733
  fov: e.fov,
721
734
  offset: e.offset.clone(),
@@ -725,7 +738,7 @@ class Za extends V {
725
738
  {
726
739
  progress: 0.5,
727
740
  value: {
728
- longitude: n !== void 0 ? (n + e.longitude) / 2 : e.longitude,
741
+ longitude: p !== void 0 ? (p + e.longitude) / 2 : e.longitude,
729
742
  latitude: t.latitude !== void 0 ? (t.latitude + e.latitude) / 2 : e.latitude,
730
743
  fov: e.fov,
731
744
  offset: e.offset.clone(),
@@ -735,7 +748,7 @@ class Za extends V {
735
748
  {
736
749
  progress: 0.75,
737
750
  value: {
738
- longitude: n !== void 0 ? (n + (n + e.longitude) / 2) / 2 : e.longitude,
751
+ longitude: p !== void 0 ? (p + (p + e.longitude) / 2) / 2 : e.longitude,
739
752
  latitude: e.latitude,
740
753
  fov: e.fov,
741
754
  offset: e.offset.clone(),
@@ -745,7 +758,7 @@ class Za extends V {
745
758
  {
746
759
  progress: 1,
747
760
  value: {
748
- longitude: n !== void 0 ? n : (c = t.longitude) != null ? c : e.longitude,
761
+ longitude: p !== void 0 ? p : (c = t.longitude) != null ? c : e.longitude,
749
762
  latitude: t.latitude !== void 0 ? t.latitude : e.latitude,
750
763
  fov: e.fov,
751
764
  offset: e.offset.clone(),
@@ -765,30 +778,30 @@ class Za extends V {
765
778
  */
766
779
  changePano(t, i) {
767
780
  return g(this, null, function* () {
768
- const { five: r, privateState: o, state: p } = this;
781
+ const { five: r, privateState: o, state: n } = this;
769
782
  if (typeof t.panoIndex != "number" || t.panoIndex === r.panoIndex)
770
783
  return;
771
784
  const s = r.getCurrentState().mode !== "Panorama";
772
785
  s && (this.privateState.modeChanging = !0);
773
786
  const m = (() => {
774
787
  var u, l;
775
- const a = (u = p.config) == null ? void 0 : u.speedConfig, n = (l = t.moveSpeed) != null ? l : a == null ? void 0 : a.moveSpeed;
788
+ const a = (u = n.config) == null ? void 0 : u.speedConfig, p = (l = t.moveSpeed) != null ? l : a == null ? void 0 : a.moveSpeed;
776
789
  if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
777
- return n;
778
- if (n !== void 0)
779
- return a.moveSpeedUnit === "m/ms" ? n : n / 1e3;
790
+ return p;
791
+ if (p !== void 0)
792
+ return a.moveSpeedUnit === "m/ms" ? p : p / 1e3;
780
793
  })(), e = (() => {
781
794
  if (i != null && i.duration)
782
795
  return i.duration;
783
796
  if (m && typeof r.panoIndex == "number" && typeof t.panoIndex == "number") {
784
- const a = this.workUtil.getObserverPosition(r.panoIndex), n = this.workUtil.getObserverPosition(t.panoIndex);
785
- return a && n ? a.distanceTo(n) / m : 800;
797
+ const a = this.workUtil.getObserverPosition(r.panoIndex), p = this.workUtil.getObserverPosition(t.panoIndex);
798
+ return a && p ? a.distanceTo(p) / m : 800;
786
799
  }
787
800
  return 800;
788
801
  })();
789
802
  o.currentPlayKeyframe && (o.currentPlayKeyframe.originDuration = e), yield new Promise((a) => {
790
803
  var u, l, d;
791
- const n = this.fiveUtil.moveToPano(t.panoIndex, {
804
+ const p = this.fiveUtil.moveToPano(t.panoIndex, {
792
805
  latitude: t.latitude,
793
806
  longitude: t.longitude,
794
807
  fov: t.fov,
@@ -797,7 +810,7 @@ class Za extends V {
797
810
  moveCancelCallback: () => a(),
798
811
  moveEndCallback: () => a()
799
812
  });
800
- n instanceof Promise && n.then(() => a()), s && r.once("panoArrived", () => a());
813
+ p instanceof Promise && p.then(() => a()), s && r.once("panoArrived", () => a());
801
814
  }), s && (this.privateState.modeChanging = !1);
802
815
  });
803
816
  }
@@ -821,18 +834,18 @@ class Za extends V {
821
834
  t && (yield new Promise((i, r) => {
822
835
  const o = () => {
823
836
  m(), i();
824
- }, p = () => {
837
+ }, n = () => {
825
838
  m(), r(new Error("Audio failed to play"));
826
839
  }, s = () => {
827
840
  this.privateState.audio && (this.privateState.audio.pause(), this.privateState.audio.currentTime = 0, this.privateState.audio = null);
828
841
  }, m = () => {
829
- t.removeEventListener("playing", o), t.removeEventListener("error", p);
842
+ t.removeEventListener("playing", o), t.removeEventListener("error", n);
830
843
  };
831
- t.addEventListener("playing", o), t.addEventListener("error", p), t.addEventListener("ended", s), t.play().catch(r);
844
+ t.addEventListener("playing", o), t.addEventListener("error", n), t.addEventListener("ended", s), t.play().catch(r);
832
845
  }));
833
846
  });
834
847
  }
835
848
  }
836
849
  export {
837
- Za as default
850
+ dm as default
838
851
  };
@@ -1,4 +1,4 @@
1
- import { typing as vm } from "./typing/index.js";
1
+ import { typing as zm } from "./typing/index.js";
2
2
  import t from "./Work.js";
3
3
  import i from "./Move.js";
4
4
  import "../GuideLinePlugin/index.js";
@@ -143,23 +143,25 @@ import "../shared-utils/three/GLTFLoader.js";
143
143
  import "@realsee/five/gltf-loader";
144
144
  import "../PanoTagPlugin/utils/planeNormal.js";
145
145
  import "../PanoTagPlugin/Components/Tag/index.js";
146
- import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
147
- import "../PanoTagPlugin/utils/px2rem.js";
148
- import "../PanoTagPlugin/Components/Common/Shadow.js";
146
+ import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
147
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
148
+ import "../PanoTagPlugin/Components/Common/Line/Straight.js";
149
149
  import "../vendor/svelte/transition/index.js";
150
150
  import "../vendor/svelte/easing/index.js";
151
+ import "../PanoTagPlugin/Components/Common/Shadow.js";
152
+ import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
153
+ import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
154
+ import "../PanoTagPlugin/utils/search.js";
155
+ import "../PanoTagPlugin/utils/constants.js";
156
+ import "../PanoTagPlugin/Components/Common/Arrow.js";
157
+ import "../PanoTagPlugin/utils/doUtil.js";
151
158
  import "../shared-utils/svelte/resizeObserver.js";
152
159
  import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
153
- import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
154
- import "../PanoTagPlugin/utils/noTypecheck.js";
155
- import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
156
- import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
157
- import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
160
+ import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
158
161
  import "../PanoTagPlugin/Components/Common/Text/MText.js";
159
- import "../PanoTagPlugin/Components/Common/Audio.js";
160
- import "../PanoTagPlugin/utils/audio/SharedAudio.js";
161
- import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
162
- import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
162
+ import "../PanoTagPlugin/utils/px2rem.js";
163
+ import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
164
+ import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
163
165
  import "../PanoTagPlugin/Components/Common/Media.js";
164
166
  import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
165
167
  import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
@@ -192,6 +194,17 @@ import "../vendor/svelte-carousel/src/utils/lazy.js";
192
194
  import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
193
195
  import "../vendor/svelte-carousel/src/utils/interval.js";
194
196
  import "../PanoTagPlugin/Components/Common/MediaItem.js";
197
+ import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
198
+ import "../PanoTagPlugin/Components/Tag/Assets/marketingIcon.js";
199
+ import "../PanoTagPlugin/utils/noTypecheck.js";
200
+ import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
201
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
202
+ import "../PanoTagPlugin/Components/Common/Audio.js";
203
+ import "../PanoTagPlugin/utils/audio/SharedAudio.js";
204
+ import "../PanoTagPlugin/utils/audio/AudioDiagnostics.js";
205
+ import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
206
+ import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
207
+ import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
195
208
  import "../PanoTagPlugin/Components/Tag/LinkTag.js";
196
209
  import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
197
210
  import "../PanoTagPlugin/utils/getImageInfo.js";
@@ -331,13 +344,13 @@ import "./utils/sleep.js";
331
344
  import "../shared-utils/five/fiveLoaded.js";
332
345
  import "./BaseController.js";
333
346
  import "./utils/getFiveStateOnCurve.js";
334
- const gm = (o, r) => new t(o, r), fm = (o, r) => new i(o, r);
347
+ const bm = (o, r) => new t(o, r), hm = (o, r) => new i(o, r);
335
348
  export {
336
- gm as CruisePlugin,
349
+ bm as CruisePlugin,
337
350
  t as CruisePluginController,
338
- vm as CruisePluginTypes,
351
+ zm as CruisePluginTypes,
339
352
  i as MoveController,
340
- fm as MovePlugin,
353
+ hm as MovePlugin,
341
354
  t as WalkController,
342
- gm as default
355
+ bm as default
343
356
  };