eurostat-map 4.10.8 → 4.10.10

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.10.7",
3
+ "version": "4.10.10",
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",
@@ -179,6 +179,12 @@ export interface MapConfig {
179
179
  /** Position adjustment for legend button: [x, y] */
180
180
  legendButtonPosition?: [number, number]
181
181
 
182
+ /**
183
+ * Viewport width (px) at/below which the legend starts hidden (behind the legend button)
184
+ * when legendButton is enabled. @default 768
185
+ */
186
+ legendVisibilityBreakpoint?: number
187
+
182
188
  /** Pointer hover color for NUTS regions. */
183
189
  hoverColor?: string
184
190
 
@@ -412,6 +412,13 @@ export interface MapInstance {
412
412
  legendButtonPosition(): [number, number] | undefined
413
413
  legendButtonPosition(pos: [number, number]): this
414
414
 
415
+ /**
416
+ * Viewport width (px) at/below which the legend starts hidden (behind the legend button)
417
+ * when legendButton is enabled. @default 768
418
+ */
419
+ legendVisibilityBreakpoint(): number
420
+ legendVisibilityBreakpoint(px: number): this
421
+
415
422
  /** Pointer hover color for NUTS regions. */
416
423
  hoverColor(): string
417
424
  hoverColor(color: string): this
@@ -11,6 +11,12 @@ export interface TooltipConfig {
11
11
  maxWidth?: number
12
12
  /** Font size. */
13
13
  fontSize?: number
14
+ /**
15
+ * Fixed decimal places for the tooltip's displayed value (choropleth maps). Preserves
16
+ * trailing zeros (e.g. 7 -> "7.0") that the default formatter otherwise drops. Defaults to
17
+ * the max precision seen across the stat dataset's own values when unset.
18
+ */
19
+ decimals?: number
14
20
 
15
21
  [key: string]: any
16
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.10.8",
3
+ "version": "4.10.10",
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
  "cartography",