@qispace/vue3-player 0.3.38 → 0.3.39
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.
|
@@ -89,7 +89,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
89
89
|
width: o.value + "px",
|
|
90
90
|
height: r.value + "px",
|
|
91
91
|
cursor: _.value
|
|
92
|
-
})),
|
|
92
|
+
})), Y = $(() => `hover-${w.value ? "over" : "out"}-${x.value ? typeof x.value == "object" && "unitId" in x.value ? x.value.unitId : x.value : ""}`);
|
|
93
93
|
U(
|
|
94
94
|
B,
|
|
95
95
|
() => {
|
|
@@ -120,7 +120,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
120
120
|
}
|
|
121
121
|
), U(x, () => {
|
|
122
122
|
we(), x.value ? _.value = "pointer" : _.value = "auto";
|
|
123
|
-
}), U(
|
|
123
|
+
}), U(Y, () => {
|
|
124
124
|
w.value ? n("hoverOver", {
|
|
125
125
|
hoverUnit: x.value ? x.value.unitId : !1,
|
|
126
126
|
closeHandler: () => xe()
|
|
@@ -188,7 +188,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
188
188
|
}
|
|
189
189
|
function J(N, K) {
|
|
190
190
|
k.value = N, c.value = K;
|
|
191
|
-
const ve = I.value.offsetWidth / I.value.width, je = I.value.offsetHeight / I.value.height, Re = (N / ve).toFixed(),
|
|
191
|
+
const ve = I.value.offsetWidth / I.value.width, je = I.value.offsetHeight / I.value.height, Re = (N / ve).toFixed(), H = (K / je).toFixed(), Q = Number(H) * (I.value.width * 4) + Number(Re) * 4, fe = i.value.data[Q];
|
|
192
192
|
return i.value.data[Q + 3] > 0 ? fe : -1;
|
|
193
193
|
}
|
|
194
194
|
function q() {
|
|
@@ -199,10 +199,10 @@ const Ga = /* @__PURE__ */ W({
|
|
|
199
199
|
const je = re(K.index);
|
|
200
200
|
let Re = "idle";
|
|
201
201
|
!x.value && e.selectedUnitId && je === e.selectedUnitId ? Re = "selected" : x.value && f.value === K.index && (Re = "hover");
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
202
|
+
const H = e.colorCallback(K.unitId, Re);
|
|
203
|
+
if (H)
|
|
204
204
|
for (let Q = 0; Q < ve.length; Q++)
|
|
205
|
-
p.value.data[ve[Q]] =
|
|
205
|
+
p.value.data[ve[Q]] = H.r, p.value.data[ve[Q] + 1] = H.g, p.value.data[ve[Q] + 2] = H.b, p.value.data[ve[Q] + 3] = H.a;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
});
|
|
@@ -880,7 +880,7 @@ const on = {
|
|
|
880
880
|
x: J - oe,
|
|
881
881
|
y: q - re
|
|
882
882
|
};
|
|
883
|
-
|
|
883
|
+
Y(se.x), G(se.y), f.value = !0, i.value = O;
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
function L(O) {
|
|
@@ -900,7 +900,7 @@ const on = {
|
|
|
900
900
|
x: J - oe,
|
|
901
901
|
y: q - re
|
|
902
902
|
};
|
|
903
|
-
|
|
903
|
+
Y(se.x), G(se.y);
|
|
904
904
|
} else if (p.value && O.touches.length === 2) {
|
|
905
905
|
const { x: J, y: q } = S(O.touches[0]), { x: oe, y: re } = S(
|
|
906
906
|
i.value.touches[0]
|
|
@@ -921,7 +921,7 @@ const on = {
|
|
|
921
921
|
y: O.clientY - q
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function Y(O) {
|
|
925
925
|
const J = w.value.clientWidth, q = J * c.value;
|
|
926
926
|
r.value = Math.max(
|
|
927
927
|
Math.min(0, r.value + O),
|
|
@@ -939,7 +939,7 @@ const on = {
|
|
|
939
939
|
const oe = J !== void 0 ? J : w.value.clientWidth / 2, re = q !== void 0 ? q : w.value.clientHeight / 2, se = w.value.clientWidth, be = w.value.clientHeight, ie = se * c.value, Fe = be * c.value;
|
|
940
940
|
o.value = Math.min(Math.max(100, o.value + O), h.value);
|
|
941
941
|
const Le = se * c.value, ze = be * c.value, we = Le - ie, xe = ze - Fe;
|
|
942
|
-
r.value -= oe / se * we, l.value -= re / be * xe,
|
|
942
|
+
r.value -= oe / se * we, l.value -= re / be * xe, Y(0), G(0);
|
|
943
943
|
}
|
|
944
944
|
function j() {
|
|
945
945
|
a("update", {
|
|
@@ -1071,11 +1071,11 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1071
1071
|
}).reduce((B, te) => ({ ...B, [te.unitId]: te.scene }), {}) : {};
|
|
1072
1072
|
const L = (B, te = "unitId") => {
|
|
1073
1073
|
let x = I, S = [];
|
|
1074
|
-
for (let
|
|
1074
|
+
for (let Y = 0; Y < Ot; Y++)
|
|
1075
1075
|
S.push(x), x = Kt(x);
|
|
1076
|
-
return B.sort((
|
|
1076
|
+
return B.sort((Y, G) => {
|
|
1077
1077
|
const de = S.findIndex(
|
|
1078
|
-
(O) => O === r.value[
|
|
1078
|
+
(O) => O === r.value[Y[te]]
|
|
1079
1079
|
), j = S.findIndex(
|
|
1080
1080
|
(O) => O === r.value[G[te]]
|
|
1081
1081
|
);
|
|
@@ -2050,7 +2050,7 @@ const no = {
|
|
|
2050
2050
|
O && w.value.rotateShortestRoute(O.bestScene);
|
|
2051
2051
|
});
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function Y(j) {
|
|
2054
2054
|
n("onHoverOver", j), p.value = j;
|
|
2055
2055
|
}
|
|
2056
2056
|
function G(j) {
|
|
@@ -2169,7 +2169,7 @@ const no = {
|
|
|
2169
2169
|
"current-camera": a.value,
|
|
2170
2170
|
"selected-id": e.selectedId,
|
|
2171
2171
|
onOnClick: S,
|
|
2172
|
-
onOnHoverOver:
|
|
2172
|
+
onOnHoverOver: Y,
|
|
2173
2173
|
onOnHoverOut: G,
|
|
2174
2174
|
onUpdateSvgContainer: O[2] || (O[2] = (q) => _.value = q)
|
|
2175
2175
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
|
|
@@ -2393,9 +2393,9 @@ const no = {
|
|
|
2393
2393
|
x ? n("hoverOverBuilding", x) : n("hoverOutBuilding", S);
|
|
2394
2394
|
}), Ve(() => {
|
|
2395
2395
|
if (e.buildingChooserTimeOfDay) {
|
|
2396
|
-
const [x, S,
|
|
2396
|
+
const [x, S, Y] = /^(\d\d):(\d\d)$/.exec(
|
|
2397
2397
|
e.buildingChooserTimeOfDay
|
|
2398
|
-
), G = parseInt(
|
|
2398
|
+
), G = parseInt(Y);
|
|
2399
2399
|
m.value = parseInt(S) * 2 + (G < 15 ? 0 : G > 45 ? 2 : 1);
|
|
2400
2400
|
}
|
|
2401
2401
|
}), Ie(async () => {
|
|
@@ -2409,16 +2409,16 @@ const no = {
|
|
|
2409
2409
|
buildingOverlays: S.buildingOverlays,
|
|
2410
2410
|
viewLongitude: S.viewLongitude
|
|
2411
2411
|
};
|
|
2412
|
-
const
|
|
2412
|
+
const Y = [];
|
|
2413
2413
|
for (let { id: G, url: de } of S.buildingOverlays)
|
|
2414
2414
|
i.value.loadJson(de.replace(".png", ".svg")).then((j) => {
|
|
2415
2415
|
const J = new DOMParser().parseFromString(j, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
2416
|
-
w.value = J.getAttribute("viewBox"),
|
|
2416
|
+
w.value = J.getAttribute("viewBox"), Y.push({
|
|
2417
2417
|
id: G,
|
|
2418
2418
|
svg: J.innerHTML
|
|
2419
2419
|
});
|
|
2420
2420
|
});
|
|
2421
|
-
f.value =
|
|
2421
|
+
f.value = Y;
|
|
2422
2422
|
} else
|
|
2423
2423
|
p.value = !0;
|
|
2424
2424
|
});
|
|
@@ -2432,8 +2432,8 @@ const no = {
|
|
|
2432
2432
|
const S = e.colorCallback(
|
|
2433
2433
|
x,
|
|
2434
2434
|
x === l.value ? "hover" : "idle"
|
|
2435
|
-
),
|
|
2436
|
-
return x === l.value ?
|
|
2435
|
+
), Y = [];
|
|
2436
|
+
return x === l.value ? Y.push("hover") : Y.push("idle"), S && e.canGoToBuildingCallback(x) ? Y.push("clickable") : Y.push("restricted"), Y.join(" ");
|
|
2437
2437
|
}
|
|
2438
2438
|
function I(x) {
|
|
2439
2439
|
const S = e.colorCallback(
|
|
@@ -2441,12 +2441,12 @@ const no = {
|
|
|
2441
2441
|
x === l.value ? "hover" : "idle"
|
|
2442
2442
|
);
|
|
2443
2443
|
if (S) {
|
|
2444
|
-
const { r:
|
|
2444
|
+
const { r: Y, g: G, b: de, a: j, s: O } = S;
|
|
2445
2445
|
return {
|
|
2446
2446
|
strokeWidth: O !== void 0 ? O : 2,
|
|
2447
|
-
stroke: `rgb(${
|
|
2447
|
+
stroke: `rgb(${Y}, ${G}, ${de})`,
|
|
2448
2448
|
strokeOpacity: 1,
|
|
2449
|
-
fill: `rgb(${
|
|
2449
|
+
fill: `rgb(${Y}, ${G}, ${de})`,
|
|
2450
2450
|
fillOpacity: j / 255,
|
|
2451
2451
|
cursor: `${e.canGoToBuildingCallback(x) ? "cursor" : "default"} !important`
|
|
2452
2452
|
};
|
|
@@ -2461,27 +2461,27 @@ const no = {
|
|
|
2461
2461
|
};
|
|
2462
2462
|
}
|
|
2463
2463
|
function L(x, S) {
|
|
2464
|
-
const { layerX:
|
|
2464
|
+
const { layerX: Y, layerY: G } = x;
|
|
2465
2465
|
g.value && (r.value = {
|
|
2466
|
-
x:
|
|
2466
|
+
x: Y,
|
|
2467
2467
|
y: G,
|
|
2468
2468
|
width: o.value.width,
|
|
2469
2469
|
height: o.value.height
|
|
2470
2470
|
}, l.value = S, n("hoverOverBuilding", S));
|
|
2471
2471
|
}
|
|
2472
2472
|
function X(x, S) {
|
|
2473
|
-
const { layerX:
|
|
2473
|
+
const { layerX: Y, layerY: G } = x;
|
|
2474
2474
|
g.value && (r.value = {
|
|
2475
|
-
x:
|
|
2475
|
+
x: Y,
|
|
2476
2476
|
y: G,
|
|
2477
2477
|
width: o.value.width,
|
|
2478
2478
|
height: o.value.height
|
|
2479
2479
|
}, l.value = void 0, n("hoverOutBuilding", S));
|
|
2480
2480
|
}
|
|
2481
2481
|
function B(x, S) {
|
|
2482
|
-
const { layerX:
|
|
2482
|
+
const { layerX: Y, layerY: G } = x;
|
|
2483
2483
|
g.value && (r.value = {
|
|
2484
|
-
x:
|
|
2484
|
+
x: Y,
|
|
2485
2485
|
y: G,
|
|
2486
2486
|
width: o.value.width,
|
|
2487
2487
|
height: o.value.height
|
|
@@ -2491,9 +2491,9 @@ const no = {
|
|
|
2491
2491
|
l.value = x, g.value && l.value && e.canGoToBuildingCallback(l.value) && n("goToBuilding", l.value);
|
|
2492
2492
|
}
|
|
2493
2493
|
return (x, S) => {
|
|
2494
|
-
const
|
|
2494
|
+
const Y = E("v-icon");
|
|
2495
2495
|
return p.value ? (v(), D("div", wo, [
|
|
2496
|
-
C(
|
|
2496
|
+
C(Y, { "x-large": "" }, {
|
|
2497
2497
|
default: b(() => [
|
|
2498
2498
|
ae("mdi-alert-circle-outline")
|
|
2499
2499
|
]),
|
|
@@ -2676,9 +2676,9 @@ const no = {
|
|
|
2676
2676
|
});
|
|
2677
2677
|
Ve(() => {
|
|
2678
2678
|
if (e.buildingChooserTimeOfDay) {
|
|
2679
|
-
const [x, S,
|
|
2679
|
+
const [x, S, Y] = /^(\d\d):(\d\d)$/.exec(
|
|
2680
2680
|
e.buildingChooserTimeOfDay
|
|
2681
|
-
), G = parseInt(
|
|
2681
|
+
), G = parseInt(Y);
|
|
2682
2682
|
w.value = parseInt(S) * 2 + (G < 15 ? 0 : G > 45 ? 2 : 1);
|
|
2683
2683
|
}
|
|
2684
2684
|
}), U(f, (x, S) => {
|
|
@@ -2701,7 +2701,7 @@ const no = {
|
|
|
2701
2701
|
o.value = { preloaded: !1, ready: !1 };
|
|
2702
2702
|
}
|
|
2703
2703
|
function P(x) {
|
|
2704
|
-
const { layerX: S, layerY:
|
|
2704
|
+
const { layerX: S, layerY: Y } = x, { x: G, y: de } = k.value(S, Y);
|
|
2705
2705
|
return p.value.getBuildingId(
|
|
2706
2706
|
i.value,
|
|
2707
2707
|
G,
|
|
@@ -2714,10 +2714,10 @@ const no = {
|
|
|
2714
2714
|
x.setupDraw();
|
|
2715
2715
|
}
|
|
2716
2716
|
function L(x) {
|
|
2717
|
-
const { layerX: S, layerY:
|
|
2717
|
+
const { layerX: S, layerY: Y } = x;
|
|
2718
2718
|
g.value && (f.value = P(x), f.value !== void 0 && (l.value = {
|
|
2719
2719
|
x: S,
|
|
2720
|
-
y:
|
|
2720
|
+
y: Y,
|
|
2721
2721
|
width: r.value.width,
|
|
2722
2722
|
height: r.value.height
|
|
2723
2723
|
}));
|
|
@@ -2735,9 +2735,9 @@ const no = {
|
|
|
2735
2735
|
k.value = x;
|
|
2736
2736
|
}
|
|
2737
2737
|
return (x, S) => {
|
|
2738
|
-
const
|
|
2738
|
+
const Y = E("v-icon");
|
|
2739
2739
|
return c.value ? (v(), D("div", To, [
|
|
2740
|
-
C(
|
|
2740
|
+
C(Y, { "x-large": "" }, {
|
|
2741
2741
|
default: b(() => [
|
|
2742
2742
|
ae("mdi-alert-circle-outline")
|
|
2743
2743
|
]),
|
|
@@ -5022,14 +5022,14 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5022
5022
|
t.storey.position.y,
|
|
5023
5023
|
t.storey.position.z
|
|
5024
5024
|
)), y = $(() => parseFloat(c.value.floor_vertical_position)), g = $(() => k.value.map((x) => {
|
|
5025
|
-
const S = x.uposition.split(","),
|
|
5025
|
+
const S = x.uposition.split(","), Y = new it(
|
|
5026
5026
|
Number(S[0]) - _.value.x,
|
|
5027
5027
|
0,
|
|
5028
5028
|
Number(S[2]) - _.value.z
|
|
5029
5029
|
);
|
|
5030
5030
|
return {
|
|
5031
5031
|
...x,
|
|
5032
|
-
...X(r.value,
|
|
5032
|
+
...X(r.value, Y)
|
|
5033
5033
|
};
|
|
5034
5034
|
})), T = $(() => ({
|
|
5035
5035
|
backgroundImage: `url(${t.backgroundImage})`,
|
|
@@ -5061,8 +5061,8 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5061
5061
|
};
|
|
5062
5062
|
}
|
|
5063
5063
|
function X(x, S) {
|
|
5064
|
-
var
|
|
5065
|
-
const G =
|
|
5064
|
+
var Y = new it();
|
|
5065
|
+
const G = Y.subVectors(x, S);
|
|
5066
5066
|
return {
|
|
5067
5067
|
relativePosition: G,
|
|
5068
5068
|
left: G.x / a.value * 100,
|
|
@@ -5072,15 +5072,15 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5072
5072
|
function B() {
|
|
5073
5073
|
const x = t.storey.position.y - y.value;
|
|
5074
5074
|
o.value = 2 * (x * Math.tan(P(t.storey.fovY / 2))), a.value = 512 / 384 * o.value;
|
|
5075
|
-
const S = o.value / 2,
|
|
5075
|
+
const S = o.value / 2, Y = a.value / 2, G = new it(Y * -1, 0, S * -1);
|
|
5076
5076
|
r.value = G;
|
|
5077
5077
|
}
|
|
5078
5078
|
function te() {
|
|
5079
5079
|
const x = document.getElementById("moveableDiv");
|
|
5080
5080
|
if (!x)
|
|
5081
5081
|
return;
|
|
5082
|
-
const S = x.offsetHeight / 384 * 0.8,
|
|
5083
|
-
x.offsetHeight > x.offsetWidth ? p.value =
|
|
5082
|
+
const S = x.offsetHeight / 384 * 0.8, Y = x.offsetWidth / 512 * 0.8;
|
|
5083
|
+
x.offsetHeight > x.offsetWidth ? p.value = Y * 0.5 : p.value = S * 0.9;
|
|
5084
5084
|
}
|
|
5085
5085
|
return (x, S) => (v(), D("div", pr, [
|
|
5086
5086
|
u("div", fr, [
|
|
@@ -5096,29 +5096,29 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5096
5096
|
class: "center-pivot",
|
|
5097
5097
|
style: ce(m.value)
|
|
5098
5098
|
}, [
|
|
5099
|
-
(v(!0), D(me, null, _e(g.value, (
|
|
5100
|
-
key:
|
|
5099
|
+
(v(!0), D(me, null, _e(g.value, (Y) => (v(), D("div", {
|
|
5100
|
+
key: Y.id
|
|
5101
5101
|
}, [
|
|
5102
|
-
c.value.floorLevel ===
|
|
5102
|
+
c.value.floorLevel === Y.floorLevel ? (v(), D("div", {
|
|
5103
5103
|
key: 0,
|
|
5104
5104
|
class: "single-camera-marker",
|
|
5105
|
-
style: ce(L(
|
|
5105
|
+
style: ce(L(Y))
|
|
5106
5106
|
}, null, 4)) : R("", !0),
|
|
5107
5107
|
ne(x.$slots, "default", {
|
|
5108
|
-
id:
|
|
5109
|
-
camera:
|
|
5110
|
-
active: c.value.id ===
|
|
5108
|
+
id: Y.id,
|
|
5109
|
+
camera: Y,
|
|
5110
|
+
active: c.value.id === Y.id,
|
|
5111
5111
|
style: ce({
|
|
5112
|
-
...L(
|
|
5112
|
+
...L(Y),
|
|
5113
5113
|
position: "absolute",
|
|
5114
5114
|
zIndex: "3"
|
|
5115
5115
|
})
|
|
5116
5116
|
}, () => [
|
|
5117
|
-
c.value.id ===
|
|
5117
|
+
c.value.id === Y.id && t.rotation !== null ? (v(), V(mr, {
|
|
5118
5118
|
key: 0,
|
|
5119
5119
|
class: "rotation-marker-component-base rotation-marker-component",
|
|
5120
5120
|
rotation: h.value,
|
|
5121
|
-
style: ce({ ...L(
|
|
5121
|
+
style: ce({ ...L(Y) })
|
|
5122
5122
|
}, null, 8, ["rotation", "style"])) : R("", !0)
|
|
5123
5123
|
], !0)
|
|
5124
5124
|
]))), 128))
|
|
@@ -6003,7 +6003,7 @@ const Nr = {
|
|
|
6003
6003
|
screenToWorld: La,
|
|
6004
6004
|
clearCurrentMarkerLayer: Aa
|
|
6005
6005
|
});
|
|
6006
|
-
const
|
|
6006
|
+
const Y = d(!1), G = d(!1), de = d(!1), j = d(), O = d(), J = d(), q = d(), oe = d(), re = d(0), se = d(), be = d(), ie = d(), Fe = d(0), Le = d(0), ze = d(0), we = d(!1), xe = d(!1), Be = d(), De = d(!1), N = d(!1), K = d(
|
|
6007
6007
|
new ia(document, "player-wrapper")
|
|
6008
6008
|
), ve = d(), je = $(() => {
|
|
6009
6009
|
if (O.value) {
|
|
@@ -6028,7 +6028,7 @@ const Nr = {
|
|
|
6028
6028
|
Se !== -1 && (F = Se);
|
|
6029
6029
|
}
|
|
6030
6030
|
return F;
|
|
6031
|
-
}),
|
|
6031
|
+
}), H = $(() => he.value.findIndex(
|
|
6032
6032
|
(F) => F.archetypeID === se.value
|
|
6033
6033
|
)), Q = $(() => J.value ? J.value.cameras.map((F) => ({
|
|
6034
6034
|
...F,
|
|
@@ -6103,8 +6103,8 @@ const Nr = {
|
|
|
6103
6103
|
N.value = !0, oe.value.unloadSunSim();
|
|
6104
6104
|
}), Ie(async () => {
|
|
6105
6105
|
try {
|
|
6106
|
-
ua.value ? (
|
|
6107
|
-
|
|
6106
|
+
ua.value ? (Y.value = !1, N.value = !0) : setTimeout(() => {
|
|
6107
|
+
Y.value = !0;
|
|
6108
6108
|
}, 1e3);
|
|
6109
6109
|
} catch (F) {
|
|
6110
6110
|
de.value = !0, S("onError", F);
|
|
@@ -6113,7 +6113,7 @@ const Nr = {
|
|
|
6113
6113
|
document.removeEventListener("wheel", St);
|
|
6114
6114
|
});
|
|
6115
6115
|
function ca(F = !1) {
|
|
6116
|
-
N.value = !0,
|
|
6116
|
+
N.value = !0, Y.value = !1, F && da();
|
|
6117
6117
|
}
|
|
6118
6118
|
function da() {
|
|
6119
6119
|
const F = ue(
|
|
@@ -6411,7 +6411,7 @@ const Nr = {
|
|
|
6411
6411
|
icon: "mdi-alert-outline",
|
|
6412
6412
|
elevation: "3",
|
|
6413
6413
|
class: "mr-2",
|
|
6414
|
-
onClick: z[2] || (z[2] = (Se) =>
|
|
6414
|
+
onClick: z[2] || (z[2] = (Se) => Y.value = !Y.value)
|
|
6415
6415
|
}, null, 512), [
|
|
6416
6416
|
[ke, N.value]
|
|
6417
6417
|
]),
|
|
@@ -6475,7 +6475,7 @@ const Nr = {
|
|
|
6475
6475
|
})
|
|
6476
6476
|
]),
|
|
6477
6477
|
"center-center": b(() => [
|
|
6478
|
-
|
|
6478
|
+
Y.value ? (v(), V(Vs, {
|
|
6479
6479
|
key: 0,
|
|
6480
6480
|
onCloseTutorial: z[5] || (z[5] = (Se) => ca(Se))
|
|
6481
6481
|
})) : R("", !0),
|
|
@@ -6585,7 +6585,7 @@ const Nr = {
|
|
|
6585
6585
|
key: 0,
|
|
6586
6586
|
"cdn-file-resolver": A(a),
|
|
6587
6587
|
"available-archetypes": ye.value,
|
|
6588
|
-
"selected-index":
|
|
6588
|
+
"selected-index": H.value,
|
|
6589
6589
|
onSelectInterior: Ut
|
|
6590
6590
|
}, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) : R("", !0)
|
|
6591
6591
|
])
|
|
@@ -7769,7 +7769,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7769
7769
|
$e,
|
|
7770
7770
|
l.value ? new He(l.value) : new He()
|
|
7771
7771
|
);
|
|
7772
|
-
const h = d(), _ = d(), y = d(), g = d(null), T = d(4), M = d(), P = d(!1), I = d(!1), L = d(), X = $(() => L.value.isHoverEnabled), B = d({ x: 0, y: 0, width: 0, height: 0 }), te = d(), x = d(), S = d(),
|
|
7772
|
+
const h = d(), _ = d(), y = d(), g = d(null), T = d(4), M = d(), P = d(!1), I = d(!1), L = d(), X = $(() => L.value.isHoverEnabled), B = d({ x: 0, y: 0, width: 0, height: 0 }), te = d(), x = d(), S = d(), Y = d(!1), G = d(), de = d({
|
|
7773
7773
|
current: 100,
|
|
7774
7774
|
min: 100,
|
|
7775
7775
|
max: 1e3
|
|
@@ -7783,21 +7783,21 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7783
7783
|
currentScene: T.value
|
|
7784
7784
|
}),
|
|
7785
7785
|
setState: ({
|
|
7786
|
-
currentCamera:
|
|
7786
|
+
currentCamera: H,
|
|
7787
7787
|
currentDay: Q,
|
|
7788
7788
|
currentTime: fe,
|
|
7789
7789
|
currentTransition: he,
|
|
7790
7790
|
currentScene: ye
|
|
7791
7791
|
}) => {
|
|
7792
|
-
h.value =
|
|
7792
|
+
h.value = H, _.value = Q, y.value = fe, g.value = he, T.value = ye;
|
|
7793
7793
|
}
|
|
7794
7794
|
}), Ie(() => {
|
|
7795
7795
|
P.value = !0, j.value = !1;
|
|
7796
7796
|
}), U(
|
|
7797
7797
|
a,
|
|
7798
|
-
(
|
|
7798
|
+
(H) => {
|
|
7799
7799
|
try {
|
|
7800
|
-
j.value = !1, S.value = nu(
|
|
7800
|
+
j.value = !1, S.value = nu(H);
|
|
7801
7801
|
} catch (Q) {
|
|
7802
7802
|
j.value = !0, c("onError", Q);
|
|
7803
7803
|
}
|
|
@@ -7805,8 +7805,8 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7805
7805
|
{
|
|
7806
7806
|
immediate: !0
|
|
7807
7807
|
}
|
|
7808
|
-
), U(P, (
|
|
7809
|
-
|
|
7808
|
+
), U(P, (H) => {
|
|
7809
|
+
H && c("onInitialize");
|
|
7810
7810
|
});
|
|
7811
7811
|
const O = d(), J = d(0);
|
|
7812
7812
|
U(
|
|
@@ -7822,7 +7822,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7822
7822
|
() => x.value,
|
|
7823
7823
|
() => {
|
|
7824
7824
|
x.value && new ResizeObserver(([Q]) => {
|
|
7825
|
-
|
|
7825
|
+
Y.value = Q.contentRect.width < k.value;
|
|
7826
7826
|
}).observe(x.value);
|
|
7827
7827
|
}
|
|
7828
7828
|
);
|
|
@@ -7835,9 +7835,9 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7835
7835
|
[S, o, i],
|
|
7836
7836
|
async () => {
|
|
7837
7837
|
o.value && q.value.length > 0 && (i.value ? h.value = q.value.find(
|
|
7838
|
-
(
|
|
7838
|
+
(H) => H.cameraName === i.value
|
|
7839
7839
|
) || q.value[0] : h.value = q.value[0], T.value = S.value.cameras.findIndex(
|
|
7840
|
-
(
|
|
7840
|
+
(H) => H === h.value
|
|
7841
7841
|
), T.value = Math.max(0, T.value));
|
|
7842
7842
|
},
|
|
7843
7843
|
{ immediate: !0 }
|
|
@@ -7845,7 +7845,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7845
7845
|
[S, o, f],
|
|
7846
7846
|
() => {
|
|
7847
7847
|
S.value && o.value && h.value && h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && (f.value ? _.value = h.value.sunsimDayOfYear.find(
|
|
7848
|
-
(
|
|
7848
|
+
(H) => H.dayOfYear === f.value
|
|
7849
7849
|
) || h.value.sunsimDayOfYear[0] : _.value = h.value.sunsimDayOfYear[0]);
|
|
7850
7850
|
},
|
|
7851
7851
|
{ immediate: !0 }
|
|
@@ -7853,28 +7853,28 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7853
7853
|
[S, o, w],
|
|
7854
7854
|
() => {
|
|
7855
7855
|
S.value && o.value && _.value && _.value.timeSamples && _.value.timeSamples.length > 0 && (w.value ? y.value = _.value.timeSamples.find(
|
|
7856
|
-
(
|
|
7856
|
+
(H) => H.timeInHours === w.value
|
|
7857
7857
|
) || _.value.timeSamples[0] : y.value = _.value.timeSamples.find(
|
|
7858
|
-
(
|
|
7858
|
+
(H) => H.timeInHours === _.value.defaultHour
|
|
7859
7859
|
) || _.value.timeSamples[0]);
|
|
7860
7860
|
},
|
|
7861
7861
|
{ immediate: !0 }
|
|
7862
7862
|
);
|
|
7863
|
-
function re(
|
|
7864
|
-
h.value !==
|
|
7865
|
-
S.value.cameras.findIndex((Q) => Q ===
|
|
7863
|
+
function re(H) {
|
|
7864
|
+
h.value !== H && K(
|
|
7865
|
+
S.value.cameras.findIndex((Q) => Q === H)
|
|
7866
7866
|
);
|
|
7867
7867
|
}
|
|
7868
|
-
function se(
|
|
7869
|
-
T.value =
|
|
7868
|
+
function se(H) {
|
|
7869
|
+
T.value = H, Lt(S.value.cameras[T.value]) ? g.value = S.value.cameras[T.value] : (Ae(() => {
|
|
7870
7870
|
be(
|
|
7871
7871
|
S.value.cameras[T.value]
|
|
7872
7872
|
);
|
|
7873
7873
|
}), g.value = null);
|
|
7874
7874
|
}
|
|
7875
|
-
function be(
|
|
7875
|
+
function be(H) {
|
|
7876
7876
|
const Q = _.value;
|
|
7877
|
-
h.value =
|
|
7877
|
+
h.value = H, T.value = S.value.cameras.findIndex(
|
|
7878
7878
|
(fe) => fe === h.value
|
|
7879
7879
|
), Ae(() => {
|
|
7880
7880
|
h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && ie(
|
|
@@ -7884,9 +7884,9 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7884
7884
|
);
|
|
7885
7885
|
});
|
|
7886
7886
|
}
|
|
7887
|
-
function ie(
|
|
7887
|
+
function ie(H) {
|
|
7888
7888
|
const Q = y.value;
|
|
7889
|
-
_.value =
|
|
7889
|
+
_.value = H, Ae(() => {
|
|
7890
7890
|
Fe(
|
|
7891
7891
|
_.value.timeSamples.find(
|
|
7892
7892
|
(fe) => fe.timeInHours === Q.timeInHours
|
|
@@ -7896,26 +7896,26 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7896
7896
|
);
|
|
7897
7897
|
});
|
|
7898
7898
|
}
|
|
7899
|
-
function Fe(
|
|
7900
|
-
y.value =
|
|
7899
|
+
function Fe(H) {
|
|
7900
|
+
y.value = H;
|
|
7901
7901
|
}
|
|
7902
|
-
function Le(
|
|
7903
|
-
c("onClick",
|
|
7902
|
+
function Le(H) {
|
|
7903
|
+
c("onClick", H, () => {
|
|
7904
7904
|
const Q = S.value.stillCameraData.find(
|
|
7905
|
-
(fe) => fe.id ===
|
|
7905
|
+
(fe) => fe.id === H
|
|
7906
7906
|
);
|
|
7907
7907
|
Q && K(Q.bestIndex);
|
|
7908
7908
|
});
|
|
7909
7909
|
}
|
|
7910
|
-
function ze(
|
|
7911
|
-
c("onHoverOver",
|
|
7910
|
+
function ze(H) {
|
|
7911
|
+
c("onHoverOver", H), M.value = H;
|
|
7912
7912
|
}
|
|
7913
|
-
function we(
|
|
7914
|
-
c("onHoverOut",
|
|
7913
|
+
function we(H) {
|
|
7914
|
+
c("onHoverOut", H), M.value = void 0;
|
|
7915
7915
|
}
|
|
7916
|
-
function xe(
|
|
7917
|
-
const { layerX: Q, layerY: fe } =
|
|
7918
|
-
let he =
|
|
7916
|
+
function xe(H) {
|
|
7917
|
+
const { layerX: Q, layerY: fe } = H;
|
|
7918
|
+
let he = H.target, ye = !1;
|
|
7919
7919
|
for (; he; )
|
|
7920
7920
|
if (he === te.value) {
|
|
7921
7921
|
ye = !0;
|
|
@@ -7923,7 +7923,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7923
7923
|
} else
|
|
7924
7924
|
he = he.parentElement;
|
|
7925
7925
|
if (ye) {
|
|
7926
|
-
const Ye =
|
|
7926
|
+
const Ye = H.currentTarget;
|
|
7927
7927
|
B.value = {
|
|
7928
7928
|
x: Q,
|
|
7929
7929
|
y: fe,
|
|
@@ -7932,40 +7932,40 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7932
7932
|
};
|
|
7933
7933
|
} else
|
|
7934
7934
|
B.value = void 0;
|
|
7935
|
-
c("onMouseMove",
|
|
7935
|
+
c("onMouseMove", H, B.value);
|
|
7936
7936
|
}
|
|
7937
7937
|
function Be({
|
|
7938
|
-
min:
|
|
7938
|
+
min: H,
|
|
7939
7939
|
max: Q,
|
|
7940
7940
|
current: fe
|
|
7941
7941
|
}) {
|
|
7942
|
-
de.value = { min:
|
|
7942
|
+
de.value = { min: H, max: Q, current: fe };
|
|
7943
7943
|
}
|
|
7944
|
-
function De(
|
|
7945
|
-
G.value.adjustZoom(
|
|
7944
|
+
function De(H) {
|
|
7945
|
+
G.value.adjustZoom(H ? 10 : -10);
|
|
7946
7946
|
}
|
|
7947
|
-
function N(
|
|
7947
|
+
function N(H) {
|
|
7948
7948
|
return S.value.stillCameraIndices.findIndex(
|
|
7949
|
-
(Q) => Q ===
|
|
7949
|
+
(Q) => Q === H
|
|
7950
7950
|
);
|
|
7951
7951
|
}
|
|
7952
|
-
async function K(
|
|
7952
|
+
async function K(H) {
|
|
7953
7953
|
const Q = T.value;
|
|
7954
7954
|
if (S.value.loopable) {
|
|
7955
|
-
const fe = S.value.stillCameraIndices.length, he = N(Q), ye = N(
|
|
7955
|
+
const fe = S.value.stillCameraIndices.length, he = N(Q), ye = N(H);
|
|
7956
7956
|
let Ye = 0, rt = 0, Ue = he;
|
|
7957
7957
|
for (; Ue++, Ue >= fe && (Ue = 0), Ue !== ye; )
|
|
7958
7958
|
Ye++;
|
|
7959
7959
|
for (Ue = he; Ue--, Ue < 0 && (Ue += fe), Ue !== ye; )
|
|
7960
7960
|
rt++;
|
|
7961
|
-
Ye === rt ? ve(Q,
|
|
7961
|
+
Ye === rt ? ve(Q, H) : Ye < rt ? he < ye ? ve(Q, H) : ve(Q, H + S.value.cameras.length) : he >= ye ? ve(Q, H) : ve(Q + S.value.cameras.length, H);
|
|
7962
7962
|
} else
|
|
7963
|
-
ve(Q,
|
|
7963
|
+
ve(Q, H);
|
|
7964
7964
|
}
|
|
7965
|
-
function ve(
|
|
7965
|
+
function ve(H, Q) {
|
|
7966
7966
|
return new Promise((fe) => {
|
|
7967
7967
|
I.value = !0;
|
|
7968
|
-
let he, ye =
|
|
7968
|
+
let he, ye = H;
|
|
7969
7969
|
he = setInterval(() => {
|
|
7970
7970
|
ye < Q ? (ye++, T.value = Math.abs(
|
|
7971
7971
|
ye % S.value.cameras.length
|
|
@@ -7975,11 +7975,11 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7975
7975
|
}, 12);
|
|
7976
7976
|
});
|
|
7977
7977
|
}
|
|
7978
|
-
function je(
|
|
7979
|
-
j.value = !0, c("onError",
|
|
7978
|
+
function je(H) {
|
|
7979
|
+
j.value = !0, c("onError", H);
|
|
7980
7980
|
}
|
|
7981
|
-
const Re = (
|
|
7982
|
-
return (
|
|
7981
|
+
const Re = (H) => H * (180 / Math.PI);
|
|
7982
|
+
return (H, Q) => {
|
|
7983
7983
|
const fe = E("v-skeleton-loader");
|
|
7984
7984
|
return v(), D(me, null, [
|
|
7985
7985
|
C(fe, {
|
|
@@ -7993,16 +7993,16 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7993
7993
|
u("div", {
|
|
7994
7994
|
ref_key: "container",
|
|
7995
7995
|
ref: x,
|
|
7996
|
-
class: ge({ mobile:
|
|
7996
|
+
class: ge({ mobile: Y.value }),
|
|
7997
7997
|
style: { "min-height": "104px" },
|
|
7998
7998
|
onMousemove: xe
|
|
7999
7999
|
}, [
|
|
8000
|
-
|
|
8000
|
+
H.showUi ? (v(), D("div", {
|
|
8001
8001
|
key: 0,
|
|
8002
8002
|
class: "persistent actions-bar top-right pa-2",
|
|
8003
8003
|
style: ce({
|
|
8004
8004
|
zIndex: 7,
|
|
8005
|
-
top:
|
|
8005
|
+
top: Y.value && q.value.length > 1 ? "60px" : 0
|
|
8006
8006
|
})
|
|
8007
8007
|
}, [
|
|
8008
8008
|
h.value.cameraRotation ? (v(), V(lt, {
|
|
@@ -8010,13 +8010,13 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8010
8010
|
class: "mb-2",
|
|
8011
8011
|
style: ce({
|
|
8012
8012
|
zIndex: 7,
|
|
8013
|
-
width:
|
|
8014
|
-
height:
|
|
8013
|
+
width: Y.value ? 32 : 40,
|
|
8014
|
+
height: Y.value ? 32 : 40
|
|
8015
8015
|
}),
|
|
8016
8016
|
longitude: Re(h.value.cameraRotation.y) + 270
|
|
8017
8017
|
}, null, 8, ["style", "longitude"])) : R("", !0),
|
|
8018
8018
|
C(Qi, {
|
|
8019
|
-
"is-mobile-sized":
|
|
8019
|
+
"is-mobile-sized": Y.value,
|
|
8020
8020
|
"can-zoom-out": de.value.min < de.value.current,
|
|
8021
8021
|
"can-zoom-in": de.value.max > de.value.current,
|
|
8022
8022
|
disabled: I.value,
|
|
@@ -8024,16 +8024,16 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8024
8024
|
onOnZoomOut: Q[1] || (Q[1] = (he) => De(!1))
|
|
8025
8025
|
}, null, 8, ["is-mobile-sized", "can-zoom-out", "can-zoom-in", "disabled"])
|
|
8026
8026
|
], 4)) : R("", !0),
|
|
8027
|
-
|
|
8027
|
+
H.showUi && q.value.length > 1 ? (v(), D("div", {
|
|
8028
8028
|
key: 1,
|
|
8029
8029
|
class: ge([{
|
|
8030
8030
|
"actions-bar bottom-center pb-2": !0,
|
|
8031
|
-
"px-0":
|
|
8031
|
+
"px-0": Y.value
|
|
8032
8032
|
}, "still-cameras-wrapper"]),
|
|
8033
8033
|
style: { "z-index": "7" }
|
|
8034
8034
|
}, [
|
|
8035
8035
|
C(Yi, {
|
|
8036
|
-
"is-mobile-sized":
|
|
8036
|
+
"is-mobile-sized": Y.value,
|
|
8037
8037
|
"still-cameras": q.value,
|
|
8038
8038
|
"current-camera": h.value,
|
|
8039
8039
|
disabled: I.value,
|
|
@@ -8082,47 +8082,48 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8082
8082
|
onOnError: je
|
|
8083
8083
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id", "activeStructureIds"])), [
|
|
8084
8084
|
[ke, g.value === null]
|
|
8085
|
-
]) : R("", !0)
|
|
8085
|
+
]) : R("", !0),
|
|
8086
|
+
ne(H.$slots, "default", {}, void 0, !0)
|
|
8086
8087
|
]),
|
|
8087
|
-
_:
|
|
8088
|
+
_: 3
|
|
8088
8089
|
}, 512),
|
|
8089
|
-
|
|
8090
|
+
H.showUi && (_.value && _.value.timeSamples && _.value.timeSamples.length > 1 || h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 1) ? (v(), D("div", {
|
|
8090
8091
|
key: 2,
|
|
8091
8092
|
class: ge({
|
|
8092
8093
|
"actions-bar top-left pa-2 d-flex": !0,
|
|
8093
|
-
"px-0":
|
|
8094
|
+
"px-0": Y.value
|
|
8094
8095
|
}),
|
|
8095
8096
|
style: { "z-index": "7" }
|
|
8096
8097
|
}, [
|
|
8097
8098
|
C(Vi, {
|
|
8098
8099
|
class: "pr-2",
|
|
8099
|
-
"is-mobile-sized":
|
|
8100
|
+
"is-mobile-sized": Y.value,
|
|
8100
8101
|
"current-camera": h.value,
|
|
8101
8102
|
"current-day": _.value,
|
|
8102
8103
|
disabled: I.value,
|
|
8103
8104
|
onOnDayChange: ie
|
|
8104
8105
|
}, null, 8, ["is-mobile-sized", "current-camera", "current-day", "disabled"]),
|
|
8105
8106
|
C(Wi, {
|
|
8106
|
-
"is-mobile-sized":
|
|
8107
|
+
"is-mobile-sized": Y.value,
|
|
8107
8108
|
"current-day": _.value,
|
|
8108
8109
|
"current-time": y.value,
|
|
8109
8110
|
disabled: I.value,
|
|
8110
8111
|
onOnTimeChange: Fe
|
|
8111
8112
|
}, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
|
|
8112
8113
|
], 2)) : R("", !0),
|
|
8113
|
-
|
|
8114
|
+
H.$slots.popup && B.value && M.value ? (v(), V(nt, {
|
|
8114
8115
|
key: 3,
|
|
8115
8116
|
"is-hoverable": X.value,
|
|
8116
8117
|
pos: B.value
|
|
8117
8118
|
}, {
|
|
8118
8119
|
default: b(() => [
|
|
8119
8120
|
u("div", lu, [
|
|
8120
|
-
ne(
|
|
8121
|
+
ne(H.$slots, "popup", dt(vt({ hoverId: M.value, hoverable: X.value })), void 0, !0)
|
|
8121
8122
|
])
|
|
8122
8123
|
]),
|
|
8123
8124
|
_: 3
|
|
8124
8125
|
}, 8, ["is-hoverable", "pos"])) : R("", !0),
|
|
8125
|
-
|
|
8126
|
+
H.version && H.showVersion ? (v(), D("div", su, " version: " + Z(H.version), 1)) : R("", !0)
|
|
8126
8127
|
], 34)
|
|
8127
8128
|
]),
|
|
8128
8129
|
_: 3
|
|
@@ -8137,7 +8138,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8137
8138
|
], 64);
|
|
8138
8139
|
};
|
|
8139
8140
|
}
|
|
8140
|
-
}), iu = /* @__PURE__ */ ee(ru, [["__scopeId", "data-v-
|
|
8141
|
+
}), iu = /* @__PURE__ */ ee(ru, [["__scopeId", "data-v-23534b19"]]), hu = {
|
|
8141
8142
|
install: function(t) {
|
|
8142
8143
|
t.component("VApartmentChooser", Fn), t.component("VBuildingChooser", Ro), t.component("VVirtualTour", ni), t.component("VManualSlideShow", wi), t.component("VStructureChooser", iu);
|
|
8143
8144
|
}
|