@mappedin/viewer 0.8.4-b8f35ce.0 → 0.8.4-c09a299.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/dist/index.js +31 -21
- package/dist/types/src/lib/types/theme.d.ts +11 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9105,9 +9105,8 @@ const bPe = vPe`
|
|
|
9105
9105
|
`, Tb = {
|
|
9106
9106
|
colors: {
|
|
9107
9107
|
accent: {
|
|
9108
|
-
primary: "#
|
|
9108
|
+
primary: "#1890FF",
|
|
9109
9109
|
neutral: "#D9D9D9",
|
|
9110
|
-
navigation: "#1890FF",
|
|
9111
9110
|
success: "#389E0D"
|
|
9112
9111
|
},
|
|
9113
9112
|
background: "#FFFFFF",
|
|
@@ -9120,10 +9119,18 @@ const bPe = vPe`
|
|
|
9120
9119
|
labels: {
|
|
9121
9120
|
default: "#595959"
|
|
9122
9121
|
},
|
|
9122
|
+
markers: {
|
|
9123
|
+
default: "#595959",
|
|
9124
|
+
connection: "#595959",
|
|
9125
|
+
departure: "#1890FF",
|
|
9126
|
+
destination: "#9254DE"
|
|
9127
|
+
},
|
|
9128
|
+
polygons: {
|
|
9129
|
+
departure: "#40A9FF",
|
|
9130
|
+
highlight: "#9254DE",
|
|
9131
|
+
hover: "#F0F0F0"
|
|
9132
|
+
},
|
|
9123
9133
|
path: "#40A9FF",
|
|
9124
|
-
departure: "#40A9FF",
|
|
9125
|
-
highlight: "#9254DE",
|
|
9126
|
-
hover: "#F0F0F0",
|
|
9127
9134
|
background: "#CFCFCF"
|
|
9128
9135
|
}
|
|
9129
9136
|
},
|
|
@@ -63534,7 +63541,7 @@ const VF = 50, GF = 12, $F = 5, HF = 0.9, pHe = "#722ED1", dHe = "#D46B08", Ope
|
|
|
63534
63541
|
] })
|
|
63535
63542
|
] }), ER = ({ type: t = "departure" }) => {
|
|
63536
63543
|
const e = m1();
|
|
63537
|
-
return /* @__PURE__ */ He.jsx(gHe, { children: t === "departure" ? yHe(e.colors.
|
|
63544
|
+
return /* @__PURE__ */ He.jsx(gHe, { children: t === "departure" ? yHe(e.colors.map.markers.departure) : _He(pHe) });
|
|
63538
63545
|
}, vHe = /* @__PURE__ */ new Map([
|
|
63539
63546
|
[
|
|
63540
63547
|
"search-16x16",
|
|
@@ -63868,11 +63875,11 @@ const $v = new bHe("[Mappedin Viewer]"), ts = (...t) => t.join("-").replaceAll("
|
|
|
63868
63875
|
`, MHe = (t, e) => {
|
|
63869
63876
|
switch (t) {
|
|
63870
63877
|
case "default":
|
|
63871
|
-
return e.colors.
|
|
63878
|
+
return e.colors.map.markers.connection;
|
|
63872
63879
|
case "selection":
|
|
63873
|
-
return e.colors.map.departure;
|
|
63880
|
+
return e.colors.map.markers.departure;
|
|
63874
63881
|
case "navigation":
|
|
63875
|
-
return e.colors.map.
|
|
63882
|
+
return e.colors.map.markers.destination;
|
|
63876
63883
|
}
|
|
63877
63884
|
}, CHe = (t) => {
|
|
63878
63885
|
switch (t) {
|
|
@@ -63896,7 +63903,7 @@ const $v = new bHe("[Mappedin Viewer]"), ts = (...t) => t.join("-").replaceAll("
|
|
|
63896
63903
|
{
|
|
63897
63904
|
role: "button",
|
|
63898
63905
|
style: {
|
|
63899
|
-
background: i.colors.
|
|
63906
|
+
background: i.colors.map.markers.default,
|
|
63900
63907
|
width: a,
|
|
63901
63908
|
height: a
|
|
63902
63909
|
},
|
|
@@ -64024,10 +64031,10 @@ class THe {
|
|
|
64024
64031
|
}), a = o.containerEl;
|
|
64025
64032
|
iv.createRoot(a).render(r), e.push(o);
|
|
64026
64033
|
}
|
|
64027
|
-
e.length > 0 &&
|
|
64034
|
+
e.length > 0 && requestAnimationFrame(() => {
|
|
64028
64035
|
for (const n of e)
|
|
64029
64036
|
n.update();
|
|
64030
|
-
}
|
|
64037
|
+
});
|
|
64031
64038
|
}
|
|
64032
64039
|
cleanup() {
|
|
64033
64040
|
for (const e of this.reactionDisposers)
|
|
@@ -64059,30 +64066,33 @@ class IHe {
|
|
|
64059
64066
|
case Gs.START:
|
|
64060
64067
|
if (this.rootStore.selectedLocation != null)
|
|
64061
64068
|
for (const n of this.rootStore.selectedLocation.polygons)
|
|
64062
|
-
e.push({
|
|
64069
|
+
e.push({
|
|
64070
|
+
polygon: n,
|
|
64071
|
+
color: this.rootStore.uiStore.theme.colors.map.polygons.highlight
|
|
64072
|
+
});
|
|
64063
64073
|
break;
|
|
64064
64074
|
case Gs.DIRECTIONS:
|
|
64065
64075
|
if (this.mapStore.directions.directions != null) {
|
|
64066
64076
|
const n = this.mapStore.directions.directions.path[0], r = this.mapStore.directions.directions.path[this.mapStore.directions.directions.path.length - 1];
|
|
64067
64077
|
this.rootStore.departureMode === Ci.LOCATION && n != null && n.polygon != null && e.push({
|
|
64068
64078
|
polygon: n.polygon,
|
|
64069
|
-
color: this.rootStore.uiStore.theme.colors.map.departure
|
|
64079
|
+
color: this.rootStore.uiStore.theme.colors.map.polygons.departure
|
|
64070
64080
|
}), r != null && r.polygon != null && e.push({
|
|
64071
64081
|
polygon: r.polygon,
|
|
64072
|
-
color: this.rootStore.uiStore.theme.colors.map.highlight
|
|
64082
|
+
color: this.rootStore.uiStore.theme.colors.map.polygons.highlight
|
|
64073
64083
|
});
|
|
64074
64084
|
} else {
|
|
64075
64085
|
if (this.rootStore.selectedLocation != null)
|
|
64076
64086
|
for (const n of this.rootStore.selectedLocation.polygons)
|
|
64077
64087
|
e.push({
|
|
64078
64088
|
polygon: n,
|
|
64079
|
-
color: this.rootStore.uiStore.theme.colors.map.highlight
|
|
64089
|
+
color: this.rootStore.uiStore.theme.colors.map.polygons.highlight
|
|
64080
64090
|
});
|
|
64081
64091
|
if (this.rootStore.departure instanceof k7)
|
|
64082
64092
|
for (const n of this.rootStore.departure.polygons)
|
|
64083
64093
|
e.push({
|
|
64084
64094
|
polygon: n,
|
|
64085
|
-
color: this.rootStore.uiStore.theme.colors.map.departure
|
|
64095
|
+
color: this.rootStore.uiStore.theme.colors.map.polygons.departure
|
|
64086
64096
|
});
|
|
64087
64097
|
}
|
|
64088
64098
|
break;
|
|
@@ -64613,7 +64623,7 @@ class UHe {
|
|
|
64613
64623
|
s.Camera.minZoom = this.rootStore.uiStore.theme.map.minZoom, s.Camera.set({
|
|
64614
64624
|
tilt: this.rootStore.uiStore.theme.map.initialTilt,
|
|
64615
64625
|
rotation: this.rootStore.uiStore.theme.map.initialRotation
|
|
64616
|
-
}), s.setHoverColor(this.rootStore.uiStore.theme.colors.map.hover), s.setBackgroundColor(this.rootStore.uiStore.theme.colors.map.background), s.on(Ou.CLICK, this.handleMapClick), ZW(() => {
|
|
64626
|
+
}), s.setHoverColor(this.rootStore.uiStore.theme.colors.map.polygons.hover), s.setBackgroundColor(this.rootStore.uiStore.theme.colors.map.background), s.on(Ou.CLICK, this.handleMapClick), ZW(() => {
|
|
64617
64627
|
this.mapView = s;
|
|
64618
64628
|
});
|
|
64619
64629
|
}
|
|
@@ -96497,7 +96507,7 @@ const R_e = Si.div`
|
|
|
96497
96507
|
minHeight: 60,
|
|
96498
96508
|
display: "block"
|
|
96499
96509
|
},
|
|
96500
|
-
children: /* @__PURE__ */ He.jsxs("g", { fill: t.colors.
|
|
96510
|
+
children: /* @__PURE__ */ He.jsxs("g", { fill: t.colors.text.primary, stroke: "none", children: [
|
|
96501
96511
|
/* @__PURE__ */ He.jsx("path", { d: "M41.4998 11.4994C42.0521 11.4994 42.4998 11.9471 42.4998 12.4994V47.9237L73.002 65.6346C73.4796 65.9119 73.6419 66.5239 73.3646 67.0015C73.0873 67.4791 72.4753 67.6415 71.9977 67.3641L41.4998 49.6557L11.002 67.3641C10.5244 67.6415 9.91236 67.4791 9.63504 67.0015C9.35772 66.5239 9.52008 65.9119 9.99769 65.6346L40.4998 47.9237V12.4994C40.4998 11.9471 40.9475 11.4994 41.4998 11.4994Z" }),
|
|
96502
96512
|
/* @__PURE__ */ He.jsx(
|
|
96503
96513
|
"path",
|
|
@@ -96516,7 +96526,7 @@ const R_e = Si.div`
|
|
|
96516
96526
|
height: ${nh - poe * 2}px;
|
|
96517
96527
|
border-radius: 50%;
|
|
96518
96528
|
background: ${({ theme: t }) => t.colors.background};
|
|
96519
|
-
border: 3px solid ${({ theme: t }) => t.colors.accent.
|
|
96529
|
+
border: 3px solid ${({ theme: t }) => t.colors.accent.primary};
|
|
96520
96530
|
pointer-events: none;
|
|
96521
96531
|
`, ZQe = Si.div`
|
|
96522
96532
|
position: relative;
|
|
@@ -96550,7 +96560,7 @@ const R_e = Si.div`
|
|
|
96550
96560
|
vs,
|
|
96551
96561
|
{
|
|
96552
96562
|
style: {
|
|
96553
|
-
backgroundColor: e.colors.
|
|
96563
|
+
backgroundColor: e.colors.text.primary,
|
|
96554
96564
|
padding: "0 12px 0 12px",
|
|
96555
96565
|
borderRadius: 10,
|
|
96556
96566
|
boxShadow: "none"
|
|
@@ -3,7 +3,6 @@ export type TTheme = {
|
|
|
3
3
|
accent: {
|
|
4
4
|
primary: string;
|
|
5
5
|
neutral: string;
|
|
6
|
-
navigation: string;
|
|
7
6
|
success: string;
|
|
8
7
|
};
|
|
9
8
|
background: string;
|
|
@@ -16,10 +15,18 @@ export type TTheme = {
|
|
|
16
15
|
labels: {
|
|
17
16
|
default: string;
|
|
18
17
|
};
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
markers: {
|
|
19
|
+
default: string;
|
|
20
|
+
connection: string;
|
|
21
|
+
departure: string;
|
|
22
|
+
destination: string;
|
|
23
|
+
};
|
|
24
|
+
polygons: {
|
|
25
|
+
departure: string;
|
|
26
|
+
hover: string;
|
|
27
|
+
highlight: string;
|
|
28
|
+
};
|
|
21
29
|
path: string;
|
|
22
|
-
hover: string;
|
|
23
30
|
background: string;
|
|
24
31
|
};
|
|
25
32
|
};
|