@redus/georedus-ui 0.3.2 → 0.5.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.
@@ -212,6 +212,7 @@ export function cem_censo_2010_2022(viewSpec: any, allViewSpecs: any, context: a
212
212
  below: string;
213
213
  above: (string | (string | string[])[] | null)[];
214
214
  };
215
+ __filterFeaturesForStep: (stepInfo: any, features: any) => any;
215
216
  }[];
216
217
  tooltip: {
217
218
  title: (string | (string | (string | (string | (string | string[])[])[])[])[])[];
@@ -1,4 +1,4 @@
1
- export const BASE_MAP_LAYERS: ({
1
+ export const VEGETATION_AND_WATER_OVERLAY_LAYERS: ({
2
2
  id: string;
3
3
  type: string;
4
4
  source: string;
@@ -12,3 +12,4 @@ export type ByKScheme = {
12
12
  export declare const COLOR_SCHEMES: {
13
13
  [x: string]: any;
14
14
  };
15
+ export declare function colorScheme(path: string): any;
@@ -46,5 +46,6 @@ export * from "./filter";
46
46
  export * from "./setupVariants";
47
47
  export * from "./downloadResolver";
48
48
  export * from "./zoomSensitiveLinearSizes";
49
+ export * from "./influenceArea";
49
50
  export const BASE_MAP_LAYERS_Z_INDEX_BASE: 100;
50
51
  export const ABOVE_BASE_MAP_LAYERS_Z_INDEX_BASE: 1000;
@@ -0,0 +1,111 @@
1
+ type InfluenceAreaConfProps = {
2
+ defaultBufferSize?: number;
3
+ maxBufferSize?: number;
4
+ minBufferSize?: number;
5
+ bufferSizeStep?: number;
6
+ };
7
+ export declare function influenceAreaConf({ defaultBufferSize, maxBufferSize, minBufferSize, bufferSizeStep, }?: InfluenceAreaConfProps): {
8
+ showInfluenceArea: {
9
+ type: string;
10
+ label: string;
11
+ description: string;
12
+ defaultValue: boolean;
13
+ };
14
+ influenceAreaRadius: {
15
+ type: string;
16
+ inactive: {
17
+ [x: string]: any;
18
+ $$resolver: symbol;
19
+ context?: any;
20
+ defaultValue?: import("@orioro/resolve").ResolutionNode | any;
21
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
22
+ value: any;
23
+ };
24
+ label: {
25
+ [x: string]: any;
26
+ $$resolver: symbol;
27
+ context?: any;
28
+ defaultValue?: import("@orioro/resolve").ResolutionNode | any;
29
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
30
+ value: any;
31
+ };
32
+ helperText: string;
33
+ min: number;
34
+ max: number;
35
+ step: number;
36
+ defaultValue: number;
37
+ };
38
+ dissolveOverlappingGeometries: {
39
+ inactive: {
40
+ [x: string]: any;
41
+ $$resolver: symbol;
42
+ context?: any;
43
+ defaultValue?: import("@orioro/resolve").ResolutionNode | any;
44
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
45
+ value: any;
46
+ };
47
+ type: string;
48
+ label: string;
49
+ description: string;
50
+ defaultValue: boolean;
51
+ };
52
+ };
53
+ type InfluenceAreaMetadataProps = {
54
+ getGeoJson?: (context: Record<string, any>) => Promise<GeoJSON.FeatureCollection>;
55
+ getConf?: (context: Record<string, any>) => Promise<{
56
+ showInfluenceArea: boolean;
57
+ influenceAreaRadius: number;
58
+ dissolveOverlappingGeometries: boolean;
59
+ }>;
60
+ };
61
+ export declare function influenceAreaMetadata({ getGeoJson, getConf, }?: InfluenceAreaMetadataProps): {
62
+ influenceArea: {
63
+ [x: string]: any;
64
+ $$resolver: symbol;
65
+ $$unresolved?: Record<string | number, import("@orioro/resolve").ResolutionNode> | undefined;
66
+ dependencies: any;
67
+ value: (...args: any[]) => any;
68
+ defaultValue?: any;
69
+ context?: any;
70
+ };
71
+ };
72
+ type InfluenceAreaSourcesProps = {
73
+ dataPath?: string;
74
+ };
75
+ export declare function influenceAreaSources({ dataPath, }?: InfluenceAreaSourcesProps): {
76
+ influenceArea: (string | (string | string[])[][] | {
77
+ type: string;
78
+ data: string[];
79
+ } | null)[];
80
+ };
81
+ type InfluenceAreaLayersProps = {
82
+ dataPath?: string;
83
+ zIndex?: number;
84
+ fillPaint?: Record<string, any>;
85
+ boundaryPaint?: Record<string, any>;
86
+ };
87
+ export declare function influenceAreaLayers({ dataPath, zIndex, fillPaint, boundaryPaint, }?: InfluenceAreaLayersProps): {
88
+ influenceArea_fill: {
89
+ zIndex: number;
90
+ hidden: (string | string[])[];
91
+ source: string;
92
+ type: string;
93
+ paint: {
94
+ 'fill-color': string;
95
+ 'fill-opacity': number;
96
+ };
97
+ };
98
+ influenceArea_boundaries: {
99
+ zIndex: number;
100
+ hidden: (string | string[])[];
101
+ source: string;
102
+ type: string;
103
+ paint: {
104
+ 'line-color': string;
105
+ 'line-opacity': number;
106
+ 'line-width': number;
107
+ 'line-dasharray': number[];
108
+ };
109
+ };
110
+ };
111
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redus/georedus-ui",
3
- "version": "0.3.2",
3
+ "version": "0.5.0",
4
4
  "packageManager": "yarn@4.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -47,11 +47,11 @@
47
47
  "@mdi/react": "^1.6.1",
48
48
  "@orioro/cast": "^0.0.2",
49
49
  "@orioro/get": "^0.0.2",
50
- "@orioro/react-chart-util": "^0.1.0",
50
+ "@orioro/react-chart-util": "^0.2.0",
51
51
  "@orioro/react-csv": "^0.0.2",
52
52
  "@orioro/react-dialogs": "^0.0.2",
53
53
  "@orioro/react-dir-nav": "^0.1.0",
54
- "@orioro/react-maplibre-util": "^0.3.2",
54
+ "@orioro/react-maplibre-util": "^0.4.0",
55
55
  "@orioro/react-sortable": "^0.0.2",
56
56
  "@orioro/react-ui-core": "^0.0.6",
57
57
  "@orioro/resolve": "^0.1.2",
@@ -1,10 +0,0 @@
1
- export function numerical_choropleth(base: any, { collection_id, indicator_id, indicator_label, color_scheme, measure_unit, $circleRadius, $tooltip, $legends, }: {
2
- collection_id: any;
3
- indicator_id: any;
4
- indicator_label: any;
5
- color_scheme?: string | undefined;
6
- measure_unit: any;
7
- $circleRadius: any;
8
- $tooltip: any;
9
- $legends: any;
10
- }): any;