eurostat-map 4.4.4 → 4.4.5

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 (32) hide show
  1. package/README.md +148 -148
  2. package/build/215.eurostatmap.min.js +1 -1
  3. package/build/215.eurostatmap.min.js.map +1 -1
  4. package/build/eurostatmap.js +505 -81
  5. package/build/eurostatmap.min.js +2 -2
  6. package/build/eurostatmap.min.js.map +1 -1
  7. package/build/package.json +87 -87
  8. package/build/types/index.d.ts +2 -1
  9. package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +2 -2
  10. package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +2 -2
  11. package/build/types/legend/choropleth/legend-choropleth.d.ts +2 -2
  12. package/build/types/legend/composition/legend-bar-chart.d.ts +2 -2
  13. package/build/types/legend/flow/legend-flow.d.ts +2 -2
  14. package/build/types/legend/legend-categorical.d.ts +2 -2
  15. package/build/types/legend/legend-continuous.d.ts +2 -2
  16. package/build/types/legend/legend-discrete.d.ts +2 -2
  17. package/build/types/legend/legend.d.ts +13 -13
  18. package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +2 -2
  19. package/build/types/map-types/CategoricalMapConfig.d.ts +11 -11
  20. package/build/types/map-types/choropleth/TrivariateChoroplethConfig.d.ts +25 -16
  21. package/build/types/map-types/choropleth/TrivariateChoroplethMap.d.ts +5 -2
  22. package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +4 -4
  23. package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +4 -4
  24. package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +4 -4
  25. package/build/types/map-types/composition/map-spark.d.ts +5 -5
  26. package/build/types/map-types/composition/map-stripe.d.ts +5 -5
  27. package/build/types/map-types/composition/pie/PieMap.d.ts +4 -0
  28. package/build/types/map-types/composition/pie/PieMapConfig.d.ts +2 -0
  29. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +45 -0
  30. package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +24 -10
  31. package/build/types/map-types/flow/map-flow.d.ts +5 -5
  32. package/package.json +4 -2
@@ -1,87 +1,87 @@
1
- {
2
- "name": "eurostat-map",
3
- "version": "4.4.4",
4
- "description": "Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.",
5
- "keywords": [
6
- "eurostat",
7
- "statistics",
8
- "europe",
9
- "SVG",
10
- "NUTS",
11
- "map",
12
- "D3",
13
- "cartography",
14
- "thematic",
15
- "mapping",
16
- "eurostat-map",
17
- "dataviz",
18
- "data visualization"
19
- ],
20
- "homepage": "https://github.com/eurostat/eurostat-map",
21
- "author": "",
22
- "license": "EUPL-1.2",
23
- "repository": {
24
- "type": "git",
25
- "url": "https://github.com/eurostat/eurostat-map.git"
26
- },
27
- "main": "build/eurostatmap.min.js",
28
- "unpkg": "build/eurostatmap.min.js",
29
- "module": "build/eurostatmap.js",
30
- "types": "build/types/index.d.ts",
31
- "typings": "build/types/index.d.ts",
32
- "files": [
33
- "build"
34
- ],
35
- "scripts": {
36
- "start": "webpack --config webpack/webpack.config.dev.js",
37
- "server": "webpack-dev-server --open --watch",
38
- "build-types": "tsc --project tsconfig.json",
39
- "build-prod": "npm run build-types && webpack --config webpack/webpack.config.prod.js",
40
- "build-prod-debug": "webpack --config webpack/webpack.config.debug-size.js",
41
- "format": "prettier --write .",
42
- "test": "jest",
43
- "type-check": "tsc --noEmit"
44
- },
45
- "dependencies": {
46
- "d3-array": "^3.2.4",
47
- "d3-axis": "^3.0.0",
48
- "d3-ease": "^3.0.1",
49
- "d3-fetch": "^3.0.1",
50
- "d3-force": "^3.0.0",
51
- "d3-format": "^3.1.0",
52
- "d3-geo": "^3.1.1",
53
- "d3-geo-projection": "^3.0.0",
54
- "d3-interpolate": "^3.0.1",
55
- "d3-scale": "^4.0.2",
56
- "d3-scale-chromatic": "^3.1.0",
57
- "d3-selection": "^3.0.0",
58
- "d3-shape": "^3.2.0",
59
- "d3-svg-annotation": "^2.5.1",
60
- "d3-zoom": "^3.0.0",
61
- "idb-keyval": "^6.2.2",
62
- "jsonstat-toolkit": "^1.0.8",
63
- "proj4": "^2.17.0",
64
- "simple-statistics": "^7.8.8",
65
- "topojson-client": "^3.1.0"
66
- },
67
- "overrides": {
68
- "d3-color": "3.1.0"
69
- },
70
- "devDependencies": {
71
- "@babel/core": "^7.22.6",
72
- "@babel/plugin-transform-runtime": "^7.22.6",
73
- "@babel/preset-env": "^7.22.6",
74
- "@babel/runtime": "^7.12.1",
75
- "babel-loader": "^9.1.2",
76
- "css-loader": "^7.1.2",
77
- "prettier": "^3.4.1",
78
- "style-loader": "^4.0.0",
79
- "ts-loader": "^9.5.4",
80
- "typescript": "^5.9.3",
81
- "webpack": "^5.88.1",
82
- "webpack-bundle-analyzer": "^4.10.2",
83
- "webpack-cli": "^5.0.0",
84
- "webpack-dev-server": "^5.2.2",
85
- "webpack-livereload-plugin": "^3.0.2"
86
- }
87
- }
1
+ {
2
+ "name": "eurostat-map",
3
+ "version": "4.4.5",
4
+ "description": "Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.",
5
+ "keywords": [
6
+ "eurostat",
7
+ "statistics",
8
+ "europe",
9
+ "SVG",
10
+ "NUTS",
11
+ "map",
12
+ "D3",
13
+ "cartography",
14
+ "thematic",
15
+ "mapping",
16
+ "eurostat-map",
17
+ "dataviz",
18
+ "data visualization"
19
+ ],
20
+ "homepage": "https://github.com/eurostat/eurostat-map",
21
+ "author": "",
22
+ "license": "EUPL-1.2",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/eurostat/eurostat-map.git"
26
+ },
27
+ "main": "build/eurostatmap.min.js",
28
+ "unpkg": "build/eurostatmap.min.js",
29
+ "module": "build/eurostatmap.js",
30
+ "types": "build/types/index.d.ts",
31
+ "typings": "build/types/index.d.ts",
32
+ "files": [
33
+ "build"
34
+ ],
35
+ "scripts": {
36
+ "start": "webpack --config webpack/webpack.config.dev.js",
37
+ "server": "webpack-dev-server --open --watch",
38
+ "build-types": "tsc --project tsconfig.json",
39
+ "build-prod": "npm run build-types && webpack --config webpack/webpack.config.prod.js",
40
+ "build-prod-debug": "webpack --config webpack/webpack.config.debug-size.js",
41
+ "format": "prettier --write .",
42
+ "test": "jest",
43
+ "type-check": "tsc --noEmit"
44
+ },
45
+ "dependencies": {
46
+ "d3-array": "^3.2.4",
47
+ "d3-axis": "^3.0.0",
48
+ "d3-ease": "^3.0.1",
49
+ "d3-fetch": "^3.0.1",
50
+ "d3-force": "^3.0.0",
51
+ "d3-format": "^3.1.0",
52
+ "d3-geo": "^3.1.1",
53
+ "d3-geo-projection": "^3.0.0",
54
+ "d3-interpolate": "^3.0.1",
55
+ "d3-scale": "^4.0.2",
56
+ "d3-scale-chromatic": "^3.1.0",
57
+ "d3-selection": "^3.0.0",
58
+ "d3-shape": "^3.2.0",
59
+ "d3-svg-annotation": "^2.5.1",
60
+ "d3-zoom": "^3.0.0",
61
+ "idb-keyval": "^6.2.2",
62
+ "jsonstat-toolkit": "^1.0.8",
63
+ "proj4": "^2.17.0",
64
+ "simple-statistics": "^7.8.8",
65
+ "topojson-client": "^3.1.0"
66
+ },
67
+ "overrides": {
68
+ "d3-color": "3.1.0"
69
+ },
70
+ "devDependencies": {
71
+ "@babel/core": "^7.22.6",
72
+ "@babel/plugin-transform-runtime": "^7.22.6",
73
+ "@babel/preset-env": "^7.22.6",
74
+ "@babel/runtime": "^7.12.1",
75
+ "babel-loader": "^9.1.2",
76
+ "css-loader": "^7.1.2",
77
+ "prettier": "^3.4.1",
78
+ "style-loader": "^4.0.0",
79
+ "ts-loader": "^9.5.4",
80
+ "typescript": "^5.9.3",
81
+ "webpack": "^5.88.1",
82
+ "webpack-bundle-analyzer": "^4.10.2",
83
+ "webpack-cli": "^5.0.0",
84
+ "webpack-dev-server": "^5.2.2",
85
+ "webpack-livereload-plugin": "^3.0.2"
86
+ }
87
+ }
@@ -15,7 +15,7 @@ import type { ValueByAlphaConfig } from './map-types/choropleth/ValueByAlphaConf
15
15
  import type { ValueByAlphaMap } from './map-types/choropleth/ValueByAlphaMap'
16
16
  import type { BivariateChoroplethConfig } from './map-types/choropleth/BivariateChoroplethConfig'
17
17
  import type { BivariateChoroplethMap } from './map-types/choropleth/BivariateChoroplethMap'
18
- import type { TrivariateChoroplethConfig } from './map-types/choropleth/TrivariateChoroplethConfig'
18
+ import type { TrivariateChoroplethConfig, TrivariateTernarySettings } from './map-types/choropleth/TrivariateChoroplethConfig'
19
19
  import type { TrivariateChoroplethMap } from './map-types/choropleth/TrivariateChoroplethMap'
20
20
 
21
21
  // Categorical map types
@@ -122,6 +122,7 @@ export type {
122
122
  BivariateChoroplethConfig,
123
123
  BivariateChoroplethMap,
124
124
  TrivariateChoroplethConfig,
125
+ TrivariateTernarySettings,
125
126
  TrivariateChoroplethMap,
126
127
  }
127
128
 
@@ -1,2 +1,2 @@
1
- /** Creates a bivariate choropleth legend */
2
- export function legend(config?: any): any
1
+ /** Creates a bivariate choropleth legend */
2
+ export function legend(config?: any): any
@@ -1,2 +1,2 @@
1
- /** Creates a trivariate choropleth legend */
2
- export function legend(config?: any): any
1
+ /** Creates a trivariate choropleth legend */
2
+ export function legend(config?: any): any
@@ -1,2 +1,2 @@
1
- /** Creates a choropleth legend */
2
- export function legend(config?: any): any
1
+ /** Creates a choropleth legend */
2
+ export function legend(config?: any): any
@@ -1,2 +1,2 @@
1
- /** Creates a bar chart legend */
2
- export function legend(config?: any): any
1
+ /** Creates a bar chart legend */
2
+ export function legend(config?: any): any
@@ -1,2 +1,2 @@
1
- /** Creates a flow map legend */
2
- export function legend(config?: any): any
1
+ /** Creates a flow map legend */
2
+ export function legend(config?: any): any
@@ -1,2 +1,2 @@
1
- /** Creates a categorical legend */
2
- export function legend(config?: any): any
1
+ /** Creates a categorical legend */
2
+ export function legend(config?: any): any
@@ -1,2 +1,2 @@
1
- /** Creates a continuous legend */
2
- export function legend(config?: any): any
1
+ /** Creates a continuous legend */
2
+ export function legend(config?: any): any
@@ -1,2 +1,2 @@
1
- /** Creates a discrete legend */
2
- export function legend(config?: any): any
1
+ /** Creates a discrete legend */
2
+ export function legend(config?: any): any
@@ -1,13 +1,13 @@
1
- import type { MapInstance } from '../core/MapInstance'
2
-
3
- /** Base legend configuration */
4
- export interface LegendConfig {
5
- title?: string
6
- titleFontSize?: number
7
- labelFontSize?: number
8
- labelDelimiter?: string
9
- noDataText?: string
10
- }
11
-
12
- /** Creates a legend instance */
13
- export function legend(config?: LegendConfig): any
1
+ import type { MapInstance } from '../core/MapInstance'
2
+
3
+ /** Base legend configuration */
4
+ export interface LegendConfig {
5
+ title?: string
6
+ titleFontSize?: number
7
+ labelFontSize?: number
8
+ labelDelimiter?: string
9
+ noDataText?: string
10
+ }
11
+
12
+ /** Creates a legend instance */
13
+ export function legend(config?: LegendConfig): any
@@ -1,2 +1,2 @@
1
- /** Creates a proportional symbols legend */
2
- export function legend(config?: any): any
1
+ /** Creates a proportional symbols legend */
2
+ export function legend(config?: any): any
@@ -1,11 +1,11 @@
1
- import type { MapConfig } from '../core/MapConfig'
2
-
3
- /**
4
- * Configuration for categorical map
5
- */
6
- export interface CategoricalMapConfig extends MapConfig {
7
- /** Category-to-color mapping */
8
- classToFillStyle?: Record<string, string>
9
- /** Fill style for regions with no data */
10
- noDataFillStyle?: string
11
- }
1
+ import type { MapConfig } from '../core/MapConfig'
2
+
3
+ /**
4
+ * Configuration for categorical map
5
+ */
6
+ export interface CategoricalMapConfig extends MapConfig {
7
+ /** Category-to-color mapping */
8
+ classToFillStyle?: Record<string, string>
9
+ /** Fill style for regions with no data */
10
+ noDataFillStyle?: string
11
+ }
@@ -1,6 +1,30 @@
1
1
  import type { MapConfig } from '../../core/MapConfig'
2
2
  import type { TrivariateLegendConfig } from '../../legend/choropleth/TrivariateLegendConfig'
3
3
 
4
+ /**
5
+ * Ternary color settings for trivariate choropleth maps.
6
+ */
7
+ export interface TrivariateTernarySettings {
8
+ /** Use sextant color mapping instead of continuous tricolore. */
9
+ sextant?: boolean
10
+ /** Array of 6 colors used when sextant mode is enabled. */
11
+ sextantColors?: [string, string, string, string, string, string]
12
+ /** Hue. */
13
+ hue?: number
14
+ /** Chroma. */
15
+ chroma?: number
16
+ /** Lightness. */
17
+ lightness?: number
18
+ /** Contrast. */
19
+ contrast?: number
20
+ /** Spread. */
21
+ spread?: number
22
+ /** Breaks. */
23
+ breaks?: number
24
+ /** Mean centering. */
25
+ meanCentering?: boolean
26
+ }
27
+
4
28
  /**
5
29
  * Configuration for trivariate choropleth maps.
6
30
  */
@@ -13,20 +37,5 @@ export interface TrivariateChoroplethConfig extends MapConfig {
13
37
  /** No data fill style. */
14
38
  noDataFillStyle?: string
15
39
  /** Ternary settings. */
16
- ternarySettings?: {
17
- /** Hue. */
18
- hue?: number
19
- /** Chroma. */
20
- chroma?: number
21
- /** Lightness. */
22
- lightness?: number
23
- /** Contrast. */
24
- contrast?: number
25
- /** Spread. */
26
- spread?: number
27
- /** Breaks. */
28
- breaks?: number
29
- /** Mean centering. */
30
- meanCentering?: boolean
31
- }
40
+ ternarySettings?: TrivariateTernarySettings
32
41
  }
@@ -1,4 +1,7 @@
1
1
  import type { MapInstance } from '../../core/MapInstance'
2
+ import type { TrivariateChoroplethConfig, TrivariateTernarySettings } from './TrivariateChoroplethConfig'
3
+
4
+ type TernarySettings = TrivariateTernarySettings
2
5
 
3
6
  /**
4
7
  * Trivariate choropleth map type.
@@ -10,6 +13,6 @@ export interface TrivariateChoroplethMap extends MapInstance {
10
13
  noDataFillStyle(): string
11
14
  noDataFillStyle(v: string): this
12
15
 
13
- ternarySettings(): any
14
- ternarySettings(v: any): this
16
+ ternarySettings(): TernarySettings
17
+ ternarySettings(v: Partial<TernarySettings>): this
15
18
  }
@@ -1,4 +1,4 @@
1
- import type { MapInstance } from '../../core/MapInstance'
2
-
3
- /** Creates a bivariate choropleth map instance */
4
- export function map(config?: any): MapInstance
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /** Creates a bivariate choropleth map instance */
4
+ export function map(config?: any): MapInstance
@@ -1,4 +1,4 @@
1
- import type { MapInstance } from '../../core/MapInstance'
2
-
3
- /** Creates a trivariate choropleth map instance */
4
- export function map(config?: any): MapInstance
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /** Creates a trivariate choropleth map instance */
4
+ export function map(config?: any): MapInstance
@@ -1,4 +1,4 @@
1
- import type { MapInstance } from '../../core/MapInstance'
2
-
3
- /** Creates a value-by-alpha map instance */
4
- export function map(config?: any): MapInstance
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /** Creates a value-by-alpha map instance */
4
+ export function map(config?: any): MapInstance
@@ -1,5 +1,5 @@
1
- import type { MapInstance } from '../../core/MapInstance'
2
- import type { CompositionMapConfig } from './composition-map'
3
-
4
- /** Creates a sparkline map instance */
5
- export function map(config?: CompositionMapConfig): MapInstance
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionMapConfig } from './composition-map'
3
+
4
+ /** Creates a sparkline map instance */
5
+ export function map(config?: CompositionMapConfig): MapInstance
@@ -1,5 +1,5 @@
1
- import type { MapInstance } from '../../core/MapInstance'
2
- import type { CompositionMapConfig } from './composition-map'
3
-
4
- /** Creates a stripe composition map instance */
5
- export function map(config?: CompositionMapConfig): MapInstance
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionMapConfig } from './composition-map'
3
+
4
+ /** Creates a stripe composition map instance */
5
+ export function map(config?: CompositionMapConfig): MapInstance
@@ -28,6 +28,8 @@ export interface PieMap extends MapInstance {
28
28
 
29
29
  compositionSettings(): {
30
30
  type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
31
+ /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
32
+ radarValueMode?: 'share' | 'absolute'
31
33
  minSize?: number
32
34
  maxSize?: number
33
35
  strokeFill?: string
@@ -43,6 +45,8 @@ export interface PieMap extends MapInstance {
43
45
  }
44
46
  compositionSettings(v: {
45
47
  type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
48
+ /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
49
+ radarValueMode?: 'share' | 'absolute'
46
50
  minSize?: number
47
51
  maxSize?: number
48
52
  strokeFill?: string
@@ -12,6 +12,8 @@ export interface PieMapConfig extends MapConfig {
12
12
  /** Consolidated composition symbol settings. */
13
13
  compositionSettings?: {
14
14
  type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
15
+ /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
16
+ radarValueMode?: 'share' | 'absolute'
15
17
  minSize?: number
16
18
  maxSize?: number
17
19
  strokeFill?: string
@@ -21,34 +21,79 @@ export interface WaffleMap extends MapInstance {
21
21
  noDataFillStyle(): string
22
22
  noDataFillStyle(v: string): this
23
23
 
24
+ waffleSettings(): {
25
+ minSize?: number
26
+ maxSize?: number
27
+ gridSize?: number
28
+ cellPadding?: number
29
+ strokeFill?: string
30
+ strokeWidth?: number
31
+ roundedCorners?: number
32
+ tooltipSize?: number
33
+ otherColor?: string
34
+ otherText?: string
35
+ }
36
+ waffleSettings(v: {
37
+ minSize?: number
38
+ maxSize?: number
39
+ gridSize?: number
40
+ cellPadding?: number
41
+ strokeFill?: string
42
+ strokeWidth?: number
43
+ roundedCorners?: number
44
+ tooltipSize?: number
45
+ otherColor?: string
46
+ otherText?: string
47
+ }): this
48
+
49
+ /** @deprecated Use waffleSettings({ maxSize }) */
24
50
  waffleMaxSize(): number
51
+ /** @deprecated Use waffleSettings({ maxSize }) */
25
52
  waffleMaxSize(v: number): this
26
53
 
54
+ /** @deprecated Use waffleSettings({ minSize }) */
27
55
  waffleMinSize(): number
56
+ /** @deprecated Use waffleSettings({ minSize }) */
28
57
  waffleMinSize(v: number): this
29
58
 
59
+ /** @deprecated Use waffleSettings({ gridSize }) */
30
60
  waffleGridSize(): number
61
+ /** @deprecated Use waffleSettings({ gridSize }) */
31
62
  waffleGridSize(v: number): this
32
63
 
64
+ /** @deprecated Use waffleSettings({ cellPadding }) */
33
65
  waffleCellPadding(): number
66
+ /** @deprecated Use waffleSettings({ cellPadding }) */
34
67
  waffleCellPadding(v: number): this
35
68
 
69
+ /** @deprecated Use waffleSettings({ otherColor }) */
36
70
  waffleOtherColor(): string
71
+ /** @deprecated Use waffleSettings({ otherColor }) */
37
72
  waffleOtherColor(v: string): this
38
73
 
74
+ /** @deprecated Use waffleSettings({ otherText }) */
39
75
  waffleOtherText(): string
76
+ /** @deprecated Use waffleSettings({ otherText }) */
40
77
  waffleOtherText(v: string): this
41
78
 
79
+ /** @deprecated Use waffleSettings({ strokeFill }) */
42
80
  waffleStrokeFill(): string
81
+ /** @deprecated Use waffleSettings({ strokeFill }) */
43
82
  waffleStrokeFill(v: string): this
44
83
 
84
+ /** @deprecated Use waffleSettings({ strokeWidth }) */
45
85
  waffleStrokeWidth(): number
86
+ /** @deprecated Use waffleSettings({ strokeWidth }) */
46
87
  waffleStrokeWidth(v: number): this
47
88
 
89
+ /** @deprecated Use waffleSettings({ roundedCorners }) */
48
90
  waffleRoundedCorners(): number
91
+ /** @deprecated Use waffleSettings({ roundedCorners }) */
49
92
  waffleRoundedCorners(v: number): this
50
93
 
94
+ /** @deprecated Use waffleSettings({ tooltipSize }) */
51
95
  waffleTooltipSize(): number
96
+ /** @deprecated Use waffleSettings({ tooltipSize }) */
52
97
  waffleTooltipSize(v: number): this
53
98
 
54
99
  dorling(): boolean
@@ -5,29 +5,43 @@ import type { WaffleLegendConfig } from '../../../legend/composition/WaffleLegen
5
5
  * Configuration for waffle chart composition maps.
6
6
  */
7
7
  export interface WaffleMapConfig extends MapConfig {
8
- /** Waffle min size. */
8
+ /** Consolidated waffle chart settings. */
9
+ waffleSettings?: {
10
+ minSize?: number
11
+ maxSize?: number
12
+ gridSize?: number
13
+ cellPadding?: number
14
+ strokeFill?: string
15
+ strokeWidth?: number
16
+ roundedCorners?: number
17
+ tooltipSize?: number
18
+ otherColor?: string
19
+ otherText?: string
20
+ }
21
+
22
+ /** @deprecated Use waffleSettings.minSize */
9
23
  waffleMinSize?: number
10
- /** Waffle max size. */
24
+ /** @deprecated Use waffleSettings.maxSize */
11
25
  waffleMaxSize?: number
12
- /** Waffle grid size. */
26
+ /** @deprecated Use waffleSettings.gridSize */
13
27
  waffleGridSize?: number
14
- /** Waffle cell padding. */
28
+ /** @deprecated Use waffleSettings.cellPadding */
15
29
  waffleCellPadding?: number
16
- /** Waffle stroke fill. */
30
+ /** @deprecated Use waffleSettings.strokeFill */
17
31
  waffleStrokeFill?: string
18
- /** Waffle stroke width. */
32
+ /** @deprecated Use waffleSettings.strokeWidth */
19
33
  waffleStrokeWidth?: number
20
- /** Waffle rounded corners. */
34
+ /** @deprecated Use waffleSettings.roundedCorners */
21
35
  waffleRoundedCorners?: number
22
- /** Waffle tooltip size. */
36
+ /** @deprecated Use waffleSettings.tooltipSize */
23
37
  waffleTooltipSize?: number
24
38
  /** Cat colors. */
25
39
  catColors?: Record<string, string>
26
40
  /** Cat labels. */
27
41
  catLabels?: Record<string, string>
28
- /** Waffle other color. */
42
+ /** @deprecated Use waffleSettings.otherColor */
29
43
  waffleOtherColor?: string
30
- /** Waffle other text. */
44
+ /** @deprecated Use waffleSettings.otherText */
31
45
  waffleOtherText?: string
32
46
  /** Show only when complete. */
33
47
  showOnlyWhenComplete?: boolean
@@ -1,5 +1,5 @@
1
- import type { MapInstance } from '../../core/MapInstance'
2
- import type { FlowMapConfig } from './FlowMapConfig'
3
-
4
- /** Creates a flow map instance */
5
- export function map(config?: FlowMapConfig): MapInstance
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { FlowMapConfig } from './FlowMapConfig'
3
+
4
+ /** Creates a flow map instance */
5
+ export function map(config?: FlowMapConfig): MapInstance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.4.4",
3
+ "version": "4.4.5",
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",
@@ -38,8 +38,10 @@
38
38
  "build-prod-debug": "webpack --config webpack/webpack.config.debug-size.js",
39
39
  "format": "prettier --write .",
40
40
  "copy-types": "copyfiles -u 2 \"src/types/**/*.d.ts\" build/types",
41
- "check:types:legend-config-sync": "node test/scripts/check-legend-config-sync.js",
41
+ "check:types:legend-config-sync": "node scripts/check-legend-config-sync.js",
42
42
  "type-check": "npm run check:types:legend-config-sync && tsc --noEmit && tsc --noEmit test/typescript-test.ts",
43
+ "update-all": "npm run update-types && npm run update-docs && npm run update-examples",
44
+ "update-types": "node scripts/update-types.js",
43
45
  "update-docs": "typedoc --options typedoc.json",
44
46
  "update-examples": "npm run update-examples-manifest && npm run generate-previews",
45
47
  "update-examples-manifest": "node examples/scripts/update-examples-manifest.js",