eurostat-map 4.5.0 → 4.6.1

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.5.0",
3
+ "version": "4.6.1",
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",
@@ -157,14 +157,7 @@ export type { SparkMapConfig, SparkMap, SparkStatConfig }
157
157
 
158
158
  // Flow map types
159
159
  export type { FlowMapConfig, FlowMap }
160
- export type {
161
- FlowNode,
162
- FlowLink,
163
- FlowGraph,
164
- FlowCurvatureSettings,
165
- FlowWidthGradientSettings,
166
- FlowBundleSettings,
167
- } from './layers/flow/FlowMapConfig'
160
+ export type { FlowNode, FlowLink, FlowGraph, FlowCurvatureSettings, FlowWidthGradientSettings, FlowBundleSettings } from './layers/flow/FlowMapConfig'
168
161
 
169
162
  // ==================== Pattern Fill Options ====================
170
163
 
@@ -223,6 +216,13 @@ export function map(type: 'sparkline' | 'spark' | 'sparklines', config?: SparkMa
223
216
  export function map(type: 'flow' | 'flowmap', config?: FlowMapConfig): FlowMap
224
217
  export function map(type: MapType, config?: MapConfig): MapInstance
225
218
 
219
+ /**
220
+ * Enable or disable strict API guard for map chaining.
221
+ * When enabled, unknown method calls throw descriptive errors.
222
+ *
223
+ * @param enabled - True to enable strict API checks
224
+ * @returns Current strict API state
225
+ */
226
226
  // ==================== Utility Functions ====================
227
227
 
228
228
  /**
@@ -63,7 +63,7 @@ export interface ChoroplethLegendConfig extends LegendConfig {
63
63
  /** Explicit tick labels for continuous legends. */
64
64
  tickLabels?: Array<string | number>
65
65
 
66
- /** Pixel tolerance used when hovering continuous legends to highlight nearby regions. @default 10 */
66
+ /** Total data-value span highlighted when hovering continuous legends. @default 10 */
67
67
  highlightTolerance?: number
68
68
 
69
69
  /** Whether to show dataset min/max labels where supported. @default true */
@@ -7,6 +7,9 @@ export interface ProportionalSymbolSizeLegendConfig {
7
7
  /** Title for the size legend. */
8
8
  title?: string | null
9
9
 
10
+ /** Subtitle displayed below the title. */
11
+ subtitle?: string | null
12
+
10
13
  /** Padding between title and legend content in pixels. @default 15 */
11
14
  titlePadding?: number
12
15
 
@@ -57,6 +60,9 @@ export interface ProportionalSymbolColorLegendConfig {
57
60
  /** Title for the color legend. */
58
61
  title?: string | null
59
62
 
63
+ /** Subtitle displayed below the title. */
64
+ subtitle?: string | null
65
+
60
66
  /** Padding between title and legend content in pixels. @default 10 */
61
67
  titlePadding?: number
62
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.5.0",
3
+ "version": "4.6.1",
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",