@redus/georedus-ui 0.19.5 → 0.20.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 +23 -0
- package/README.md +132 -0
- package/dist/ExportImage/ExportImage.d.ts +1 -0
- package/dist/ExportImage/NorthArrow.d.ts +15 -0
- package/dist/ExportImage/constants.d.ts +2 -0
- package/dist/ExportImage/createMapBlob.d.ts +20 -0
- package/dist/ExportImage/createMapImage.d.ts +1 -0
- package/dist/ExportImage/index.d.ts +1 -0
- package/dist/ExportImage/paperDimensions.d.ts +8 -0
- package/dist/GeoReDUS/constants.d.ts +9 -0
- package/dist/GeoReDUSLogo/GeoReDUSLogo.d.ts +1 -1
- package/dist/LeftPanel/LeftPanel.d.ts +7 -3
- package/dist/LeftPanel/SharePanel.d.ts +7 -3
- package/dist/main.js +4093 -1401
- package/dist/viewSpecs/presets/index.d.ts +5 -0
- package/dist/viewSpecs/presets/util/colorUtil.d.ts +2 -0
- package/dist/viewSpecs/presets/util/components/basicDownload.d.ts +12 -0
- package/dist/viewSpecs/presets/util/components/basicTooltip.d.ts +20 -0
- package/dist/viewSpecs/presets/util/components/confInputs.d.ts +127 -0
- package/dist/viewSpecs/presets/util/index.d.ts +6 -0
- package/dist/viewSpecs/presets/util/string.d.ts +1 -0
- package/dist/viewSpecs/presets/util/url.d.ts +7 -0
- package/dist/viewSpecs/presets/vector_circle/index.d.ts +75 -1
- package/dist/viewSpecs/presets/vector_line/index.d.ts +95 -2
- package/dist/viewSpecs/presets/vector_point_continuous/download.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_point_continuous/index.d.ts +95 -0
- package/dist/viewSpecs/presets/vector_point_continuous/layers.d.ts +59 -0
- package/dist/viewSpecs/presets/vector_point_continuous/metadata/index.d.ts +11 -0
- package/dist/viewSpecs/presets/vector_point_continuous/parseStyleSpec.d.ts +34 -0
- package/dist/viewSpecs/presets/vector_point_continuous/sources.d.ts +8 -0
- package/dist/viewSpecs/presets/vector_point_single/confSchema.d.ts +63 -0
- package/dist/viewSpecs/presets/vector_point_single/download.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_point_single/index.d.ts +142 -0
- package/dist/viewSpecs/presets/vector_point_single/layers.d.ts +53 -0
- package/dist/viewSpecs/presets/vector_point_single/metadata/index.d.ts +1 -0
- package/dist/viewSpecs/presets/vector_point_single/parseStyleSpec.d.ts +11 -0
- package/dist/viewSpecs/presets/vector_point_single/sources.d.ts +8 -0
- package/dist/viewSpecs/presets/vector_polygon/index.d.ts +93 -10
- package/dist/viewSpecs/presets/vector_polygon_categorical/confSchema.d.ts +14 -0
- package/dist/viewSpecs/presets/vector_polygon_categorical/download.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_polygon_categorical/index.d.ts +108 -0
- package/dist/viewSpecs/presets/vector_polygon_categorical/layers.d.ts +58 -0
- package/dist/viewSpecs/presets/vector_polygon_categorical/metadata.d.ts +11 -0
- package/dist/viewSpecs/presets/vector_polygon_categorical/parseStyleSpec.d.ts +17 -0
- package/dist/viewSpecs/presets/vector_polygon_categorical/sources.d.ts +8 -0
- package/dist/viewSpecs/presets/vector_polygon_continuous/confSchema.d.ts +24 -0
- package/dist/viewSpecs/presets/vector_polygon_continuous/download.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_polygon_continuous/index.d.ts +112 -0
- package/dist/viewSpecs/presets/vector_polygon_continuous/layers.d.ts +54 -0
- package/dist/viewSpecs/presets/vector_polygon_continuous/metadata/colorScaleStopResolvers.d.ts +21 -0
- package/dist/viewSpecs/presets/vector_polygon_continuous/metadata/index.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_polygon_continuous/parseStyleSpec.d.ts +31 -0
- package/dist/viewSpecs/presets/vector_polygon_continuous/sources.d.ts +8 -0
- package/dist/viewSpecs/presets/vector_polygon_single/confSchema.d.ts +73 -0
- package/dist/viewSpecs/presets/vector_polygon_single/download.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_polygon_single/index.d.ts +157 -0
- package/dist/viewSpecs/presets/vector_polygon_single/layers.d.ts +58 -0
- package/dist/viewSpecs/presets/vector_polygon_single/metadata.d.ts +1 -0
- package/dist/viewSpecs/presets/vector_polygon_single/parseStyleSpec.d.ts +7 -0
- package/dist/viewSpecs/presets/vector_polygon_single/sources.d.ts +7 -0
- package/dist/viewSpecs/util/colorSchemes/d3.d.ts +58 -0
- package/dist/viewSpecs/util/colorSchemes/georedus.d.ts +156 -0
- package/dist/viewSpecs/util/colorSchemes/index.d.ts +13 -0
- package/package.json +8 -6
- package/dist/viewSpecs/util/colorSchemes.d.ts +0 -15
|
@@ -3,5 +3,10 @@ export * from "./cem_censo/2010_2022";
|
|
|
3
3
|
export * from "./cem_censo/2022";
|
|
4
4
|
export * from "./cem_saude_2024";
|
|
5
5
|
export * from "./vector_polygon";
|
|
6
|
+
export * from "./vector_polygon_categorical";
|
|
7
|
+
export * from "./vector_polygon_single";
|
|
8
|
+
export * from "./vector_polygon_continuous";
|
|
6
9
|
export * from "./vector_line";
|
|
7
10
|
export * from "./vector_circle";
|
|
11
|
+
export * from "./vector_point_single";
|
|
12
|
+
export * from "./vector_point_continuous";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function basicDownload({ fileName, downloadUrl }: {
|
|
2
|
+
fileName: any;
|
|
3
|
+
downloadUrl: any;
|
|
4
|
+
}): {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
$$resolver: symbol;
|
|
7
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
8
|
+
dependencies: any;
|
|
9
|
+
value: (...args: any[]) => any;
|
|
10
|
+
defaultValue?: any;
|
|
11
|
+
context?: any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function basicTooltip({ title, entries }?: {}): {
|
|
2
|
+
title: (string | {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
$$resolver: symbol;
|
|
5
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
6
|
+
dependencies: any;
|
|
7
|
+
value: (...args: any[]) => any;
|
|
8
|
+
defaultValue?: any;
|
|
9
|
+
context?: any;
|
|
10
|
+
})[];
|
|
11
|
+
entries: (string | {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
$$resolver: symbol;
|
|
14
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
15
|
+
dependencies: any;
|
|
16
|
+
value: (...args: any[]) => any;
|
|
17
|
+
defaultValue?: any;
|
|
18
|
+
context?: any;
|
|
19
|
+
})[];
|
|
20
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export function colorSelector(_initialColor: any): {
|
|
2
|
+
label: string;
|
|
3
|
+
helperText: string;
|
|
4
|
+
type: string;
|
|
5
|
+
clearable: boolean;
|
|
6
|
+
defaultValue: any;
|
|
7
|
+
options: ({
|
|
8
|
+
label: import("react").JSX.Element;
|
|
9
|
+
value: string;
|
|
10
|
+
} | {
|
|
11
|
+
label: import("react").JSX.Element;
|
|
12
|
+
value: string;
|
|
13
|
+
} | {
|
|
14
|
+
label: import("react").JSX.Element;
|
|
15
|
+
value: string;
|
|
16
|
+
} | {
|
|
17
|
+
label: import("react").JSX.Element;
|
|
18
|
+
value: string;
|
|
19
|
+
} | {
|
|
20
|
+
label: import("react").JSX.Element;
|
|
21
|
+
value: string;
|
|
22
|
+
} | {
|
|
23
|
+
label: import("react").JSX.Element;
|
|
24
|
+
value: string;
|
|
25
|
+
} | {
|
|
26
|
+
label: import("react").JSX.Element;
|
|
27
|
+
value: string;
|
|
28
|
+
} | {
|
|
29
|
+
label: import("react").JSX.Element;
|
|
30
|
+
value: string;
|
|
31
|
+
} | {
|
|
32
|
+
label: import("react").JSX.Element;
|
|
33
|
+
value: string;
|
|
34
|
+
} | {
|
|
35
|
+
label: import("react").JSX.Element;
|
|
36
|
+
value: string;
|
|
37
|
+
} | {
|
|
38
|
+
label: import("react").JSX.Element;
|
|
39
|
+
value: string;
|
|
40
|
+
} | {
|
|
41
|
+
label: import("react").JSX.Element;
|
|
42
|
+
value: string;
|
|
43
|
+
} | {
|
|
44
|
+
label: import("react").JSX.Element;
|
|
45
|
+
value: string;
|
|
46
|
+
} | {
|
|
47
|
+
label: import("react").JSX.Element;
|
|
48
|
+
value: string;
|
|
49
|
+
} | {
|
|
50
|
+
label: import("react").JSX.Element;
|
|
51
|
+
value: string;
|
|
52
|
+
} | {
|
|
53
|
+
label: import("react").JSX.Element;
|
|
54
|
+
value: string;
|
|
55
|
+
} | {
|
|
56
|
+
label: import("react").JSX.Element;
|
|
57
|
+
value: string;
|
|
58
|
+
})[];
|
|
59
|
+
};
|
|
60
|
+
export function svgBgImage(svg: any): string;
|
|
61
|
+
export function fillPatternSelector(props?: {}): {
|
|
62
|
+
label: string;
|
|
63
|
+
type: string;
|
|
64
|
+
clearable: boolean;
|
|
65
|
+
defaultValue: string;
|
|
66
|
+
options: {
|
|
67
|
+
label: import("react").JSX.Element;
|
|
68
|
+
value: string;
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
71
|
+
export const COLOR_OPTIONS: ({
|
|
72
|
+
label: string;
|
|
73
|
+
value: string;
|
|
74
|
+
} | {
|
|
75
|
+
label: string;
|
|
76
|
+
value: string;
|
|
77
|
+
} | {
|
|
78
|
+
label: string;
|
|
79
|
+
value: string;
|
|
80
|
+
} | {
|
|
81
|
+
label: string;
|
|
82
|
+
value: string;
|
|
83
|
+
} | {
|
|
84
|
+
label: string;
|
|
85
|
+
value: string;
|
|
86
|
+
} | {
|
|
87
|
+
label: string;
|
|
88
|
+
value: string;
|
|
89
|
+
} | {
|
|
90
|
+
label: string;
|
|
91
|
+
value: string;
|
|
92
|
+
} | {
|
|
93
|
+
label: string;
|
|
94
|
+
value: string;
|
|
95
|
+
} | {
|
|
96
|
+
label: string;
|
|
97
|
+
value: string;
|
|
98
|
+
} | {
|
|
99
|
+
label: string;
|
|
100
|
+
value: string;
|
|
101
|
+
} | {
|
|
102
|
+
label: string;
|
|
103
|
+
value: string;
|
|
104
|
+
} | {
|
|
105
|
+
label: string;
|
|
106
|
+
value: string;
|
|
107
|
+
} | {
|
|
108
|
+
label: string;
|
|
109
|
+
value: string;
|
|
110
|
+
} | {
|
|
111
|
+
label: string;
|
|
112
|
+
value: string;
|
|
113
|
+
} | {
|
|
114
|
+
label: string;
|
|
115
|
+
value: string;
|
|
116
|
+
} | {
|
|
117
|
+
label: string;
|
|
118
|
+
value: string;
|
|
119
|
+
} | {
|
|
120
|
+
label: string;
|
|
121
|
+
value: string;
|
|
122
|
+
})[];
|
|
123
|
+
export const FILL_PATTERN_SOLID: "solid";
|
|
124
|
+
export const FILL_PATTERN_OPTIONS: {
|
|
125
|
+
label: string;
|
|
126
|
+
value: string;
|
|
127
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function humanize(str: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Context = {
|
|
2
|
+
VECTOR_TILE_SERVER_ENDPOINT: string;
|
|
3
|
+
METADATA_API_ENDPOINT: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function parseTiles(tiles: string | string[], context: Context): string[];
|
|
6
|
+
export declare function parseUrl(urlTemplate: string, context: Context): string;
|
|
7
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export function vector_circle({ circle, color, tiles, source_layer, sources, layers, ...props }: {
|
|
1
|
+
export function vector_circle({ label, circle, color, tiles, source_layer, sources, layers, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
+
label: any;
|
|
3
4
|
circle?: {} | undefined;
|
|
4
5
|
color: any;
|
|
5
6
|
tiles: any;
|
|
@@ -7,6 +8,70 @@ export function vector_circle({ circle, color, tiles, source_layer, sources, lay
|
|
|
7
8
|
sources?: {} | undefined;
|
|
8
9
|
layers?: {} | undefined;
|
|
9
10
|
}, allViewSpecs: any, context: any): {
|
|
11
|
+
label: any;
|
|
12
|
+
confSchema: {
|
|
13
|
+
style: {
|
|
14
|
+
color: {
|
|
15
|
+
label: string;
|
|
16
|
+
helperText: string;
|
|
17
|
+
type: string;
|
|
18
|
+
clearable: boolean;
|
|
19
|
+
defaultValue: any;
|
|
20
|
+
options: ({
|
|
21
|
+
label: import("react").JSX.Element;
|
|
22
|
+
value: string;
|
|
23
|
+
} | {
|
|
24
|
+
label: import("react").JSX.Element;
|
|
25
|
+
value: string;
|
|
26
|
+
} | {
|
|
27
|
+
label: import("react").JSX.Element;
|
|
28
|
+
value: string;
|
|
29
|
+
} | {
|
|
30
|
+
label: import("react").JSX.Element;
|
|
31
|
+
value: string;
|
|
32
|
+
} | {
|
|
33
|
+
label: import("react").JSX.Element;
|
|
34
|
+
value: string;
|
|
35
|
+
} | {
|
|
36
|
+
label: import("react").JSX.Element;
|
|
37
|
+
value: string;
|
|
38
|
+
} | {
|
|
39
|
+
label: import("react").JSX.Element;
|
|
40
|
+
value: string;
|
|
41
|
+
} | {
|
|
42
|
+
label: import("react").JSX.Element;
|
|
43
|
+
value: string;
|
|
44
|
+
} | {
|
|
45
|
+
label: import("react").JSX.Element;
|
|
46
|
+
value: string;
|
|
47
|
+
} | {
|
|
48
|
+
label: import("react").JSX.Element;
|
|
49
|
+
value: string;
|
|
50
|
+
} | {
|
|
51
|
+
label: import("react").JSX.Element;
|
|
52
|
+
value: string;
|
|
53
|
+
} | {
|
|
54
|
+
label: import("react").JSX.Element;
|
|
55
|
+
value: string;
|
|
56
|
+
} | {
|
|
57
|
+
label: import("react").JSX.Element;
|
|
58
|
+
value: string;
|
|
59
|
+
} | {
|
|
60
|
+
label: import("react").JSX.Element;
|
|
61
|
+
value: string;
|
|
62
|
+
} | {
|
|
63
|
+
label: import("react").JSX.Element;
|
|
64
|
+
value: string;
|
|
65
|
+
} | {
|
|
66
|
+
label: import("react").JSX.Element;
|
|
67
|
+
value: string;
|
|
68
|
+
} | {
|
|
69
|
+
label: import("react").JSX.Element;
|
|
70
|
+
value: string;
|
|
71
|
+
})[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
10
75
|
metadata: {};
|
|
11
76
|
sources: {
|
|
12
77
|
main: {
|
|
@@ -18,6 +83,15 @@ export function vector_circle({ circle, color, tiles, source_layer, sources, lay
|
|
|
18
83
|
layers: {
|
|
19
84
|
main_circle: {
|
|
20
85
|
paint: any;
|
|
86
|
+
legends: {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
$$resolver: symbol;
|
|
89
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
90
|
+
dependencies: any;
|
|
91
|
+
value: (...args: any[]) => any;
|
|
92
|
+
defaultValue?: any;
|
|
93
|
+
context?: any;
|
|
94
|
+
}[];
|
|
21
95
|
tooltip: {
|
|
22
96
|
title: (string | {
|
|
23
97
|
[x: string]: any;
|
|
@@ -1,12 +1,88 @@
|
|
|
1
|
-
export function vector_line({ line, color, tiles, source_layer, sources, layers, ...props }: {
|
|
1
|
+
export function vector_line({ label, line, color, tiles, source_layer, sources, layers, tooltip, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
+
label: any;
|
|
3
4
|
line?: {} | undefined;
|
|
4
5
|
color: any;
|
|
5
6
|
tiles: any;
|
|
6
7
|
source_layer: any;
|
|
7
8
|
sources?: {} | undefined;
|
|
8
9
|
layers?: {} | undefined;
|
|
10
|
+
tooltip?: {} | undefined;
|
|
9
11
|
}, allViewSpecs: any, context: any): {
|
|
12
|
+
label: any;
|
|
13
|
+
confSchema: {
|
|
14
|
+
style: {
|
|
15
|
+
color: {
|
|
16
|
+
label: string;
|
|
17
|
+
helperText: string;
|
|
18
|
+
type: string;
|
|
19
|
+
clearable: boolean;
|
|
20
|
+
defaultValue: any;
|
|
21
|
+
options: ({
|
|
22
|
+
label: import("react").JSX.Element;
|
|
23
|
+
value: string;
|
|
24
|
+
} | {
|
|
25
|
+
label: import("react").JSX.Element;
|
|
26
|
+
value: string;
|
|
27
|
+
} | {
|
|
28
|
+
label: import("react").JSX.Element;
|
|
29
|
+
value: string;
|
|
30
|
+
} | {
|
|
31
|
+
label: import("react").JSX.Element;
|
|
32
|
+
value: string;
|
|
33
|
+
} | {
|
|
34
|
+
label: import("react").JSX.Element;
|
|
35
|
+
value: string;
|
|
36
|
+
} | {
|
|
37
|
+
label: import("react").JSX.Element;
|
|
38
|
+
value: string;
|
|
39
|
+
} | {
|
|
40
|
+
label: import("react").JSX.Element;
|
|
41
|
+
value: string;
|
|
42
|
+
} | {
|
|
43
|
+
label: import("react").JSX.Element;
|
|
44
|
+
value: string;
|
|
45
|
+
} | {
|
|
46
|
+
label: import("react").JSX.Element;
|
|
47
|
+
value: string;
|
|
48
|
+
} | {
|
|
49
|
+
label: import("react").JSX.Element;
|
|
50
|
+
value: string;
|
|
51
|
+
} | {
|
|
52
|
+
label: import("react").JSX.Element;
|
|
53
|
+
value: string;
|
|
54
|
+
} | {
|
|
55
|
+
label: import("react").JSX.Element;
|
|
56
|
+
value: string;
|
|
57
|
+
} | {
|
|
58
|
+
label: import("react").JSX.Element;
|
|
59
|
+
value: string;
|
|
60
|
+
} | {
|
|
61
|
+
label: import("react").JSX.Element;
|
|
62
|
+
value: string;
|
|
63
|
+
} | {
|
|
64
|
+
label: import("react").JSX.Element;
|
|
65
|
+
value: string;
|
|
66
|
+
} | {
|
|
67
|
+
label: import("react").JSX.Element;
|
|
68
|
+
value: string;
|
|
69
|
+
} | {
|
|
70
|
+
label: import("react").JSX.Element;
|
|
71
|
+
value: string;
|
|
72
|
+
})[];
|
|
73
|
+
};
|
|
74
|
+
linePattern: {
|
|
75
|
+
label: string;
|
|
76
|
+
type: string;
|
|
77
|
+
clearable: boolean;
|
|
78
|
+
defaultValue: string;
|
|
79
|
+
options: {
|
|
80
|
+
label: import("react").JSX.Element;
|
|
81
|
+
value: string;
|
|
82
|
+
}[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
10
86
|
metadata: {};
|
|
11
87
|
sources: {
|
|
12
88
|
main: {
|
|
@@ -17,7 +93,24 @@ export function vector_line({ line, color, tiles, source_layer, sources, layers,
|
|
|
17
93
|
};
|
|
18
94
|
layers: {
|
|
19
95
|
main_line: {
|
|
20
|
-
paint:
|
|
96
|
+
paint: {
|
|
97
|
+
[x: string]: any;
|
|
98
|
+
$$resolver: symbol;
|
|
99
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
100
|
+
dependencies: any;
|
|
101
|
+
value: (...args: any[]) => any;
|
|
102
|
+
defaultValue?: any;
|
|
103
|
+
context?: any;
|
|
104
|
+
};
|
|
105
|
+
legends: {
|
|
106
|
+
[x: string]: any;
|
|
107
|
+
$$resolver: symbol;
|
|
108
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
109
|
+
dependencies: any;
|
|
110
|
+
value: (...args: any[]) => any;
|
|
111
|
+
defaultValue?: any;
|
|
112
|
+
context?: any;
|
|
113
|
+
}[];
|
|
21
114
|
tooltip: {
|
|
22
115
|
title: (string | {
|
|
23
116
|
[x: string]: any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function download(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
$$resolver: symbol;
|
|
4
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
5
|
+
dependencies: any;
|
|
6
|
+
value: (...args: any[]) => any;
|
|
7
|
+
defaultValue?: any;
|
|
8
|
+
context?: any;
|
|
9
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export function vector_point_continuous({ style, ...viewSpec }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
style: any;
|
|
4
|
+
}, allViewSpecs: any, context: any): {
|
|
5
|
+
metadata: {
|
|
6
|
+
radiusData: {
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
$$resolver: symbol;
|
|
9
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
10
|
+
dependencies: any;
|
|
11
|
+
value: (...args: any[]) => any;
|
|
12
|
+
defaultValue?: any;
|
|
13
|
+
context?: any;
|
|
14
|
+
} | null;
|
|
15
|
+
};
|
|
16
|
+
sources: {
|
|
17
|
+
main: {
|
|
18
|
+
promoteId: string;
|
|
19
|
+
type: string;
|
|
20
|
+
tiles: string[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
layers: {
|
|
24
|
+
main_circle: {
|
|
25
|
+
zIndex: number;
|
|
26
|
+
source: string;
|
|
27
|
+
'source-layer': any;
|
|
28
|
+
interactive: boolean;
|
|
29
|
+
type: string;
|
|
30
|
+
paint: {
|
|
31
|
+
'circle-color': {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
$$resolver: symbol;
|
|
34
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
35
|
+
dependencies: any;
|
|
36
|
+
value: (...args: any[]) => any;
|
|
37
|
+
defaultValue?: any;
|
|
38
|
+
context?: any;
|
|
39
|
+
};
|
|
40
|
+
'circle-opacity': number;
|
|
41
|
+
'circle-radius': {
|
|
42
|
+
[x: string]: any;
|
|
43
|
+
$$resolver: symbol;
|
|
44
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
45
|
+
dependencies: any;
|
|
46
|
+
value: (...args: any[]) => any;
|
|
47
|
+
defaultValue?: any;
|
|
48
|
+
context?: any;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
legends: {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
$$resolver: symbol;
|
|
54
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
55
|
+
dependencies: any;
|
|
56
|
+
value: (...args: any[]) => any;
|
|
57
|
+
defaultValue?: any;
|
|
58
|
+
context?: any;
|
|
59
|
+
};
|
|
60
|
+
tooltip: {
|
|
61
|
+
title: (string | {
|
|
62
|
+
[x: string]: any;
|
|
63
|
+
$$resolver: symbol;
|
|
64
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
65
|
+
dependencies: any;
|
|
66
|
+
value: (...args: any[]) => any;
|
|
67
|
+
defaultValue?: any;
|
|
68
|
+
context?: any;
|
|
69
|
+
})[];
|
|
70
|
+
entries: (string | {
|
|
71
|
+
[x: string]: any;
|
|
72
|
+
$$resolver: symbol;
|
|
73
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
74
|
+
dependencies: any;
|
|
75
|
+
value: (...args: any[]) => any;
|
|
76
|
+
defaultValue?: any;
|
|
77
|
+
context?: any;
|
|
78
|
+
})[];
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
download: {
|
|
83
|
+
[x: string]: any;
|
|
84
|
+
$$resolver: symbol;
|
|
85
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
86
|
+
dependencies: any;
|
|
87
|
+
value: (...args: any[]) => any;
|
|
88
|
+
defaultValue?: any;
|
|
89
|
+
context?: any;
|
|
90
|
+
};
|
|
91
|
+
id: any;
|
|
92
|
+
label: any;
|
|
93
|
+
path: any;
|
|
94
|
+
sourceLabel: any;
|
|
95
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export function layers(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
main_circle: {
|
|
3
|
+
zIndex: number;
|
|
4
|
+
source: string;
|
|
5
|
+
'source-layer': any;
|
|
6
|
+
interactive: boolean;
|
|
7
|
+
type: string;
|
|
8
|
+
paint: {
|
|
9
|
+
'circle-color': {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
$$resolver: symbol;
|
|
12
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
13
|
+
dependencies: any;
|
|
14
|
+
value: (...args: any[]) => any;
|
|
15
|
+
defaultValue?: any;
|
|
16
|
+
context?: any;
|
|
17
|
+
};
|
|
18
|
+
'circle-opacity': number;
|
|
19
|
+
'circle-radius': {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
$$resolver: symbol;
|
|
22
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
23
|
+
dependencies: any;
|
|
24
|
+
value: (...args: any[]) => any;
|
|
25
|
+
defaultValue?: any;
|
|
26
|
+
context?: any;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
legends: {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
$$resolver: symbol;
|
|
32
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
33
|
+
dependencies: any;
|
|
34
|
+
value: (...args: any[]) => any;
|
|
35
|
+
defaultValue?: any;
|
|
36
|
+
context?: any;
|
|
37
|
+
};
|
|
38
|
+
tooltip: {
|
|
39
|
+
title: (string | {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
$$resolver: symbol;
|
|
42
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
43
|
+
dependencies: any;
|
|
44
|
+
value: (...args: any[]) => any;
|
|
45
|
+
defaultValue?: any;
|
|
46
|
+
context?: any;
|
|
47
|
+
})[];
|
|
48
|
+
entries: (string | {
|
|
49
|
+
[x: string]: any;
|
|
50
|
+
$$resolver: symbol;
|
|
51
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
52
|
+
dependencies: any;
|
|
53
|
+
value: (...args: any[]) => any;
|
|
54
|
+
defaultValue?: any;
|
|
55
|
+
context?: any;
|
|
56
|
+
})[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function metadata(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
radiusData: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
$$resolver: symbol;
|
|
5
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
6
|
+
dependencies: any;
|
|
7
|
+
value: (...args: any[]) => any;
|
|
8
|
+
defaultValue?: any;
|
|
9
|
+
context?: any;
|
|
10
|
+
} | null;
|
|
11
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type ClassificationMethod = {
|
|
2
|
+
type: 'naturalBreaks';
|
|
3
|
+
k: number;
|
|
4
|
+
} | 'naturalBreaks' | {
|
|
5
|
+
type: 'quantile';
|
|
6
|
+
k: number;
|
|
7
|
+
} | 'quantile' | {
|
|
8
|
+
type: 'custom';
|
|
9
|
+
breaks: number[];
|
|
10
|
+
};
|
|
11
|
+
type ContinuousSpecBase = {
|
|
12
|
+
valueKey: string;
|
|
13
|
+
values: string | number[] | {
|
|
14
|
+
value: number;
|
|
15
|
+
}[];
|
|
16
|
+
numberFormat?: any;
|
|
17
|
+
legend?: {
|
|
18
|
+
format: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
classificationMethod?: ClassificationMethod;
|
|
23
|
+
};
|
|
24
|
+
export type StyleSpec = {
|
|
25
|
+
tooltip?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
radius?: ContinuousSpecBase & {};
|
|
29
|
+
color?: string;
|
|
30
|
+
};
|
|
31
|
+
export type StyleSpecInput = StyleSpec;
|
|
32
|
+
export declare const DEFAULT_COLOR_SCHEME_ID = "schemeOrRd";
|
|
33
|
+
export declare function parseStyleSpec(styleInput: StyleSpecInput): StyleSpec;
|
|
34
|
+
export {};
|