eurostat-map 4.9.4 → 4.10.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/build/215.eurostatmap.min.js +1 -1
- package/build/eurostatmap.js +588 -414
- package/build/eurostatmap.min.js +2 -2
- package/build/eurostatmap.min.js.map +1 -1
- package/build/package.json +1 -1
- package/build/types/layers/choropleth/ChoroplethConfig.d.ts +9 -0
- package/build/types/layers/choropleth/ChoroplethMap.d.ts +6 -0
- package/package.json +1 -1
package/build/package.json
CHANGED
|
@@ -28,6 +28,15 @@ export interface ChoroplethConfig extends MapConfig {
|
|
|
28
28
|
/** No-data styling. */
|
|
29
29
|
noDataFillStyle?: string
|
|
30
30
|
|
|
31
|
+
/** Fill style for extra categorical values mixed into this choropleth's classification,
|
|
32
|
+
* keyed by the raw data value (e.g. `{ '-': '#cccccc' }` for regions whose value is the
|
|
33
|
+
* string '-'). Matching regions get their own legend/tooltip entry instead of being
|
|
34
|
+
* classified numerically or treated as generic "no data". */
|
|
35
|
+
categoryFillStyle?: { [rawValue: string]: string }
|
|
36
|
+
/** Legend/tooltip text for each extra category, keyed by the same raw data value as
|
|
37
|
+
* `categoryFillStyle`. Ex.: `{ '-': 'No railway lines' }` */
|
|
38
|
+
categoryText?: { [rawValue: string]: string }
|
|
39
|
+
|
|
31
40
|
/** Value transformation (for continuous schemes). */
|
|
32
41
|
valueTransform?: (x: number) => number
|
|
33
42
|
valueUntransform?: (x: number) => number
|
|
@@ -45,4 +45,10 @@ export interface ChoroplethMap extends MapInstance {
|
|
|
45
45
|
|
|
46
46
|
noDataFillStyle(): string
|
|
47
47
|
noDataFillStyle(style: string): this
|
|
48
|
+
|
|
49
|
+
categoryFillStyle(): { [rawValue: string]: string } | undefined
|
|
50
|
+
categoryFillStyle(v: { [rawValue: string]: string }): this
|
|
51
|
+
|
|
52
|
+
categoryText(): { [rawValue: string]: string } | undefined
|
|
53
|
+
categoryText(v: { [rawValue: string]: string }): this
|
|
48
54
|
}
|
package/package.json
CHANGED