@redus/georedus-ui 0.19.4 → 0.20.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/CHANGELOG.md +18 -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 +2690 -240
- package/dist/viewSpecs/presets/cem_censo/2010_2022/parseSchema.d.ts +1 -0
- 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 +4 -2
- package/dist/viewSpecs/util/colorSchemes.d.ts +0 -15
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export function confSchema(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
style: {
|
|
3
|
+
color: {
|
|
4
|
+
label: string;
|
|
5
|
+
helperText: string;
|
|
6
|
+
type: string;
|
|
7
|
+
clearable: boolean;
|
|
8
|
+
defaultValue: any;
|
|
9
|
+
options: ({
|
|
10
|
+
label: import("react").JSX.Element;
|
|
11
|
+
value: string;
|
|
12
|
+
} | {
|
|
13
|
+
label: import("react").JSX.Element;
|
|
14
|
+
value: string;
|
|
15
|
+
} | {
|
|
16
|
+
label: import("react").JSX.Element;
|
|
17
|
+
value: string;
|
|
18
|
+
} | {
|
|
19
|
+
label: import("react").JSX.Element;
|
|
20
|
+
value: string;
|
|
21
|
+
} | {
|
|
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
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -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,142 @@
|
|
|
1
|
+
export function vector_point_single({ style, ...viewSpec }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
style: any;
|
|
4
|
+
}, allViewSpecs: any, context: any): {
|
|
5
|
+
confSchema: {
|
|
6
|
+
style: {
|
|
7
|
+
color: {
|
|
8
|
+
label: string;
|
|
9
|
+
helperText: string;
|
|
10
|
+
type: string;
|
|
11
|
+
clearable: boolean;
|
|
12
|
+
defaultValue: any;
|
|
13
|
+
options: ({
|
|
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
|
+
label: import("react").JSX.Element;
|
|
60
|
+
value: string;
|
|
61
|
+
} | {
|
|
62
|
+
label: import("react").JSX.Element;
|
|
63
|
+
value: string;
|
|
64
|
+
})[];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
metadata: {};
|
|
69
|
+
sources: {
|
|
70
|
+
main: {
|
|
71
|
+
promoteId: string;
|
|
72
|
+
type: string;
|
|
73
|
+
tiles: string[];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
layers: {
|
|
77
|
+
main_circle: {
|
|
78
|
+
zIndex: number;
|
|
79
|
+
source: string;
|
|
80
|
+
'source-layer': any;
|
|
81
|
+
interactive: boolean;
|
|
82
|
+
type: string;
|
|
83
|
+
paint: {
|
|
84
|
+
'circle-color': {
|
|
85
|
+
[x: string]: any;
|
|
86
|
+
$$resolver: symbol;
|
|
87
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
88
|
+
dependencies: any;
|
|
89
|
+
value: (...args: any[]) => any;
|
|
90
|
+
defaultValue?: any;
|
|
91
|
+
context?: any;
|
|
92
|
+
};
|
|
93
|
+
'circle-opacity': any;
|
|
94
|
+
'circle-radius': any;
|
|
95
|
+
'circle-stroke-color': string;
|
|
96
|
+
'circle-stroke-width': number;
|
|
97
|
+
};
|
|
98
|
+
legends: {
|
|
99
|
+
[x: string]: any;
|
|
100
|
+
$$resolver: symbol;
|
|
101
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
102
|
+
dependencies: any;
|
|
103
|
+
value: (...args: any[]) => any;
|
|
104
|
+
defaultValue?: any;
|
|
105
|
+
context?: any;
|
|
106
|
+
};
|
|
107
|
+
tooltip: {
|
|
108
|
+
title: (string | {
|
|
109
|
+
[x: string]: any;
|
|
110
|
+
$$resolver: symbol;
|
|
111
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
112
|
+
dependencies: any;
|
|
113
|
+
value: (...args: any[]) => any;
|
|
114
|
+
defaultValue?: any;
|
|
115
|
+
context?: any;
|
|
116
|
+
})[];
|
|
117
|
+
entries: (string | {
|
|
118
|
+
[x: string]: any;
|
|
119
|
+
$$resolver: symbol;
|
|
120
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
121
|
+
dependencies: any;
|
|
122
|
+
value: (...args: any[]) => any;
|
|
123
|
+
defaultValue?: any;
|
|
124
|
+
context?: any;
|
|
125
|
+
})[];
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
download: {
|
|
130
|
+
[x: string]: any;
|
|
131
|
+
$$resolver: symbol;
|
|
132
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
133
|
+
dependencies: any;
|
|
134
|
+
value: (...args: any[]) => any;
|
|
135
|
+
defaultValue?: any;
|
|
136
|
+
context?: any;
|
|
137
|
+
};
|
|
138
|
+
id: any;
|
|
139
|
+
label: any;
|
|
140
|
+
path: any;
|
|
141
|
+
sourceLabel: any;
|
|
142
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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': any;
|
|
19
|
+
'circle-radius': any;
|
|
20
|
+
'circle-stroke-color': string;
|
|
21
|
+
'circle-stroke-width': number;
|
|
22
|
+
};
|
|
23
|
+
legends: {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
$$resolver: symbol;
|
|
26
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
27
|
+
dependencies: any;
|
|
28
|
+
value: (...args: any[]) => any;
|
|
29
|
+
defaultValue?: any;
|
|
30
|
+
context?: any;
|
|
31
|
+
};
|
|
32
|
+
tooltip: {
|
|
33
|
+
title: (string | {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
$$resolver: symbol;
|
|
36
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
37
|
+
dependencies: any;
|
|
38
|
+
value: (...args: any[]) => any;
|
|
39
|
+
defaultValue?: any;
|
|
40
|
+
context?: any;
|
|
41
|
+
})[];
|
|
42
|
+
entries: (string | {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
$$resolver: symbol;
|
|
45
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
46
|
+
dependencies: any;
|
|
47
|
+
value: (...args: any[]) => any;
|
|
48
|
+
defaultValue?: any;
|
|
49
|
+
context?: any;
|
|
50
|
+
})[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function metadata(viewSpec: any, allViewSpecs: any, context: any): {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type StyleSpec = {
|
|
2
|
+
tooltip?: {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
radius?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
opacity?: number;
|
|
8
|
+
border?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type StyleSpecInput = StyleSpec;
|
|
11
|
+
export declare function parseStyleSpec(styleInput: StyleSpecInput): StyleSpec;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function vector_polygon({ label, color, line, fill, tiles, source_layer, sources, layers, ...props }: {
|
|
1
|
+
export function vector_polygon({ label, color, line, fill, tiles, source_layer, sources, layers, fill_pattern, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
label: any;
|
|
4
4
|
color: any;
|
|
@@ -8,8 +8,82 @@ export function vector_polygon({ label, color, line, fill, tiles, source_layer,
|
|
|
8
8
|
source_layer: any;
|
|
9
9
|
sources?: {} | undefined;
|
|
10
10
|
layers?: {} | undefined;
|
|
11
|
+
fill_pattern: any;
|
|
11
12
|
}, allViewSpecs: any, context: any): {
|
|
12
13
|
label: any;
|
|
14
|
+
confSchema: {
|
|
15
|
+
style: {
|
|
16
|
+
color: {
|
|
17
|
+
label: string;
|
|
18
|
+
helperText: string;
|
|
19
|
+
type: string;
|
|
20
|
+
clearable: boolean;
|
|
21
|
+
defaultValue: any;
|
|
22
|
+
options: ({
|
|
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
|
+
label: import("react").JSX.Element;
|
|
60
|
+
value: string;
|
|
61
|
+
} | {
|
|
62
|
+
label: import("react").JSX.Element;
|
|
63
|
+
value: string;
|
|
64
|
+
} | {
|
|
65
|
+
label: import("react").JSX.Element;
|
|
66
|
+
value: string;
|
|
67
|
+
} | {
|
|
68
|
+
label: import("react").JSX.Element;
|
|
69
|
+
value: string;
|
|
70
|
+
} | {
|
|
71
|
+
label: import("react").JSX.Element;
|
|
72
|
+
value: string;
|
|
73
|
+
})[];
|
|
74
|
+
};
|
|
75
|
+
fillPattern: {
|
|
76
|
+
label: string;
|
|
77
|
+
type: string;
|
|
78
|
+
clearable: boolean;
|
|
79
|
+
defaultValue: any;
|
|
80
|
+
options: {
|
|
81
|
+
label: import("react").JSX.Element;
|
|
82
|
+
value: string;
|
|
83
|
+
}[];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
13
87
|
metadata: {};
|
|
14
88
|
sources: {
|
|
15
89
|
main: {
|
|
@@ -20,22 +94,31 @@ export function vector_polygon({ label, color, line, fill, tiles, source_layer,
|
|
|
20
94
|
};
|
|
21
95
|
layers: {
|
|
22
96
|
main_line: {
|
|
23
|
-
paint:
|
|
24
|
-
'line-color': any;
|
|
25
|
-
};
|
|
97
|
+
paint: any;
|
|
26
98
|
zIndex: number;
|
|
27
99
|
source: string;
|
|
28
100
|
'source-layer': any;
|
|
29
101
|
type: string;
|
|
30
102
|
};
|
|
31
103
|
main_fill: {
|
|
32
|
-
|
|
104
|
+
layout: any;
|
|
105
|
+
paint: {
|
|
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
|
+
};
|
|
33
114
|
legends: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
115
|
+
[x: string]: any;
|
|
116
|
+
$$resolver: symbol;
|
|
117
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
118
|
+
dependencies: any;
|
|
119
|
+
value: (...args: any[]) => any;
|
|
120
|
+
defaultValue?: any;
|
|
121
|
+
context?: any;
|
|
39
122
|
}[];
|
|
40
123
|
tooltip: {
|
|
41
124
|
title: (string | {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function confSchema(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
style: {
|
|
3
|
+
fillPattern: {
|
|
4
|
+
label: string;
|
|
5
|
+
type: string;
|
|
6
|
+
clearable: boolean;
|
|
7
|
+
defaultValue: string;
|
|
8
|
+
options: {
|
|
9
|
+
label: import("react").JSX.Element;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -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,108 @@
|
|
|
1
|
+
export function vector_polygon_categorical({ style, ...viewSpec }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
style: any;
|
|
4
|
+
}, allViewSpecs: any, context: any): {
|
|
5
|
+
confSchema: {
|
|
6
|
+
style: {
|
|
7
|
+
fillPattern: {
|
|
8
|
+
label: string;
|
|
9
|
+
type: string;
|
|
10
|
+
clearable: boolean;
|
|
11
|
+
defaultValue: string;
|
|
12
|
+
options: {
|
|
13
|
+
label: import("react").JSX.Element;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
metadata: {
|
|
20
|
+
categories: {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
$$resolver: symbol;
|
|
23
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
24
|
+
dependencies: any;
|
|
25
|
+
value: (...args: any[]) => any;
|
|
26
|
+
defaultValue?: any;
|
|
27
|
+
context?: any;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
sources: {
|
|
31
|
+
main: {
|
|
32
|
+
promoteId: string;
|
|
33
|
+
type: string;
|
|
34
|
+
tiles: string[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
layers: {
|
|
38
|
+
main_line: {
|
|
39
|
+
zIndex: number;
|
|
40
|
+
source: string;
|
|
41
|
+
'source-layer': any;
|
|
42
|
+
type: string;
|
|
43
|
+
layout: {
|
|
44
|
+
'line-cap': string;
|
|
45
|
+
} | {
|
|
46
|
+
'line-cap'?: undefined;
|
|
47
|
+
};
|
|
48
|
+
paint: any;
|
|
49
|
+
} | null;
|
|
50
|
+
main_fill: {
|
|
51
|
+
zIndex: number;
|
|
52
|
+
source: string;
|
|
53
|
+
'source-layer': any;
|
|
54
|
+
type: string;
|
|
55
|
+
paint: {
|
|
56
|
+
[x: string]: any;
|
|
57
|
+
$$resolver: symbol;
|
|
58
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
59
|
+
dependencies: any;
|
|
60
|
+
value: (...args: any[]) => any;
|
|
61
|
+
defaultValue?: any;
|
|
62
|
+
context?: any;
|
|
63
|
+
};
|
|
64
|
+
legends: {
|
|
65
|
+
[x: string]: any;
|
|
66
|
+
$$resolver: symbol;
|
|
67
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
68
|
+
dependencies: any;
|
|
69
|
+
value: (...args: any[]) => any;
|
|
70
|
+
defaultValue?: any;
|
|
71
|
+
context?: any;
|
|
72
|
+
};
|
|
73
|
+
tooltip: {
|
|
74
|
+
title: (string | {
|
|
75
|
+
[x: string]: any;
|
|
76
|
+
$$resolver: symbol;
|
|
77
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
78
|
+
dependencies: any;
|
|
79
|
+
value: (...args: any[]) => any;
|
|
80
|
+
defaultValue?: any;
|
|
81
|
+
context?: any;
|
|
82
|
+
})[];
|
|
83
|
+
entries: (string | {
|
|
84
|
+
[x: string]: any;
|
|
85
|
+
$$resolver: symbol;
|
|
86
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
87
|
+
dependencies: any;
|
|
88
|
+
value: (...args: any[]) => any;
|
|
89
|
+
defaultValue?: any;
|
|
90
|
+
context?: any;
|
|
91
|
+
})[];
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
download: {
|
|
96
|
+
[x: string]: any;
|
|
97
|
+
$$resolver: symbol;
|
|
98
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
99
|
+
dependencies: any;
|
|
100
|
+
value: (...args: any[]) => any;
|
|
101
|
+
defaultValue?: any;
|
|
102
|
+
context?: any;
|
|
103
|
+
};
|
|
104
|
+
id: any;
|
|
105
|
+
label: any;
|
|
106
|
+
path: any;
|
|
107
|
+
sourceLabel: any;
|
|
108
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export function layers(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
main_line: {
|
|
3
|
+
zIndex: number;
|
|
4
|
+
source: string;
|
|
5
|
+
'source-layer': any;
|
|
6
|
+
type: string;
|
|
7
|
+
layout: {
|
|
8
|
+
'line-cap': string;
|
|
9
|
+
} | {
|
|
10
|
+
'line-cap'?: undefined;
|
|
11
|
+
};
|
|
12
|
+
paint: any;
|
|
13
|
+
} | null;
|
|
14
|
+
main_fill: {
|
|
15
|
+
zIndex: number;
|
|
16
|
+
source: string;
|
|
17
|
+
'source-layer': any;
|
|
18
|
+
type: string;
|
|
19
|
+
paint: {
|
|
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
|
+
legends: {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
$$resolver: symbol;
|
|
31
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
32
|
+
dependencies: any;
|
|
33
|
+
value: (...args: any[]) => any;
|
|
34
|
+
defaultValue?: any;
|
|
35
|
+
context?: any;
|
|
36
|
+
};
|
|
37
|
+
tooltip: {
|
|
38
|
+
title: (string | {
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
$$resolver: symbol;
|
|
41
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
42
|
+
dependencies: any;
|
|
43
|
+
value: (...args: any[]) => any;
|
|
44
|
+
defaultValue?: any;
|
|
45
|
+
context?: any;
|
|
46
|
+
})[];
|
|
47
|
+
entries: (string | {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
$$resolver: symbol;
|
|
50
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
51
|
+
dependencies: any;
|
|
52
|
+
value: (...args: any[]) => any;
|
|
53
|
+
defaultValue?: any;
|
|
54
|
+
context?: any;
|
|
55
|
+
})[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function metadata(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
categories: {
|
|
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
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type CategoryStyleSpec = {
|
|
2
|
+
color?: string;
|
|
3
|
+
fillPattern?: 'circles_1' | 'cross_1' | 'diamonds_1' | 'lines_1' | 'mosaic_1' | 'mosaic_2' | 'squares_1' | 'triangles_1' | 'waves_1' | 'solid';
|
|
4
|
+
borderStyle?: 'solid' | 'dashed' | 'dotted' | 'none';
|
|
5
|
+
};
|
|
6
|
+
type Category = CategoryStyleSpec & {
|
|
7
|
+
value: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
};
|
|
10
|
+
export type StyleSpec = {
|
|
11
|
+
categoryKey: string;
|
|
12
|
+
colorScheme?: 'schemeGeoReDUSSafe' | 'schemeCategory10' | 'schemeAccent' | 'schemeDark2' | 'schemeObservable10' | 'schemePaired' | 'schemePastel1' | 'schemePastel2' | 'schemeSet1' | 'schemeSet2' | 'schemeSet3' | 'schemeTableau10';
|
|
13
|
+
categories: string | (string | Category)[];
|
|
14
|
+
} & Omit<CategoryStyleSpec, 'color'>;
|
|
15
|
+
export type StyleSpecInput = StyleSpec;
|
|
16
|
+
export declare function parseStyleSpec(styleInput: StyleSpecInput): StyleSpec;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export function confSchema(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
style: {
|
|
3
|
+
classificationMethodType: {
|
|
4
|
+
label: string;
|
|
5
|
+
type: string;
|
|
6
|
+
clearable: boolean;
|
|
7
|
+
defaultValue: any;
|
|
8
|
+
options: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
colorScheme: {
|
|
14
|
+
label: string;
|
|
15
|
+
type: string;
|
|
16
|
+
clearable: boolean;
|
|
17
|
+
defaultValue: any;
|
|
18
|
+
options: {
|
|
19
|
+
value: string;
|
|
20
|
+
label: import("react").JSX.Element;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|