eurostat-map 4.10.9 → 4.10.11

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 (120) hide show
  1. package/build/215.eurostatmap.min.js +1 -1
  2. package/build/eurostatmap.js +2757 -2689
  3. package/build/eurostatmap.min.js +2 -2
  4. package/build/eurostatmap.min.js.map +1 -1
  5. package/build/package.json +1 -1
  6. package/build/types/core/InsetConfig.d.ts +92 -71
  7. package/build/types/core/MapConfig.d.ts +103 -12
  8. package/build/types/core/MapInstance.d.ts +624 -555
  9. package/build/types/core/TooltipConfig.d.ts +33 -5
  10. package/build/types/core/decoration/PatternFillConfig.d.ts +34 -0
  11. package/build/types/core/geo/geometries.d.ts +13 -1
  12. package/build/types/core/layer/Layer.d.ts +49 -31
  13. package/build/types/core/minimaps.d.ts +11 -3
  14. package/build/types/core/stat/StatData.d.ts +2 -2
  15. package/build/types/core/utils.d.ts +44 -0
  16. package/build/types/index.d.ts +37 -6
  17. package/build/types/layers/CategoricalMap.d.ts +9 -9
  18. package/build/types/layers/choropleth/BivariateChoroplethConfig.d.ts +3 -0
  19. package/build/types/layers/choropleth/BivariateChoroplethMap.d.ts +9 -6
  20. package/build/types/layers/choropleth/ChoroplethConfig.d.ts +3 -3
  21. package/build/types/layers/choropleth/ChoroplethMap.d.ts +16 -4
  22. package/build/types/layers/choropleth/TrivariateChoroplethMap.d.ts +4 -0
  23. package/build/types/layers/choropleth/ValueByAlphaMap.d.ts +4 -3
  24. package/build/types/layers/composition/bar/BarMap.d.ts +170 -97
  25. package/build/types/layers/composition/bar/BarMapConfig.d.ts +83 -76
  26. package/build/types/layers/composition/coxcomb/CoxcombMap.d.ts +7 -6
  27. package/build/types/layers/composition/coxcomb/CoxcombMapConfig.d.ts +2 -2
  28. package/build/types/layers/composition/pie/PieMap.d.ts +8 -4
  29. package/build/types/layers/composition/pie/PieMapConfig.d.ts +0 -4
  30. package/build/types/layers/composition/stripe/StripeMap.d.ts +4 -4
  31. package/build/types/layers/composition/waffle/WaffleMap.d.ts +4 -4
  32. package/build/types/layers/flow/FlowMap.d.ts +8 -8
  33. package/build/types/layers/proportional-symbol/ProportionalSymbolConfig.d.ts +105 -52
  34. package/build/types/layers/proportional-symbol/ProportionalSymbolMap.d.ts +104 -100
  35. package/build/types/layers/proportional-symbol/mushroom/MushroomMap.d.ts +16 -12
  36. package/build/types/layers/spark/SparkMap.d.ts +14 -8
  37. package/build/types/layers/spark/SparkMapConfig.d.ts +8 -12
  38. package/build/types/legend/LegendConfig.d.ts +72 -73
  39. package/build/types/legend/MushroomLegendConfig.d.ts +15 -0
  40. package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +6 -6
  41. package/build/types/legend/choropleth/TrivariateLegendConfig.d.ts +5 -5
  42. package/build/types/legend/composition/BarChartLegendConfig.d.ts +32 -0
  43. package/build/types/legend/composition/StripeCompositionLegendConfig.d.ts +34 -2
  44. package/package.json +1 -1
  45. package/build/types/core/MinimapConfig.d.ts +0 -11
  46. package/build/types/legend/CoxcombLegendConfig.d.ts +0 -85
  47. package/build/types/legend/PieChartLegendConfig.d.ts +0 -68
  48. package/build/types/legend/SparklineLegendConfig.d.ts +0 -6
  49. package/build/types/legend/StripeCompositionLegendConfig.d.ts +0 -11
  50. package/build/types/legend/WaffleLegendConfig.d.ts +0 -74
  51. package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +0 -2
  52. package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +0 -2
  53. package/build/types/legend/choropleth/legend-choropleth.d.ts +0 -2
  54. package/build/types/legend/composition/legend-bar-chart.d.ts +0 -2
  55. package/build/types/legend/flow/legend-flow.d.ts +0 -2
  56. package/build/types/legend/legend-categorical.d.ts +0 -2
  57. package/build/types/legend/legend-continuous.d.ts +0 -2
  58. package/build/types/legend/legend-discrete.d.ts +0 -2
  59. package/build/types/legend/legend.d.ts +0 -13
  60. package/build/types/legend/proportional-symbol/PropSymbolLegendConfig.d.ts +0 -0
  61. package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +0 -2
  62. package/build/types/map-types/CategoricalMap.d.ts +0 -21
  63. package/build/types/map-types/CategoricalMapConfig.d.ts +0 -11
  64. package/build/types/map-types/CateogricalMapConfig.d.ts +0 -11
  65. package/build/types/map-types/MapType.d.ts +0 -34
  66. package/build/types/map-types/choropleth/BivariateChoroplethConfig.d.ts +0 -27
  67. package/build/types/map-types/choropleth/BivariateChoroplethMap.d.ts +0 -39
  68. package/build/types/map-types/choropleth/ChoroplethConfig.d.ts +0 -39
  69. package/build/types/map-types/choropleth/ChoroplethMap.d.ts +0 -48
  70. package/build/types/map-types/choropleth/TrivariateChoroplethConfig.d.ts +0 -41
  71. package/build/types/map-types/choropleth/TrivariateChoroplethMap.d.ts +0 -18
  72. package/build/types/map-types/choropleth/ValueByAlphaConfig.d.ts +0 -8
  73. package/build/types/map-types/choropleth/ValueByAlphaMap.d.ts +0 -9
  74. package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +0 -4
  75. package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +0 -4
  76. package/build/types/map-types/choropleth/map-choropleth.d.ts +0 -47
  77. package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +0 -4
  78. package/build/types/map-types/composition/BarMap.d.ts +0 -86
  79. package/build/types/map-types/composition/BarMapConfig.d.ts +0 -30
  80. package/build/types/map-types/composition/CompositionStatConfig.d.ts +0 -57
  81. package/build/types/map-types/composition/CoxcombMap.d.ts +0 -42
  82. package/build/types/map-types/composition/CoxcombMapConfig.d.ts +0 -18
  83. package/build/types/map-types/composition/PieMap.d.ts +0 -62
  84. package/build/types/map-types/composition/PieMapConfig.d.ts +0 -24
  85. package/build/types/map-types/composition/SparkMap.d.ts +0 -46
  86. package/build/types/map-types/composition/SparkMapConfig.d.ts +0 -25
  87. package/build/types/map-types/composition/StripeMap.d.ts +0 -43
  88. package/build/types/map-types/composition/StripeMapConfig.d.ts +0 -16
  89. package/build/types/map-types/composition/WaffleMap.d.ts +0 -71
  90. package/build/types/map-types/composition/WaffleMapConfig.d.ts +0 -25
  91. package/build/types/map-types/composition/bar/BarMap.d.ts +0 -97
  92. package/build/types/map-types/composition/bar/BarMapConfig.d.ts +0 -76
  93. package/build/types/map-types/composition/composition-map.d.ts +0 -25
  94. package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +0 -75
  95. package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +0 -47
  96. package/build/types/map-types/composition/coxcomb/CoxcombStatConfig.d.ts +0 -13
  97. package/build/types/map-types/composition/map-bar.d.ts +0 -5
  98. package/build/types/map-types/composition/map-coxcomb.d.ts +0 -5
  99. package/build/types/map-types/composition/map-pie.d.ts +0 -10
  100. package/build/types/map-types/composition/map-spark.d.ts +0 -5
  101. package/build/types/map-types/composition/map-stripe.d.ts +0 -5
  102. package/build/types/map-types/composition/map-waffle.d.ts +0 -5
  103. package/build/types/map-types/composition/pie/PieMap.d.ts +0 -84
  104. package/build/types/map-types/composition/pie/PieMapConfig.d.ts +0 -50
  105. package/build/types/map-types/composition/stripe/StripeMap.d.ts +0 -80
  106. package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +0 -45
  107. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +0 -124
  108. package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +0 -58
  109. package/build/types/map-types/flow/FlowMap.d.ts +0 -218
  110. package/build/types/map-types/flow/FlowMapConfig.d.ts +0 -220
  111. package/build/types/map-types/flow/map-flow.d.ts +0 -5
  112. package/build/types/map-types/map-categorical.d.ts +0 -19
  113. package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +0 -47
  114. package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +0 -94
  115. package/build/types/map-types/proportional-symbol/map-proportional-symbols.d.ts +0 -35
  116. package/build/types/map-types/proportional-symbol/mushroom/MushroomMap.d.ts +0 -67
  117. package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +0 -39
  118. package/build/types/map-types/spark/SparkMap.d.ts +0 -56
  119. package/build/types/map-types/spark/SparkMapConfig.d.ts +0 -74
  120. package/build/types/map-types/spark/SparkStatConfig.d.ts +0 -32
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.10.7",
3
+ "version": "4.10.11",
4
4
  "description": "Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.",
5
5
  "keywords": [
6
6
  "eurostat",
@@ -1,71 +1,92 @@
1
- import type { LabelsConfig } from './decoration/LabelsConfig'
2
- import type { ScalebarConfig } from './decoration/ScalebarConfig'
3
-
4
- /**
5
- * Configuration for map insets (smaller additional maps, e.g. overseas territories)
6
- */
7
- export interface InsetConfig {
8
- /** Geographic code (e.g., 'MT', 'PT20', 'CARIB'). */
9
- geo?: string
10
- /** Title. */
11
- title?: string
12
- /** Position of the title, relative to the inset's top-left corner. */
13
- titlePosition?: [number, number]
14
- /** Subtitle. */
15
- subtitle?: string
16
- /** Position of the subtitle, relative to the inset's top-left corner. */
17
- subtitlePosition?: [number, number]
18
- /** Scale. Named nuts2json scale (e.g. '01M', '03M', '10M', '20M', '60M') or a number. */
19
- scale?: string | number
20
- /** Width. */
21
- width?: number
22
- /** Height. */
23
- height?: number
24
- /** X position of the inset within the inset box. */
25
- x?: number
26
- /** Y position of the inset within the inset box. */
27
- y?: number
28
- /** Proj. */
29
- proj?: string
30
- /** Id of the `<svg>` element the inset is drawn into. Auto-generated if omitted. */
31
- svgId?: string
32
- /** Manual re-centering/zoom of the inset's own projection. */
33
- position?: { x?: number; y?: number; z?: number }
34
- /** Label rendering settings for this inset. */
35
- labels?: LabelsConfig
36
- /** Whether to show zoom buttons on this inset. @default false */
37
- zoomButtons?: boolean
38
- /** Custom base URL for this inset's nuts2json boundary data. */
39
- nuts2jsonBaseURL?: string
40
- /** Custom D3 projection function for this inset. */
41
- projectionFunction?: Function | boolean
42
-
43
- /** Scalebar settings for this inset. `true` uses the default scalebar config. */
44
- scalebar?: ScalebarConfig | boolean
45
-
46
- /** @deprecated Use `scalebar: { show: true }` instead. */
47
- showScalebar?: boolean
48
- /** @deprecated Use `scalebar: { position: [x, y] }` instead. */
49
- scalebarPosition?: [number, number]
50
- /** @deprecated Use `scalebar: { tickHeight }` instead. */
51
- scalebarTickHeight?: number
52
- /** @deprecated Use `scalebar: { segmentHeight }` instead. */
53
- scalebarSegmentHeight?: number
54
- /** Scalebar label font size in pixels. */
55
- scalebarFontSize?: number
56
- /** @deprecated Use `scalebar: { units }` instead. */
57
- scalebarUnits?: string
58
- /** @deprecated Use `scalebar: { textOffset }` instead. */
59
- scalebarTextOffset?: [number, number]
60
- /** @deprecated Use `scalebar: { maxWidth }` instead. */
61
- scalebarMaxWidth?: number
62
- /** Minimum width of the scalebar in pixels. */
63
- scalebarMinWidth?: number
64
-
65
- /** Nested insets belonging to this inset (e.g. bivariate choropleth per-inset legend classification). */
66
- insets?: InsetConfig[]
67
- /** Position of nested insets' inset box, relative to this inset. */
68
- insetBoxPosition?: [number, number]
69
-
70
- [key: string]: any
71
- }
1
+ import type { LabelsConfig } from './decoration/LabelsConfig'
2
+ import type { ScalebarConfig } from './decoration/ScalebarConfig'
3
+
4
+ /**
5
+ * Configuration for map insets (smaller additional maps, e.g. overseas territories)
6
+ */
7
+ export interface InsetConfig {
8
+ /** Geographic code (e.g., 'MT', 'PT20', 'CARIB'). */
9
+ geo?: string
10
+ /** Title. */
11
+ title?: string
12
+ /** Position of the title, relative to the inset's top-left corner. */
13
+ titlePosition?: [number, number]
14
+ /** Subtitle. */
15
+ subtitle?: string
16
+ /** Position of the subtitle, relative to the inset's top-left corner. */
17
+ subtitlePosition?: [number, number]
18
+ /** Scale. Named nuts2json scale (e.g. '01M', '03M', '10M', '20M', '60M') or a number. */
19
+ scale?: string | number
20
+ /** Width. */
21
+ width?: number
22
+ /** Height. */
23
+ height?: number
24
+ /** X position of the inset within the inset box. */
25
+ x?: number
26
+ /** Y position of the inset within the inset box. */
27
+ y?: number
28
+ /** Proj. */
29
+ proj?: string
30
+ /** Id of the `<svg>` element the inset is drawn into. Auto-generated if omitted. */
31
+ svgId?: string
32
+ /** Manual re-centering/zoom of the inset's own projection. */
33
+ position?: { x?: number; y?: number; z?: number }
34
+ /** Label rendering settings for this inset. */
35
+ labels?: LabelsConfig
36
+ /** Whether to show zoom buttons on this inset. @default false */
37
+ zoomButtons?: boolean
38
+ /** Custom base URL for this inset's nuts2json boundary data. */
39
+ nuts2jsonBaseURL?: string
40
+ /** Custom D3 projection function for this inset. */
41
+ projectionFunction?: Function | boolean
42
+
43
+ /** Show/hide the graticule (coordinate grid lines) for this inset. @default false */
44
+ drawGraticule?: boolean
45
+
46
+ /** Show/hide zoom +/- buttons for this inset. @default false */
47
+ zoomButtons?: boolean
48
+
49
+ /** D3 zoom scale extent [min, max] for this inset. */
50
+ zoomExtent?: [number, number]
51
+
52
+ /** Show the link to the remote Eurostat statistical dataset for this inset. @default false */
53
+ showSourceLink?: boolean
54
+
55
+ /** Footnote text shown below this inset. @default '' */
56
+ footnote?: string
57
+
58
+ /** Function to adjust calculated centroids for this inset's symbols/labels. */
59
+ processCentroids?: (centroidFeatures: any[]) => any[]
60
+
61
+ /** Stroke width in pixels applied to this inset's frame (`.em-frame`). Unset hides the frame. */
62
+ frameStrokeWidth?: number
63
+
64
+ /** Scalebar settings for this inset. `true` uses the default scalebar config. */
65
+ scalebar?: ScalebarConfig | boolean
66
+
67
+ /** @deprecated Use `scalebar: { show: true }` instead. */
68
+ showScalebar?: boolean
69
+ /** @deprecated Use `scalebar: { position: [x, y] }` instead. */
70
+ scalebarPosition?: [number, number]
71
+ /** @deprecated Use `scalebar: { tickHeight }` instead. */
72
+ scalebarTickHeight?: number
73
+ /** @deprecated Use `scalebar: { segmentHeight }` instead. */
74
+ scalebarSegmentHeight?: number
75
+ /** Scalebar label font size in pixels. */
76
+ scalebarFontSize?: number
77
+ /** @deprecated Use `scalebar: { units }` instead. */
78
+ scalebarUnits?: string
79
+ /** @deprecated Use `scalebar: { textOffset }` instead. */
80
+ scalebarTextOffset?: [number, number]
81
+ /** @deprecated Use `scalebar: { maxWidth }` instead. */
82
+ scalebarMaxWidth?: number
83
+ /** Minimum width of the scalebar in pixels. */
84
+ scalebarMinWidth?: number
85
+
86
+ /** Nested insets belonging to this inset (e.g. bivariate choropleth per-inset legend classification). */
87
+ insets?: InsetConfig[]
88
+ /** Position of nested insets' inset box, relative to this inset. */
89
+ insetBoxPosition?: [number, number]
90
+
91
+ [key: string]: any
92
+ }
@@ -10,6 +10,10 @@ import type { GridCartogramSettings } from './GridCartogramSettings'
10
10
  import type { DorlingSettings } from './DorlingSettings'
11
11
  import type { ScalebarConfig } from './decoration/ScalebarConfig'
12
12
  import type { EncodingConfig } from './encoding/EncodingConfig'
13
+ import type { LabelsConfig } from './decoration/LabelsConfig'
14
+ import type { PatternFillConfig } from './decoration/PatternFillConfig'
15
+ import type { MinimapConfig } from './minimaps'
16
+ import type { StampConfig } from './decoration/StampConfig'
13
17
 
14
18
  /**
15
19
  * Base configuration for all map types. Each specific map type will extend this with its own properties, but these are the common ones that apply to all maps.
@@ -30,8 +34,8 @@ export interface MapConfig {
30
34
  projectionFunction?: () => any
31
35
  /** Scale of the map, for NUTSjson geometries. */
32
36
  scale?: '60M' | '20M' | '10M' | '03M' | '01M'
33
- /** NUTS level (0, 1, 2, 3). */
34
- nutsLevel?: number
37
+ /** NUTS level (0, 1, 2, 3), or 'mixed' to let each region use its most granular level. */
38
+ nutsLevel?: number | 'mixed'
35
39
  /** NUTS boundary year. */
36
40
  nutsYear?: number | string
37
41
  /** Geographic center as [longitude, latitude]. */
@@ -56,8 +60,21 @@ export interface MapConfig {
56
60
  subtitle?: string
57
61
  /** Footnote text shown below the map. */
58
62
  footnote?: string
59
- /** Data source text. */
60
- source?: string
63
+
64
+ /** Tooltip text shown when hovering over the footnote. */
65
+ footnoteTooltipText?: string | false
66
+
67
+ /** Wrap footnote text at this many characters. */
68
+ footnoteWrap?: number | false
69
+
70
+ /** Text shown in the tooltip and legend for regions with no data. @default 'No data available' */
71
+ noDataText?: string
72
+
73
+ /** BCP 47 language tag used when fetching labels from the Eurostat API. @default 'en' */
74
+ language?: string
75
+
76
+ /** Duration in milliseconds for D3 transitions when the map updates. Set to 0 to disable. @default 500 */
77
+ transitionDuration?: number
61
78
 
62
79
  /**
63
80
  * Statistical data configuration.
@@ -84,12 +101,41 @@ export interface MapConfig {
84
101
  /** Tooltip configuration. */
85
102
  tooltip?: TooltipConfig
86
103
 
87
- /** Insets (small additional maps). true is an alias for 'default'. */
88
- insets?: InsetConfig[] | 'default' | true | false
104
+ /**
105
+ * Inset map configurations. Pass a named preset string, or a custom array, or false to
106
+ * disable. Passing true is an alias for 'default'.
107
+ * - 'default': simple grid layout of overseas territories.
108
+ * - 'image': Malta, Liechtenstein and EU/EFTA overseas/remote territories, hand-tuned
109
+ * layout with connecting decoration (background box, separator lines, blur gradients).
110
+ * - 'eu': simple grid layout of EU overseas/outermost territories, no decoration.
111
+ * - 'euEfta': like 'eu', plus Liechtenstein and Svalbard, no decoration.
112
+ */
113
+ insets?: InsetConfig[] | 'default' | 'image' | 'eu' | 'euEfta' | true | false
114
+
115
+ /** Position [x, y] of the box containing the default/named-preset insets layout. */
116
+ insetBoxPosition?: [number, number]
117
+
118
+ /** Padding in pixels around/between insets in the default insets box layout. @default 5 */
119
+ insetBoxPadding?: number
120
+
121
+ /** Width in pixels of each inset in the default insets box layout. @default 210 */
122
+ insetBoxWidth?: number
123
+
124
+ /** Default NUTS2JSON scale used for insets that don't specify their own. @default '03M' */
125
+ insetScale?: string
126
+
127
+ /** Default D3 zoom scale extent for insets. `null` disables zoom on insets. */
128
+ insetZoomExtent?: [number, number] | null
89
129
 
90
130
  /** Zoom and pan settings. */
91
131
  zoomExtent?: [number, number]
92
132
 
133
+ /** D3 zoom translate extent (pan boundaries), as [[x0, y0], [x1, y1]]. */
134
+ translateExtent?: [[number, number], [number, number]]
135
+
136
+ /** If true, panning is disabled until the user has zoomed at least once. @default true */
137
+ lockPanUntilZoom?: boolean
138
+
93
139
  /** Grid cartogram layout settings. */
94
140
  gridCartogramSettings?: Partial<GridCartogramSettings>
95
141
 
@@ -104,8 +150,11 @@ export interface MapConfig {
104
150
  /** Graticule. */
105
151
  drawGraticule?: boolean
106
152
 
107
- /** Labels. */
108
- labelling?: boolean
153
+ /**
154
+ * Get or set label configuration for country names, statistical values, etc.
155
+ * @example map.labels({ values: true, backgrounds: true, backgroundFill: '#B19122' })
156
+ */
157
+ labels?: LabelsConfig
109
158
 
110
159
  /** Fires once the map is built. */
111
160
  onBuild?: (map: EurostatMap) => void
@@ -113,6 +162,15 @@ export interface MapConfig {
113
162
  /** Scalebar configuration. Can be boolean or configuration object. */
114
163
  scalebar?: ScalebarConfig | boolean
115
164
 
165
+ /**
166
+ * Annotation configuration, rendered via the d3-svg-annotation library.
167
+ * `annotations` is an array of d3-svg-annotation annotation objects; each object's `type`
168
+ * may be one of 'annotationLabel' (default), 'annotationCallout', 'annotationCalloutRect',
169
+ * 'annotationCalloutCircle', 'annotationXYThreshold', resolved to the matching d3-svg-annotation
170
+ * function internally.
171
+ */
172
+ annotations?: { annotations: any[]; editMode?: boolean }
173
+
116
174
  /** Grid cartogram enabled or disabled. */
117
175
  gridCartogram?: boolean
118
176
 
@@ -122,8 +180,11 @@ export interface MapConfig {
122
180
  /** Toggle background map rendering (sea, country boundaries, etc.). */
123
181
  backgroundMap?: boolean
124
182
 
125
- /** Minimap configuration. */
126
- minimap?: any
183
+ /** Minimap (globe inset showing current viewport) configuration. */
184
+ minimap?: MinimapConfig
185
+
186
+ /** Stamp/watermark annotation. @example { x: 10, y: 10, text: 'DRAFT', size: 40 } */
187
+ stamp?: StampConfig
127
188
 
128
189
  /** Show/hide zoom +/- buttons. */
129
190
  zoomButtons?: boolean
@@ -164,21 +225,51 @@ export interface MapConfig {
164
225
  /** Position adjustment for footnote text: [x, y] */
165
226
  footnotePosition?: [number, number]
166
227
 
228
+ /** Show the Eurostat logo. */
229
+ showEstatLogo?: boolean
230
+
167
231
  /** Position adjustment for Eurostat logo: [x, y] */
168
232
  logoPosition?: [number, number]
169
233
 
234
+ /** Width in pixels of the Eurostat logo. @default 200 */
235
+ logoWidth?: number
236
+
237
+ /** Height in pixels of the Eurostat logo. @default 40 */
238
+ logoHeight?: number
239
+
240
+ /** Show the Eurostat ribbon banner. */
241
+ showEstatRibbon?: boolean
242
+
170
243
  /** Position adjustment for ribbon banner: [x, y] */
171
244
  ribbonPosition?: [number, number]
172
245
 
246
+ /** Width in pixels of the Eurostat ribbon banner. @default 200 */
247
+ ribbonWidth?: number
248
+
249
+ /** Height in pixels of the Eurostat ribbon banner. @default 40 */
250
+ ribbonHeight?: number
251
+
173
252
  /** Position adjustment for zoom buttons: [x, y] */
174
253
  zoomButtonsPosition?: [number, number]
175
254
 
176
255
  /** Position adjustment for insets button: [x, y] */
177
256
  insetsButtonPosition?: [number, number]
178
257
 
258
+ /**
259
+ * Viewport width (px) at/below which insets start hidden (behind the insets button) unless
260
+ * insetsButton was set explicitly. @default 768
261
+ */
262
+ insetsVisibilityBreakpoint?: number
263
+
179
264
  /** Position adjustment for legend button: [x, y] */
180
265
  legendButtonPosition?: [number, number]
181
266
 
267
+ /**
268
+ * Viewport width (px) at/below which the legend starts hidden (behind the legend button)
269
+ * when legendButton is enabled. @default 768
270
+ */
271
+ legendVisibilityBreakpoint?: number
272
+
182
273
  /** Pointer hover color for NUTS regions. */
183
274
  hoverColor?: string
184
275
 
@@ -188,8 +279,8 @@ export interface MapConfig {
188
279
  /** Show the link to the remote Eurostat statistical dataset. */
189
280
  showSourceLink?: boolean
190
281
 
191
- /** Pattern fill configurations. */
192
- patternFill?: any
282
+ /** Pattern fill (hatching/dots/crosshatch) overlays for specific regions. */
283
+ patternFill?: PatternFillConfig | PatternFillConfig[]
193
284
 
194
285
  /** Allow additional properties for extensibility. */
195
286
  [key: string]: any