@qispace/vue3-player 0.3.49 → 0.3.50
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ba = Object.defineProperty;
|
|
2
2
|
var Ra = (s, a, e) => a in s ? Ba(s, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[a] = e;
|
|
3
3
|
var he = (s, a, e) => (Ra(s, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
-
import { defineComponent as W, ref as c, computed as B, openBlock as v, createElementBlock as D, watch as U, onMounted as Se, onBeforeUnmount as Xe, withDirectives as De, createElementVNode as u, normalizeStyle as ie, vShow as Ae, createVNode as C, Fragment as
|
|
4
|
+
import { defineComponent as W, ref as c, computed as B, openBlock as v, createElementBlock as D, watch as U, onMounted as Se, onBeforeUnmount as Xe, withDirectives as De, createElementVNode as u, normalizeStyle as ie, vShow as Ae, createVNode as C, Fragment as pe, renderList as Ce, createCommentVNode as R, inject as Ue, resolveComponent as V, withCtx as b, toDisplayString as Q, unref as A, createTextVNode as ae, normalizeClass as ge, createBlock as $, renderSlot as oe, provide as Ze, reactive as St, watchEffect as Re, resolveDynamicComponent as ea, normalizeProps as pt, guardReactiveProps as ft, mergeProps as Ee, nextTick as xe, Transition as Be, createSlots as Ua, toRefs as Te, pushScopeId as It, popScopeId as xt, vModelText as Ha, createStaticVNode as ta, onBeforeUpdate as Ya, withModifiers as za } from "vue";
|
|
5
5
|
import Ct from "axios";
|
|
6
6
|
import * as ja from "@qispace/player-core";
|
|
7
7
|
import { Vector3 as dt, Object3D as Pa, MathUtils as Wa } from "three";
|
|
@@ -143,10 +143,10 @@ const Ga = /* @__PURE__ */ W({
|
|
|
143
143
|
});
|
|
144
144
|
function G() {
|
|
145
145
|
l.value = x.value.getContext("2d", { willReadFrequently: !0 }), d.value = new Image(), d.value.onload = () => {
|
|
146
|
-
We(), x.value.addEventListener("mousemove", Le(
|
|
146
|
+
We(), x.value.addEventListener("mousemove", Le(ve, 50));
|
|
147
147
|
}, d.value.src = te.value;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ve(N) {
|
|
150
150
|
const ee = Z(N.offsetX, N.offsetY);
|
|
151
151
|
w.value = ee >= 0, p.value = ee, n.value = {
|
|
152
152
|
x: N.offsetX,
|
|
@@ -415,7 +415,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
415
415
|
key: 0,
|
|
416
416
|
viewBox: l.value.viewBox
|
|
417
417
|
}, [
|
|
418
|
-
(v(!0), D(
|
|
418
|
+
(v(!0), D(pe, null, Ce(l.value.svgObjects, ({ index: x, svg: M }) => (v(), D("g", {
|
|
419
419
|
key: x,
|
|
420
420
|
innerHTML: M,
|
|
421
421
|
style: ie(_(x)),
|
|
@@ -704,7 +704,7 @@ const on = {
|
|
|
704
704
|
_: 1
|
|
705
705
|
})
|
|
706
706
|
])) : d.value ? (v(), D("div", cn, [
|
|
707
|
-
(v(!0), D(
|
|
707
|
+
(v(!0), D(pe, null, Ce(l.value, (L) => (v(), D("picture", {
|
|
708
708
|
key: L.index,
|
|
709
709
|
alt: L.index,
|
|
710
710
|
class: ge({ "frame-image": !0, show: L.show })
|
|
@@ -795,7 +795,7 @@ const on = {
|
|
|
795
795
|
setup(s, { expose: a, emit: e }) {
|
|
796
796
|
const o = s, n = e;
|
|
797
797
|
a({
|
|
798
|
-
adjustZoom:
|
|
798
|
+
adjustZoom: ve
|
|
799
799
|
});
|
|
800
800
|
const t = c(100), r = c(0), l = c(0), d = c(!1), m = c(!1), i = c(void 0), p = c(!1), w = c(), k = B(() => `translateX(${r.value}px) translateY(${l.value}px) scale(${f.value})`), f = B(() => t.value / 100), h = B(() => o.maxScale * 100);
|
|
801
801
|
U(
|
|
@@ -869,7 +869,7 @@ const on = {
|
|
|
869
869
|
}
|
|
870
870
|
function L(O) {
|
|
871
871
|
const { x: Z, y: q } = S(O);
|
|
872
|
-
|
|
872
|
+
ve(-O.deltaY / 10, Z, q), O.preventDefault();
|
|
873
873
|
}
|
|
874
874
|
function P(O) {
|
|
875
875
|
d.value = !0, p.value = !1, i.value = O;
|
|
@@ -907,7 +907,7 @@ const on = {
|
|
|
907
907
|
), { x: re, y: be } = S(O.touches[1]), { x: le, y: Fe } = S(
|
|
908
908
|
i.value.touches[1]
|
|
909
909
|
), Me = Math.hypot(ne - le, ue - Fe), We = Math.hypot(Z - re, q - be), we = (re + Z) / 2, Ie = (be + q) / 2;
|
|
910
|
-
|
|
910
|
+
ve(We - Me, we, Ie);
|
|
911
911
|
}
|
|
912
912
|
i.value = O;
|
|
913
913
|
}
|
|
@@ -935,7 +935,7 @@ const on = {
|
|
|
935
935
|
-(q - Z)
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function ve(O, Z, q) {
|
|
939
939
|
const ne = Z !== void 0 ? Z : w.value.clientWidth / 2, ue = q !== void 0 ? q : w.value.clientHeight / 2, re = w.value.clientWidth, be = w.value.clientHeight, le = re * f.value, Fe = be * f.value;
|
|
940
940
|
t.value = Math.min(Math.max(100, t.value + O), h.value);
|
|
941
941
|
const Me = re * f.value, We = be * f.value, we = Me - le, Ie = We - Fe;
|
|
@@ -1074,12 +1074,12 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1074
1074
|
for (let z = 0; z < $t; z++)
|
|
1075
1075
|
S.push(I), I = aa(I);
|
|
1076
1076
|
return H.sort((z, G) => {
|
|
1077
|
-
const
|
|
1077
|
+
const ve = S.findIndex(
|
|
1078
1078
|
(O) => O === r.value[z[te]]
|
|
1079
1079
|
), Y = S.findIndex(
|
|
1080
1080
|
(O) => O === r.value[G[te]]
|
|
1081
1081
|
);
|
|
1082
|
-
return
|
|
1082
|
+
return ve < Y ? -1 : ve > Y ? 1 : 0;
|
|
1083
1083
|
}), H;
|
|
1084
1084
|
}, K = (H) => {
|
|
1085
1085
|
m.value = new bn(H);
|
|
@@ -1217,7 +1217,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1217
1217
|
},
|
|
1218
1218
|
setup(s) {
|
|
1219
1219
|
const a = s;
|
|
1220
|
-
return (e, o) => (v(!0), D(
|
|
1220
|
+
return (e, o) => (v(!0), D(pe, null, Ce(a.dayData.timeSamples, (n) => (v(), $(On, {
|
|
1221
1221
|
"time-sample-data": n,
|
|
1222
1222
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
1223
1223
|
"current-time": e.currentTime
|
|
@@ -1232,7 +1232,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1232
1232
|
},
|
|
1233
1233
|
setup(s) {
|
|
1234
1234
|
const a = s;
|
|
1235
|
-
return (e, o) => (v(!0), D(
|
|
1235
|
+
return (e, o) => (v(!0), D(pe, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(En, {
|
|
1236
1236
|
"day-data": n,
|
|
1237
1237
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
1238
1238
|
"current-time": a.currentTime
|
|
@@ -1541,7 +1541,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1541
1541
|
}
|
|
1542
1542
|
return (f, h) => {
|
|
1543
1543
|
const g = V("v-btn"), _ = V("v-chip");
|
|
1544
|
-
return v(), D(
|
|
1544
|
+
return v(), D(pe, null, [
|
|
1545
1545
|
C(g, {
|
|
1546
1546
|
class: "mx-2",
|
|
1547
1547
|
icon: "mdi-restore",
|
|
@@ -2056,7 +2056,7 @@ const no = {
|
|
|
2056
2056
|
function G(Y) {
|
|
2057
2057
|
o("onHoverOut", Y), m.value = void 0;
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function ve(Y) {
|
|
2060
2060
|
const { layerX: O, layerY: Z } = Y;
|
|
2061
2061
|
let q = Y.target, ne = !1;
|
|
2062
2062
|
for (; q; )
|
|
@@ -2079,7 +2079,7 @@ const no = {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
return (Y, O) => {
|
|
2081
2081
|
const Z = V("v-skeleton-loader");
|
|
2082
|
-
return v(), D(
|
|
2082
|
+
return v(), D(pe, null, [
|
|
2083
2083
|
C(Z, {
|
|
2084
2084
|
type: "image",
|
|
2085
2085
|
class: "w-100 h-100 position-relative",
|
|
@@ -2092,7 +2092,7 @@ const no = {
|
|
|
2092
2092
|
ref_key: "container",
|
|
2093
2093
|
ref: _,
|
|
2094
2094
|
class: ge({ mobile: T.value }),
|
|
2095
|
-
onMousemove:
|
|
2095
|
+
onMousemove: ve
|
|
2096
2096
|
}, [
|
|
2097
2097
|
u("div", no, [
|
|
2098
2098
|
u("div", oo, [
|
|
@@ -2146,13 +2146,13 @@ const no = {
|
|
|
2146
2146
|
]),
|
|
2147
2147
|
C(st, { position: "relative" }, {
|
|
2148
2148
|
default: b(() => [
|
|
2149
|
-
(v(!0), D(
|
|
2149
|
+
(v(!0), D(pe, null, Ce(L.value, (q) => (v(), $(Tn, {
|
|
2150
2150
|
key: q.overlayFilename,
|
|
2151
2151
|
"camera-data": q,
|
|
2152
2152
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2153
2153
|
"current-time": r.value
|
|
2154
2154
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
|
|
2155
|
-
(v(!0), D(
|
|
2155
|
+
(v(!0), D(pe, null, Ce(P.value, (q) => (v(), $(Bn, {
|
|
2156
2156
|
"transition-data": q,
|
|
2157
2157
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2158
2158
|
"current-transition": l.value
|
|
@@ -2344,7 +2344,7 @@ const no = {
|
|
|
2344
2344
|
onLoad: l
|
|
2345
2345
|
}, null, 544),
|
|
2346
2346
|
n.value === "preloaded" || n.value === "loaded" ? De((v(), D("div", _o, [
|
|
2347
|
-
(v(!0), D(
|
|
2347
|
+
(v(!0), D(pe, null, Ce(m.imageUrls, (p, w) => (v(), D("img", {
|
|
2348
2348
|
key: w,
|
|
2349
2349
|
class: ge({ "image-instance": !0, active: w === m.activeIndex }),
|
|
2350
2350
|
src: p,
|
|
@@ -2410,8 +2410,8 @@ const no = {
|
|
|
2410
2410
|
viewLongitude: S.viewLongitude
|
|
2411
2411
|
};
|
|
2412
2412
|
const z = [];
|
|
2413
|
-
for (let { id: G, url:
|
|
2414
|
-
i.value.loadJson(
|
|
2413
|
+
for (let { id: G, url: ve } of S.buildingOverlays)
|
|
2414
|
+
i.value.loadJson(ve.replace(".png", ".svg")).then((Y) => {
|
|
2415
2415
|
const Z = new DOMParser().parseFromString(Y, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
2416
2416
|
w.value = Z.getAttribute("viewBox"), z.push({
|
|
2417
2417
|
id: G,
|
|
@@ -2441,12 +2441,12 @@ const no = {
|
|
|
2441
2441
|
I === l.value ? "hover" : "idle"
|
|
2442
2442
|
);
|
|
2443
2443
|
if (S) {
|
|
2444
|
-
const { r: z, g: G, b:
|
|
2444
|
+
const { r: z, g: G, b: ve, a: Y, s: O } = S;
|
|
2445
2445
|
return {
|
|
2446
2446
|
strokeWidth: O !== void 0 ? O : 2,
|
|
2447
|
-
stroke: `rgb(${z}, ${G}, ${
|
|
2447
|
+
stroke: `rgb(${z}, ${G}, ${ve})`,
|
|
2448
2448
|
strokeOpacity: 1,
|
|
2449
|
-
fill: `rgb(${z}, ${G}, ${
|
|
2449
|
+
fill: `rgb(${z}, ${G}, ${ve})`,
|
|
2450
2450
|
fillOpacity: Y / 255,
|
|
2451
2451
|
cursor: `${e.canGoToBuildingCallback(I) ? "cursor" : "default"} !important`
|
|
2452
2452
|
};
|
|
@@ -2521,9 +2521,9 @@ const no = {
|
|
|
2521
2521
|
p.value ? De((v(), D("div", So, [
|
|
2522
2522
|
u("div", Io, [
|
|
2523
2523
|
(v(), D("svg", { viewBox: w.value }, [
|
|
2524
|
-
(v(!0), D(
|
|
2524
|
+
(v(!0), D(pe, null, Ce(p.value, ({ id: G, svg: ve }, Y) => (v(), D("g", {
|
|
2525
2525
|
key: Y,
|
|
2526
|
-
innerHTML:
|
|
2526
|
+
innerHTML: ve,
|
|
2527
2527
|
"data-building-id": G,
|
|
2528
2528
|
class: ge(P(G)),
|
|
2529
2529
|
style: ie(x(G)),
|
|
@@ -2701,11 +2701,11 @@ const no = {
|
|
|
2701
2701
|
t.value = { preloaded: !1, ready: !1 };
|
|
2702
2702
|
}
|
|
2703
2703
|
function P(I) {
|
|
2704
|
-
const { layerX: S, layerY: z } = I, { x: G, y:
|
|
2704
|
+
const { layerX: S, layerY: z } = I, { x: G, y: ve } = k.value(S, z);
|
|
2705
2705
|
return m.value.getBuildingId(
|
|
2706
2706
|
i.value,
|
|
2707
2707
|
G,
|
|
2708
|
-
|
|
2708
|
+
ve
|
|
2709
2709
|
);
|
|
2710
2710
|
}
|
|
2711
2711
|
function x() {
|
|
@@ -2764,7 +2764,7 @@ const no = {
|
|
|
2764
2764
|
onReset: L
|
|
2765
2765
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2766
2766
|
De(u("div", null, [
|
|
2767
|
-
(v(!0), D(
|
|
2767
|
+
(v(!0), D(pe, null, Ce(d.value.buildingOverlays, (G) => (v(), $(Oo, {
|
|
2768
2768
|
ref_for: !0,
|
|
2769
2769
|
ref_key: "overlays",
|
|
2770
2770
|
ref: _,
|
|
@@ -2902,7 +2902,7 @@ const no = {
|
|
|
2902
2902
|
},
|
|
2903
2903
|
setup(s) {
|
|
2904
2904
|
const a = s;
|
|
2905
|
-
return (e, o) => (v(!0), D(
|
|
2905
|
+
return (e, o) => (v(!0), D(pe, null, Ce(a.dayData.timeSamples, (n) => (v(), $(Yo, {
|
|
2906
2906
|
"time-sample-data": n,
|
|
2907
2907
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
2908
2908
|
"current-time": e.currentTime
|
|
@@ -2917,7 +2917,7 @@ const no = {
|
|
|
2917
2917
|
},
|
|
2918
2918
|
setup(s) {
|
|
2919
2919
|
const a = s;
|
|
2920
|
-
return (e, o) => (v(!0), D(
|
|
2920
|
+
return (e, o) => (v(!0), D(pe, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(zo, {
|
|
2921
2921
|
"day-data": n,
|
|
2922
2922
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
2923
2923
|
"current-time": a.currentTime
|
|
@@ -3374,7 +3374,7 @@ const tl = {
|
|
|
3374
3374
|
}
|
|
3375
3375
|
return (M, K) => {
|
|
3376
3376
|
const H = V("v-skeleton-loader");
|
|
3377
|
-
return v(), D(
|
|
3377
|
+
return v(), D(pe, null, [
|
|
3378
3378
|
C(H, {
|
|
3379
3379
|
type: "image",
|
|
3380
3380
|
class: "w-100 h-100 position-relative",
|
|
@@ -3422,7 +3422,7 @@ const tl = {
|
|
|
3422
3422
|
]),
|
|
3423
3423
|
C(st, { position: "relative" }, {
|
|
3424
3424
|
default: b(() => [
|
|
3425
|
-
(v(!0), D(
|
|
3425
|
+
(v(!0), D(pe, null, Ce(f.value.cameras, (te) => (v(), $(jo, {
|
|
3426
3426
|
key: te.overlayFilename,
|
|
3427
3427
|
"camera-data": te,
|
|
3428
3428
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
@@ -3743,7 +3743,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3743
3743
|
]),
|
|
3744
3744
|
default: b(() => [
|
|
3745
3745
|
u("div", Bl, [
|
|
3746
|
-
(v(!0), D(
|
|
3746
|
+
(v(!0), D(pe, null, Ce(e.availableArchetypes, (p, w) => (v(), D("div", {
|
|
3747
3747
|
key: `at-menuitem-${w}`,
|
|
3748
3748
|
onClick: (k) => o("selectInterior", p.archetypeID),
|
|
3749
3749
|
class: ge(["interior-selector-list-item", {
|
|
@@ -4742,7 +4742,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4742
4742
|
return v(), D("div", Bs, [
|
|
4743
4743
|
u("form", Rs, [
|
|
4744
4744
|
u("div", Us, [
|
|
4745
|
-
(v(!0), D(
|
|
4745
|
+
(v(!0), D(pe, null, Ce(n.value, (x, M, K) => (v(), D("div", {
|
|
4746
4746
|
key: K,
|
|
4747
4747
|
"d-block": ""
|
|
4748
4748
|
}, [
|
|
@@ -5096,7 +5096,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5096
5096
|
class: "center-pivot",
|
|
5097
5097
|
style: ie(d.value)
|
|
5098
5098
|
}, [
|
|
5099
|
-
(v(!0), D(
|
|
5099
|
+
(v(!0), D(pe, null, Ce(y.value, (z) => (v(), D("div", {
|
|
5100
5100
|
key: z.id
|
|
5101
5101
|
}, [
|
|
5102
5102
|
f.value.floorLevel === z.floorLevel ? (v(), D("div", {
|
|
@@ -5453,7 +5453,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5453
5453
|
u("span", Mr, Q(A(wt)(l.value)), 1)
|
|
5454
5454
|
]),
|
|
5455
5455
|
_: 1
|
|
5456
|
-
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(
|
|
5456
|
+
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(pe, { key: 1 }, [
|
|
5457
5457
|
C(i, {
|
|
5458
5458
|
style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
|
|
5459
5459
|
class: "mr-2 icon",
|
|
@@ -5618,7 +5618,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5618
5618
|
}, null, 8, ["class"]))
|
|
5619
5619
|
]),
|
|
5620
5620
|
default: b(() => [
|
|
5621
|
-
(v(!0), D(
|
|
5621
|
+
(v(!0), D(pe, null, Ce(m.thumbnails, (_) => (v(), $(h, {
|
|
5622
5622
|
key: _.id
|
|
5623
5623
|
}, {
|
|
5624
5624
|
default: b(({ toggle: y, selectedClass: T }) => [
|
|
@@ -6009,7 +6009,7 @@ const Nr = {
|
|
|
6009
6009
|
screenToWorld: La,
|
|
6010
6010
|
clearCurrentMarkerLayer: Aa
|
|
6011
6011
|
});
|
|
6012
|
-
const z = c(!1), G = c(!1),
|
|
6012
|
+
const z = c(!1), G = c(!1), ve = c(!1), Y = c(), O = c(), Z = c(), q = c(), ne = c(), ue = c(0), re = c(), be = c(), le = c(), Fe = c(0), Me = c(0), We = c(0), we = c(!1), Ie = c(!1), Ve = c(), Le = c(!1), N = c(!1), ee = c(
|
|
6013
6013
|
new da(document, "player-wrapper")
|
|
6014
6014
|
), ye = c(), Ge = B(() => {
|
|
6015
6015
|
if (O.value) {
|
|
@@ -6071,7 +6071,7 @@ const Nr = {
|
|
|
6071
6071
|
);
|
|
6072
6072
|
const fe = B(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
6073
6073
|
window.navigator.userAgent
|
|
6074
|
-
)),
|
|
6074
|
+
)), me = B(() => fe.value ? "platform-mobile" : "platform-desktop"), ze = B(() => {
|
|
6075
6075
|
const F = ce(
|
|
6076
6076
|
n.value,
|
|
6077
6077
|
"/config.json"
|
|
@@ -6088,7 +6088,7 @@ const Nr = {
|
|
|
6088
6088
|
try {
|
|
6089
6089
|
be.value = void 0, await va(), pa(), await ma(), ee.value.setup(), fa();
|
|
6090
6090
|
} catch (F) {
|
|
6091
|
-
|
|
6091
|
+
ve.value = !0, S("onError", F);
|
|
6092
6092
|
}
|
|
6093
6093
|
},
|
|
6094
6094
|
{ immediate: !0 }
|
|
@@ -6113,7 +6113,7 @@ const Nr = {
|
|
|
6113
6113
|
z.value = !0;
|
|
6114
6114
|
}, 1e3);
|
|
6115
6115
|
} catch (F) {
|
|
6116
|
-
|
|
6116
|
+
ve.value = !0, S("onError", F);
|
|
6117
6117
|
}
|
|
6118
6118
|
}), Xe(() => {
|
|
6119
6119
|
document.removeEventListener("wheel", At);
|
|
@@ -6361,9 +6361,9 @@ const Nr = {
|
|
|
6361
6361
|
return (F, j) => {
|
|
6362
6362
|
const se = V("v-btn");
|
|
6363
6363
|
return v(), D("div", {
|
|
6364
|
-
class: ge(["virtual-tour-wrapper", [
|
|
6364
|
+
class: ge(["virtual-tour-wrapper", [me.value]])
|
|
6365
6365
|
}, [
|
|
6366
|
-
|
|
6366
|
+
ve.value ? (v(), D("div", Nr, "Error loading the player!!")) : R("", !0),
|
|
6367
6367
|
u("div", Gr, [
|
|
6368
6368
|
!ee.value.isActive && q.value && le.value && E.value && re.value && Ie.value ? (v(), $(Zt, {
|
|
6369
6369
|
key: 0,
|
|
@@ -6377,7 +6377,7 @@ const Nr = {
|
|
|
6377
6377
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : R("", !0),
|
|
6378
6378
|
re.value && be.value ? (v(), D("div", {
|
|
6379
6379
|
key: 1,
|
|
6380
|
-
class: ge(["v-player", [
|
|
6380
|
+
class: ge(["v-player", [me.value]])
|
|
6381
6381
|
}, [
|
|
6382
6382
|
C(Fl, {
|
|
6383
6383
|
ref_key: "vPlayerInstance",
|
|
@@ -6987,7 +6987,7 @@ const Nr = {
|
|
|
6987
6987
|
},
|
|
6988
6988
|
setup(s) {
|
|
6989
6989
|
const a = s, { dayData: e, cdnFileResolver: o, currentTime: n } = Te(a);
|
|
6990
|
-
return (t, r) => (v(!0), D(
|
|
6990
|
+
return (t, r) => (v(!0), D(pe, null, Ce(A(e).timeSamples, (l, d) => (v(), $(xi, {
|
|
6991
6991
|
key: d,
|
|
6992
6992
|
"time-sample-data": l,
|
|
6993
6993
|
"cdn-file-resolver": A(o),
|
|
@@ -7013,23 +7013,21 @@ const Nr = {
|
|
|
7013
7013
|
});
|
|
7014
7014
|
});
|
|
7015
7015
|
const m = B(() => ce(o.value, e.value.defaultFilename));
|
|
7016
|
-
return (i, p) => (v(), D(
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
}, null, 12, Ai)
|
|
7030
|
-
], 64));
|
|
7016
|
+
return (i, p) => A(e).sunsimDayOfYear ? (v(!0), D(pe, { key: 0 }, Ce(A(e).sunsimDayOfYear, (w, k) => (v(), $(Di, {
|
|
7017
|
+
key: k,
|
|
7018
|
+
"day-data": w,
|
|
7019
|
+
"cdn-file-resolver": A(o),
|
|
7020
|
+
"current-day": i.currentDay,
|
|
7021
|
+
"current-time": A(t)
|
|
7022
|
+
}, null, 8, ["day-data", "cdn-file-resolver", "current-day", "current-time"]))), 128)) : (v(), D("img", {
|
|
7023
|
+
key: 1,
|
|
7024
|
+
ref_key: "image",
|
|
7025
|
+
ref: r,
|
|
7026
|
+
style: ie({ visibility: A(n) === A(e) ? "visible" : "hidden" }),
|
|
7027
|
+
src: m.value
|
|
7028
|
+
}, null, 12, Ai));
|
|
7031
7029
|
}
|
|
7032
|
-
}), Li = /* @__PURE__ */ X(Fi, [["__scopeId", "data-v-
|
|
7030
|
+
}), Li = /* @__PURE__ */ X(Fi, [["__scopeId", "data-v-da694d37"]]), Mi = ["src"], Oi = /* @__PURE__ */ W({
|
|
7033
7031
|
__name: "VStructureChooserTransition",
|
|
7034
7032
|
props: {
|
|
7035
7033
|
transitionData: {},
|
|
@@ -7120,7 +7118,7 @@ const Ti = {
|
|
|
7120
7118
|
default: b(() => [
|
|
7121
7119
|
C(h, null, {
|
|
7122
7120
|
default: b(() => [
|
|
7123
|
-
(v(!0), D(
|
|
7121
|
+
(v(!0), D(pe, null, Ce(A(n).sunsimDayOfYear, (_, y) => (v(), $(f, {
|
|
7124
7122
|
key: y,
|
|
7125
7123
|
value: y,
|
|
7126
7124
|
onClick: (T) => d.value = _.dayOfYear
|
|
@@ -7197,7 +7195,7 @@ const Ti = {
|
|
|
7197
7195
|
})
|
|
7198
7196
|
}, [
|
|
7199
7197
|
u("div", Bi, [
|
|
7200
|
-
(v(!0), D(
|
|
7198
|
+
(v(!0), D(pe, null, Ce(A(n), (f, h) => (v(), D("div", {
|
|
7201
7199
|
key: h,
|
|
7202
7200
|
class: ge(["still-camera-image d-flex flex-column flex-reverse align-center elevation-2", {
|
|
7203
7201
|
"active-camera": f === d.value
|
|
@@ -7306,7 +7304,7 @@ const Ti = {
|
|
|
7306
7304
|
u("span", ji, Q(A(wt)(d.value)), 1)
|
|
7307
7305
|
]),
|
|
7308
7306
|
_: 1
|
|
7309
|
-
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(
|
|
7307
|
+
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(pe, { key: 1 }, [
|
|
7310
7308
|
C(p, {
|
|
7311
7309
|
style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
|
|
7312
7310
|
class: "mr-2 icon",
|
|
@@ -7805,7 +7803,7 @@ const lu = {
|
|
|
7805
7803
|
defaultDay: p,
|
|
7806
7804
|
defaultTime: w,
|
|
7807
7805
|
mobileBreakpoint: k
|
|
7808
|
-
} = Te(o), f = e, h = c(), g = c(), _ = c(), y = c(null), T = c(4), L = c(), P = c(!1), x = c(!1), M = c(), K = B(() => M.value.isHoverEnabled), H = c({ x: 0, y: 0, width: 0, height: 0 }), te = c(), I = c(), S = c(), z = c(!1), G = c(1),
|
|
7806
|
+
} = Te(o), f = e, h = c(), g = c(), _ = c(), y = c(null), T = c(4), L = c(), P = c(!1), x = c(!1), M = c(), K = B(() => M.value.isHoverEnabled), H = c({ x: 0, y: 0, width: 0, height: 0 }), te = c(), I = c(), S = c(), z = c(!1), G = c(1), ve = c(0), Y = c([]), O = c(), Z = c({
|
|
7809
7807
|
current: 100,
|
|
7810
7808
|
min: 100,
|
|
7811
7809
|
max: 1e3
|
|
@@ -7839,9 +7837,9 @@ const lu = {
|
|
|
7839
7837
|
currentDayIndex: J,
|
|
7840
7838
|
currentTimeIndex: de,
|
|
7841
7839
|
currentTransitionIndex: fe,
|
|
7842
|
-
currentScene:
|
|
7840
|
+
currentScene: me
|
|
7843
7841
|
}) => {
|
|
7844
|
-
typeof E == "number" && (h.value = le.value[E]), typeof J == "number" && (g.value = h.value.sunsimDayOfYear[J]), typeof de == "number" && (_.value = g.value.timeSamples[de]), typeof fe == "number" && (y.value = Fe.value[fe]), typeof
|
|
7842
|
+
typeof E == "number" && (h.value = le.value[E]), typeof J == "number" && (g.value = h.value.sunsimDayOfYear[J]), typeof de == "number" && (_.value = g.value.timeSamples[de]), typeof fe == "number" && (y.value = Fe.value[fe]), typeof me == "number" && (T.value = me);
|
|
7845
7843
|
},
|
|
7846
7844
|
resolveCoordinates: (E, J) => ne.value ? ne.value(E, J) : { x: 0, y: 0 }
|
|
7847
7845
|
}), Se(() => {
|
|
@@ -7849,12 +7847,12 @@ const lu = {
|
|
|
7849
7847
|
}), U(I, () => {
|
|
7850
7848
|
I.value && new ResizeObserver(([]) => {
|
|
7851
7849
|
const J = Y.value.find((de) => de.loaded);
|
|
7852
|
-
J && (
|
|
7850
|
+
J && (ve.value = J.image.width / G.value);
|
|
7853
7851
|
}).observe(I.value);
|
|
7854
7852
|
}), U(Y, () => {
|
|
7855
|
-
if (
|
|
7853
|
+
if (ve.value === 0) {
|
|
7856
7854
|
const E = Y.value.find((J) => J.loaded);
|
|
7857
|
-
E && (G.value = E.image.naturalWidth / E.image.naturalHeight,
|
|
7855
|
+
E && (G.value = E.image.naturalWidth / E.image.naturalHeight, ve.value = E.image.width / G.value);
|
|
7858
7856
|
}
|
|
7859
7857
|
});
|
|
7860
7858
|
const ue = B(() => Y.value.every((E) => E.loaded)), re = B(() => Math.round(
|
|
@@ -7988,14 +7986,14 @@ const lu = {
|
|
|
7988
7986
|
}
|
|
7989
7987
|
function ye(E) {
|
|
7990
7988
|
const { layerX: J, layerY: de } = E;
|
|
7991
|
-
let fe = E.target,
|
|
7989
|
+
let fe = E.target, me = !1;
|
|
7992
7990
|
for (; fe; )
|
|
7993
7991
|
if (fe === te.value) {
|
|
7994
|
-
|
|
7992
|
+
me = !0;
|
|
7995
7993
|
break;
|
|
7996
7994
|
} else
|
|
7997
7995
|
fe = fe.parentElement;
|
|
7998
|
-
if (
|
|
7996
|
+
if (me) {
|
|
7999
7997
|
const ze = E.currentTarget;
|
|
8000
7998
|
H.value = {
|
|
8001
7999
|
x: J,
|
|
@@ -8026,25 +8024,25 @@ const lu = {
|
|
|
8026
8024
|
async function _e(E) {
|
|
8027
8025
|
const J = T.value;
|
|
8028
8026
|
if (S.value.loopable) {
|
|
8029
|
-
const de = S.value.stillCameraIndices.length, fe = Ye(J),
|
|
8027
|
+
const de = S.value.stillCameraIndices.length, fe = Ye(J), me = Ye(E);
|
|
8030
8028
|
let ze = 0, ct = 0, Pe = fe;
|
|
8031
|
-
for (; Pe++, Pe >= de && (Pe = 0), Pe !==
|
|
8029
|
+
for (; Pe++, Pe >= de && (Pe = 0), Pe !== me; )
|
|
8032
8030
|
ze++;
|
|
8033
|
-
for (Pe = fe; Pe--, Pe < 0 && (Pe += de), Pe !==
|
|
8031
|
+
for (Pe = fe; Pe--, Pe < 0 && (Pe += de), Pe !== me; )
|
|
8034
8032
|
ct++;
|
|
8035
|
-
ze === ct ? Ne(J, E) : ze < ct ? fe <
|
|
8033
|
+
ze === ct ? Ne(J, E) : ze < ct ? fe < me ? Ne(J, E) : Ne(J, E + S.value.cameras.length) : fe >= me ? Ne(J, E) : Ne(J + S.value.cameras.length, E);
|
|
8036
8034
|
} else
|
|
8037
8035
|
Ne(J, E);
|
|
8038
8036
|
}
|
|
8039
8037
|
function Ne(E, J) {
|
|
8040
8038
|
return new Promise((de) => {
|
|
8041
8039
|
x.value = !0;
|
|
8042
|
-
let fe,
|
|
8040
|
+
let fe, me = E;
|
|
8043
8041
|
fe = setInterval(() => {
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
), We(T.value)) :
|
|
8047
|
-
|
|
8042
|
+
me < J ? (me++, T.value = Math.abs(
|
|
8043
|
+
me % S.value.cameras.length
|
|
8044
|
+
), We(T.value)) : me > J ? (me--, T.value = Math.abs(
|
|
8045
|
+
me % S.value.cameras.length
|
|
8048
8046
|
), We(T.value)) : (clearInterval(fe), x.value = !1, de());
|
|
8049
8047
|
}, 12);
|
|
8050
8048
|
});
|
|
@@ -8055,7 +8053,7 @@ const lu = {
|
|
|
8055
8053
|
const ht = (E) => E * (180 / Math.PI);
|
|
8056
8054
|
return (E, J) => {
|
|
8057
8055
|
const de = V("v-progress-circular"), fe = V("v-skeleton-loader");
|
|
8058
|
-
return v(), D(
|
|
8056
|
+
return v(), D(pe, null, [
|
|
8059
8057
|
C(fe, {
|
|
8060
8058
|
type: "image",
|
|
8061
8059
|
class: "w-100 h-100 position-relative",
|
|
@@ -8101,8 +8099,8 @@ const lu = {
|
|
|
8101
8099
|
"can-zoom-out": Z.value.min < Z.value.current,
|
|
8102
8100
|
"can-zoom-in": Z.value.max > Z.value.current,
|
|
8103
8101
|
disabled: x.value,
|
|
8104
|
-
onOnZoomIn: J[0] || (J[0] = (
|
|
8105
|
-
onOnZoomOut: J[1] || (J[1] = (
|
|
8102
|
+
onOnZoomIn: J[0] || (J[0] = (me) => $e(!0)),
|
|
8103
|
+
onOnZoomOut: J[1] || (J[1] = (me) => $e(!1))
|
|
8106
8104
|
}, null, 8, ["is-mobile-sized", "can-zoom-out", "can-zoom-in", "disabled"])
|
|
8107
8105
|
], 4)) : R("", !0),
|
|
8108
8106
|
E.showUi && le.value.length > 1 ? (v(), D("div", {
|
|
@@ -8131,19 +8129,19 @@ const lu = {
|
|
|
8131
8129
|
default: b(() => [
|
|
8132
8130
|
u("div", {
|
|
8133
8131
|
class: "w-100 position-relative",
|
|
8134
|
-
style: ie({ height: `${
|
|
8132
|
+
style: ie({ height: `${ve.value}px` })
|
|
8135
8133
|
}, [
|
|
8136
|
-
(v(!0), D(
|
|
8134
|
+
(v(!0), D(pe, null, Ce(le.value, (me, ze) => (v(), $(Li, {
|
|
8137
8135
|
key: `camera${ze}`,
|
|
8138
|
-
"camera-data":
|
|
8136
|
+
"camera-data": me,
|
|
8139
8137
|
"cdn-file-resolver": A(t),
|
|
8140
8138
|
"current-camera": h.value,
|
|
8141
8139
|
"current-day": g.value,
|
|
8142
8140
|
"current-time": _.value
|
|
8143
8141
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-camera", "current-day", "current-time"]))), 128)),
|
|
8144
|
-
(v(!0), D(
|
|
8142
|
+
(v(!0), D(pe, null, Ce(Fe.value, (me, ze) => (v(), $(Ei, {
|
|
8145
8143
|
key: `transition${ze}`,
|
|
8146
|
-
"transition-data":
|
|
8144
|
+
"transition-data": me,
|
|
8147
8145
|
"cdn-file-resolver": A(t),
|
|
8148
8146
|
"current-transition": y.value
|
|
8149
8147
|
}, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 128)),
|
|
@@ -8163,7 +8161,7 @@ const lu = {
|
|
|
8163
8161
|
onOnClick: Le,
|
|
8164
8162
|
onOnHoverOver: N,
|
|
8165
8163
|
onOnHoverOut: ee,
|
|
8166
|
-
onUpdateSvgContainer: J[2] || (J[2] = (
|
|
8164
|
+
onUpdateSvgContainer: J[2] || (J[2] = (me) => te.value = me),
|
|
8167
8165
|
onOnError: ut
|
|
8168
8166
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id", "activeStructureIds"])), [
|
|
8169
8167
|
[Ae, y.value === null]
|