mgtypes 1.0.7 → 1.0.9
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/package.json +1 -1
- package/types/App.ts +26 -3
package/package.json
CHANGED
package/types/App.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Position } from "geojson";
|
|
2
|
+
|
|
1
3
|
// App coming from admin database
|
|
2
4
|
export interface App {
|
|
3
5
|
id: number,
|
|
@@ -7,8 +9,9 @@ export interface App {
|
|
|
7
9
|
endDateTime: string;
|
|
8
10
|
eventLatitude: number;
|
|
9
11
|
eventLongitude: number;
|
|
12
|
+
mapTheme: 'light' | 'dark' | 'streets' | 'outdoors'
|
|
10
13
|
mapStyleUrl: string;
|
|
11
|
-
mapLabels:
|
|
14
|
+
mapLabels: MapLabels;
|
|
12
15
|
pins: any[];
|
|
13
16
|
plans: any[];
|
|
14
17
|
photos: any[];
|
|
@@ -16,10 +19,25 @@ export interface App {
|
|
|
16
19
|
routes: any[];
|
|
17
20
|
structures: any[];
|
|
18
21
|
areas: any[];
|
|
19
|
-
appColors:
|
|
22
|
+
appColors: AppColors;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param icon use a hyphen to connect substrings, as in 'ferris-wheel'. This is Expo-friendly.
|
|
27
|
+
* @param iconColor use hex, as in '#e5e5e5'
|
|
28
|
+
* @param image not configured, would be used to display image on label
|
|
29
|
+
*/
|
|
30
|
+
export interface MapLabel {
|
|
31
|
+
title: string;
|
|
32
|
+
icon: string | null;
|
|
33
|
+
latitude: number;
|
|
34
|
+
longitude: number;
|
|
35
|
+
iconColor: string | null;
|
|
36
|
+
image: string | null;
|
|
37
|
+
boundingBox: Position[];
|
|
20
38
|
}
|
|
21
39
|
|
|
22
|
-
export interface
|
|
40
|
+
export interface AppColors {
|
|
23
41
|
primary: string;
|
|
24
42
|
primaryContainer: string;
|
|
25
43
|
onPrimaryContainer: string;
|
|
@@ -28,4 +46,9 @@ export interface IAppColors {
|
|
|
28
46
|
secondary: string;
|
|
29
47
|
outline: string;
|
|
30
48
|
surfaceVariant: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface MapLabels {
|
|
52
|
+
zoomThresholds: number[];
|
|
53
|
+
labels: MapLabel[][];
|
|
31
54
|
}
|