eurostat-map 4.10.9 → 4.10.11

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 (120) hide show
  1. package/build/215.eurostatmap.min.js +1 -1
  2. package/build/eurostatmap.js +2757 -2689
  3. package/build/eurostatmap.min.js +2 -2
  4. package/build/eurostatmap.min.js.map +1 -1
  5. package/build/package.json +1 -1
  6. package/build/types/core/InsetConfig.d.ts +92 -71
  7. package/build/types/core/MapConfig.d.ts +103 -12
  8. package/build/types/core/MapInstance.d.ts +624 -555
  9. package/build/types/core/TooltipConfig.d.ts +33 -5
  10. package/build/types/core/decoration/PatternFillConfig.d.ts +34 -0
  11. package/build/types/core/geo/geometries.d.ts +13 -1
  12. package/build/types/core/layer/Layer.d.ts +49 -31
  13. package/build/types/core/minimaps.d.ts +11 -3
  14. package/build/types/core/stat/StatData.d.ts +2 -2
  15. package/build/types/core/utils.d.ts +44 -0
  16. package/build/types/index.d.ts +37 -6
  17. package/build/types/layers/CategoricalMap.d.ts +9 -9
  18. package/build/types/layers/choropleth/BivariateChoroplethConfig.d.ts +3 -0
  19. package/build/types/layers/choropleth/BivariateChoroplethMap.d.ts +9 -6
  20. package/build/types/layers/choropleth/ChoroplethConfig.d.ts +3 -3
  21. package/build/types/layers/choropleth/ChoroplethMap.d.ts +16 -4
  22. package/build/types/layers/choropleth/TrivariateChoroplethMap.d.ts +4 -0
  23. package/build/types/layers/choropleth/ValueByAlphaMap.d.ts +4 -3
  24. package/build/types/layers/composition/bar/BarMap.d.ts +170 -97
  25. package/build/types/layers/composition/bar/BarMapConfig.d.ts +83 -76
  26. package/build/types/layers/composition/coxcomb/CoxcombMap.d.ts +7 -6
  27. package/build/types/layers/composition/coxcomb/CoxcombMapConfig.d.ts +2 -2
  28. package/build/types/layers/composition/pie/PieMap.d.ts +8 -4
  29. package/build/types/layers/composition/pie/PieMapConfig.d.ts +0 -4
  30. package/build/types/layers/composition/stripe/StripeMap.d.ts +4 -4
  31. package/build/types/layers/composition/waffle/WaffleMap.d.ts +4 -4
  32. package/build/types/layers/flow/FlowMap.d.ts +8 -8
  33. package/build/types/layers/proportional-symbol/ProportionalSymbolConfig.d.ts +105 -52
  34. package/build/types/layers/proportional-symbol/ProportionalSymbolMap.d.ts +104 -100
  35. package/build/types/layers/proportional-symbol/mushroom/MushroomMap.d.ts +16 -12
  36. package/build/types/layers/spark/SparkMap.d.ts +14 -8
  37. package/build/types/layers/spark/SparkMapConfig.d.ts +8 -12
  38. package/build/types/legend/LegendConfig.d.ts +72 -73
  39. package/build/types/legend/MushroomLegendConfig.d.ts +15 -0
  40. package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +6 -6
  41. package/build/types/legend/choropleth/TrivariateLegendConfig.d.ts +5 -5
  42. package/build/types/legend/composition/BarChartLegendConfig.d.ts +32 -0
  43. package/build/types/legend/composition/StripeCompositionLegendConfig.d.ts +34 -2
  44. package/package.json +1 -1
  45. package/build/types/core/MinimapConfig.d.ts +0 -11
  46. package/build/types/legend/CoxcombLegendConfig.d.ts +0 -85
  47. package/build/types/legend/PieChartLegendConfig.d.ts +0 -68
  48. package/build/types/legend/SparklineLegendConfig.d.ts +0 -6
  49. package/build/types/legend/StripeCompositionLegendConfig.d.ts +0 -11
  50. package/build/types/legend/WaffleLegendConfig.d.ts +0 -74
  51. package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +0 -2
  52. package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +0 -2
  53. package/build/types/legend/choropleth/legend-choropleth.d.ts +0 -2
  54. package/build/types/legend/composition/legend-bar-chart.d.ts +0 -2
  55. package/build/types/legend/flow/legend-flow.d.ts +0 -2
  56. package/build/types/legend/legend-categorical.d.ts +0 -2
  57. package/build/types/legend/legend-continuous.d.ts +0 -2
  58. package/build/types/legend/legend-discrete.d.ts +0 -2
  59. package/build/types/legend/legend.d.ts +0 -13
  60. package/build/types/legend/proportional-symbol/PropSymbolLegendConfig.d.ts +0 -0
  61. package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +0 -2
  62. package/build/types/map-types/CategoricalMap.d.ts +0 -21
  63. package/build/types/map-types/CategoricalMapConfig.d.ts +0 -11
  64. package/build/types/map-types/CateogricalMapConfig.d.ts +0 -11
  65. package/build/types/map-types/MapType.d.ts +0 -34
  66. package/build/types/map-types/choropleth/BivariateChoroplethConfig.d.ts +0 -27
  67. package/build/types/map-types/choropleth/BivariateChoroplethMap.d.ts +0 -39
  68. package/build/types/map-types/choropleth/ChoroplethConfig.d.ts +0 -39
  69. package/build/types/map-types/choropleth/ChoroplethMap.d.ts +0 -48
  70. package/build/types/map-types/choropleth/TrivariateChoroplethConfig.d.ts +0 -41
  71. package/build/types/map-types/choropleth/TrivariateChoroplethMap.d.ts +0 -18
  72. package/build/types/map-types/choropleth/ValueByAlphaConfig.d.ts +0 -8
  73. package/build/types/map-types/choropleth/ValueByAlphaMap.d.ts +0 -9
  74. package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +0 -4
  75. package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +0 -4
  76. package/build/types/map-types/choropleth/map-choropleth.d.ts +0 -47
  77. package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +0 -4
  78. package/build/types/map-types/composition/BarMap.d.ts +0 -86
  79. package/build/types/map-types/composition/BarMapConfig.d.ts +0 -30
  80. package/build/types/map-types/composition/CompositionStatConfig.d.ts +0 -57
  81. package/build/types/map-types/composition/CoxcombMap.d.ts +0 -42
  82. package/build/types/map-types/composition/CoxcombMapConfig.d.ts +0 -18
  83. package/build/types/map-types/composition/PieMap.d.ts +0 -62
  84. package/build/types/map-types/composition/PieMapConfig.d.ts +0 -24
  85. package/build/types/map-types/composition/SparkMap.d.ts +0 -46
  86. package/build/types/map-types/composition/SparkMapConfig.d.ts +0 -25
  87. package/build/types/map-types/composition/StripeMap.d.ts +0 -43
  88. package/build/types/map-types/composition/StripeMapConfig.d.ts +0 -16
  89. package/build/types/map-types/composition/WaffleMap.d.ts +0 -71
  90. package/build/types/map-types/composition/WaffleMapConfig.d.ts +0 -25
  91. package/build/types/map-types/composition/bar/BarMap.d.ts +0 -97
  92. package/build/types/map-types/composition/bar/BarMapConfig.d.ts +0 -76
  93. package/build/types/map-types/composition/composition-map.d.ts +0 -25
  94. package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +0 -75
  95. package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +0 -47
  96. package/build/types/map-types/composition/coxcomb/CoxcombStatConfig.d.ts +0 -13
  97. package/build/types/map-types/composition/map-bar.d.ts +0 -5
  98. package/build/types/map-types/composition/map-coxcomb.d.ts +0 -5
  99. package/build/types/map-types/composition/map-pie.d.ts +0 -10
  100. package/build/types/map-types/composition/map-spark.d.ts +0 -5
  101. package/build/types/map-types/composition/map-stripe.d.ts +0 -5
  102. package/build/types/map-types/composition/map-waffle.d.ts +0 -5
  103. package/build/types/map-types/composition/pie/PieMap.d.ts +0 -84
  104. package/build/types/map-types/composition/pie/PieMapConfig.d.ts +0 -50
  105. package/build/types/map-types/composition/stripe/StripeMap.d.ts +0 -80
  106. package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +0 -45
  107. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +0 -124
  108. package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +0 -58
  109. package/build/types/map-types/flow/FlowMap.d.ts +0 -218
  110. package/build/types/map-types/flow/FlowMapConfig.d.ts +0 -220
  111. package/build/types/map-types/flow/map-flow.d.ts +0 -5
  112. package/build/types/map-types/map-categorical.d.ts +0 -19
  113. package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +0 -47
  114. package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +0 -94
  115. package/build/types/map-types/proportional-symbol/map-proportional-symbols.d.ts +0 -35
  116. package/build/types/map-types/proportional-symbol/mushroom/MushroomMap.d.ts +0 -67
  117. package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +0 -39
  118. package/build/types/map-types/spark/SparkMap.d.ts +0 -56
  119. package/build/types/map-types/spark/SparkMapConfig.d.ts +0 -74
  120. package/build/types/map-types/spark/SparkStatConfig.d.ts +0 -32
@@ -1,97 +1,170 @@
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
+ /** @deprecated Use barSettings({ type }) */
13
+ barType(): 'stacked' | 'grouped'
14
+ /** @deprecated Use barSettings({ type }) */
15
+ barType(v: 'stacked' | 'grouped'): this
16
+
17
+ catColors(): Record<string, string> | undefined
18
+ catColors(v: Record<string, string>): this
19
+
20
+ catLabels(): Record<string, string> | undefined
21
+ catLabels(v: Record<string, string>): this
22
+
23
+ showOnlyWhenComplete(): boolean
24
+ showOnlyWhenComplete(v: boolean): this
25
+
26
+ noDataFillStyle(): string
27
+ noDataFillStyle(v: string): this
28
+
29
+ /** @deprecated Use barSettings({ maxWidth }) */
30
+ barMaxWidth(): number
31
+ /** @deprecated Use barSettings({ maxWidth }) */
32
+ barMaxWidth(v: number): this
33
+
34
+ /** @deprecated Use barSettings({ minWidth }) */
35
+ barMinWidth(): number
36
+ /** @deprecated Use barSettings({ minWidth }) */
37
+ barMinWidth(v: number): this
38
+
39
+ /** @deprecated Use barSettings({ height }) */
40
+ barHeight(): number
41
+ /** @deprecated Use barSettings({ height }) */
42
+ barHeight(v: number): this
43
+
44
+ /** @deprecated Use barSettings({ groupWidth }) */
45
+ barGroupWidth(): number
46
+ /** @deprecated Use barSettings({ groupWidth }) */
47
+ barGroupWidth(v: number): this
48
+
49
+ /** Consolidated bar chart style settings. */
50
+ barSettings(): {
51
+ type?: 'stacked' | 'grouped'
52
+ minWidth?: number
53
+ maxWidth?: number
54
+ height?: number
55
+ groupWidth?: number
56
+ groupMinWidth?: number
57
+ groupMaxWidth?: number
58
+ groupGap?: number
59
+ groupMinHeight?: number
60
+ groupMaxHeight?: number
61
+ groupMaxValue?: number
62
+ groupMaxWidthValue?: number
63
+ strokeFill?: string
64
+ strokeWidth?: number
65
+ cornerRadius?: number
66
+ otherColor?: string
67
+ otherText?: string
68
+ tooltipWidth?: number
69
+ tooltipHeight?: number
70
+ showCategoryLabels?: boolean
71
+ }
72
+ barSettings(v: {
73
+ type?: 'stacked' | 'grouped'
74
+ minWidth?: number
75
+ maxWidth?: number
76
+ height?: number
77
+ groupWidth?: number
78
+ groupMinWidth?: number
79
+ groupMaxWidth?: number
80
+ groupGap?: number
81
+ groupMinHeight?: number
82
+ groupMaxHeight?: number
83
+ groupMaxValue?: number
84
+ groupMaxWidthValue?: number
85
+ strokeFill?: string
86
+ strokeWidth?: number
87
+ cornerRadius?: number
88
+ otherColor?: string
89
+ otherText?: string
90
+ tooltipWidth?: number
91
+ tooltipHeight?: number
92
+ showCategoryLabels?: boolean
93
+ }): this
94
+
95
+ /** @deprecated Use barSettings({ groupGap }) */
96
+ barGroupGap(): number
97
+ /** @deprecated Use barSettings({ groupGap }) */
98
+ barGroupGap(v: number): this
99
+
100
+ /** @deprecated Use barSettings({ groupMinHeight }) */
101
+ barGroupMinHeight(): number
102
+ /** @deprecated Use barSettings({ groupMinHeight }) */
103
+ barGroupMinHeight(v: number): this
104
+
105
+ /** @deprecated Use barSettings({ groupMaxHeight }) */
106
+ barGroupMaxHeight(): number
107
+ /** @deprecated Use barSettings({ groupMaxHeight }) */
108
+ barGroupMaxHeight(v: number): this
109
+
110
+ /** @deprecated Use barSettings({ strokeFill }) */
111
+ barStrokeFill(): string
112
+ /** @deprecated Use barSettings({ strokeFill }) */
113
+ barStrokeFill(v: string): this
114
+
115
+ /** @deprecated Use barSettings({ strokeWidth }) */
116
+ barStrokeWidth(): number
117
+ /** @deprecated Use barSettings({ strokeWidth }) */
118
+ barStrokeWidth(v: number): this
119
+
120
+ /** @deprecated Use barSettings({ cornerRadius }) */
121
+ barCornerRadius(): number
122
+ /** @deprecated Use barSettings({ cornerRadius }) */
123
+ barCornerRadius(v: number): this
124
+
125
+ /** @deprecated Use barSettings({ otherColor }) */
126
+ barOtherColor(): string
127
+ /** @deprecated Use barSettings({ otherColor }) */
128
+ barOtherColor(v: string): this
129
+
130
+ /** @deprecated Use barSettings({ otherText }) */
131
+ barOtherText(): string
132
+ /** @deprecated Use barSettings({ otherText }) */
133
+ barOtherText(v: string): this
134
+
135
+ /** @deprecated Use barSettings({ tooltipWidth }) */
136
+ barTooltipWidth(): number
137
+ /** @deprecated Use barSettings({ tooltipWidth }) */
138
+ barTooltipWidth(v: number): this
139
+
140
+ /** @deprecated Use barSettings({ tooltipHeight }) */
141
+ barTooltipHeight(): number
142
+ /** @deprecated Use barSettings({ tooltipHeight }) */
143
+ barTooltipHeight(v: number): this
144
+
145
+ dorling(): boolean
146
+ dorling(v: boolean): this
147
+
148
+ barTotalCode(): string | undefined
149
+ barTotalCode(v: string | undefined): this
150
+
151
+ statCodes(): string[] | undefined
152
+ statCodes(v: string[] | undefined): this
153
+
154
+ statBar(config: CompositionStatConfig): this
155
+ /** @deprecated Legacy positional signature. Prefer statBar({ categoryParameter, categoryCodes, ... }). */
156
+ statBar(
157
+ /** Config. */
158
+ config: CompositionStatConfig,
159
+ /** Category parameter. */
160
+ categoryParameter?: string,
161
+ /** Category codes. */
162
+ categoryCodes?: string[],
163
+ /** Category labels. */
164
+ categoryLabels?: string[],
165
+ /** Category colors. */
166
+ categoryColors?: string[],
167
+ /** Total code. */
168
+ totalCode?: string
169
+ ): this
170
+ }
@@ -1,76 +1,83 @@
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
+ /** @deprecated Use barSettings.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
+ /** @deprecated Use barSettings.minWidth */
19
+ barMinWidth?: number
20
+ /** @deprecated Use barSettings.maxWidth */
21
+ barMaxWidth?: number
22
+ /** @deprecated Use barSettings.height */
23
+ barHeight?: number
24
+ /** @deprecated Use barSettings.groupWidth */
25
+ barGroupWidth?: number
26
+ /** Consolidated bar chart style settings. */
27
+ barSettings?: {
28
+ /** 'stacked': one bar per region, category segments stacked; 'grouped': category bars
29
+ * side-by-side. @default 'grouped' */
30
+ type?: 'stacked' | 'grouped'
31
+ minWidth?: number
32
+ maxWidth?: number
33
+ height?: number
34
+ /** Width of each grouped bar. Defaults to cell width / number of categories. */
35
+ groupWidth?: number
36
+ groupMinWidth?: number
37
+ groupMaxWidth?: number
38
+ groupGap?: number
39
+ groupMinHeight?: number
40
+ groupMaxHeight?: number
41
+ /** Optional override for the grouped-mode max value, for sharing scales across maps. */
42
+ groupMaxValue?: number
43
+ /** Optional override for the grouped-mode max width-encoded value. */
44
+ groupMaxWidthValue?: number
45
+ strokeFill?: string
46
+ strokeWidth?: number
47
+ cornerRadius?: number
48
+ otherColor?: string
49
+ otherText?: string
50
+ tooltipWidth?: number
51
+ tooltipHeight?: number
52
+ /** Show the category name (e.g. "Cities:") before each tooltip value. @default true */
53
+ showCategoryLabels?: boolean
54
+ }
55
+ /** @deprecated Use barSettings.groupGap */
56
+ barGroupGap?: number
57
+ /** @deprecated Use barSettings.groupMinHeight */
58
+ barGroupMinHeight?: number
59
+ /** @deprecated Use barSettings.groupMaxHeight */
60
+ barGroupMaxHeight?: number
61
+ /** @deprecated Use barSettings.strokeFill */
62
+ barStrokeFill?: string
63
+ /** @deprecated Use barSettings.strokeWidth */
64
+ barStrokeWidth?: number
65
+ /** @deprecated Use barSettings.cornerRadius */
66
+ barCornerRadius?: number
67
+ /** @deprecated Use barSettings.otherColor */
68
+ barOtherColor?: string
69
+ /** @deprecated Use barSettings.otherText */
70
+ barOtherText?: string
71
+ /** @deprecated Use barSettings.tooltipWidth */
72
+ barTooltipWidth?: number
73
+ /** @deprecated Use barSettings.tooltipHeight */
74
+ barTooltipHeight?: number
75
+ /** Dorling. */
76
+ dorling?: boolean
77
+ /** Bar total code. */
78
+ barTotalCode?: string
79
+ /** Stat codes. */
80
+ statCodes?: string[]
81
+ /** Legend. */
82
+ legend?: BarChartLegendConfig | false
83
+ }
@@ -26,11 +26,11 @@ export interface CoxcombMap extends MapInstance {
26
26
  offsets?: { x: number; y: number }
27
27
  }): this
28
28
 
29
- catColors(): any
30
- catColors(v: any): this
29
+ catColors(): Record<string, string> | undefined
30
+ catColors(v: Record<string, string>): this
31
31
 
32
- catLabels(): any
33
- catLabels(v: any): this
32
+ catLabels(): Record<string, string> | undefined
33
+ catLabels(v: Record<string, string>): this
34
34
 
35
35
  noDataFillStyle(): string
36
36
  noDataFillStyle(v: string): this
@@ -63,8 +63,9 @@ export interface CoxcombMap extends MapInstance {
63
63
  hoverColor(): string
64
64
  hoverColor(v: string): this
65
65
 
66
- classifierSize(): any
67
- classifierSize(v: any): this
66
+ /** D3 radial scale mapping a stat value to a wedge radius in pixels. */
67
+ classifierSize(): ((value: number) => number) | null
68
+ classifierSize(v: (value: number) => number): this
68
69
 
69
70
  /** @deprecated Use coxcombSettings({ offsets }) */
70
71
  coxcombOffsets(): { x: number; y: number }
@@ -40,8 +40,8 @@ export interface CoxcombMapConfig extends MapConfig {
40
40
  catLabels?: Record<string, string>
41
41
  /** No data fill style. */
42
42
  noDataFillStyle?: string
43
- /** Classifier size. */
44
- classifierSize?: any
43
+ /** D3 radial scale mapping a stat value to a wedge radius in pixels. */
44
+ classifierSize?: (value: number) => number
45
45
  /** Legend. */
46
46
  legend?: CoxcombLegendConfig | false
47
47
  }
@@ -9,11 +9,11 @@ export interface PieMap extends MapInstance {
9
9
  legend(): PieChartLegendConfig | false
10
10
  legend(config: PieChartLegendConfig | false): this
11
11
 
12
- catColors(): any
13
- catColors(v: any): this
12
+ catColors(): Record<string, string> | undefined
13
+ catColors(v: Record<string, string>): this
14
14
 
15
- catLabels(): any
16
- catLabels(v: any): this
15
+ catLabels(): Record<string, string> | undefined
16
+ catLabels(v: Record<string, string>): this
17
17
 
18
18
  showOnlyWhenComplete(): boolean
19
19
  showOnlyWhenComplete(v: boolean): this
@@ -21,6 +21,10 @@ export interface PieMap extends MapInstance {
21
21
  noDataFillStyle(): string
22
22
  noDataFillStyle(v: string): this
23
23
 
24
+ /** Pie-specific rendering settings, independent of compositionSettings. */
25
+ pieSettings(): { innerRadius?: number }
26
+ pieSettings(v: { innerRadius?: number }): this
27
+
24
28
  compositionSettings(): {
25
29
  type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
26
30
  /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
@@ -27,10 +27,6 @@ export interface PieMapConfig extends MapConfig {
27
27
  otherColor?: string
28
28
  otherText?: string
29
29
  }
30
- /** Tooltip pie radius. */
31
- tooltipPieRadius?: number
32
- /** Tooltip pie inner radius. */
33
- tooltipPieInnerRadius?: number
34
30
  /** Cat colors. */
35
31
  catColors?: Record<string, string>
36
32
  /** Cat labels. */
@@ -27,11 +27,11 @@ export interface StripeMap extends MapInstance {
27
27
  /** @deprecated Use stripeSettings({ orientation }) */
28
28
  stripeOrientation(v: number): this
29
29
 
30
- catColors(): any
31
- catColors(v: any): this
30
+ catColors(): Record<string, string> | undefined
31
+ catColors(v: Record<string, string>): this
32
32
 
33
- catLabels(): any
34
- catLabels(v: any): this
33
+ catLabels(): Record<string, string> | undefined
34
+ catLabels(v: Record<string, string>): this
35
35
 
36
36
  /** @deprecated Use stripeSettings({ otherColor }) */
37
37
  stripeOtherColor(): string
@@ -9,11 +9,11 @@ export interface WaffleMap extends MapInstance {
9
9
  legend(): WaffleLegendConfig | false
10
10
  legend(config: WaffleLegendConfig | false): this
11
11
 
12
- catColors(): any
13
- catColors(v: any): this
12
+ catColors(): Record<string, string> | undefined
13
+ catColors(v: Record<string, string>): this
14
14
 
15
- catLabels(): any
16
- catLabels(v: any): this
15
+ catLabels(): Record<string, string> | undefined
16
+ catLabels(v: Record<string, string>): this
17
17
 
18
18
  showOnlyWhenComplete(): boolean
19
19
  showOnlyWhenComplete(v: boolean): this
@@ -25,13 +25,13 @@ export interface FlowMap extends MapInstance {
25
25
  nodeType: 'circle' | 'donut'
26
26
  labelOffsets: { x: number; y: number }
27
27
  lineType: 'curved' | 'straight' | 'sankey'
28
- nodeSizeScale: any
28
+ nodeSizeScale: ((value: number) => number) | null
29
29
  opacity: number
30
30
  internal: boolean
31
31
  topLocations: number
32
32
  topLocationsType: 'sum' | 'origin' | 'destination'
33
33
  curvatureSettings: FlowCurvatureSettings
34
- order: any
34
+ order: (a: any, b: any) => number
35
35
  widthGradient: boolean
36
36
  opacityGradient: boolean
37
37
  widthGradientSettings: FlowWidthGradientSettings
@@ -56,13 +56,13 @@ export interface FlowMap extends MapInstance {
56
56
  nodeType?: 'circle' | 'donut'
57
57
  labelOffsets?: { x: number; y: number }
58
58
  lineType?: 'curved' | 'straight' | 'sankey'
59
- nodeSizeScale?: any
59
+ nodeSizeScale?: (value: number) => number
60
60
  opacity?: number
61
61
  internal?: boolean
62
62
  topLocations?: number
63
63
  topLocationsType?: 'sum' | 'origin' | 'destination'
64
64
  curvatureSettings?: FlowCurvatureSettings
65
- order?: any
65
+ order?: (a: any, b: any) => number
66
66
  widthGradient?: boolean
67
67
  opacityGradient?: boolean
68
68
  widthGradientSettings?: FlowWidthGradientSettings
@@ -152,9 +152,9 @@ export interface FlowMap extends MapInstance {
152
152
  flowLineType(v: 'curved' | 'straight' | 'sankey'): this
153
153
 
154
154
  /** @deprecated Use flowSettings({ nodeSizeScale }) */
155
- flowNodeSizeScale(): any
155
+ flowNodeSizeScale(): ((value: number) => number) | null
156
156
  /** @deprecated Use flowSettings({ nodeSizeScale }) */
157
- flowNodeSizeScale(v: any): this
157
+ flowNodeSizeScale(v: (value: number) => number): this
158
158
 
159
159
  /** @deprecated Use flowSettings({ opacity }) */
160
160
  flowOpacity(): number
@@ -182,9 +182,9 @@ export interface FlowMap extends MapInstance {
182
182
  flowCurvatureSettings(v: FlowCurvatureSettings): this
183
183
 
184
184
  /** @deprecated Use flowSettings({ order }) */
185
- flowOrder(): any
185
+ flowOrder(): (a: any, b: any) => number
186
186
  /** @deprecated Use flowSettings({ order }) */
187
- flowOrder(v: any): this
187
+ flowOrder(v: (a: any, b: any) => number): this
188
188
 
189
189
  /** @deprecated Use flowSettings({ widthGradient }) */
190
190
  flowWidthGradient(): boolean