eurostat-map 4.4.2 → 4.4.3

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.3.58",
3
+ "version": "4.4.3",
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",
@@ -152,7 +152,7 @@ export interface MapInstance {
152
152
  * Get or set legend configuration. Pass false to remove the legend.
153
153
  * @example map.legend({ x: 10, y: 90, title: 'Density, people/km²' })
154
154
  */
155
- legend(): LegendConfig
155
+ legend(): LegendConfig | false
156
156
  legend(config: LegendConfig | false): this
157
157
 
158
158
  /** Force-update the legend after data or style changes. */
@@ -58,16 +58,23 @@ export type EurostatMap = MapInstance
58
58
  export type { TooltipConfig } from './core/TooltipConfig'
59
59
  export type { LegendConfig } from './legend/LegendConfig'
60
60
  export type { StatConfig } from './core/stat/StatConfig'
61
+ export type { StatData } from './core/stat/StatData'
61
62
  export type { InsetConfig } from './core/InsetConfig'
62
63
  export type { CoastalMarginSettings } from './core/decoration/CoastalMarginSettings'
64
+ export type { ScalebarConfig } from './core/decoration/ScalebarConfig'
65
+ export type { StampConfig } from './core/decoration/StampConfig'
63
66
  export type { GridCartogramSettings, GridCartogramMargins } from './core/GridCartogramSettings'
64
67
  export type { DorlingSettings, DorlingStrength } from './core/DorlingSettings'
68
+ export type { MinimapConfig } from './core/minimaps'
69
+ export type { LocationConfig } from './core/locations'
70
+ export type { GeometriesClass } from './core/geo/geometries'
65
71
 
66
72
  // ==================== Legend Configuration Type Exports ====================
67
73
 
68
74
  // Main legend types
69
75
  export type { CategoricalLegendConfig } from './legend/CategoricalLegendConfig'
70
76
  export type { MushroomLegendConfig } from './legend/MushroomLegendConfig'
77
+ export type { MushroomSizeLegendConfig, MushroomColorLegendConfig } from './legend/MushroomLegendConfig'
71
78
  export type { PatternFillLegendConfig } from './legend/PatternFillLegendConfig'
72
79
 
73
80
  // Choropleth legend types
@@ -78,9 +85,13 @@ export type { TrivariateLegendConfig } from './legend/choropleth/TrivariateLegen
78
85
 
79
86
  // Composition legend types
80
87
  export type { BarChartLegendConfig } from './legend/composition/BarChartLegendConfig'
88
+ export type { BarChartSizeLegendConfig, BarChartColorLegendConfig } from './legend/composition/BarChartLegendConfig'
81
89
  export type { CoxcombLegendConfig } from './legend/composition/CoxcombLegendConfig'
90
+ export type { CoxcombSizeLegendConfig, CoxcombColorLegendConfig, CoxcombTimeLegendConfig } from './legend/composition/CoxcombLegendConfig'
82
91
  export type { PieChartLegendConfig } from './legend/composition/PieChartLegendConfig'
92
+ export type { PieChartSizeLegendConfig, PieChartColorLegendConfig } from './legend/composition/PieChartLegendConfig'
83
93
  export type { WaffleLegendConfig } from './legend/composition/WaffleLegendConfig'
94
+ export type { WaffleSizeLegendConfig, WaffleColorLegendConfig } from './legend/composition/WaffleLegendConfig'
84
95
  export type { StripeCompositionLegendConfig } from './legend/composition/StripeCompositionLegendConfig'
85
96
  export type {
86
97
  SparklineLegendConfig,
@@ -91,9 +102,14 @@ export type {
91
102
 
92
103
  // Flow legend types
93
104
  export type { FlowMapLegendConfig } from './legend/flow/FlowMapLegendConfig'
105
+ export type { FlowWidthLegendConfig, NodeSizeLegendConfig, FlowColorLegendConfig, RegionColorLegendConfig } from './legend/flow/FlowMapLegendConfig'
94
106
 
95
107
  // Proportional symbol legend types
96
108
  export type { ProportionalSymbolsLegendConfig } from './legend/proportional-symbol/ProportionalSymbolsLegendConfig'
109
+ export type {
110
+ ProportionalSymbolSizeLegendConfig,
111
+ ProportionalSymbolColorLegendConfig,
112
+ } from './legend/proportional-symbol/ProportionalSymbolsLegendConfig'
97
113
 
98
114
  // ==================== Map Type Exports ====================
99
115
 
@@ -136,6 +152,14 @@ export type { SparkMapConfig, SparkMap, SparkStatConfig }
136
152
 
137
153
  // Flow map types
138
154
  export type { FlowMapConfig, FlowMap }
155
+ export type {
156
+ FlowNode,
157
+ FlowLink,
158
+ FlowGraph,
159
+ FlowCurvatureSettings,
160
+ FlowWidthGradientSettings,
161
+ FlowBundleSettings,
162
+ } from './map-types/flow/FlowMapConfig'
139
163
 
140
164
  // ==================== Pattern Fill Options ====================
141
165
 
@@ -6,7 +6,7 @@ import type { BarChartLegendConfig } from '../../../legend/composition/BarChartL
6
6
  * Bar map type.
7
7
  */
8
8
  export interface BarMap extends MapInstance {
9
- legend(): BarChartLegendConfig
9
+ legend(): BarChartLegendConfig | false
10
10
  legend(config: BarChartLegendConfig | false): this
11
11
 
12
12
  barType(): 'stacked' | 'grouped'
@@ -6,7 +6,7 @@ import type { CoxcombLegendConfig } from '../../../legend/composition/CoxcombLeg
6
6
  * Coxcomb map type.
7
7
  */
8
8
  export interface CoxcombMap extends MapInstance {
9
- legend(): CoxcombLegendConfig
9
+ legend(): CoxcombLegendConfig | false
10
10
  legend(config: CoxcombLegendConfig | false): this
11
11
 
12
12
  catColors(): any
@@ -6,7 +6,7 @@ import type { PieChartLegendConfig } from '../../../legend/composition/PieChartL
6
6
  * Pie map type.
7
7
  */
8
8
  export interface PieMap extends MapInstance {
9
- legend(): PieChartLegendConfig
9
+ legend(): PieChartLegendConfig | false
10
10
  legend(config: PieChartLegendConfig | false): this
11
11
 
12
12
  catColors(): any
@@ -6,7 +6,7 @@ import type { StripeCompositionLegendConfig } from '../../../legend/composition/
6
6
  * Stripe map type.
7
7
  */
8
8
  export interface StripeMap extends MapInstance {
9
- legend(): StripeCompositionLegendConfig
9
+ legend(): StripeCompositionLegendConfig | false
10
10
  legend(config: StripeCompositionLegendConfig | false): this
11
11
 
12
12
  stripeWidth(): number
@@ -6,7 +6,7 @@ import type { WaffleLegendConfig } from '../../../legend/composition/WaffleLegen
6
6
  * Waffle map type.
7
7
  */
8
8
  export interface WaffleMap extends MapInstance {
9
- legend(): WaffleLegendConfig
9
+ legend(): WaffleLegendConfig | false
10
10
  legend(config: WaffleLegendConfig | false): this
11
11
 
12
12
  catColors(): any
@@ -6,7 +6,7 @@ import type { SparklineLegendConfig } from '../../legend/composition/SparklineLe
6
6
  * Spark map type.
7
7
  */
8
8
  export interface SparkMap extends MapInstance {
9
- legend(): SparklineLegendConfig
9
+ legend(): SparklineLegendConfig | false
10
10
  legend(config: SparklineLegendConfig | false): this
11
11
 
12
12
  sparkLineColor(): any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.4.2",
3
+ "version": "4.4.3",
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",
@@ -43,7 +43,9 @@
43
43
  "type-check": "npm run check:types:legend-config-sync && tsc --noEmit && tsc --noEmit test/typescript-test.ts",
44
44
  "docs:api": "typedoc --options typedoc.json",
45
45
  "docs": "npm run docs:api",
46
- "generate-previews": "node examples/scripts/generate-previews.js"
46
+ "generate-previews": "node examples/scripts/generate-previews.js",
47
+ "update-examples-manifest": "node examples/scripts/update-examples-manifest.js",
48
+ "update-examples": "npm run update-examples-manifest && npm run generate-previews"
47
49
  },
48
50
  "dependencies": {
49
51
  "d3-array": "^3.2.4",