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.
- package/build/215.eurostatmap.min.js +1 -1
- package/build/eurostatmap.js +1321 -1265
- package/build/eurostatmap.min.js +2 -2
- package/build/eurostatmap.min.js.map +1 -1
- package/build/package.json +1 -1
- package/build/types/core/MapConfig.d.ts +6 -0
- package/build/types/core/MapInstance.d.ts +7 -0
- package/build/types/core/TooltipConfig.d.ts +6 -0
- package/package.json +1 -1
package/build/package.json
CHANGED
|
@@ -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