eurostat-map 4.8.6 → 4.9.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 (41) hide show
  1. package/README.md +3 -1
  2. package/build/215.eurostatmap.min.js +1 -1
  3. package/build/eurostatmap.js +28645 -25693
  4. package/build/eurostatmap.min.js +2 -2
  5. package/build/eurostatmap.min.js.map +1 -1
  6. package/build/package.json +1 -1
  7. package/build/src_core_dorling_dorling-worker_js.eurostatmap.js +1 -1
  8. package/build/types/core/InsetConfig.d.ts +71 -71
  9. package/build/types/core/MapConfig.d.ts +8 -0
  10. package/build/types/core/MapInstance.d.ts +15 -0
  11. package/build/types/core/encoding/EncodingConfig.d.ts +31 -31
  12. package/build/types/core/layer/Layer.d.ts +31 -31
  13. package/build/types/core/layer/LayerConfig.d.ts +19 -19
  14. package/build/types/core/layer/LayerRole.d.ts +1 -1
  15. package/build/types/index.d.ts +1 -0
  16. package/build/types/layers/CategoricalMapConfig.d.ts +13 -13
  17. package/build/types/layers/composition/bar/BarMap.d.ts +97 -97
  18. package/build/types/layers/composition/bar/BarMapConfig.d.ts +76 -76
  19. package/build/types/legend/LegendConfig.d.ts +73 -73
  20. package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +1 -1
  21. package/build/types/legend/choropleth/RankedBarChartConfig.d.ts +22 -0
  22. package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +2 -2
  23. package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +2 -2
  24. package/build/types/legend/choropleth/legend-choropleth.d.ts +2 -2
  25. package/build/types/legend/composition/legend-bar-chart.d.ts +2 -2
  26. package/build/types/legend/flow/legend-flow.d.ts +2 -2
  27. package/build/types/legend/legend-categorical.d.ts +2 -2
  28. package/build/types/legend/legend-continuous.d.ts +2 -2
  29. package/build/types/legend/legend-discrete.d.ts +2 -2
  30. package/build/types/legend/legend.d.ts +13 -13
  31. package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +2 -2
  32. package/build/types/map-types/CategoricalMapConfig.d.ts +11 -11
  33. package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +4 -4
  34. package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +4 -4
  35. package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +4 -4
  36. package/build/types/map-types/composition/bar/BarMap.d.ts +97 -97
  37. package/build/types/map-types/composition/bar/BarMapConfig.d.ts +76 -76
  38. package/build/types/map-types/composition/map-spark.d.ts +5 -5
  39. package/build/types/map-types/composition/map-stripe.d.ts +5 -5
  40. package/build/types/map-types/flow/map-flow.d.ts +5 -5
  41. package/package.json +1 -1
@@ -1,97 +1,97 @@
1
- import type { MapInstance } from '../../../core/MapInstance'
2
- import type { CompositionStatConfig } from '../CompositionStatConfig'
3
- import type { BarChartLegendConfig } from '../../../legend/composition/BarChartLegendConfig'
4
-
5
- /**
6
- * Bar map type.
7
- */
8
- export interface BarMap extends MapInstance {
9
- legend(): BarChartLegendConfig | false
10
- legend(config: BarChartLegendConfig | false): this
11
-
12
- barType(): 'stacked' | 'grouped'
13
- barType(v: 'stacked' | 'grouped'): this
14
-
15
- catColors(): any
16
- catColors(v: any): this
17
-
18
- catLabels(): any
19
- catLabels(v: any): this
20
-
21
- showOnlyWhenComplete(): boolean
22
- showOnlyWhenComplete(v: boolean): this
23
-
24
- noDataFillStyle(): string
25
- noDataFillStyle(v: string): this
26
-
27
- barMaxWidth(): number
28
- barMaxWidth(v: number): this
29
-
30
- barMinWidth(): number
31
- barMinWidth(v: number): this
32
-
33
- barHeight(): number
34
- barHeight(v: number): this
35
-
36
- barGroupWidth(): number
37
- barGroupWidth(v: number): this
38
-
39
- barSettings(): any
40
- barSettings(v: any): this
41
-
42
- barGroupGap(): number
43
- barGroupGap(v: number): this
44
-
45
- barGroupMinHeight(): number
46
- barGroupMinHeight(v: number): this
47
-
48
- barGroupMaxHeight(): number
49
- barGroupMaxHeight(v: number): this
50
-
51
- barStrokeFill(): string
52
- barStrokeFill(v: string): this
53
-
54
- barStrokeWidth(): number
55
- barStrokeWidth(v: number): this
56
-
57
- barCornerRadius(): number
58
- barCornerRadius(v: number): this
59
-
60
- barOtherColor(): string
61
- barOtherColor(v: string): this
62
-
63
- barOtherText(): string
64
- barOtherText(v: string): this
65
-
66
- barTooltipWidth(): number
67
- barTooltipWidth(v: number): this
68
-
69
- barTooltipHeight(): number
70
- barTooltipHeight(v: number): this
71
-
72
- dorling(): boolean
73
- dorling(v: boolean): this
74
-
75
- barTotalCode(): string | undefined
76
- barTotalCode(v: string | undefined): this
77
-
78
- statCodes(): string[] | undefined
79
- statCodes(v: string[] | undefined): this
80
-
81
- statBar(config: CompositionStatConfig): this
82
- /** @deprecated Legacy positional signature. Prefer statBar({ categoryParameter, categoryCodes, ... }). */
83
- statBar(
84
- /** Config. */
85
- config: CompositionStatConfig,
86
- /** Category parameter. */
87
- categoryParameter?: string,
88
- /** Category codes. */
89
- categoryCodes?: string[],
90
- /** Category labels. */
91
- categoryLabels?: string[],
92
- /** Category colors. */
93
- categoryColors?: string[],
94
- /** Total code. */
95
- totalCode?: string
96
- ): this
97
- }
1
+ import type { MapInstance } from '../../../core/MapInstance'
2
+ import type { CompositionStatConfig } from '../CompositionStatConfig'
3
+ import type { BarChartLegendConfig } from '../../../legend/composition/BarChartLegendConfig'
4
+
5
+ /**
6
+ * Bar map type.
7
+ */
8
+ export interface BarMap extends MapInstance {
9
+ legend(): BarChartLegendConfig | false
10
+ legend(config: BarChartLegendConfig | false): this
11
+
12
+ barType(): 'stacked' | 'grouped'
13
+ barType(v: 'stacked' | 'grouped'): this
14
+
15
+ catColors(): any
16
+ catColors(v: any): this
17
+
18
+ catLabels(): any
19
+ catLabels(v: any): this
20
+
21
+ showOnlyWhenComplete(): boolean
22
+ showOnlyWhenComplete(v: boolean): this
23
+
24
+ noDataFillStyle(): string
25
+ noDataFillStyle(v: string): this
26
+
27
+ barMaxWidth(): number
28
+ barMaxWidth(v: number): this
29
+
30
+ barMinWidth(): number
31
+ barMinWidth(v: number): this
32
+
33
+ barHeight(): number
34
+ barHeight(v: number): this
35
+
36
+ barGroupWidth(): number
37
+ barGroupWidth(v: number): this
38
+
39
+ barSettings(): any
40
+ barSettings(v: any): this
41
+
42
+ barGroupGap(): number
43
+ barGroupGap(v: number): this
44
+
45
+ barGroupMinHeight(): number
46
+ barGroupMinHeight(v: number): this
47
+
48
+ barGroupMaxHeight(): number
49
+ barGroupMaxHeight(v: number): this
50
+
51
+ barStrokeFill(): string
52
+ barStrokeFill(v: string): this
53
+
54
+ barStrokeWidth(): number
55
+ barStrokeWidth(v: number): this
56
+
57
+ barCornerRadius(): number
58
+ barCornerRadius(v: number): this
59
+
60
+ barOtherColor(): string
61
+ barOtherColor(v: string): this
62
+
63
+ barOtherText(): string
64
+ barOtherText(v: string): this
65
+
66
+ barTooltipWidth(): number
67
+ barTooltipWidth(v: number): this
68
+
69
+ barTooltipHeight(): number
70
+ barTooltipHeight(v: number): this
71
+
72
+ dorling(): boolean
73
+ dorling(v: boolean): this
74
+
75
+ barTotalCode(): string | undefined
76
+ barTotalCode(v: string | undefined): this
77
+
78
+ statCodes(): string[] | undefined
79
+ statCodes(v: string[] | undefined): this
80
+
81
+ statBar(config: CompositionStatConfig): this
82
+ /** @deprecated Legacy positional signature. Prefer statBar({ categoryParameter, categoryCodes, ... }). */
83
+ statBar(
84
+ /** Config. */
85
+ config: CompositionStatConfig,
86
+ /** Category parameter. */
87
+ categoryParameter?: string,
88
+ /** Category codes. */
89
+ categoryCodes?: string[],
90
+ /** Category labels. */
91
+ categoryLabels?: string[],
92
+ /** Category colors. */
93
+ categoryColors?: string[],
94
+ /** Total code. */
95
+ totalCode?: string
96
+ ): this
97
+ }
@@ -1,76 +1,76 @@
1
- import type { MapConfig } from '../../../core/MapConfig'
2
- import type { BarChartLegendConfig } from '../../../legend/composition/BarChartLegendConfig'
3
-
4
- /**
5
- * Configuration for bar chart composition maps.
6
- */
7
- export interface BarMapConfig extends MapConfig {
8
- /** Bar type. */
9
- barType?: 'stacked' | 'grouped'
10
- /** Cat colors. */
11
- catColors?: Record<string, string>
12
- /** Cat labels. */
13
- catLabels?: Record<string, string>
14
- /** Show only when complete. */
15
- showOnlyWhenComplete?: boolean
16
- /** No data fill style. */
17
- noDataFillStyle?: string
18
- /** Bar min width. */
19
- barMinWidth?: number
20
- /** Bar max width. */
21
- barMaxWidth?: number
22
- /** Bar height. */
23
- barHeight?: number
24
- /** Bar group width. */
25
- barGroupWidth?: number
26
- /** Grouped bar settings object. */
27
- barSettings?: {
28
- type?: 'stacked' | 'grouped'
29
- minWidth?: number
30
- maxWidth?: number
31
- height?: number
32
- groupWidth?: number
33
- groupMinWidth?: number
34
- groupMaxWidth?: number
35
- groupGap?: number
36
- groupMinHeight?: number
37
- groupMaxHeight?: number
38
- groupMaxValue?: number
39
- groupMaxWidthValue?: number
40
- strokeFill?: string
41
- strokeWidth?: number
42
- cornerRadius?: number
43
- otherColor?: string
44
- otherText?: string
45
- tooltipWidth?: number
46
- tooltipHeight?: number
47
- }
48
- /** Bar group gap. */
49
- barGroupGap?: number
50
- /** Bar group min height. */
51
- barGroupMinHeight?: number
52
- /** Bar group max height. */
53
- barGroupMaxHeight?: number
54
- /** Bar stroke fill. */
55
- barStrokeFill?: string
56
- /** Bar stroke width. */
57
- barStrokeWidth?: number
58
- /** Bar corner radius. */
59
- barCornerRadius?: number
60
- /** Bar other color. */
61
- barOtherColor?: string
62
- /** Bar other text. */
63
- barOtherText?: string
64
- /** Bar tooltip width. */
65
- barTooltipWidth?: number
66
- /** Bar tooltip height. */
67
- barTooltipHeight?: number
68
- /** Dorling. */
69
- dorling?: boolean
70
- /** Bar total code. */
71
- barTotalCode?: string
72
- /** Stat codes. */
73
- statCodes?: string[]
74
- /** Legend. */
75
- legend?: BarChartLegendConfig | false
76
- }
1
+ import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { BarChartLegendConfig } from '../../../legend/composition/BarChartLegendConfig'
3
+
4
+ /**
5
+ * Configuration for bar chart composition maps.
6
+ */
7
+ export interface BarMapConfig extends MapConfig {
8
+ /** Bar type. */
9
+ barType?: 'stacked' | 'grouped'
10
+ /** Cat colors. */
11
+ catColors?: Record<string, string>
12
+ /** Cat labels. */
13
+ catLabels?: Record<string, string>
14
+ /** Show only when complete. */
15
+ showOnlyWhenComplete?: boolean
16
+ /** No data fill style. */
17
+ noDataFillStyle?: string
18
+ /** Bar min width. */
19
+ barMinWidth?: number
20
+ /** Bar max width. */
21
+ barMaxWidth?: number
22
+ /** Bar height. */
23
+ barHeight?: number
24
+ /** Bar group width. */
25
+ barGroupWidth?: number
26
+ /** Grouped bar settings object. */
27
+ barSettings?: {
28
+ type?: 'stacked' | 'grouped'
29
+ minWidth?: number
30
+ maxWidth?: number
31
+ height?: number
32
+ groupWidth?: number
33
+ groupMinWidth?: number
34
+ groupMaxWidth?: number
35
+ groupGap?: number
36
+ groupMinHeight?: number
37
+ groupMaxHeight?: number
38
+ groupMaxValue?: number
39
+ groupMaxWidthValue?: number
40
+ strokeFill?: string
41
+ strokeWidth?: number
42
+ cornerRadius?: number
43
+ otherColor?: string
44
+ otherText?: string
45
+ tooltipWidth?: number
46
+ tooltipHeight?: number
47
+ }
48
+ /** Bar group gap. */
49
+ barGroupGap?: number
50
+ /** Bar group min height. */
51
+ barGroupMinHeight?: number
52
+ /** Bar group max height. */
53
+ barGroupMaxHeight?: number
54
+ /** Bar stroke fill. */
55
+ barStrokeFill?: string
56
+ /** Bar stroke width. */
57
+ barStrokeWidth?: number
58
+ /** Bar corner radius. */
59
+ barCornerRadius?: number
60
+ /** Bar other color. */
61
+ barOtherColor?: string
62
+ /** Bar other text. */
63
+ barOtherText?: string
64
+ /** Bar tooltip width. */
65
+ barTooltipWidth?: number
66
+ /** Bar tooltip height. */
67
+ barTooltipHeight?: number
68
+ /** Dorling. */
69
+ dorling?: boolean
70
+ /** Bar total code. */
71
+ barTotalCode?: string
72
+ /** Stat codes. */
73
+ statCodes?: string[]
74
+ /** Legend. */
75
+ legend?: BarChartLegendConfig | false
76
+ }
@@ -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
@@ -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.8.6",
3
+ "version": "4.9.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",