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