@redus/georedus-ui 0.21.0 → 0.22.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.
Files changed (84) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/Markdown/index.d.ts +4 -1
  3. package/dist/main.js +3693 -1876
  4. package/dist/viewSpecs/presets/cem_censo/2010_2022/confSchema.d.ts +1 -0
  5. package/dist/viewSpecs/presets/cem_censo/2010_2022/index.d.ts +1 -0
  6. package/dist/viewSpecs/presets/cem_censo/2022/index.d.ts +1 -0
  7. package/dist/viewSpecs/presets/gtfs_lines/confSchema.d.ts +51 -0
  8. package/dist/viewSpecs/presets/gtfs_lines/consts.d.ts +3 -0
  9. package/dist/viewSpecs/presets/gtfs_lines/download.d.ts +9 -0
  10. package/dist/viewSpecs/presets/gtfs_lines/index.d.ts +100 -0
  11. package/dist/viewSpecs/presets/gtfs_lines/layers.d.ts +11 -0
  12. package/dist/viewSpecs/presets/gtfs_lines/metadata/index.d.ts +11 -0
  13. package/dist/viewSpecs/presets/gtfs_lines/metadata/widthScaleStopsResolvers.d.ts +24 -0
  14. package/dist/viewSpecs/presets/gtfs_lines/parseStyleSpec.d.ts +26 -0
  15. package/dist/viewSpecs/presets/gtfs_lines/sources.d.ts +7 -0
  16. package/dist/viewSpecs/presets/gtfs_stops/confSchema.d.ts +46 -0
  17. package/dist/viewSpecs/presets/gtfs_stops/download.d.ts +9 -0
  18. package/dist/viewSpecs/presets/gtfs_stops/index.d.ts +147 -0
  19. package/dist/viewSpecs/presets/gtfs_stops/layers.d.ts +62 -0
  20. package/dist/viewSpecs/presets/gtfs_stops/metadata/colorScaleStopResolvers.d.ts +30 -0
  21. package/dist/viewSpecs/presets/gtfs_stops/metadata/index.d.ts +11 -0
  22. package/dist/viewSpecs/presets/gtfs_stops/parseStyleSpec.d.ts +33 -0
  23. package/dist/viewSpecs/presets/gtfs_stops/sources.d.ts +8 -0
  24. package/dist/viewSpecs/presets/gtfs_travel_time_hex/confSchema.d.ts +21 -0
  25. package/dist/viewSpecs/presets/gtfs_travel_time_hex/fetchDataForHex.d.ts +7 -0
  26. package/dist/viewSpecs/presets/gtfs_travel_time_hex/index.d.ts +113 -0
  27. package/dist/viewSpecs/presets/gtfs_travel_time_hex/layers.d.ts +72 -0
  28. package/dist/viewSpecs/presets/gtfs_travel_time_hex/sources.d.ts +10 -0
  29. package/dist/viewSpecs/presets/index.d.ts +10 -7
  30. package/dist/viewSpecs/presets/tmp_gtfs_travel_time_hex/parseStyleSpec.d.ts +13 -0
  31. package/dist/viewSpecs/presets/util/components/basicTooltip.d.ts +1 -1
  32. package/dist/viewSpecs/presets/util/components/confInputs/categoricalColorSchemeSelector.d.ts +8 -4
  33. package/dist/viewSpecs/presets/util/components/confInputs/colorSelector.d.ts +3 -51
  34. package/dist/viewSpecs/presets/util/components/confInputs/continuousColorSchemeSelector.d.ts +1 -0
  35. package/dist/viewSpecs/presets/util/components/confInputs/opacitySlider.d.ts +2 -3
  36. package/dist/viewSpecs/presets/util/components/rawFileDownload.d.ts +12 -0
  37. package/dist/viewSpecs/presets/util/hourUtil.d.ts +9 -0
  38. package/dist/viewSpecs/presets/util/index.d.ts +2 -0
  39. package/dist/viewSpecs/presets/util/municipioFilter.d.ts +9 -0
  40. package/dist/viewSpecs/presets/vector_circle/index.d.ts +2 -50
  41. package/dist/viewSpecs/presets/vector_heatmap/confSchema.d.ts +2 -0
  42. package/dist/viewSpecs/presets/vector_heatmap/download.d.ts +1 -1
  43. package/dist/viewSpecs/presets/vector_heatmap/index.d.ts +3 -1
  44. package/dist/viewSpecs/presets/vector_heatmap/parseStyleSpec.d.ts +3 -0
  45. package/dist/viewSpecs/presets/vector_line/index.d.ts +2 -50
  46. package/dist/viewSpecs/presets/vector_line_categorical/confSchema.d.ts +13 -0
  47. package/dist/viewSpecs/presets/vector_line_categorical/download.d.ts +1 -1
  48. package/dist/viewSpecs/presets/vector_line_categorical/index.d.ts +14 -1
  49. package/dist/viewSpecs/presets/vector_line_categorical/parseStyleSpec.d.ts +1 -1
  50. package/dist/viewSpecs/presets/vector_line_single/confSchema.d.ts +2 -50
  51. package/dist/viewSpecs/presets/vector_line_single/index.d.ts +2 -50
  52. package/dist/viewSpecs/presets/vector_point_categorical/confSchema.d.ts +17 -0
  53. package/dist/viewSpecs/presets/vector_point_categorical/index.d.ts +18 -1
  54. package/dist/viewSpecs/presets/vector_point_categorical/layers.d.ts +1 -1
  55. package/dist/viewSpecs/presets/vector_point_categorical/parseStyleSpec.d.ts +2 -1
  56. package/dist/viewSpecs/presets/vector_point_continuous/parseStyleSpec.d.ts +1 -20
  57. package/dist/viewSpecs/presets/vector_point_single/confSchema.d.ts +2 -50
  58. package/dist/viewSpecs/presets/vector_point_single/index.d.ts +2 -50
  59. package/dist/viewSpecs/presets/vector_point_single/parseStyleSpec.d.ts +1 -1
  60. package/dist/viewSpecs/presets/vector_polygon/index.d.ts +2 -50
  61. package/dist/viewSpecs/presets/vector_polygon_categorical/confSchema.d.ts +9 -5
  62. package/dist/viewSpecs/presets/vector_polygon_categorical/index.d.ts +9 -5
  63. package/dist/viewSpecs/presets/vector_polygon_categorical/parseStyleSpec.d.ts +2 -1
  64. package/dist/viewSpecs/presets/vector_polygon_continuous/confSchema.d.ts +2 -0
  65. package/dist/viewSpecs/presets/vector_polygon_continuous/index.d.ts +3 -1
  66. package/dist/viewSpecs/presets/vector_polygon_continuous/layers.d.ts +0 -1
  67. package/dist/viewSpecs/presets/vector_polygon_continuous/parseStyleSpec.d.ts +1 -0
  68. package/dist/viewSpecs/presets/vector_polygon_single/confSchema.d.ts +3 -50
  69. package/dist/viewSpecs/presets/vector_polygon_single/index.d.ts +3 -50
  70. package/dist/viewSpecs/presets/vector_polygon_single/parseStyleSpec.d.ts +1 -0
  71. package/dist/viewSpecs/resolveView/resolveView.d.ts +2 -2
  72. package/dist/viewSpecs/types.d.ts +5 -0
  73. package/dist/viewSpecs/useViews/constants.d.ts +22 -0
  74. package/dist/viewSpecs/useViews/tmp_useViews.d.ts +42 -0
  75. package/dist/viewSpecs/useViews/types.d.ts +15 -0
  76. package/dist/viewSpecs/useViews/useViewStageQueries.d.ts +23 -0
  77. package/dist/viewSpecs/useViews/useViews.d.ts +39 -10
  78. package/dist/viewSpecs/useViews/util/index.d.ts +5 -0
  79. package/dist/viewSpecs/useViews/util/useViewStageQueriesCache.d.ts +2 -0
  80. package/dist/viewSpecs/useViews/util/viewHasResolvedStages.d.ts +6 -0
  81. package/dist/viewSpecs/useViews/util/viewStageQueryKey.d.ts +45 -0
  82. package/dist/viewSpecs/useViews/util/viewsFromStageQueries.d.ts +12 -0
  83. package/package.json +6 -4
  84. /package/dist/viewSpecs/useViews/{queryKeyHashFnWithFileSupport.d.ts → util/queryKeyHashFnWithFileSupport.d.ts} +0 -0
@@ -0,0 +1,113 @@
1
+ export function gtfs_travel_time_hex({ style, ...viewSpec }: {
2
+ [x: string]: any;
3
+ style: any;
4
+ }, allViewSpecs: any, context: any): {
5
+ confSchema: {
6
+ data: {
7
+ travelTimeBoundary: {
8
+ type: string;
9
+ label: {
10
+ [x: string]: any;
11
+ $$resolver: symbol;
12
+ context?: any;
13
+ defaultValue?: import("@orioro/resolve").ResolutionNode | any;
14
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
15
+ value: any;
16
+ };
17
+ size: string;
18
+ min: number;
19
+ max: number;
20
+ step: number;
21
+ defaultValue: number;
22
+ notify: string;
23
+ };
24
+ };
25
+ };
26
+ sources: {
27
+ [x: string]: any;
28
+ $$resolver: symbol;
29
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
30
+ dependencies: any;
31
+ value: (...args: any[]) => any;
32
+ defaultValue?: any;
33
+ context?: any;
34
+ };
35
+ layers: {
36
+ main_fill: {
37
+ source: string;
38
+ 'source-layer': string;
39
+ type: string;
40
+ interactive: boolean;
41
+ paint: {
42
+ 'fill-color': {
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
+ 'fill-opacity': number;
52
+ 'fill-outline-color': (string | (string | boolean | string[])[])[];
53
+ };
54
+ tooltip: {
55
+ [x: string]: any;
56
+ $$resolver: symbol;
57
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
58
+ dependencies: any;
59
+ value: (...args: any[]) => any;
60
+ defaultValue?: any;
61
+ context?: any;
62
+ };
63
+ onMouseMove: {
64
+ [x: string]: any;
65
+ $$resolver: symbol;
66
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
67
+ dependencies: any;
68
+ value: (...args: any[]) => any;
69
+ defaultValue?: any;
70
+ context?: any;
71
+ };
72
+ onClick: {
73
+ [x: string]: any;
74
+ $$resolver: symbol;
75
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
76
+ dependencies: any;
77
+ value: (...args: any[]) => any;
78
+ defaultValue?: any;
79
+ context?: any;
80
+ };
81
+ legends: {
82
+ title: string;
83
+ type: string;
84
+ steps: any[];
85
+ }[];
86
+ };
87
+ cursors_fill: {
88
+ zIndex: number;
89
+ source: string;
90
+ type: string;
91
+ filter: string[];
92
+ paint: {
93
+ 'fill-color': (string | string[])[];
94
+ };
95
+ };
96
+ cursors_line: {
97
+ zIndex: number;
98
+ source: string;
99
+ type: string;
100
+ filter: string[];
101
+ paint: {
102
+ 'line-color': (string | string[])[];
103
+ 'line-width': (string | number | string[])[];
104
+ };
105
+ };
106
+ };
107
+ id: any;
108
+ metodology: any;
109
+ label: any;
110
+ path: any;
111
+ sourceLabel: any;
112
+ shortDescription: any;
113
+ };
@@ -0,0 +1,72 @@
1
+ export function layers(viewSpec: any, allViewSpecs: any, context: any): {
2
+ main_fill: {
3
+ source: string;
4
+ 'source-layer': string;
5
+ type: string;
6
+ interactive: boolean;
7
+ paint: {
8
+ 'fill-color': {
9
+ [x: string]: any;
10
+ $$resolver: symbol;
11
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
12
+ dependencies: any;
13
+ value: (...args: any[]) => any;
14
+ defaultValue?: any;
15
+ context?: any;
16
+ };
17
+ 'fill-opacity': number;
18
+ 'fill-outline-color': (string | (string | boolean | string[])[])[];
19
+ };
20
+ tooltip: {
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
+ onMouseMove: {
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
+ onClick: {
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
+ legends: {
48
+ title: string;
49
+ type: string;
50
+ steps: any[];
51
+ }[];
52
+ };
53
+ cursors_fill: {
54
+ zIndex: number;
55
+ source: string;
56
+ type: string;
57
+ filter: string[];
58
+ paint: {
59
+ 'fill-color': (string | string[])[];
60
+ };
61
+ };
62
+ cursors_line: {
63
+ zIndex: number;
64
+ source: string;
65
+ type: string;
66
+ filter: string[];
67
+ paint: {
68
+ 'line-color': (string | string[])[];
69
+ 'line-width': (string | number | string[])[];
70
+ };
71
+ };
72
+ };
@@ -0,0 +1,10 @@
1
+ export function sources(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
+ };
10
+ export const SOURCE_LAYER_ID: "cem_malha_hex_res9.geom";
@@ -2,16 +2,19 @@ export * from "./cem_escolas_2022";
2
2
  export * from "./cem_censo/2010_2022";
3
3
  export * from "./cem_censo/2022";
4
4
  export * from "./cem_saude_2024";
5
- export * from "./vector_polygon";
6
- export * from "./vector_polygon_categorical";
7
- export * from "./vector_polygon_single";
8
- export * from "./vector_polygon_continuous";
9
- export * from "./vector_line";
10
5
  export * from "./vector_circle";
6
+ export * from "./vector_line";
7
+ export * from "./vector_polygon";
11
8
  export * from "./vector_point_single";
9
+ export * from "./vector_point_categorical";
12
10
  export * from "./vector_point_continuous";
11
+ export * from "./vector_heatmap";
13
12
  export * from "./vector_line_single";
14
13
  export * from "./vector_line_categorical";
14
+ export * from "./vector_polygon_single";
15
+ export * from "./vector_polygon_categorical";
16
+ export * from "./vector_polygon_continuous";
15
17
  export * from "./raster_categorical";
16
- export * from "./vector_point_categorical";
17
- export * from "./vector_heatmap";
18
+ export * from "./gtfs_travel_time_hex";
19
+ export * from "./gtfs_stops";
20
+ export * from "./gtfs_lines";
@@ -0,0 +1,13 @@
1
+ export declare function parseStyleSpec(style?: Record<string, any>): {
2
+ bands: any;
3
+ minzoom: any;
4
+ dvtView: any;
5
+ originIdKey: any;
6
+ originKey: any;
7
+ destKey: any;
8
+ valueKey: any;
9
+ baseFillColor: any;
10
+ baseFillOpacity: any;
11
+ outlineColor: any;
12
+ outlineWidth: any;
13
+ };
@@ -1,4 +1,4 @@
1
- export function basicTooltip({ title, entries }?: {}): {
1
+ export function basicTooltip({ title, entries }?: {}, { extraEntries }?: {}): {
2
2
  title: (string | {
3
3
  [x: string]: any;
4
4
  $$resolver: symbol;
@@ -1,13 +1,17 @@
1
- export function categoricalColorSchemeSelector({ clearable, defaultValue, }: {
2
- clearable?: boolean | undefined;
1
+ export function categoricalColorSchemeSelector({ defaultValue, customColor, }: {
3
2
  defaultValue?: string | undefined;
3
+ customColor?: boolean | undefined;
4
4
  }): {
5
5
  label: string;
6
6
  type: string;
7
7
  clearable: boolean;
8
8
  defaultValue: string;
9
- options: {
9
+ options: ({
10
10
  value: string;
11
11
  label: import("react").JSX.Element;
12
- }[];
12
+ } | {
13
+ value: string;
14
+ label: string;
15
+ })[];
13
16
  };
17
+ export const CUSTOM_COLOR_SCHEME: "customColorScheme";
@@ -1,61 +1,13 @@
1
- export function colorSelector(_initialColor: any): {
1
+ export function colorSelector(_initialColor: any, _customColor?: boolean): {
2
2
  label: string;
3
3
  helperText: string;
4
4
  type: string;
5
5
  clearable: boolean;
6
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;
7
+ options: {
54
8
  value: string;
55
- } | {
56
9
  label: import("react").JSX.Element;
57
- value: string;
58
- })[];
10
+ }[];
59
11
  };
60
12
  export const COLOR_OPTIONS: ({
61
13
  label: string;
@@ -3,6 +3,7 @@ export function continuousColorSchemeSelector({ defaultValue }: {
3
3
  }): {
4
4
  label: string;
5
5
  type: string;
6
+ clearable: boolean;
6
7
  defaultValue: string;
7
8
  options: {
8
9
  value: string;
@@ -1,6 +1,4 @@
1
- export function opacitySlider({ defaultValue }: {
2
- defaultValue?: number | undefined;
3
- }): {
1
+ export function opacitySlider({ ...props }?: {}): {
4
2
  type: string;
5
3
  label: string;
6
4
  size: string;
@@ -8,4 +6,5 @@ export function opacitySlider({ defaultValue }: {
8
6
  max: number;
9
7
  step: number;
10
8
  defaultValue: number;
9
+ notify: string;
11
10
  };
@@ -0,0 +1,12 @@
1
+ export function rawFileDownload({ 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,9 @@
1
+ export function buildHourlyFieldNames(valueKey: any): string[];
2
+ export function isMaxAggregationKey(valueKey: any): boolean;
3
+ export function buildPeriodValueExpression(valueKey: any, periodFrom: any, periodTo: any): (string | number | (string | (string | number | string[])[])[])[];
4
+ export function buildPeriodMaxExpression(valueKey: any, periodFrom: any, periodTo: any): (string | (string | number | string[])[])[];
5
+ export function buildPeriodExpression(valueKey: any, periodFrom: any, periodTo: any): (string | (string | number | string[])[])[] | (string | number | (string | (string | number | string[])[])[])[];
6
+ export function buildPeriodFrequencyExpression(valueKey: any, periodFrom: any, periodTo: any): (string | number | (string | (string | number | (string | number | (string | number | string[])[])[])[])[])[];
7
+ export function computePeriodFrequency(getValue: any, valueKey: any, periodFrom: any, periodTo: any): number;
8
+ export function computePeriodValue(getValue: any, valueKey: any, periodFrom: any, periodTo: any): number;
9
+ export function formatHour(fraction: any): string;
@@ -3,4 +3,6 @@ export * from "./url";
3
3
  export * from "./string";
4
4
  export * from "./components/basicTooltip";
5
5
  export * from "./components/basicDownload";
6
+ export * from "./components/rawFileDownload";
6
7
  export * from "./components/confInputs";
8
+ export * from "./municipioFilter";
@@ -0,0 +1,9 @@
1
+ export declare function municipioFilter(): {
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
+ };
@@ -17,58 +17,10 @@ export function vector_circle({ label, circle, color, tiles, source_layer, sourc
17
17
  type: string;
18
18
  clearable: boolean;
19
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;
20
+ options: {
46
21
  value: string;
47
- } | {
48
22
  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
- })[];
23
+ }[];
72
24
  };
73
25
  };
74
26
  };
@@ -3,6 +3,7 @@ export function confSchema(viewSpec: any, allViewSpecs: any, context: any): {
3
3
  colorScheme: {
4
4
  label: string;
5
5
  type: string;
6
+ clearable: boolean;
6
7
  defaultValue: string;
7
8
  options: {
8
9
  value: string;
@@ -17,6 +18,7 @@ export function confSchema(viewSpec: any, allViewSpecs: any, context: any): {
17
18
  max: number;
18
19
  step: number;
19
20
  defaultValue: number;
21
+ notify: string;
20
22
  } | null;
21
23
  };
22
24
  };
@@ -6,4 +6,4 @@ export function download(viewSpec: any, allViewSpecs: any, context: any): {
6
6
  value: (...args: any[]) => any;
7
7
  defaultValue?: any;
8
8
  context?: any;
9
- };
9
+ } | null;
@@ -7,6 +7,7 @@ export function vector_heatmap({ style, ...viewSpec }: {
7
7
  colorScheme: {
8
8
  label: string;
9
9
  type: string;
10
+ clearable: boolean;
10
11
  defaultValue: string;
11
12
  options: {
12
13
  value: string;
@@ -21,6 +22,7 @@ export function vector_heatmap({ style, ...viewSpec }: {
21
22
  max: number;
22
23
  step: number;
23
24
  defaultValue: number;
25
+ notify: string;
24
26
  } | null;
25
27
  };
26
28
  };
@@ -60,7 +62,7 @@ export function vector_heatmap({ style, ...viewSpec }: {
60
62
  value: (...args: any[]) => any;
61
63
  defaultValue?: any;
62
64
  context?: any;
63
- };
65
+ } | null;
64
66
  id: any;
65
67
  metodology: any;
66
68
  label: any;
@@ -4,11 +4,14 @@ type HeatmapSteps = {
4
4
  color?: string;
5
5
  };
6
6
  export type StyleSpec = {
7
+ minzoom?: number;
8
+ maxzoom?: number;
7
9
  weight?: number;
8
10
  radius?: number | number[];
9
11
  opacity?: number | number[];
10
12
  steps?: HeatmapSteps[];
11
13
  circle?: Boolean;
14
+ circle_radius?: number | number[];
12
15
  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
16
  };
14
17
  export type StyleSpecInput = StyleSpec;
@@ -19,58 +19,10 @@ export function vector_line({ label, line, color, tiles, source_layer, sources,
19
19
  type: string;
20
20
  clearable: boolean;
21
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;
22
+ options: {
69
23
  value: string;
70
- } | {
71
24
  label: import("react").JSX.Element;
72
- value: string;
73
- })[];
25
+ }[];
74
26
  };
75
27
  linePattern: {
76
28
  label: string;
@@ -1,5 +1,18 @@
1
1
  export function confSchema(viewSpec: any, allViewSpecs: any, context: any): {
2
2
  style: {
3
+ colorScheme: {
4
+ label: string;
5
+ type: string;
6
+ clearable: boolean;
7
+ defaultValue: string;
8
+ options: ({
9
+ value: string;
10
+ label: import("react").JSX.Element;
11
+ } | {
12
+ value: string;
13
+ label: string;
14
+ })[];
15
+ };
3
16
  linePattern: {
4
17
  label: string;
5
18
  helperText: string;
@@ -6,4 +6,4 @@ export function download(viewSpec: any, allViewSpecs: any, context: any): {
6
6
  value: (...args: any[]) => any;
7
7
  defaultValue?: any;
8
8
  context?: any;
9
- };
9
+ } | null;
@@ -4,6 +4,19 @@ export function vector_line_categorical({ style, ...viewSpec }: {
4
4
  }, allViewSpecs: any, context: any): {
5
5
  confSchema: {
6
6
  style: {
7
+ colorScheme: {
8
+ label: string;
9
+ type: string;
10
+ clearable: boolean;
11
+ defaultValue: string;
12
+ options: ({
13
+ value: string;
14
+ label: import("react").JSX.Element;
15
+ } | {
16
+ value: string;
17
+ label: string;
18
+ })[];
19
+ };
7
20
  linePattern: {
8
21
  label: string;
9
22
  helperText: string;
@@ -65,7 +78,7 @@ export function vector_line_categorical({ style, ...viewSpec }: {
65
78
  value: (...args: any[]) => any;
66
79
  defaultValue?: any;
67
80
  context?: any;
68
- };
81
+ } | null;
69
82
  id: any;
70
83
  metodology: any;
71
84
  label: any;
@@ -5,7 +5,7 @@ type Category = {
5
5
  };
6
6
  export type StyleSpec = {
7
7
  categoryKey: string;
8
- colorScheme?: 'schemeGeoReDUSSafe' | 'schemeCategory10' | 'schemeAccent' | 'schemeDark2' | 'schemeObservable10' | 'schemePaired' | 'schemePastel1' | 'schemePastel2' | 'schemeSet1' | 'schemeSet2' | 'schemeSet3' | 'schemeTableau10';
8
+ colorScheme?: 'schemeGeoReDUSSafe' | 'schemeCategory10' | 'schemeAccent' | 'schemeDark2' | 'schemeObservable10' | 'schemePaired' | 'schemePastel1' | 'schemePastel2' | 'schemeSet1' | 'schemeSet2' | 'schemeSet3' | 'schemeTableau10' | 'customColorScheme';
9
9
  categories: string | (string | Category)[];
10
10
  linePattern?: 'solid' | 'dashed' | 'dotted';
11
11
  lineWidth?: number;