@redus/georedus-ui 0.19.5 → 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.
Files changed (65) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +132 -0
  3. package/dist/ExportImage/ExportImage.d.ts +1 -0
  4. package/dist/ExportImage/NorthArrow.d.ts +15 -0
  5. package/dist/ExportImage/constants.d.ts +2 -0
  6. package/dist/ExportImage/createMapBlob.d.ts +20 -0
  7. package/dist/ExportImage/createMapImage.d.ts +1 -0
  8. package/dist/ExportImage/index.d.ts +1 -0
  9. package/dist/ExportImage/paperDimensions.d.ts +8 -0
  10. package/dist/GeoReDUS/constants.d.ts +9 -0
  11. package/dist/GeoReDUSLogo/GeoReDUSLogo.d.ts +1 -1
  12. package/dist/LeftPanel/LeftPanel.d.ts +7 -3
  13. package/dist/LeftPanel/SharePanel.d.ts +7 -3
  14. package/dist/main.js +2681 -236
  15. package/dist/viewSpecs/presets/index.d.ts +5 -0
  16. package/dist/viewSpecs/presets/util/colorUtil.d.ts +2 -0
  17. package/dist/viewSpecs/presets/util/components/basicDownload.d.ts +12 -0
  18. package/dist/viewSpecs/presets/util/components/basicTooltip.d.ts +20 -0
  19. package/dist/viewSpecs/presets/util/components/confInputs.d.ts +127 -0
  20. package/dist/viewSpecs/presets/util/index.d.ts +6 -0
  21. package/dist/viewSpecs/presets/util/string.d.ts +1 -0
  22. package/dist/viewSpecs/presets/util/url.d.ts +7 -0
  23. package/dist/viewSpecs/presets/vector_circle/index.d.ts +75 -1
  24. package/dist/viewSpecs/presets/vector_line/index.d.ts +95 -2
  25. package/dist/viewSpecs/presets/vector_point_continuous/download.d.ts +9 -0
  26. package/dist/viewSpecs/presets/vector_point_continuous/index.d.ts +95 -0
  27. package/dist/viewSpecs/presets/vector_point_continuous/layers.d.ts +59 -0
  28. package/dist/viewSpecs/presets/vector_point_continuous/metadata/index.d.ts +11 -0
  29. package/dist/viewSpecs/presets/vector_point_continuous/parseStyleSpec.d.ts +34 -0
  30. package/dist/viewSpecs/presets/vector_point_continuous/sources.d.ts +8 -0
  31. package/dist/viewSpecs/presets/vector_point_single/confSchema.d.ts +63 -0
  32. package/dist/viewSpecs/presets/vector_point_single/download.d.ts +9 -0
  33. package/dist/viewSpecs/presets/vector_point_single/index.d.ts +142 -0
  34. package/dist/viewSpecs/presets/vector_point_single/layers.d.ts +53 -0
  35. package/dist/viewSpecs/presets/vector_point_single/metadata/index.d.ts +1 -0
  36. package/dist/viewSpecs/presets/vector_point_single/parseStyleSpec.d.ts +11 -0
  37. package/dist/viewSpecs/presets/vector_point_single/sources.d.ts +8 -0
  38. package/dist/viewSpecs/presets/vector_polygon/index.d.ts +93 -10
  39. package/dist/viewSpecs/presets/vector_polygon_categorical/confSchema.d.ts +14 -0
  40. package/dist/viewSpecs/presets/vector_polygon_categorical/download.d.ts +9 -0
  41. package/dist/viewSpecs/presets/vector_polygon_categorical/index.d.ts +108 -0
  42. package/dist/viewSpecs/presets/vector_polygon_categorical/layers.d.ts +58 -0
  43. package/dist/viewSpecs/presets/vector_polygon_categorical/metadata.d.ts +11 -0
  44. package/dist/viewSpecs/presets/vector_polygon_categorical/parseStyleSpec.d.ts +17 -0
  45. package/dist/viewSpecs/presets/vector_polygon_categorical/sources.d.ts +8 -0
  46. package/dist/viewSpecs/presets/vector_polygon_continuous/confSchema.d.ts +24 -0
  47. package/dist/viewSpecs/presets/vector_polygon_continuous/download.d.ts +9 -0
  48. package/dist/viewSpecs/presets/vector_polygon_continuous/index.d.ts +112 -0
  49. package/dist/viewSpecs/presets/vector_polygon_continuous/layers.d.ts +54 -0
  50. package/dist/viewSpecs/presets/vector_polygon_continuous/metadata/colorScaleStopResolvers.d.ts +21 -0
  51. package/dist/viewSpecs/presets/vector_polygon_continuous/metadata/index.d.ts +9 -0
  52. package/dist/viewSpecs/presets/vector_polygon_continuous/parseStyleSpec.d.ts +31 -0
  53. package/dist/viewSpecs/presets/vector_polygon_continuous/sources.d.ts +8 -0
  54. package/dist/viewSpecs/presets/vector_polygon_single/confSchema.d.ts +73 -0
  55. package/dist/viewSpecs/presets/vector_polygon_single/download.d.ts +9 -0
  56. package/dist/viewSpecs/presets/vector_polygon_single/index.d.ts +157 -0
  57. package/dist/viewSpecs/presets/vector_polygon_single/layers.d.ts +58 -0
  58. package/dist/viewSpecs/presets/vector_polygon_single/metadata.d.ts +1 -0
  59. package/dist/viewSpecs/presets/vector_polygon_single/parseStyleSpec.d.ts +7 -0
  60. package/dist/viewSpecs/presets/vector_polygon_single/sources.d.ts +7 -0
  61. package/dist/viewSpecs/util/colorSchemes/d3.d.ts +58 -0
  62. package/dist/viewSpecs/util/colorSchemes/georedus.d.ts +156 -0
  63. package/dist/viewSpecs/util/colorSchemes/index.d.ts +13 -0
  64. package/package.json +4 -2
  65. package/dist/viewSpecs/util/colorSchemes.d.ts +0 -15
@@ -0,0 +1,156 @@
1
+ export declare const GEOREDUS_LABELED_SAFE_COLORS: {
2
+ laranja: {
3
+ label: string;
4
+ value: string;
5
+ };
6
+ lilas: {
7
+ label: string;
8
+ value: string;
9
+ };
10
+ amarelo: {
11
+ label: string;
12
+ value: string;
13
+ };
14
+ verde_agua: {
15
+ label: string;
16
+ value: string;
17
+ };
18
+ vermelho_claro: {
19
+ label: string;
20
+ value: string;
21
+ };
22
+ marrom: {
23
+ label: string;
24
+ value: string;
25
+ };
26
+ laranja_claro: {
27
+ label: string;
28
+ value: string;
29
+ };
30
+ rosa: {
31
+ label: string;
32
+ value: string;
33
+ };
34
+ verde_marrom: {
35
+ label: string;
36
+ value: string;
37
+ };
38
+ roxo: {
39
+ label: string;
40
+ value: string;
41
+ };
42
+ };
43
+ export declare const GEOREDUS_LABELED_RESTRICTED_USE_COLORS: {
44
+ azul_claro: {
45
+ label: string;
46
+ value: string;
47
+ };
48
+ azul: {
49
+ label: string;
50
+ value: string;
51
+ };
52
+ verde_claro: {
53
+ label: string;
54
+ value: string;
55
+ };
56
+ verde: {
57
+ label: string;
58
+ value: string;
59
+ };
60
+ vermelho: {
61
+ label: string;
62
+ value: string;
63
+ };
64
+ cinza_claro: {
65
+ label: string;
66
+ value: string;
67
+ };
68
+ cinza: {
69
+ label: string;
70
+ value: string;
71
+ };
72
+ };
73
+ export declare const GEOREDUS_LABELED_COLORS: {
74
+ azul_claro: {
75
+ label: string;
76
+ value: string;
77
+ };
78
+ azul: {
79
+ label: string;
80
+ value: string;
81
+ };
82
+ verde_claro: {
83
+ label: string;
84
+ value: string;
85
+ };
86
+ verde: {
87
+ label: string;
88
+ value: string;
89
+ };
90
+ vermelho: {
91
+ label: string;
92
+ value: string;
93
+ };
94
+ cinza_claro: {
95
+ label: string;
96
+ value: string;
97
+ };
98
+ cinza: {
99
+ label: string;
100
+ value: string;
101
+ };
102
+ laranja: {
103
+ label: string;
104
+ value: string;
105
+ };
106
+ lilas: {
107
+ label: string;
108
+ value: string;
109
+ };
110
+ amarelo: {
111
+ label: string;
112
+ value: string;
113
+ };
114
+ verde_agua: {
115
+ label: string;
116
+ value: string;
117
+ };
118
+ vermelho_claro: {
119
+ label: string;
120
+ value: string;
121
+ };
122
+ marrom: {
123
+ label: string;
124
+ value: string;
125
+ };
126
+ laranja_claro: {
127
+ label: string;
128
+ value: string;
129
+ };
130
+ rosa: {
131
+ label: string;
132
+ value: string;
133
+ };
134
+ verde_marrom: {
135
+ label: string;
136
+ value: string;
137
+ };
138
+ roxo: {
139
+ label: string;
140
+ value: string;
141
+ };
142
+ };
143
+ export declare const schemeGeoReDUS: {
144
+ [k: string]: string;
145
+ };
146
+ export declare const schemeGeoReDUSSafe: {
147
+ [k: string]: string;
148
+ };
149
+ export declare const GEOREDUS_COLOR_SCHEMES: {
150
+ schemeGeoReDUS: {
151
+ [k: string]: string;
152
+ };
153
+ schemeGeoReDUSSafe: {
154
+ [k: string]: string;
155
+ };
156
+ };
@@ -0,0 +1,13 @@
1
+ export declare const COLOR_SCHEMES: {
2
+ schemeGeoReDUS: {
3
+ [k: string]: string;
4
+ };
5
+ schemeGeoReDUSSafe: {
6
+ [k: string]: string;
7
+ };
8
+ };
9
+ export declare function colorScheme(path: string): any;
10
+ export declare function resolveColor(colorInput: string): string;
11
+ export declare function resolveSchemeColor(colorSchemeId: string, indexOrId: string | number): string;
12
+ export * from './d3';
13
+ export * from './georedus';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redus/georedus-ui",
3
- "version": "0.19.5",
3
+ "version": "0.20.0",
4
4
  "packageManager": "yarn@4.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -55,7 +55,7 @@
55
55
  "@orioro/react-csv": "^0.0.17",
56
56
  "@orioro/react-dialogs": "^0.1.5",
57
57
  "@orioro/react-dir-nav": "^0.2.1",
58
- "@orioro/react-maplibre-util": "^0.7.1",
58
+ "@orioro/react-maplibre-util": "^0.8.0",
59
59
  "@orioro/react-sortable": "^0.0.16",
60
60
  "@orioro/react-ui-core": "^0.0.20",
61
61
  "@orioro/resolve": "^0.1.12",
@@ -75,12 +75,14 @@
75
75
  "d3-scale-chromatic": "^3.1.0",
76
76
  "file-saver": "^2.0.5",
77
77
  "gdal3.js": "^2.8.1",
78
+ "html-to-image": "^1.11.13",
78
79
  "katex": "^0.16.22",
79
80
  "lodash": "^4.17.21",
80
81
  "query-string": "^9.1.1",
81
82
  "react-confetti": "^6.1.0",
82
83
  "react-copy-to-clipboard": "^5.1.0",
83
84
  "react-highlight-words": "^0.21.0",
85
+ "react-qr-code": "^2.0.18",
84
86
  "react-share": "^5.1.0",
85
87
  "react-use": "^17.5.0",
86
88
  "rehype-katex": "^7.0.1",
@@ -1,15 +0,0 @@
1
- export declare const DEFAULT_NULL_COLOR = "#CCCCCC";
2
- export type CategoricalScheme = {
3
- colors: string[];
4
- defaultColor: string;
5
- };
6
- export type ByKScheme = {
7
- scalesByK: (string[] | null)[];
8
- defaultColor: string;
9
- minK: number;
10
- maxK: number;
11
- };
12
- export declare const COLOR_SCHEMES: {
13
- [x: string]: any;
14
- };
15
- export declare function colorScheme(path: string): any;