@redus/georedus-ui 0.20.2 → 0.21.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 +12 -0
- package/dist/main.js +1271 -217
- package/dist/viewSpecs/presets/index.d.ts +5 -0
- package/dist/viewSpecs/presets/raster_categorical/index.d.ts +34 -0
- package/dist/viewSpecs/presets/raster_categorical/layers.d.ts +15 -0
- package/dist/viewSpecs/presets/raster_categorical/parseStyleSpec.d.ts +12 -0
- package/dist/viewSpecs/presets/raster_categorical/sources.d.ts +9 -0
- package/dist/viewSpecs/presets/util/components/confInputs/categoricalColorSchemeSelector.d.ts +13 -0
- package/dist/viewSpecs/presets/util/components/{confInputs.d.ts → confInputs/colorSelector.d.ts} +0 -16
- package/dist/viewSpecs/presets/util/components/confInputs/continuousColorSchemeSelector.d.ts +11 -0
- package/dist/viewSpecs/presets/util/components/confInputs/fillPatternSelector.d.ts +16 -0
- package/dist/viewSpecs/presets/util/components/confInputs/index.d.ts +7 -0
- package/dist/viewSpecs/presets/util/components/confInputs/linePatternSelector.d.ts +18 -0
- package/dist/viewSpecs/presets/util/components/confInputs/lineWidthSelector.d.ts +18 -0
- package/dist/viewSpecs/presets/util/components/confInputs/opacitySlider.d.ts +11 -0
- package/dist/viewSpecs/presets/vector_heatmap/confSchema.d.ts +22 -0
- package/dist/viewSpecs/presets/vector_heatmap/download.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_heatmap/index.d.ts +70 -0
- package/dist/viewSpecs/presets/vector_heatmap/layers.d.ts +12 -0
- package/dist/viewSpecs/presets/vector_heatmap/metadata/index.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_heatmap/parseStyleSpec.d.ts +17 -0
- package/dist/viewSpecs/presets/vector_heatmap/sources.d.ts +8 -0
- package/dist/viewSpecs/presets/vector_line/index.d.ts +11 -1
- package/dist/viewSpecs/presets/vector_line_categorical/confSchema.d.ts +26 -0
- package/dist/viewSpecs/presets/vector_line_categorical/download.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_line_categorical/index.d.ts +75 -0
- package/dist/viewSpecs/presets/vector_line_categorical/layers.d.ts +11 -0
- package/dist/viewSpecs/presets/vector_line_categorical/metadata.d.ts +11 -0
- package/dist/viewSpecs/presets/vector_line_categorical/parseStyleSpec.d.ts +15 -0
- package/dist/viewSpecs/presets/vector_line_categorical/sources.d.ts +7 -0
- package/dist/viewSpecs/presets/vector_line_single/confSchema.d.ts +85 -0
- package/dist/viewSpecs/presets/vector_line_single/download.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_line_single/index.d.ts +124 -0
- package/dist/viewSpecs/presets/vector_line_single/layers.d.ts +11 -0
- package/dist/viewSpecs/presets/vector_line_single/metadata.d.ts +1 -0
- package/dist/viewSpecs/presets/vector_line_single/parseStyleSpec.d.ts +7 -0
- package/dist/viewSpecs/presets/vector_line_single/sources.d.ts +7 -0
- package/dist/viewSpecs/presets/vector_point_categorical/download.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_point_categorical/index.d.ts +83 -0
- package/dist/viewSpecs/presets/vector_point_categorical/layers.d.ts +45 -0
- package/dist/viewSpecs/presets/vector_point_categorical/metadata/index.d.ts +11 -0
- package/dist/viewSpecs/presets/vector_point_categorical/parseStyleSpec.d.ts +14 -0
- package/dist/viewSpecs/presets/vector_point_categorical/sources.d.ts +8 -0
- package/dist/viewSpecs/presets/vector_point_continuous/index.d.ts +2 -0
- package/dist/viewSpecs/presets/vector_point_single/index.d.ts +2 -0
- package/dist/viewSpecs/presets/vector_point_single/parseStyleSpec.d.ts +0 -3
- package/dist/viewSpecs/presets/vector_polygon_categorical/confSchema.d.ts +19 -0
- package/dist/viewSpecs/presets/vector_polygon_categorical/index.d.ts +21 -0
- package/dist/viewSpecs/presets/vector_polygon_categorical/parseStyleSpec.d.ts +1 -1
- package/dist/viewSpecs/presets/vector_polygon_continuous/confSchema.d.ts +10 -2
- package/dist/viewSpecs/presets/vector_polygon_continuous/index.d.ts +21 -3
- package/dist/viewSpecs/presets/vector_polygon_continuous/layers.d.ts +9 -1
- package/dist/viewSpecs/presets/vector_polygon_continuous/parseStyleSpec.d.ts +0 -3
- package/dist/viewSpecs/presets/vector_polygon_single/confSchema.d.ts +9 -0
- package/dist/viewSpecs/presets/vector_polygon_single/index.d.ts +11 -0
- package/dist/viewSpecs/util/colorSchemes/d3.d.ts +1 -1
- package/dist/viewSpecs/util/colorSchemes/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -10,3 +10,8 @@ export * from "./vector_line";
|
|
|
10
10
|
export * from "./vector_circle";
|
|
11
11
|
export * from "./vector_point_single";
|
|
12
12
|
export * from "./vector_point_continuous";
|
|
13
|
+
export * from "./vector_line_single";
|
|
14
|
+
export * from "./vector_line_categorical";
|
|
15
|
+
export * from "./raster_categorical";
|
|
16
|
+
export * from "./vector_point_categorical";
|
|
17
|
+
export * from "./vector_heatmap";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export function raster_categorical({ style, ...viewSpec }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
style: any;
|
|
4
|
+
}, allViewSpecs: any, context: any): {
|
|
5
|
+
sources: {
|
|
6
|
+
main: {
|
|
7
|
+
minzoom: number;
|
|
8
|
+
maxzoom: number;
|
|
9
|
+
type: string;
|
|
10
|
+
tiles: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
layers: {
|
|
14
|
+
main_raster: {
|
|
15
|
+
minzoom: number;
|
|
16
|
+
type: string;
|
|
17
|
+
source: string;
|
|
18
|
+
paint: {
|
|
19
|
+
'raster-opacity': number;
|
|
20
|
+
};
|
|
21
|
+
legends: {
|
|
22
|
+
type: string;
|
|
23
|
+
title: any;
|
|
24
|
+
items: any;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
id: any;
|
|
29
|
+
metodology: any;
|
|
30
|
+
label: any;
|
|
31
|
+
path: any;
|
|
32
|
+
sourceLabel: any;
|
|
33
|
+
shortDescription: any;
|
|
34
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function layers(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
main_raster: {
|
|
3
|
+
minzoom: number;
|
|
4
|
+
type: string;
|
|
5
|
+
source: string;
|
|
6
|
+
paint: {
|
|
7
|
+
'raster-opacity': number;
|
|
8
|
+
};
|
|
9
|
+
legends: {
|
|
10
|
+
type: string;
|
|
11
|
+
title: any;
|
|
12
|
+
items: any;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Category = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
};
|
|
6
|
+
export type StyleSpec = {
|
|
7
|
+
colorScheme?: 'schemeGeoReDUSSafe' | 'schemeGeoReDUS' | 'schemeCategory10' | 'schemeAccent' | 'schemeDark2' | 'schemeObservable10' | 'schemePaired' | 'schemePastel1' | 'schemePastel2' | 'schemeSet1' | 'schemeSet2' | 'schemeSet3' | 'schemeTableau10';
|
|
8
|
+
categories: Category[];
|
|
9
|
+
};
|
|
10
|
+
export type StyleSpecInput = StyleSpec;
|
|
11
|
+
export declare function parseStyleSpec(styleInput: StyleSpecInput): StyleSpec;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function categoricalColorSchemeSelector({ clearable, defaultValue, }: {
|
|
2
|
+
clearable?: boolean | undefined;
|
|
3
|
+
defaultValue?: string | undefined;
|
|
4
|
+
}): {
|
|
5
|
+
label: string;
|
|
6
|
+
type: string;
|
|
7
|
+
clearable: boolean;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
options: {
|
|
10
|
+
value: string;
|
|
11
|
+
label: import("react").JSX.Element;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
package/dist/viewSpecs/presets/util/components/{confInputs.d.ts → confInputs/colorSelector.d.ts}
RENAMED
|
@@ -57,17 +57,6 @@ export function colorSelector(_initialColor: any): {
|
|
|
57
57
|
value: string;
|
|
58
58
|
})[];
|
|
59
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
60
|
export const COLOR_OPTIONS: ({
|
|
72
61
|
label: string;
|
|
73
62
|
value: string;
|
|
@@ -120,8 +109,3 @@ export const COLOR_OPTIONS: ({
|
|
|
120
109
|
label: string;
|
|
121
110
|
value: string;
|
|
122
111
|
})[];
|
|
123
|
-
export const FILL_PATTERN_SOLID: "solid";
|
|
124
|
-
export const FILL_PATTERN_OPTIONS: {
|
|
125
|
-
label: string;
|
|
126
|
-
value: string;
|
|
127
|
-
}[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function svgBgImage(svg: any): string;
|
|
2
|
+
export function fillPatternSelector(_defaultValue?: string, props?: {}): {
|
|
3
|
+
label: string;
|
|
4
|
+
type: string;
|
|
5
|
+
clearable: boolean;
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
options: {
|
|
8
|
+
label: import("react").JSX.Element;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
};
|
|
12
|
+
export const FILL_PATTERN_SOLID: "solid";
|
|
13
|
+
export const FILL_PATTERN_OPTIONS: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./colorSelector";
|
|
2
|
+
export * from "./fillPatternSelector";
|
|
3
|
+
export * from "./categoricalColorSchemeSelector";
|
|
4
|
+
export * from "./continuousColorSchemeSelector";
|
|
5
|
+
export * from "./linePatternSelector";
|
|
6
|
+
export * from "./lineWidthSelector";
|
|
7
|
+
export * from "./opacitySlider";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function linePatternSelector({ defaultValue, }?: {
|
|
2
|
+
defaultValue?: string | undefined;
|
|
3
|
+
}): {
|
|
4
|
+
label: string;
|
|
5
|
+
helperText: string;
|
|
6
|
+
type: string;
|
|
7
|
+
clearable: boolean;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
options: {
|
|
10
|
+
label: import("react").JSX.Element;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
export const LINE_PATTERN_SOLID: "solid";
|
|
15
|
+
export const LINE_PATTERN_OPTIONS: {
|
|
16
|
+
label: string;
|
|
17
|
+
value: string;
|
|
18
|
+
}[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function lineWidthSelector({ defaultValue }?: {
|
|
2
|
+
defaultValue?: number | undefined;
|
|
3
|
+
}): {
|
|
4
|
+
label: string;
|
|
5
|
+
helperText: string;
|
|
6
|
+
type: string;
|
|
7
|
+
clearable: boolean;
|
|
8
|
+
defaultValue: number;
|
|
9
|
+
options: {
|
|
10
|
+
label: import("react").JSX.Element;
|
|
11
|
+
value: number;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
export const LINE_WIDTH_1: 1;
|
|
15
|
+
export const LINE_WIDTH_OPTIONS: {
|
|
16
|
+
label: string;
|
|
17
|
+
value: number;
|
|
18
|
+
}[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function confSchema(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
style: {
|
|
3
|
+
colorScheme: {
|
|
4
|
+
label: string;
|
|
5
|
+
type: string;
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
options: {
|
|
8
|
+
value: string;
|
|
9
|
+
label: import("react").JSX.Element;
|
|
10
|
+
}[];
|
|
11
|
+
};
|
|
12
|
+
opacity: {
|
|
13
|
+
type: string;
|
|
14
|
+
label: string;
|
|
15
|
+
size: string;
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
step: number;
|
|
19
|
+
defaultValue: number;
|
|
20
|
+
} | null;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -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,70 @@
|
|
|
1
|
+
export function vector_heatmap({ style, ...viewSpec }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
style: any;
|
|
4
|
+
}, allViewSpecs: any, context: any): {
|
|
5
|
+
confSchema: {
|
|
6
|
+
style: {
|
|
7
|
+
colorScheme: {
|
|
8
|
+
label: string;
|
|
9
|
+
type: string;
|
|
10
|
+
defaultValue: string;
|
|
11
|
+
options: {
|
|
12
|
+
value: string;
|
|
13
|
+
label: import("react").JSX.Element;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
opacity: {
|
|
17
|
+
type: string;
|
|
18
|
+
label: string;
|
|
19
|
+
size: string;
|
|
20
|
+
min: number;
|
|
21
|
+
max: number;
|
|
22
|
+
step: number;
|
|
23
|
+
defaultValue: number;
|
|
24
|
+
} | null;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
metadata: {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
$$resolver: symbol;
|
|
30
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
31
|
+
dependencies: any;
|
|
32
|
+
value: (...args: any[]) => any;
|
|
33
|
+
defaultValue?: any;
|
|
34
|
+
context?: any;
|
|
35
|
+
};
|
|
36
|
+
sources: {
|
|
37
|
+
main: {
|
|
38
|
+
promoteId: string;
|
|
39
|
+
type: string;
|
|
40
|
+
tiles: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
layers: {
|
|
44
|
+
main_heatmap: {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
$$resolver: symbol;
|
|
47
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
48
|
+
dependencies: any;
|
|
49
|
+
value: (...args: any[]) => any;
|
|
50
|
+
defaultValue?: any;
|
|
51
|
+
context?: any;
|
|
52
|
+
};
|
|
53
|
+
main_circle: any;
|
|
54
|
+
};
|
|
55
|
+
download: {
|
|
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
|
+
id: any;
|
|
65
|
+
metodology: any;
|
|
66
|
+
label: any;
|
|
67
|
+
path: any;
|
|
68
|
+
sourceLabel: any;
|
|
69
|
+
shortDescription: any;
|
|
70
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function layers(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
main_heatmap: {
|
|
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
|
+
main_circle: any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function metadata(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,17 @@
|
|
|
1
|
+
type HeatmapSteps = {
|
|
2
|
+
step: number;
|
|
3
|
+
label: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
};
|
|
6
|
+
export type StyleSpec = {
|
|
7
|
+
weight?: number;
|
|
8
|
+
radius?: number | number[];
|
|
9
|
+
opacity?: number | number[];
|
|
10
|
+
steps?: HeatmapSteps[];
|
|
11
|
+
circle?: Boolean;
|
|
12
|
+
colorScheme?: 'schemeBlues' | 'schemeGreens' | 'schemeGreys' | 'schemeOranges' | 'schemePurples' | 'schemeReds' | 'schemeBuGn' | 'schemeBuPu' | 'schemeGnBu' | 'schemeOrRd' | 'schemePuBuGn' | 'schemePuBu' | 'schemePuRd' | 'schemeRdPu' | 'schemeYlGnBu' | 'schemeYlGn' | 'schemeYlOrBr' | 'schemeYlOrRd' | '-schemeBlues' | '-schemeGreens' | '-schemeGreys' | '-schemeOranges' | '-schemePurples' | '-schemeReds' | '-schemeBuGn' | '-schemeBuPu' | '-schemeGnBu' | '-schemeOrRd' | '-schemePuBuGn' | '-schemePuBu' | '-schemePuRd' | '-schemeRdPu' | '-schemeYlGnBu' | '-schemeYlGn' | '-schemeYlOrBr' | '-schemeYlOrRd' | 'schemeBrBG' | 'schemePRGn' | 'schemePiYG' | 'schemePuOr' | 'schemeRdBu' | 'schemeRdGy' | 'schemeRdYlBu' | 'schemeRdYlGn' | 'schemeSpectral' | '-schemeBrBG' | '-schemePRGn' | '-schemePiYG' | '-schemePuOr' | '-schemeRdBu' | '-schemeRdGy' | '-schemeRdYlBu' | '-schemeRdYlGn' | '-schemeSpectral';
|
|
13
|
+
};
|
|
14
|
+
export type StyleSpecInput = StyleSpec;
|
|
15
|
+
export declare const DEFAULT_HEATMAP_COLOR_SCHEME_ID = "-schemeSpectral";
|
|
16
|
+
export declare function parseStyleSpec(styleInput?: StyleSpecInput): StyleSpec;
|
|
17
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function vector_line({ label, line, color, tiles, source_layer, sources, layers, tooltip, ...props }: {
|
|
1
|
+
export function vector_line({ label, line, color, tiles, source_layer, sources, layers, tooltip, download_url, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
label: any;
|
|
4
4
|
line?: {} | undefined;
|
|
@@ -8,6 +8,7 @@ export function vector_line({ label, line, color, tiles, source_layer, sources,
|
|
|
8
8
|
sources?: {} | undefined;
|
|
9
9
|
layers?: {} | undefined;
|
|
10
10
|
tooltip?: {} | undefined;
|
|
11
|
+
download_url?: string | undefined;
|
|
11
12
|
}, allViewSpecs: any, context: any): {
|
|
12
13
|
label: any;
|
|
13
14
|
confSchema: {
|
|
@@ -137,4 +138,13 @@ export function vector_line({ label, line, color, tiles, source_layer, sources,
|
|
|
137
138
|
type: string;
|
|
138
139
|
};
|
|
139
140
|
};
|
|
141
|
+
download: {
|
|
142
|
+
[x: string]: any;
|
|
143
|
+
$$resolver: symbol;
|
|
144
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
145
|
+
dependencies: any;
|
|
146
|
+
value: (...args: any[]) => any;
|
|
147
|
+
defaultValue?: any;
|
|
148
|
+
context?: any;
|
|
149
|
+
};
|
|
140
150
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function confSchema(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
style: {
|
|
3
|
+
linePattern: {
|
|
4
|
+
label: string;
|
|
5
|
+
helperText: string;
|
|
6
|
+
type: string;
|
|
7
|
+
clearable: boolean;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
options: {
|
|
10
|
+
label: import("react").JSX.Element;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
lineWidth: {
|
|
15
|
+
label: string;
|
|
16
|
+
helperText: string;
|
|
17
|
+
type: string;
|
|
18
|
+
clearable: boolean;
|
|
19
|
+
defaultValue: number;
|
|
20
|
+
options: {
|
|
21
|
+
label: import("react").JSX.Element;
|
|
22
|
+
value: number;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -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,75 @@
|
|
|
1
|
+
export function vector_line_categorical({ style, ...viewSpec }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
style: any;
|
|
4
|
+
}, allViewSpecs: any, context: any): {
|
|
5
|
+
confSchema: {
|
|
6
|
+
style: {
|
|
7
|
+
linePattern: {
|
|
8
|
+
label: string;
|
|
9
|
+
helperText: string;
|
|
10
|
+
type: string;
|
|
11
|
+
clearable: boolean;
|
|
12
|
+
defaultValue: string;
|
|
13
|
+
options: {
|
|
14
|
+
label: import("react").JSX.Element;
|
|
15
|
+
value: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
lineWidth: {
|
|
19
|
+
label: string;
|
|
20
|
+
helperText: string;
|
|
21
|
+
type: string;
|
|
22
|
+
clearable: boolean;
|
|
23
|
+
defaultValue: number;
|
|
24
|
+
options: {
|
|
25
|
+
label: import("react").JSX.Element;
|
|
26
|
+
value: number;
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
metadata: {
|
|
32
|
+
categories: {
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
$$resolver: symbol;
|
|
35
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
36
|
+
dependencies: any;
|
|
37
|
+
value: (...args: any[]) => any;
|
|
38
|
+
defaultValue?: any;
|
|
39
|
+
context?: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
sources: {
|
|
43
|
+
main: {
|
|
44
|
+
promoteId: string;
|
|
45
|
+
type: string;
|
|
46
|
+
tiles: string[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
layers: {
|
|
50
|
+
main_line: {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
$$resolver: symbol;
|
|
53
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
54
|
+
dependencies: any;
|
|
55
|
+
value: (...args: any[]) => any;
|
|
56
|
+
defaultValue?: any;
|
|
57
|
+
context?: any;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
download: {
|
|
61
|
+
[x: string]: any;
|
|
62
|
+
$$resolver: symbol;
|
|
63
|
+
$$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
|
|
64
|
+
dependencies: any;
|
|
65
|
+
value: (...args: any[]) => any;
|
|
66
|
+
defaultValue?: any;
|
|
67
|
+
context?: any;
|
|
68
|
+
};
|
|
69
|
+
id: any;
|
|
70
|
+
metodology: any;
|
|
71
|
+
label: any;
|
|
72
|
+
path: any;
|
|
73
|
+
sourceLabel: any;
|
|
74
|
+
shortDescription: any;
|
|
75
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function layers(viewSpec: any, allViewSpecs: any, context: any): {
|
|
2
|
+
main_line: {
|
|
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,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,15 @@
|
|
|
1
|
+
type Category = {
|
|
2
|
+
value: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
};
|
|
6
|
+
export type StyleSpec = {
|
|
7
|
+
categoryKey: string;
|
|
8
|
+
colorScheme?: 'schemeGeoReDUSSafe' | 'schemeCategory10' | 'schemeAccent' | 'schemeDark2' | 'schemeObservable10' | 'schemePaired' | 'schemePastel1' | 'schemePastel2' | 'schemeSet1' | 'schemeSet2' | 'schemeSet3' | 'schemeTableau10';
|
|
9
|
+
categories: string | (string | Category)[];
|
|
10
|
+
linePattern?: 'solid' | 'dashed' | 'dotted';
|
|
11
|
+
lineWidth?: number;
|
|
12
|
+
};
|
|
13
|
+
export type StyleSpecInput = StyleSpec;
|
|
14
|
+
export declare function parseStyleSpec(styleInput?: StyleSpecInput): StyleSpec;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
linePattern: {
|
|
63
|
+
label: string;
|
|
64
|
+
helperText: string;
|
|
65
|
+
type: string;
|
|
66
|
+
clearable: boolean;
|
|
67
|
+
defaultValue: string;
|
|
68
|
+
options: {
|
|
69
|
+
label: import("react").JSX.Element;
|
|
70
|
+
value: string;
|
|
71
|
+
}[];
|
|
72
|
+
};
|
|
73
|
+
lineWidth: {
|
|
74
|
+
label: string;
|
|
75
|
+
helperText: string;
|
|
76
|
+
type: string;
|
|
77
|
+
clearable: boolean;
|
|
78
|
+
defaultValue: number;
|
|
79
|
+
options: {
|
|
80
|
+
label: import("react").JSX.Element;
|
|
81
|
+
value: number;
|
|
82
|
+
}[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
@@ -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
|
+
};
|