eurostat-map 4.4.5 → 4.6.0

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 (87) hide show
  1. package/README.md +33 -4
  2. package/build/215.eurostatmap.min.js +1 -1
  3. package/build/215.eurostatmap.min.js.map +1 -1
  4. package/build/eurostatmap.js +20424 -16231
  5. package/build/eurostatmap.min.js +2 -2
  6. package/build/eurostatmap.min.js.map +1 -1
  7. package/build/package.json +1 -1
  8. package/build/types/core/GridCartogramSettings.d.ts +33 -0
  9. package/build/types/core/MapConfig.d.ts +13 -2
  10. package/build/types/core/MapInstance.d.ts +80 -4
  11. package/build/types/core/encoding/EncodingConfig.d.ts +31 -0
  12. package/build/types/core/layer/Layer.d.ts +31 -0
  13. package/build/types/core/layer/LayerConfig.d.ts +19 -0
  14. package/build/types/core/layer/LayerRole.d.ts +1 -0
  15. package/build/types/core/locations.d.ts +44 -16
  16. package/build/types/core/stat/StatConfig.d.ts +7 -0
  17. package/build/types/index.d.ts +38 -33
  18. package/build/types/layers/CategoricalMap.d.ts +21 -0
  19. package/build/types/layers/CategoricalMapConfig.d.ts +11 -0
  20. package/build/types/layers/MapType.d.ts +34 -0
  21. package/build/types/layers/choropleth/BivariateChoroplethConfig.d.ts +27 -0
  22. package/build/types/layers/choropleth/BivariateChoroplethMap.d.ts +39 -0
  23. package/build/types/layers/choropleth/ChoroplethConfig.d.ts +39 -0
  24. package/build/types/layers/choropleth/ChoroplethMap.d.ts +48 -0
  25. package/build/types/layers/choropleth/TrivariateChoroplethConfig.d.ts +41 -0
  26. package/build/types/layers/choropleth/TrivariateChoroplethMap.d.ts +18 -0
  27. package/build/types/layers/choropleth/ValueByAlphaConfig.d.ts +8 -0
  28. package/build/types/layers/choropleth/ValueByAlphaMap.d.ts +9 -0
  29. package/build/types/layers/composition/CompositionStatConfig.d.ts +59 -0
  30. package/build/types/layers/composition/bar/BarMap.d.ts +97 -0
  31. package/build/types/layers/composition/bar/BarMapConfig.d.ts +76 -0
  32. package/build/types/layers/composition/coxcomb/CoxcombMap.d.ts +75 -0
  33. package/build/types/layers/composition/coxcomb/CoxcombMapConfig.d.ts +47 -0
  34. package/build/types/layers/composition/coxcomb/CoxcombStatConfig.d.ts +13 -0
  35. package/build/types/layers/composition/pie/PieMap.d.ts +84 -0
  36. package/build/types/layers/composition/pie/PieMapConfig.d.ts +50 -0
  37. package/build/types/layers/composition/stripe/StripeMap.d.ts +80 -0
  38. package/build/types/layers/composition/stripe/StripeMapConfig.d.ts +45 -0
  39. package/build/types/layers/composition/waffle/WaffleMap.d.ts +124 -0
  40. package/build/types/layers/composition/waffle/WaffleMapConfig.d.ts +58 -0
  41. package/build/types/layers/flow/FlowMap.d.ts +218 -0
  42. package/build/types/layers/flow/FlowMapConfig.d.ts +220 -0
  43. package/build/types/layers/proportional-symbol/ProportionalSymbolConfig.d.ts +47 -0
  44. package/build/types/layers/proportional-symbol/ProportionalSymbolMap.d.ts +94 -0
  45. package/build/types/layers/proportional-symbol/mushroom/MushroomMap.d.ts +67 -0
  46. package/build/types/layers/proportional-symbol/mushroom/MushroomMapConfig.d.ts +39 -0
  47. package/build/types/layers/spark/SparkMap.d.ts +56 -0
  48. package/build/types/layers/spark/SparkMapConfig.d.ts +75 -0
  49. package/build/types/layers/spark/SparkStatConfig.d.ts +33 -0
  50. package/build/types/legend/LegendConfig.d.ts +3 -0
  51. package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +79 -0
  52. package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +2 -2
  53. package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +2 -2
  54. package/build/types/legend/choropleth/legend-choropleth.d.ts +2 -2
  55. package/build/types/legend/composition/legend-bar-chart.d.ts +2 -2
  56. package/build/types/legend/flow/legend-flow.d.ts +2 -2
  57. package/build/types/legend/legend-categorical.d.ts +2 -2
  58. package/build/types/legend/legend-continuous.d.ts +2 -2
  59. package/build/types/legend/legend-discrete.d.ts +2 -2
  60. package/build/types/legend/legend.d.ts +13 -13
  61. package/build/types/legend/proportional-symbol/ProportionalSymbolsLegendConfig.d.ts +6 -0
  62. package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +2 -2
  63. package/build/types/map-types/CategoricalMapConfig.d.ts +11 -11
  64. package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +4 -4
  65. package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +4 -4
  66. package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +4 -4
  67. package/build/types/map-types/composition/CompositionStatConfig.d.ts +7 -0
  68. package/build/types/map-types/composition/bar/BarMap.d.ts +97 -79
  69. package/build/types/map-types/composition/bar/BarMapConfig.d.ts +76 -54
  70. package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +29 -0
  71. package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +15 -0
  72. package/build/types/map-types/composition/map-spark.d.ts +5 -5
  73. package/build/types/map-types/composition/map-stripe.d.ts +5 -5
  74. package/build/types/map-types/composition/pie/PieMap.d.ts +1 -5
  75. package/build/types/map-types/composition/stripe/StripeMap.d.ts +19 -2
  76. package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +11 -0
  77. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +1 -0
  78. package/build/types/map-types/flow/FlowMap.d.ts +121 -0
  79. package/build/types/map-types/flow/FlowMapConfig.d.ts +62 -0
  80. package/build/types/map-types/flow/map-flow.d.ts +5 -5
  81. package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +30 -0
  82. package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +4 -0
  83. package/build/types/map-types/proportional-symbol/mushroom/MushroomMap.d.ts +37 -0
  84. package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +19 -0
  85. package/build/types/map-types/spark/SparkMap.d.ts +4 -0
  86. package/build/types/map-types/spark/SparkMapConfig.d.ts +32 -0
  87. package/package.json +3 -2
@@ -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
@@ -21,11 +21,6 @@ export interface PieMap extends MapInstance {
21
21
  noDataFillStyle(): string
22
22
  noDataFillStyle(v: string): this
23
23
 
24
- pieSettings(): {
25
- innerRadius?: number
26
- }
27
- pieSettings(v: { innerRadius?: number }): this
28
-
29
24
  compositionSettings(): {
30
25
  type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
31
26
  /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
@@ -71,6 +66,7 @@ export interface PieMap extends MapInstance {
71
66
  statCodes(v: string[] | undefined): this
72
67
 
73
68
  statPie(config: CompositionStatConfig): this
69
+ /** @deprecated Legacy positional signature. Prefer statPie({ categoryParameter, categoryCodes, ... }). */
74
70
  statPie(
75
71
  /** Config. */
76
72
  config: CompositionStatConfig,
@@ -9,10 +9,22 @@ export interface StripeMap extends MapInstance {
9
9
  legend(): StripeCompositionLegendConfig | false
10
10
  legend(config: StripeCompositionLegendConfig | false): this
11
11
 
12
+ stripeSettings(): {
13
+ width: number
14
+ orientation: number
15
+ otherColor: string
16
+ otherText: string
17
+ }
18
+ stripeSettings(v: { width?: number; orientation?: number; otherColor?: string; otherText?: string }): this
19
+
20
+ /** @deprecated Use stripeSettings({ width }) */
12
21
  stripeWidth(): number
22
+ /** @deprecated Use stripeSettings({ width }) */
13
23
  stripeWidth(v: number): this
14
24
 
25
+ /** @deprecated Use stripeSettings({ orientation }) */
15
26
  stripeOrientation(): number
27
+ /** @deprecated Use stripeSettings({ orientation }) */
16
28
  stripeOrientation(v: number): this
17
29
 
18
30
  catColors(): any
@@ -21,10 +33,14 @@ export interface StripeMap extends MapInstance {
21
33
  catLabels(): any
22
34
  catLabels(v: any): this
23
35
 
36
+ /** @deprecated Use stripeSettings({ otherColor }) */
24
37
  stripeOtherColor(): string
38
+ /** @deprecated Use stripeSettings({ otherColor }) */
25
39
  stripeOtherColor(v: string): this
26
40
 
41
+ /** @deprecated Use stripeSettings({ otherText }) */
27
42
  stripeOtherText(): string
43
+ /** @deprecated Use stripeSettings({ otherText }) */
28
44
  stripeOtherText(v: string): this
29
45
 
30
46
  showOnlyWhenComplete(): boolean
@@ -45,8 +61,9 @@ export interface StripeMap extends MapInstance {
45
61
  statCodes(): string[] | undefined
46
62
  statCodes(v: string[] | undefined): this
47
63
 
48
- statComp(config: CompositionStatConfig): this
49
- statComp(
64
+ statStripe(config: CompositionStatConfig): this
65
+ /** @deprecated Legacy positional signature. Prefer statStripe({ categoryParameter, categoryCodes, ... }). */
66
+ statStripe(
50
67
  /** Config. */
51
68
  config: CompositionStatConfig,
52
69
  /** Category parameter. */
@@ -5,16 +5,27 @@ import type { StripeCompositionLegendConfig } from '../../../legend/composition/
5
5
  * Configuration for stripe composition maps.
6
6
  */
7
7
  export interface StripeMapConfig extends MapConfig {
8
+ /** Grouped stripe settings. */
9
+ stripeSettings?: {
10
+ width?: number
11
+ orientation?: number
12
+ otherColor?: string
13
+ otherText?: string
14
+ }
15
+ /** @deprecated Use stripeSettings.width */
8
16
  /** Stripe width. */
9
17
  stripeWidth?: number
18
+ /** @deprecated Use stripeSettings.orientation */
10
19
  /** Stripe orientation. */
11
20
  stripeOrientation?: number
12
21
  /** Cat colors. */
13
22
  catColors?: Record<string, string>
14
23
  /** Cat labels. */
15
24
  catLabels?: Record<string, string>
25
+ /** @deprecated Use stripeSettings.otherColor */
16
26
  /** Stripe other color. */
17
27
  stripeOtherColor?: string
28
+ /** @deprecated Use stripeSettings.otherText */
18
29
  /** Stripe other text. */
19
30
  stripeOtherText?: string
20
31
  /** Show only when complete. */
@@ -106,6 +106,7 @@ export interface WaffleMap extends MapInstance {
106
106
  statCodes(v: string[] | undefined): this
107
107
 
108
108
  statWaffle(config: CompositionStatConfig): this
109
+ /** @deprecated Legacy positional signature. Prefer statWaffle({ categoryParameter, categoryCodes, ... }). */
109
110
  statWaffle(
110
111
  /** Config. */
111
112
  config: CompositionStatConfig,
@@ -8,90 +8,211 @@ export interface FlowMap extends MapInstance {
8
8
  flowGraph(): FlowGraph
9
9
  flowGraph(v: FlowGraph): this
10
10
 
11
+ flowSettings(): {
12
+ color: string
13
+ regionColors: string[]
14
+ regionLabels: string[]
15
+ arrows: boolean
16
+ arrowScale: number
17
+ maxWidth: number
18
+ minWidth: number
19
+ outlines: boolean
20
+ outlineWidth: number
21
+ outlineColor: string
22
+ colorGradient: boolean
23
+ stack: boolean
24
+ nodes: boolean
25
+ nodeType: 'circle' | 'donut'
26
+ labelOffsets: { x: number; y: number }
27
+ lineType: 'curved' | 'straight' | 'sankey'
28
+ nodeSizeScale: any
29
+ opacity: number
30
+ internal: boolean
31
+ topLocations: number
32
+ topLocationsType: 'sum' | 'origin' | 'destination'
33
+ curvatureSettings: FlowCurvatureSettings
34
+ order: any
35
+ widthGradient: boolean
36
+ opacityGradient: boolean
37
+ widthGradientSettings: FlowWidthGradientSettings
38
+ bidirectional: boolean
39
+ edgeBundling: boolean
40
+ bundleSettings: FlowBundleSettings
41
+ }
42
+ flowSettings(v: {
43
+ color?: string
44
+ regionColors?: string[]
45
+ regionLabels?: string[]
46
+ arrows?: boolean
47
+ arrowScale?: number
48
+ maxWidth?: number
49
+ minWidth?: number
50
+ outlines?: boolean
51
+ outlineWidth?: number
52
+ outlineColor?: string
53
+ colorGradient?: boolean
54
+ stack?: boolean
55
+ nodes?: boolean
56
+ nodeType?: 'circle' | 'donut'
57
+ labelOffsets?: { x: number; y: number }
58
+ lineType?: 'curved' | 'straight' | 'sankey'
59
+ nodeSizeScale?: any
60
+ opacity?: number
61
+ internal?: boolean
62
+ topLocations?: number
63
+ topLocationsType?: 'sum' | 'origin' | 'destination'
64
+ curvatureSettings?: FlowCurvatureSettings
65
+ order?: any
66
+ widthGradient?: boolean
67
+ opacityGradient?: boolean
68
+ widthGradientSettings?: FlowWidthGradientSettings
69
+ bidirectional?: boolean
70
+ edgeBundling?: boolean
71
+ bundleSettings?: FlowBundleSettings
72
+ }): this
73
+
74
+ /** @deprecated Use flowSettings({ color }) */
11
75
  flowColor(): string
76
+ /** @deprecated Use flowSettings({ color }) */
12
77
  flowColor(v: string): this
13
78
 
79
+ /** @deprecated Use flowSettings({ regionColors }) */
14
80
  flowRegionColors(): string[]
81
+ /** @deprecated Use flowSettings({ regionColors }) */
15
82
  flowRegionColors(v: string[]): this
16
83
 
84
+ /** @deprecated Use flowSettings({ regionLabels }) */
17
85
  flowRegionLabels(): string[]
86
+ /** @deprecated Use flowSettings({ regionLabels }) */
18
87
  flowRegionLabels(v: string[]): this
19
88
 
89
+ /** @deprecated Use flowSettings({ arrows }) */
20
90
  flowArrows(): boolean
91
+ /** @deprecated Use flowSettings({ arrows }) */
21
92
  flowArrows(v: boolean): this
22
93
 
94
+ /** @deprecated Use flowSettings({ arrowScale }) */
23
95
  flowArrowScale(): number
96
+ /** @deprecated Use flowSettings({ arrowScale }) */
24
97
  flowArrowScale(v: number): this
25
98
 
99
+ /** @deprecated Use flowSettings({ maxWidth }) */
26
100
  flowMaxWidth(): number
101
+ /** @deprecated Use flowSettings({ maxWidth }) */
27
102
  flowMaxWidth(v: number): this
28
103
 
104
+ /** @deprecated Use flowSettings({ minWidth }) */
29
105
  flowMinWidth(): number
106
+ /** @deprecated Use flowSettings({ minWidth }) */
30
107
  flowMinWidth(v: number): this
31
108
 
109
+ /** @deprecated Use flowSettings({ outlines }) */
32
110
  flowOutlines(): boolean
111
+ /** @deprecated Use flowSettings({ outlines }) */
33
112
  flowOutlines(v: boolean): this
34
113
 
114
+ /** @deprecated Use flowSettings({ outlineWidth }) */
35
115
  flowOutlineWidth(): number
116
+ /** @deprecated Use flowSettings({ outlineWidth }) */
36
117
  flowOutlineWidth(v: number): this
37
118
 
119
+ /** @deprecated Use flowSettings({ outlineColor }) */
38
120
  flowOutlineColor(): string
121
+ /** @deprecated Use flowSettings({ outlineColor }) */
39
122
  flowOutlineColor(v: string): this
40
123
 
124
+ /** @deprecated Use flowSettings({ colorGradient }) */
41
125
  flowColorGradient(): boolean
126
+ /** @deprecated Use flowSettings({ colorGradient }) */
42
127
  flowColorGradient(v: boolean): this
43
128
 
129
+ /** @deprecated Use flowSettings({ stack }) */
44
130
  flowStack(): boolean
131
+ /** @deprecated Use flowSettings({ stack }) */
45
132
  flowStack(v: boolean): this
46
133
 
134
+ /** @deprecated Use flowSettings({ nodes }) */
47
135
  flowNodes(): boolean
136
+ /** @deprecated Use flowSettings({ nodes }) */
48
137
  flowNodes(v: boolean): this
49
138
 
139
+ /** @deprecated Use flowSettings({ nodeType }) */
50
140
  flowNodeType(): 'circle' | 'donut'
141
+ /** @deprecated Use flowSettings({ nodeType }) */
51
142
  flowNodeType(v: 'circle' | 'donut'): this
52
143
 
144
+ /** @deprecated Use flowSettings({ labelOffsets }) */
53
145
  flowLabelOffsets(): { x: number; y: number }
146
+ /** @deprecated Use flowSettings({ labelOffsets }) */
54
147
  flowLabelOffsets(v: { x: number; y: number }): this
55
148
 
149
+ /** @deprecated Use flowSettings({ lineType }) */
56
150
  flowLineType(): 'curved' | 'straight' | 'sankey'
151
+ /** @deprecated Use flowSettings({ lineType }) */
57
152
  flowLineType(v: 'curved' | 'straight' | 'sankey'): this
58
153
 
154
+ /** @deprecated Use flowSettings({ nodeSizeScale }) */
59
155
  flowNodeSizeScale(): any
156
+ /** @deprecated Use flowSettings({ nodeSizeScale }) */
60
157
  flowNodeSizeScale(v: any): this
61
158
 
159
+ /** @deprecated Use flowSettings({ opacity }) */
62
160
  flowOpacity(): number
161
+ /** @deprecated Use flowSettings({ opacity }) */
63
162
  flowOpacity(v: number): this
64
163
 
164
+ /** @deprecated Use flowSettings({ internal }) */
65
165
  flowInternal(): boolean
166
+ /** @deprecated Use flowSettings({ internal }) */
66
167
  flowInternal(v: boolean): this
67
168
 
169
+ /** @deprecated Use flowSettings({ topLocations }) */
68
170
  flowTopLocations(): number
171
+ /** @deprecated Use flowSettings({ topLocations }) */
69
172
  flowTopLocations(v: number): this
70
173
 
174
+ /** @deprecated Use flowSettings({ topLocationsType }) */
71
175
  flowTopLocationsType(): 'sum' | 'origin' | 'destination'
176
+ /** @deprecated Use flowSettings({ topLocationsType }) */
72
177
  flowTopLocationsType(v: 'sum' | 'origin' | 'destination'): this
73
178
 
179
+ /** @deprecated Use flowSettings({ curvatureSettings }) */
74
180
  flowCurvatureSettings(): FlowCurvatureSettings
181
+ /** @deprecated Use flowSettings({ curvatureSettings }) */
75
182
  flowCurvatureSettings(v: FlowCurvatureSettings): this
76
183
 
184
+ /** @deprecated Use flowSettings({ order }) */
77
185
  flowOrder(): any
186
+ /** @deprecated Use flowSettings({ order }) */
78
187
  flowOrder(v: any): this
79
188
 
189
+ /** @deprecated Use flowSettings({ widthGradient }) */
80
190
  flowWidthGradient(): boolean
191
+ /** @deprecated Use flowSettings({ widthGradient }) */
81
192
  flowWidthGradient(v: boolean): this
82
193
 
194
+ /** @deprecated Use flowSettings({ opacityGradient }) */
83
195
  flowOpacityGradient(): boolean
196
+ /** @deprecated Use flowSettings({ opacityGradient }) */
84
197
  flowOpacityGradient(v: boolean): this
85
198
 
199
+ /** @deprecated Use flowSettings({ widthGradientSettings }) */
86
200
  flowWidthGradientSettings(): FlowWidthGradientSettings
201
+ /** @deprecated Use flowSettings({ widthGradientSettings }) */
87
202
  flowWidthGradientSettings(v: FlowWidthGradientSettings): this
88
203
 
204
+ /** @deprecated Use flowSettings({ bidirectional }) */
89
205
  flowBidirectional(): boolean
206
+ /** @deprecated Use flowSettings({ bidirectional }) */
90
207
  flowBidirectional(v: boolean): this
91
208
 
209
+ /** @deprecated Use flowSettings({ edgeBundling }) */
92
210
  flowEdgeBundling(): boolean
211
+ /** @deprecated Use flowSettings({ edgeBundling }) */
93
212
  flowEdgeBundling(v: boolean): this
94
213
 
214
+ /** @deprecated Use flowSettings({ bundleSettings }) */
95
215
  flowBundleSettings(): FlowBundleSettings
216
+ /** @deprecated Use flowSettings({ bundleSettings }) */
96
217
  flowBundleSettings(v: FlowBundleSettings): this
97
218
  }
@@ -99,60 +99,122 @@ export interface FlowMapConfig extends MapConfig {
99
99
  /** Flow graph. */
100
100
  flowGraph?: FlowGraph
101
101
 
102
+ /** Grouped flow settings object. */
103
+ flowSettings?: {
104
+ color?: string
105
+ regionColors?: string[]
106
+ regionLabels?: string[]
107
+ arrows?: boolean
108
+ arrowScale?: number
109
+ maxWidth?: number
110
+ minWidth?: number
111
+ outlines?: boolean
112
+ outlineWidth?: number
113
+ outlineColor?: string
114
+ colorGradient?: boolean
115
+ stack?: boolean
116
+ nodes?: boolean
117
+ nodeType?: 'circle' | 'donut'
118
+ labelOffsets?: { x?: number; y?: number }
119
+ lineType?: 'curved' | 'straight' | 'sankey'
120
+ nodeSizeScale?: (value: number) => number
121
+ opacity?: number
122
+ internal?: boolean
123
+ topLocations?: number
124
+ topLocationsType?: 'sum' | 'origin' | 'destination'
125
+ curvatureSettings?: FlowCurvatureSettings
126
+ order?: (a: any, b: any) => number
127
+ widthGradient?: boolean
128
+ opacityGradient?: boolean
129
+ widthGradientSettings?: FlowWidthGradientSettings
130
+ bidirectional?: boolean
131
+ edgeBundling?: boolean
132
+ bundleSettings?: FlowBundleSettings
133
+ }
134
+
135
+ /** @deprecated Use flowSettings.color */
102
136
  /** Flow color. */
103
137
  flowColor?: string
138
+ /** @deprecated Use flowSettings.regionColors */
104
139
  /** Flow region colors. */
105
140
  flowRegionColors?: string[]
141
+ /** @deprecated Use flowSettings.regionLabels */
106
142
  /** Flow region labels. */
107
143
  flowRegionLabels?: string[]
144
+ /** @deprecated Use flowSettings.arrows */
108
145
  /** Flow arrows. */
109
146
  flowArrows?: boolean
147
+ /** @deprecated Use flowSettings.arrowScale */
110
148
  /** Flow arrow scale. */
111
149
  flowArrowScale?: number
150
+ /** @deprecated Use flowSettings.maxWidth */
112
151
  /** Flow max width. */
113
152
  flowMaxWidth?: number
153
+ /** @deprecated Use flowSettings.minWidth */
114
154
  /** Flow min width. */
115
155
  flowMinWidth?: number
156
+ /** @deprecated Use flowSettings.outlines */
116
157
  /** Flow outlines. */
117
158
  flowOutlines?: boolean
159
+ /** @deprecated Use flowSettings.outlineWidth */
118
160
  /** Flow outline width. */
119
161
  flowOutlineWidth?: number
162
+ /** @deprecated Use flowSettings.outlineColor */
120
163
  /** Flow outline color. */
121
164
  flowOutlineColor?: string
165
+ /** @deprecated Use flowSettings.colorGradient */
122
166
  /** Flow color gradient. */
123
167
  flowColorGradient?: boolean
168
+ /** @deprecated Use flowSettings.stack */
124
169
  /** Flow stack. */
125
170
  flowStack?: boolean
171
+ /** @deprecated Use flowSettings.nodes */
126
172
  /** Flow nodes. */
127
173
  flowNodes?: boolean
174
+ /** @deprecated Use flowSettings.nodeType */
128
175
  /** Flow node type. */
129
176
  flowNodeType?: 'circle' | 'donut'
177
+ /** @deprecated Use flowSettings.labelOffsets */
130
178
  /** Flow label offsets. */
131
179
  flowLabelOffsets?: { x?: number; y?: number }
180
+ /** @deprecated Use flowSettings.lineType */
132
181
  /** Flow line type. */
133
182
  flowLineType?: 'curved' | 'straight' | 'sankey'
183
+ /** @deprecated Use flowSettings.nodeSizeScale */
134
184
  flowNodeSizeScale?: (value: number) => number
185
+ /** @deprecated Use flowSettings.opacity */
135
186
  /** Flow opacity. */
136
187
  flowOpacity?: number
188
+ /** @deprecated Use flowSettings.internal */
137
189
  /** Flow internal. */
138
190
  flowInternal?: boolean
191
+ /** @deprecated Use flowSettings.topLocations */
139
192
  /** Flow top locations. */
140
193
  flowTopLocations?: number
194
+ /** @deprecated Use flowSettings.topLocationsType */
141
195
  /** Flow top locations type. */
142
196
  flowTopLocationsType?: 'sum' | 'origin' | 'destination'
197
+ /** @deprecated Use flowSettings.curvatureSettings */
143
198
  /** Flow curvature settings. */
144
199
  flowCurvatureSettings?: FlowCurvatureSettings
200
+ /** @deprecated Use flowSettings.order */
145
201
  flowOrder?: (a: any, b: any) => number
202
+ /** @deprecated Use flowSettings.widthGradient */
146
203
  /** Flow width gradient. */
147
204
  flowWidthGradient?: boolean
205
+ /** @deprecated Use flowSettings.opacityGradient */
148
206
  /** Flow opacity gradient. */
149
207
  flowOpacityGradient?: boolean
208
+ /** @deprecated Use flowSettings.widthGradientSettings */
150
209
  /** Flow width gradient settings. */
151
210
  flowWidthGradientSettings?: FlowWidthGradientSettings
211
+ /** @deprecated Use flowSettings.bidirectional */
152
212
  /** Flow bidirectional. */
153
213
  flowBidirectional?: boolean
214
+ /** @deprecated Use flowSettings.edgeBundling */
154
215
  /** Flow edge bundling. */
155
216
  flowEdgeBundling?: boolean
217
+ /** @deprecated Use flowSettings.bundleSettings */
156
218
  /** Flow bundle settings. */
157
219
  flowBundleSettings?: FlowBundleSettings
158
220
  }
@@ -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
@@ -1,5 +1,32 @@
1
1
  import type { MapConfig } from '../../core/MapConfig'
2
2
 
3
+ export interface ProportionalSymbolSettings {
4
+ shape?: string
5
+ customShape?: any
6
+ customSVG?: any
7
+ spikeWidth?: number
8
+ offset?: { x: number; y: number }
9
+ barWidth?: number
10
+ minValue?: number | undefined
11
+ maxValue?: number | undefined
12
+ fill?: string
13
+ fillOpacity?: number
14
+ stroke?: string
15
+ strokeWidth?: number
16
+ strokeOpacity?: number
17
+ sizeScale?: 'sqrt' | 'linear' | any
18
+ minSize?: number
19
+ maxSize?: number
20
+ classes?: number
21
+ colors?: string[] | null
22
+ colorFun?: any
23
+ classToFillStyle?: any
24
+ thresholds?: number[]
25
+ classificationMethod?: string
26
+ brightenFactor?: number
27
+ codeLabels?: boolean
28
+ }
29
+
3
30
  /**
4
31
  * Configuration for proportional symbol maps
5
32
  */
@@ -14,4 +41,7 @@ export interface ProportionalSymbolConfig extends MapConfig {
14
41
 
15
42
  /** Size function. */
16
43
  psCustomSize?: (value: number) => number
44
+
45
+ /** Grouped proportional symbol style settings. */
46
+ psSettings?: ProportionalSymbolSettings
17
47
  }
@@ -1,9 +1,13 @@
1
1
  import { MapInstance } from '../../core/MapInstance'
2
+ import type { ProportionalSymbolSettings } from './ProportionalSymbolConfig'
2
3
 
3
4
  /**
4
5
  * Proportional symbol map object
5
6
  */
6
7
  export interface ProportionalSymbolMap extends MapInstance {
8
+ psSettings(): ProportionalSymbolSettings
9
+ psSettings(v: ProportionalSymbolSettings): this
10
+
7
11
  psMaxSize(): number
8
12
  psMaxSize(v: number): this
9
13
 
@@ -4,27 +4,64 @@ import type { MapInstance } from '../../../core/MapInstance'
4
4
  * Mushroom map type.
5
5
  */
6
6
  export interface MushroomMap extends MapInstance {
7
+ mushroomSettings(): {
8
+ codes: [string, string]
9
+ minSize: number
10
+ maxSize: number
11
+ colors: [string, string]
12
+ orientation: 'horizontal' | 'vertical'
13
+ sizeScaleFunction: any
14
+ sizeScaleFunctionV1: any
15
+ sizeScaleFunctionV2: any
16
+ }
17
+ mushroomSettings(v: {
18
+ codes?: [string, string]
19
+ minSize?: number
20
+ maxSize?: number
21
+ colors?: [string, string]
22
+ orientation?: 'horizontal' | 'vertical'
23
+ sizeScaleFunction?: any
24
+ sizeScaleFunctionV1?: any
25
+ sizeScaleFunctionV2?: any
26
+ }): this
27
+
28
+ /** @deprecated Use mushroomSettings({ codes }) */
7
29
  mushroomCodes(): [string, string]
30
+ /** @deprecated Use mushroomSettings({ codes }) */
8
31
  mushroomCodes(v: [string, string]): this
9
32
 
33
+ /** @deprecated Use mushroomSettings({ minSize }) */
10
34
  mushroomMinSize(): number
35
+ /** @deprecated Use mushroomSettings({ minSize }) */
11
36
  mushroomMinSize(v: number): this
12
37
 
38
+ /** @deprecated Use mushroomSettings({ maxSize }) */
13
39
  mushroomMaxSize(): number
40
+ /** @deprecated Use mushroomSettings({ maxSize }) */
14
41
  mushroomMaxSize(v: number): this
15
42
 
43
+ /** @deprecated Use mushroomSettings({ colors }) */
16
44
  mushroomColors(): [string, string]
45
+ /** @deprecated Use mushroomSettings({ colors }) */
17
46
  mushroomColors(v: [string, string]): this
18
47
 
48
+ /** @deprecated Use mushroomSettings({ orientation }) */
19
49
  mushroomOrientation(): 'horizontal' | 'vertical'
50
+ /** @deprecated Use mushroomSettings({ orientation }) */
20
51
  mushroomOrientation(v: 'horizontal' | 'vertical'): this
21
52
 
53
+ /** @deprecated Use mushroomSettings({ sizeScaleFunction }) */
22
54
  mushroomSizeScaleFunction(): any
55
+ /** @deprecated Use mushroomSettings({ sizeScaleFunction }) */
23
56
  mushroomSizeScaleFunction(v: any): this
24
57
 
58
+ /** @deprecated Use mushroomSettings({ sizeScaleFunctionV1 }) */
25
59
  mushroomSizeScaleFunctionV1(): any
60
+ /** @deprecated Use mushroomSettings({ sizeScaleFunctionV1 }) */
26
61
  mushroomSizeScaleFunctionV1(v: any): this
27
62
 
63
+ /** @deprecated Use mushroomSettings({ sizeScaleFunctionV2 }) */
28
64
  mushroomSizeScaleFunctionV2(): any
65
+ /** @deprecated Use mushroomSettings({ sizeScaleFunctionV2 }) */
29
66
  mushroomSizeScaleFunctionV2(v: any): this
30
67
  }
@@ -4,17 +4,36 @@ import type { MapConfig } from '../../../core/MapConfig'
4
4
  * Configuration for mushroom maps.
5
5
  */
6
6
  export interface MushroomMapConfig extends MapConfig {
7
+ /** Grouped mushroom settings. */
8
+ mushroomSettings?: {
9
+ codes?: [string, string]
10
+ minSize?: number
11
+ maxSize?: number
12
+ colors?: [string, string]
13
+ orientation?: 'horizontal' | 'vertical'
14
+ sizeScaleFunction?: (value: number) => number
15
+ sizeScaleFunctionV1?: (value: number) => number
16
+ sizeScaleFunctionV2?: (value: number) => number
17
+ }
18
+ /** @deprecated Use mushroomSettings.codes */
7
19
  /** Mushroom codes. */
8
20
  mushroomCodes?: [string, string]
21
+ /** @deprecated Use mushroomSettings.minSize */
9
22
  /** Mushroom min size. */
10
23
  mushroomMinSize?: number
24
+ /** @deprecated Use mushroomSettings.maxSize */
11
25
  /** Mushroom max size. */
12
26
  mushroomMaxSize?: number
27
+ /** @deprecated Use mushroomSettings.colors */
13
28
  /** Mushroom colors. */
14
29
  mushroomColors?: [string, string]
30
+ /** @deprecated Use mushroomSettings.orientation */
15
31
  /** Mushroom orientation. */
16
32
  mushroomOrientation?: 'horizontal' | 'vertical'
33
+ /** @deprecated Use mushroomSettings.sizeScaleFunction */
17
34
  mushroomSizeScaleFunction?: (value: number) => number
35
+ /** @deprecated Use mushroomSettings.sizeScaleFunctionV1 */
18
36
  mushroomSizeScaleFunctionV1?: (value: number) => number
37
+ /** @deprecated Use mushroomSettings.sizeScaleFunctionV2 */
19
38
  mushroomSizeScaleFunctionV2?: (value: number) => number
20
39
  }
@@ -1,11 +1,15 @@
1
1
  import type { MapInstance } from '../../core/MapInstance'
2
2
  import type { SparkStatConfig } from './SparkStatConfig'
3
3
  import type { SparklineLegendConfig } from '../../legend/composition/SparklineLegendConfig'
4
+ import type { SparkSettings } from './SparkMapConfig'
4
5
 
5
6
  /**
6
7
  * Spark map type.
7
8
  */
8
9
  export interface SparkMap extends MapInstance {
10
+ sparkSettings(): SparkSettings
11
+ sparkSettings(v: SparkSettings): this
12
+
9
13
  legend(): SparklineLegendConfig | false
10
14
  legend(config: SparklineLegendConfig | false): this
11
15