eurostat-map 4.4.0 → 4.4.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.
Files changed (48) hide show
  1. package/README.md +113 -49
  2. package/build/215.eurostatmap.min.js +1 -1
  3. package/build/215.eurostatmap.min.js.map +1 -1
  4. package/build/eurostatmap.js +5655 -3279
  5. package/build/eurostatmap.min.js +2 -2
  6. package/build/eurostatmap.min.js.map +1 -1
  7. package/build/types/core/DorlingSettings.d.ts +29 -0
  8. package/build/types/core/GridCartogramSettings.d.ts +30 -0
  9. package/build/types/core/InsetConfig.d.ts +9 -1
  10. package/build/types/core/MapConfig.d.ts +50 -40
  11. package/build/types/core/MapInstance.d.ts +27 -32
  12. package/build/types/core/TooltipConfig.d.ts +3 -0
  13. package/build/types/core/decoration/CoastalMarginSettings.d.ts +21 -0
  14. package/build/types/core/geo/geometries.d.ts +15 -0
  15. package/build/types/core/geo/kosovo.d.ts +2 -0
  16. package/build/types/core/stat/StatData.d.ts +6 -0
  17. package/build/types/core/utils.d.ts +4 -0
  18. package/build/types/index.d.ts +26 -10
  19. package/build/types/legend/LegendConfig.d.ts +20 -12
  20. package/build/types/legend/SparklineLegendConfig.d.ts +6 -68
  21. package/build/types/legend/composition/CoxcombLegendConfig.d.ts +85 -0
  22. package/build/types/legend/composition/PieChartLegendConfig.d.ts +68 -0
  23. package/build/types/legend/composition/SparklineLegendConfig.d.ts +94 -0
  24. package/build/types/legend/composition/StripeCompositionLegendConfig.d.ts +11 -0
  25. package/build/types/legend/composition/WaffleLegendConfig.d.ts +74 -0
  26. package/build/types/map-types/choropleth/BivariateChoroplethConfig.d.ts +8 -0
  27. package/build/types/map-types/choropleth/ChoroplethConfig.d.ts +11 -5
  28. package/build/types/map-types/choropleth/TrivariateChoroplethConfig.d.ts +10 -0
  29. package/build/types/map-types/composition/CompositionStatConfig.d.ts +14 -1
  30. package/build/types/map-types/composition/bar/BarMap.d.ts +4 -3
  31. package/build/types/map-types/composition/bar/BarMapConfig.d.ts +25 -1
  32. package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +4 -0
  33. package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +14 -0
  34. package/build/types/map-types/composition/coxcomb/CoxcombStatConfig.d.ts +4 -2
  35. package/build/types/map-types/composition/pie/PieMap.d.ts +10 -3
  36. package/build/types/map-types/composition/pie/PieMapConfig.d.ts +19 -1
  37. package/build/types/map-types/composition/stripe/StripeMap.d.ts +9 -0
  38. package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +12 -0
  39. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +10 -3
  40. package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +20 -1
  41. package/build/types/map-types/flow/FlowMapConfig.d.ts +55 -0
  42. package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +4 -11
  43. package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +0 -9
  44. package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +5 -0
  45. package/build/types/map-types/spark/SparkMap.d.ts +6 -2
  46. package/build/types/map-types/spark/SparkMapConfig.d.ts +17 -0
  47. package/build/types/map-types/spark/SparkStatConfig.d.ts +6 -0
  48. package/package.json +6 -2
@@ -1,10 +1,14 @@
1
1
  import type { MapInstance } from '../../../core/MapInstance'
2
2
  import type { CompositionStatConfig } from '../CompositionStatConfig'
3
+ import type { PieChartLegendConfig } from '../../../legend/composition/PieChartLegendConfig'
3
4
 
4
5
  /**
5
6
  * Pie map type.
6
7
  */
7
8
  export interface PieMap extends MapInstance {
9
+ legend(): PieChartLegendConfig
10
+ legend(config: PieChartLegendConfig | false): this
11
+
8
12
  catColors(): any
9
13
  catColors(v: any): this
10
14
 
@@ -41,9 +45,6 @@ export interface PieMap extends MapInstance {
41
45
  dorling(): boolean
42
46
  dorling(v: boolean): this
43
47
 
44
- animateDorling(): boolean
45
- animateDorling(v: boolean): this
46
-
47
48
  pieTotalCode(): string | undefined
48
49
  pieTotalCode(v: string | undefined): this
49
50
 
@@ -52,11 +53,17 @@ export interface PieMap extends MapInstance {
52
53
 
53
54
  statPie(config: CompositionStatConfig): this
54
55
  statPie(
56
+ /** Config. */
55
57
  config: CompositionStatConfig,
58
+ /** Category parameter. */
56
59
  categoryParameter?: string,
60
+ /** Category codes. */
57
61
  categoryCodes?: string[],
62
+ /** Category labels. */
58
63
  categoryLabels?: string[],
64
+ /** Category colors. */
59
65
  categoryColors?: string[],
66
+ /** Total code. */
60
67
  totalCode?: string
61
68
  ): this
62
69
  }
@@ -1,24 +1,42 @@
1
1
  import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { PieChartLegendConfig } from '../../../legend/composition/PieChartLegendConfig'
2
3
 
3
4
  /**
4
5
  * Configuration for pie chart composition maps.
5
6
  */
6
7
  export interface PieMapConfig extends MapConfig {
8
+ /** Pie min radius. */
7
9
  pieMinRadius?: number
10
+ /** Pie max radius. */
8
11
  pieMaxRadius?: number
12
+ /** Pie chart inner radius. */
9
13
  pieChartInnerRadius?: number
14
+ /** Pie stroke fill. */
10
15
  pieStrokeFill?: string
16
+ /** Pie stroke width. */
11
17
  pieStrokeWidth?: number
18
+ /** Tooltip pie radius. */
12
19
  tooltipPieRadius?: number
20
+ /** Tooltip pie inner radius. */
13
21
  tooltipPieInnerRadius?: number
22
+ /** Cat colors. */
14
23
  catColors?: Record<string, string>
24
+ /** Cat labels. */
15
25
  catLabels?: Record<string, string>
26
+ /** Pie other color. */
16
27
  pieOtherColor?: string
28
+ /** Pie other text. */
17
29
  pieOtherText?: string
30
+ /** Show only when complete. */
18
31
  showOnlyWhenComplete?: boolean
32
+ /** No data fill style. */
19
33
  noDataFillStyle?: string
34
+ /** Dorling. */
20
35
  dorling?: boolean
21
- animateDorling?: boolean
36
+ /** Pie total code. */
22
37
  pieTotalCode?: string
38
+ /** Stat codes. */
23
39
  statCodes?: string[]
40
+ /** Legend. */
41
+ legend?: PieChartLegendConfig | false
24
42
  }
@@ -1,10 +1,14 @@
1
1
  import type { MapInstance } from '../../../core/MapInstance'
2
2
  import type { CompositionStatConfig } from '../CompositionStatConfig'
3
+ import type { StripeCompositionLegendConfig } from '../../../legend/composition/StripeCompositionLegendConfig'
3
4
 
4
5
  /**
5
6
  * Stripe map type.
6
7
  */
7
8
  export interface StripeMap extends MapInstance {
9
+ legend(): StripeCompositionLegendConfig
10
+ legend(config: StripeCompositionLegendConfig | false): this
11
+
8
12
  stripeWidth(): number
9
13
  stripeWidth(v: number): this
10
14
 
@@ -34,10 +38,15 @@ export interface StripeMap extends MapInstance {
34
38
 
35
39
  statComp(config: CompositionStatConfig): this
36
40
  statComp(
41
+ /** Config. */
37
42
  config: CompositionStatConfig,
43
+ /** Category parameter. */
38
44
  categoryParameter?: string,
45
+ /** Category codes. */
39
46
  categoryCodes?: string[],
47
+ /** Category labels. */
40
48
  categoryLabels?: string[],
49
+ /** Category colors. */
41
50
  categoryColors?: string[]
42
51
  ): this
43
52
  }
@@ -1,16 +1,28 @@
1
1
  import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { StripeCompositionLegendConfig } from '../../../legend/composition/StripeCompositionLegendConfig'
2
3
 
3
4
  /**
4
5
  * Configuration for stripe composition maps.
5
6
  */
6
7
  export interface StripeMapConfig extends MapConfig {
8
+ /** Stripe width. */
7
9
  stripeWidth?: number
10
+ /** Stripe orientation. */
8
11
  stripeOrientation?: number
12
+ /** Cat colors. */
9
13
  catColors?: Record<string, string>
14
+ /** Cat labels. */
10
15
  catLabels?: Record<string, string>
16
+ /** Show only when complete. */
11
17
  showOnlyWhenComplete?: boolean
18
+ /** No data fill style. */
12
19
  noDataFillStyle?: string
20
+ /** Pie chart radius. */
13
21
  pieChartRadius?: number
22
+ /** Pie chart inner radius. */
14
23
  pieChartInnerRadius?: number
24
+ /** Stat codes. */
15
25
  statCodes?: string[]
26
+ /** Legend. */
27
+ legend?: StripeCompositionLegendConfig | false
16
28
  }
@@ -1,10 +1,14 @@
1
1
  import type { MapInstance } from '../../../core/MapInstance'
2
2
  import type { CompositionStatConfig } from '../CompositionStatConfig'
3
+ import type { WaffleLegendConfig } from '../../../legend/composition/WaffleLegendConfig'
3
4
 
4
5
  /**
5
6
  * Waffle map type.
6
7
  */
7
8
  export interface WaffleMap extends MapInstance {
9
+ legend(): WaffleLegendConfig
10
+ legend(config: WaffleLegendConfig | false): this
11
+
8
12
  catColors(): any
9
13
  catColors(v: any): this
10
14
 
@@ -50,9 +54,6 @@ export interface WaffleMap extends MapInstance {
50
54
  dorling(): boolean
51
55
  dorling(v: boolean): this
52
56
 
53
- animateDorling(): boolean
54
- animateDorling(v: boolean): this
55
-
56
57
  waffleTotalCode(): string | undefined
57
58
  waffleTotalCode(v: string | undefined): this
58
59
 
@@ -61,11 +62,17 @@ export interface WaffleMap extends MapInstance {
61
62
 
62
63
  statWaffle(config: CompositionStatConfig): this
63
64
  statWaffle(
65
+ /** Config. */
64
66
  config: CompositionStatConfig,
67
+ /** Category parameter. */
65
68
  categoryParameter?: string,
69
+ /** Category codes. */
66
70
  categoryCodes?: string[],
71
+ /** Category labels. */
67
72
  categoryLabels?: string[],
73
+ /** Category colors. */
68
74
  categoryColors?: string[],
75
+ /** Total code. */
69
76
  totalCode?: string
70
77
  ): this
71
78
  }
@@ -1,25 +1,44 @@
1
1
  import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { WaffleLegendConfig } from '../../../legend/composition/WaffleLegendConfig'
2
3
 
3
4
  /**
4
5
  * Configuration for waffle chart composition maps.
5
6
  */
6
7
  export interface WaffleMapConfig extends MapConfig {
8
+ /** Waffle min size. */
7
9
  waffleMinSize?: number
10
+ /** Waffle max size. */
8
11
  waffleMaxSize?: number
12
+ /** Waffle grid size. */
9
13
  waffleGridSize?: number
14
+ /** Waffle cell padding. */
10
15
  waffleCellPadding?: number
16
+ /** Waffle stroke fill. */
11
17
  waffleStrokeFill?: string
18
+ /** Waffle stroke width. */
12
19
  waffleStrokeWidth?: number
20
+ /** Waffle rounded corners. */
13
21
  waffleRoundedCorners?: number
22
+ /** Waffle tooltip size. */
14
23
  waffleTooltipSize?: number
24
+ /** Cat colors. */
15
25
  catColors?: Record<string, string>
26
+ /** Cat labels. */
16
27
  catLabels?: Record<string, string>
28
+ /** Waffle other color. */
17
29
  waffleOtherColor?: string
30
+ /** Waffle other text. */
18
31
  waffleOtherText?: string
32
+ /** Show only when complete. */
19
33
  showOnlyWhenComplete?: boolean
34
+ /** No data fill style. */
20
35
  noDataFillStyle?: string
36
+ /** Dorling. */
21
37
  dorling?: boolean
22
- animateDorling?: boolean
38
+ /** Waffle total code. */
23
39
  waffleTotalCode?: string
40
+ /** Stat codes. */
24
41
  statCodes?: string[]
42
+ /** Legend. */
43
+ legend?: WaffleLegendConfig | false
25
44
  }
@@ -4,10 +4,15 @@ import type { MapConfig } from '../../core/MapConfig'
4
4
  * A flow node in the flow graph.
5
5
  */
6
6
  export interface FlowNode {
7
+ /** Id. */
7
8
  id: string
9
+ /** Name. */
8
10
  name?: string
11
+ /** X. */
9
12
  x?: number
13
+ /** Y. */
10
14
  y?: number
15
+ /** Value. */
11
16
  value?: number
12
17
  [key: string]: any
13
18
  }
@@ -16,10 +21,15 @@ export interface FlowNode {
16
21
  * A flow link between two nodes.
17
22
  */
18
23
  export interface FlowLink {
24
+ /** Source. */
19
25
  source: string | FlowNode
26
+ /** Target. */
20
27
  target: string | FlowNode
28
+ /** Value. */
21
29
  value: number
30
+ /** Origin id. */
22
31
  originId?: string
32
+ /** Dest id. */
23
33
  destId?: string
24
34
  [key: string]: any
25
35
  }
@@ -28,7 +38,9 @@ export interface FlowLink {
28
38
  * Graph input used by flow maps.
29
39
  */
30
40
  export interface FlowGraph {
41
+ /** Nodes. */
31
42
  nodes: FlowNode[]
43
+ /** Links. */
32
44
  links: FlowLink[]
33
45
  }
34
46
 
@@ -36,10 +48,15 @@ export interface FlowGraph {
36
48
  * Curvature settings used for curved/sankey flow rendering.
37
49
  */
38
50
  export interface FlowCurvatureSettings {
51
+ /** Gap x. */
39
52
  gapX?: number
53
+ /** Pad x. */
40
54
  padX?: number
55
+ /** Pad y. */
41
56
  padY?: number
57
+ /** Bump y. */
42
58
  bumpY?: number
59
+ /** Curvature. */
43
60
  curvature?: number
44
61
  }
45
62
 
@@ -47,10 +64,15 @@ export interface FlowCurvatureSettings {
47
64
  * Width gradient settings for tapered flows.
48
65
  */
49
66
  export interface FlowWidthGradientSettings {
67
+ /** Start ratio. */
50
68
  startRatio?: number
69
+ /** Samples. */
51
70
  samples?: number
71
+ /** Min start width. */
52
72
  minStartWidth?: number
73
+ /** Cap end. */
53
74
  capEnd?: boolean
75
+ /** Curvature follow. */
54
76
  curvatureFollow?: boolean
55
77
  }
56
78
 
@@ -58,10 +80,15 @@ export interface FlowWidthGradientSettings {
58
80
  * Force settings for optional edge bundling.
59
81
  */
60
82
  export interface FlowBundleSettings {
83
+ /** Alpha decay. */
61
84
  alphaDecay?: number
85
+ /** Charge strength. */
62
86
  chargeStrength?: number
87
+ /** Distance max. */
63
88
  distanceMax?: number | null
89
+ /** Link strength. */
64
90
  linkStrength?: number
91
+ /** Link iterations. */
65
92
  linkIterations?: number
66
93
  }
67
94
 
@@ -69,35 +96,63 @@ export interface FlowBundleSettings {
69
96
  * Configuration for flow maps.
70
97
  */
71
98
  export interface FlowMapConfig extends MapConfig {
99
+ /** Flow graph. */
72
100
  flowGraph?: FlowGraph
73
101
 
102
+ /** Flow color. */
74
103
  flowColor?: string
104
+ /** Flow region colors. */
75
105
  flowRegionColors?: string[]
106
+ /** Flow region labels. */
76
107
  flowRegionLabels?: string[]
108
+ /** Flow arrows. */
77
109
  flowArrows?: boolean
110
+ /** Flow arrow scale. */
78
111
  flowArrowScale?: number
112
+ /** Flow max width. */
79
113
  flowMaxWidth?: number
114
+ /** Flow min width. */
80
115
  flowMinWidth?: number
116
+ /** Flow outlines. */
81
117
  flowOutlines?: boolean
118
+ /** Flow outline width. */
82
119
  flowOutlineWidth?: number
120
+ /** Flow outline color. */
83
121
  flowOutlineColor?: string
122
+ /** Flow color gradient. */
84
123
  flowColorGradient?: boolean
124
+ /** Flow stack. */
85
125
  flowStack?: boolean
126
+ /** Flow nodes. */
86
127
  flowNodes?: boolean
128
+ /** Flow node type. */
87
129
  flowNodeType?: 'circle' | 'donut'
130
+ /** Flow label offsets. */
88
131
  flowLabelOffsets?: { x?: number; y?: number }
132
+ /** Flow line type. */
89
133
  flowLineType?: 'curved' | 'straight' | 'sankey'
90
134
  flowNodeSizeScale?: (value: number) => number
135
+ /** Flow opacity. */
91
136
  flowOpacity?: number
137
+ /** Flow internal. */
92
138
  flowInternal?: boolean
139
+ /** Flow top locations. */
93
140
  flowTopLocations?: number
141
+ /** Flow top locations type. */
94
142
  flowTopLocationsType?: 'sum' | 'origin' | 'destination'
143
+ /** Flow curvature settings. */
95
144
  flowCurvatureSettings?: FlowCurvatureSettings
96
145
  flowOrder?: (a: any, b: any) => number
146
+ /** Flow width gradient. */
97
147
  flowWidthGradient?: boolean
148
+ /** Flow opacity gradient. */
98
149
  flowOpacityGradient?: boolean
150
+ /** Flow width gradient settings. */
99
151
  flowWidthGradientSettings?: FlowWidthGradientSettings
152
+ /** Flow bidirectional. */
100
153
  flowBidirectional?: boolean
154
+ /** Flow edge bundling. */
101
155
  flowEdgeBundling?: boolean
156
+ /** Flow bundle settings. */
102
157
  flowBundleSettings?: FlowBundleSettings
103
158
  }
@@ -4,21 +4,14 @@ import type { MapConfig } from '../../core/MapConfig'
4
4
  * Configuration for proportional symbol maps
5
5
  */
6
6
  export interface ProportionalSymbolConfig extends MapConfig {
7
+ /** Symbol shape used for markers. */
7
8
  symbol?: 'circle' | 'square'
9
+ /** Base symbol size factor. */
8
10
  size?: number
9
- sizeMin?: number
10
- sizeMax?: number
11
- symbolFillStyle?: string
12
- symbolStrokeStyle?: string
13
- symbolStrokeWidth?: number
14
11
 
15
- // Dorling cartogram
12
+ /** Dorling cartogram. */
16
13
  dorling?: boolean
17
- dorlingIterations?: number
18
14
 
19
- // Size function
15
+ /** Size function. */
20
16
  psCustomSize?: (value: number) => number
21
-
22
- // Scaling
23
- psScale?: 'sqrt' | 'linear' | 'radial'
24
17
  }
@@ -79,15 +79,6 @@ export interface ProportionalSymbolMap extends MapInstance {
79
79
  dorling(): boolean
80
80
  dorling(v: boolean): this
81
81
 
82
- dorlingStrength(): any
83
- dorlingStrength(v: any): this
84
-
85
- dorlingIterations(): number
86
- dorlingIterations(v: number): this
87
-
88
- animateDorling(): boolean
89
- animateDorling(v: boolean): this
90
-
91
82
  psSpikeWidth(): number
92
83
  psSpikeWidth(v: number): this
93
84
 
@@ -4,10 +4,15 @@ import type { MapConfig } from '../../../core/MapConfig'
4
4
  * Configuration for mushroom maps.
5
5
  */
6
6
  export interface MushroomMapConfig extends MapConfig {
7
+ /** Mushroom codes. */
7
8
  mushroomCodes?: [string, string]
9
+ /** Mushroom min size. */
8
10
  mushroomMinSize?: number
11
+ /** Mushroom max size. */
9
12
  mushroomMaxSize?: number
13
+ /** Mushroom colors. */
10
14
  mushroomColors?: [string, string]
15
+ /** Mushroom orientation. */
11
16
  mushroomOrientation?: 'horizontal' | 'vertical'
12
17
  mushroomSizeScaleFunction?: (value: number) => number
13
18
  mushroomSizeScaleFunctionV1?: (value: number) => number
@@ -1,10 +1,14 @@
1
1
  import type { MapInstance } from '../../core/MapInstance'
2
2
  import type { SparkStatConfig } from './SparkStatConfig'
3
+ import type { SparklineLegendConfig } from '../../legend/composition/SparklineLegendConfig'
3
4
 
4
5
  /**
5
6
  * Spark map type.
6
7
  */
7
8
  export interface SparkMap extends MapInstance {
9
+ legend(): SparklineLegendConfig
10
+ legend(config: SparklineLegendConfig | false): this
11
+
8
12
  sparkLineColor(): any
9
13
  sparkLineColor(v: any): this
10
14
 
@@ -41,8 +45,8 @@ export interface SparkMap extends MapInstance {
41
45
  sparkLineOffsets(): { x: number; y: number }
42
46
  sparkLineOffsets(v: { x: number; y: number }): this
43
47
 
44
- //manually set the data for the sparkline, instead of fetching it from Eurostat
48
+ /** Manually set sparkline data instead of fetching it from Eurostat. */
45
49
  sparklineData(dataObject: Record<string, Record<string, number>>): this
46
- //configuration for fetching the data from Eurostat and generating the sparkline
50
+ /** Configure fetching data from Eurostat and generating spark lines. */
47
51
  statSpark(config: SparkStatConfig): this
48
52
  }
@@ -1,25 +1,42 @@
1
1
  import type { MapConfig } from '../../core/MapConfig'
2
+ import type { SparklineLegendConfig } from '../../legend/composition/SparklineLegendConfig'
2
3
 
3
4
  /**
4
5
  * Configuration for sparkline maps.
5
6
  */
6
7
  export interface SparkMapConfig extends MapConfig {
8
+ /** Spark type. */
7
9
  sparkType?: 'line' | 'area' | 'bar'
8
10
  sparkLineColor?: string | ((value: number, index: number, data: any[]) => string)
9
11
  sparkAreaColor?: string | ((value: number, index: number, data: any[]) => string)
12
+ /** Spark line width. */
10
13
  sparkLineWidth?: number
14
+ /** Spark line height. */
11
15
  sparkLineHeight?: number
16
+ /** Spark line stroke width. */
12
17
  sparkLineStrokeWidth?: number
18
+ /** Spark line opacity. */
13
19
  sparkLineOpacity?: number
20
+ /** Spark line circle radius. */
14
21
  sparkLineCircleRadius?: number
22
+ /** Spark tooltip chart. */
15
23
  sparkTooltipChart?: {
24
+ /** Width. */
16
25
  width: number
26
+ /** Height. */
17
27
  height: number
28
+ /** Margin. */
18
29
  margin: { left: number; right: number; top: number; bottom: number }
30
+ /** Circle radius. */
19
31
  circleRadius: number
20
32
  }
33
+ /** Spark line offsets. */
21
34
  sparkLineOffsets?: { x: number; y: number }
35
+ /** Show only when complete. */
22
36
  showOnlyWhenComplete?: boolean
23
37
  sparkLineChartFunction?: (node: any, data: any[], width: number, height: number, isForTooltip?: boolean) => void
38
+ /** Spark yscale. */
24
39
  sparkYScale?: any
40
+ /** Legend. */
41
+ legend?: SparklineLegendConfig | false
25
42
  }
@@ -2,9 +2,15 @@
2
2
  * Statistical configuration for sparkline maps.
3
3
  */
4
4
  export interface SparkStatConfig {
5
+ /** Eurostat dataset code. */
5
6
  eurostatDatasetCode: string
7
+ /** Filters. */
6
8
  filters?: Record<string, any>
9
+ /** Unit text. */
7
10
  unitText?: string
11
+ transform?: (value: number) => number
12
+ /** Dates. */
8
13
  dates: string[]
14
+ /** Labels. */
9
15
  labels?: string[]
10
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.4.0",
3
+ "version": "4.4.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",
@@ -39,7 +39,9 @@
39
39
  "build-prod-debug": "webpack --config webpack/webpack.config.debug-size.js",
40
40
  "format": "prettier --write .",
41
41
  "copy-types": "copyfiles -u 2 \"src/types/**/*.d.ts\" build/types",
42
- "type-check": "tsc --noEmit && tsc --noEmit test/typescript-test.ts"
42
+ "type-check": "tsc --noEmit && tsc --noEmit test/typescript-test.ts",
43
+ "docs:api": "typedoc --options typedoc.json",
44
+ "docs": "npm run docs:api"
43
45
  },
44
46
  "dependencies": {
45
47
  "d3-array": "^3.2.4",
@@ -76,6 +78,8 @@
76
78
  "prettier": "^3.4.1",
77
79
  "style-loader": "^4.0.0",
78
80
  "ts-loader": "^9.5.4",
81
+ "typedoc": "^0.28.12",
82
+ "typedoc-plugin-missing-exports": "^4.0.0",
79
83
  "typescript": "^5.9.3",
80
84
  "webpack": "^5.88.1",
81
85
  "webpack-bundle-analyzer": "^4.10.2",