@mappedin/viewer 0.30.1-eb45db3.0 → 0.30.1
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.30.1](https://github.com/MappedIn/viewer/compare/viewer-v0.30.0...viewer-v0.30.1) (2024-10-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **SRV-1764:** do not animate exiting connection ([#346](https://github.com/MappedIn/viewer/issues/346)) ([cc875d3](https://github.com/MappedIn/viewer/commit/cc875d3f83c10f0b2b67f45bf74c378b8ff1c36c))
|
|
9
|
+
* **SRV-1766:** make the Share button just an icon ([#344](https://github.com/MappedIn/viewer/issues/344)) ([eb45db3](https://github.com/MappedIn/viewer/commit/eb45db376203facc411f7c624441038605c536a1))
|
|
10
|
+
|
|
3
11
|
## [0.30.0](https://github.com/MappedIn/viewer/compare/viewer-v0.29.0...viewer-v0.30.0) (2024-10-28)
|
|
4
12
|
|
|
5
13
|
|
package/dist/index.js
CHANGED
|
@@ -15874,7 +15874,7 @@ const g8 = { current: Ke2, captureEnabled: !0 }, cF2 = (i) => {
|
|
|
15874
15874
|
const e = mf(), [t, r] = i;
|
|
15875
15875
|
e.capture(t, r);
|
|
15876
15876
|
}, Qe2 = (i = {}) => {
|
|
15877
|
-
const e = "
|
|
15877
|
+
const e = "phc_sRrjUwz9zicl4GeXtSnwcuKMr50SB76ma6NVi6zlPou", t = "https://ph-api.mappedin.com";
|
|
15878
15878
|
hF2(i.captureEnabled ?? !0);
|
|
15879
15879
|
const r = mf();
|
|
15880
15880
|
if (!r.__loaded && e != null && t != null) {
|
|
@@ -72119,7 +72119,7 @@ const Kne = (i, e) => (i7 != null || (Th == null && globalThis.OffscreenCanvas !
|
|
|
72119
72119
|
const r = {
|
|
72120
72120
|
fit: "fit",
|
|
72121
72121
|
...t
|
|
72122
|
-
}, n = "https://image-proxy
|
|
72122
|
+
}, n = "https://image-proxy.mappedin.com", a = Qne[e], o = encodeURIComponent(i);
|
|
72123
72123
|
return `${n}/resize:${r.fit}:${a}:${a}:0/plain/${o}`.replaceAll(/\/+/g, "/").replace("/", "//");
|
|
72124
72124
|
}, KX = pe.div`
|
|
72125
72125
|
display: flex;
|
|
@@ -72164,23 +72164,24 @@ const Kne = (i, e) => (i7 != null || (Th == null && globalThis.OffscreenCanvas !
|
|
|
72164
72164
|
transform: translateY(-3.2px);
|
|
72165
72165
|
}
|
|
72166
72166
|
`, tae = pe.div`
|
|
72167
|
-
animation: ${eae}
|
|
72167
|
+
animation: ${eae} ${(i) => i.animated ? 2 : 0}s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75 both;
|
|
72168
72168
|
`, iae = pe.div`
|
|
72169
72169
|
transform: rotate(${({ direction: i }) => i === "up" ? "0deg" : "180deg"});
|
|
72170
72170
|
`, uy = 0.7, JX = ({
|
|
72171
72171
|
type: i = "stairs",
|
|
72172
72172
|
size: e = 32,
|
|
72173
72173
|
direction: t,
|
|
72174
|
-
color: r
|
|
72174
|
+
color: r,
|
|
72175
|
+
animated: n = !0
|
|
72175
72176
|
}) => {
|
|
72176
|
-
const
|
|
72177
|
+
const a = et(), o = e / 2 + 2, s = r ?? a.colors.map.markers.default;
|
|
72177
72178
|
return /* @__PURE__ */ G.jsxs("div", { style: { position: "relative" }, id: qt("connection-marker"), children: [
|
|
72178
|
-
t != null && t != "none" ? /* @__PURE__ */ G.jsx("div", { style: { position: "absolute", top: 5, left: Math.round(e * 0.9), zIndex: 1 }, children: /* @__PURE__ */ G.jsx(tae, { children: /* @__PURE__ */ G.jsx(
|
|
72179
|
+
t != null && t != "none" ? /* @__PURE__ */ G.jsx("div", { style: { position: "absolute", top: 5, left: Math.round(e * 0.9), zIndex: 1 }, children: /* @__PURE__ */ G.jsx(tae, { animated: n, children: /* @__PURE__ */ G.jsx(
|
|
72179
72180
|
KX,
|
|
72180
72181
|
{
|
|
72181
72182
|
role: "button",
|
|
72182
72183
|
style: {
|
|
72183
|
-
background:
|
|
72184
|
+
background: a.colors.map.markers.default,
|
|
72184
72185
|
width: Math.round(e * uy),
|
|
72185
72186
|
height: Math.round(e * uy)
|
|
72186
72187
|
},
|
|
@@ -72188,9 +72189,9 @@ const Kne = (i, e) => (i7 != null || (Th == null && globalThis.OffscreenCanvas !
|
|
|
72188
72189
|
Nt,
|
|
72189
72190
|
{
|
|
72190
72191
|
icon: "arrow-up-16x16",
|
|
72191
|
-
width: Math.round(
|
|
72192
|
-
height: Math.round(
|
|
72193
|
-
color:
|
|
72192
|
+
width: Math.round(o * uy),
|
|
72193
|
+
height: Math.round(o * uy),
|
|
72194
|
+
color: a.colors.map.markers.icon
|
|
72194
72195
|
}
|
|
72195
72196
|
) })
|
|
72196
72197
|
}
|
|
@@ -72200,7 +72201,7 @@ const Kne = (i, e) => (i7 != null || (Th == null && globalThis.OffscreenCanvas !
|
|
|
72200
72201
|
{
|
|
72201
72202
|
role: "button",
|
|
72202
72203
|
style: {
|
|
72203
|
-
background:
|
|
72204
|
+
background: s,
|
|
72204
72205
|
width: e,
|
|
72205
72206
|
height: e
|
|
72206
72207
|
},
|
|
@@ -72208,9 +72209,9 @@ const Kne = (i, e) => (i7 != null || (Th == null && globalThis.OffscreenCanvas !
|
|
|
72208
72209
|
Nt,
|
|
72209
72210
|
{
|
|
72210
72211
|
icon: `connection-${i}-16x16`,
|
|
72211
|
-
width:
|
|
72212
|
-
height:
|
|
72213
|
-
color:
|
|
72212
|
+
width: o,
|
|
72213
|
+
height: o,
|
|
72214
|
+
color: a.colors.map.markers.icon
|
|
72214
72215
|
}
|
|
72215
72216
|
)
|
|
72216
72217
|
}
|
|
@@ -72399,7 +72400,8 @@ class nae {
|
|
|
72399
72400
|
{
|
|
72400
72401
|
type: s.action.connectionType,
|
|
72401
72402
|
direction: s.action.direction,
|
|
72402
|
-
color: this.rootStore.uiStore.theme.colors.map.markers.departure
|
|
72403
|
+
color: this.rootStore.uiStore.theme.colors.map.markers.departure,
|
|
72404
|
+
animated: !1
|
|
72403
72405
|
}
|
|
72404
72406
|
),
|
|
72405
72407
|
onClick: () => {
|
|
@@ -73521,7 +73523,7 @@ class wae {
|
|
|
73521
73523
|
}
|
|
73522
73524
|
async init(e) {
|
|
73523
73525
|
this.container = e;
|
|
73524
|
-
const t = this.rootStore.startupOptions.outdoorMapsKey ?? "
|
|
73526
|
+
const t = this.rootStore.startupOptions.outdoorMapsKey ?? "zixaliyV5cGjHU", r = {
|
|
73525
73527
|
auto: !1,
|
|
73526
73528
|
initialFloor: this.rootStore.currentFloor,
|
|
73527
73529
|
watermark: this.getWatermarkOptions(),
|
|
@@ -88230,7 +88232,7 @@ const mb2 = gg(() => {
|
|
|
88230
88232
|
] });
|
|
88231
88233
|
}), Cb2 = () => {
|
|
88232
88234
|
let i = document.querySelector("meta[name=app-version]");
|
|
88233
|
-
i == null && (i = document.createElement("meta"), i.name = "app-version", document.head.appendChild(i)), i.content = "0.30.
|
|
88235
|
+
i == null && (i = document.createElement("meta"), i.name = "app-version", document.head.appendChild(i)), i.content = "0.30.1";
|
|
88234
88236
|
let e = document.querySelector("meta[name=viewport]");
|
|
88235
88237
|
e == null && (e = document.createElement("meta"), e.name = "viewport", document.head.appendChild(e)), e.content = "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no";
|
|
88236
88238
|
}, yb2 = (i) => {
|