eurostat-map 4.4.4 → 4.5.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 (72) hide show
  1. package/README.md +177 -148
  2. package/build/215.eurostatmap.min.js +1 -1
  3. package/build/eurostatmap.js +19934 -15872
  4. package/build/eurostatmap.min.js +2 -2
  5. package/build/eurostatmap.min.js.map +1 -1
  6. package/build/package.json +87 -87
  7. package/build/types/core/GridCartogramSettings.d.ts +33 -0
  8. package/build/types/core/MapConfig.d.ts +13 -2
  9. package/build/types/core/MapInstance.d.ts +80 -4
  10. package/build/types/core/encoding/EncodingConfig.d.ts +31 -0
  11. package/build/types/core/layer/Layer.d.ts +31 -0
  12. package/build/types/core/layer/LayerConfig.d.ts +19 -0
  13. package/build/types/core/layer/LayerRole.d.ts +1 -0
  14. package/build/types/core/locations.d.ts +44 -16
  15. package/build/types/core/stat/StatConfig.d.ts +7 -0
  16. package/build/types/index.d.ts +39 -33
  17. package/build/types/layers/CategoricalMap.d.ts +21 -0
  18. package/build/types/layers/CategoricalMapConfig.d.ts +11 -0
  19. package/build/types/layers/MapType.d.ts +34 -0
  20. package/build/types/layers/choropleth/BivariateChoroplethConfig.d.ts +27 -0
  21. package/build/types/layers/choropleth/BivariateChoroplethMap.d.ts +39 -0
  22. package/build/types/layers/choropleth/ChoroplethConfig.d.ts +39 -0
  23. package/build/types/layers/choropleth/ChoroplethMap.d.ts +48 -0
  24. package/build/types/layers/choropleth/TrivariateChoroplethConfig.d.ts +41 -0
  25. package/build/types/layers/choropleth/TrivariateChoroplethMap.d.ts +18 -0
  26. package/build/types/layers/choropleth/ValueByAlphaConfig.d.ts +8 -0
  27. package/build/types/layers/choropleth/ValueByAlphaMap.d.ts +9 -0
  28. package/build/types/layers/composition/CompositionStatConfig.d.ts +59 -0
  29. package/build/types/layers/composition/bar/BarMap.d.ts +97 -0
  30. package/build/types/layers/composition/bar/BarMapConfig.d.ts +76 -0
  31. package/build/types/layers/composition/coxcomb/CoxcombMap.d.ts +75 -0
  32. package/build/types/layers/composition/coxcomb/CoxcombMapConfig.d.ts +47 -0
  33. package/build/types/layers/composition/coxcomb/CoxcombStatConfig.d.ts +13 -0
  34. package/build/types/layers/composition/pie/PieMap.d.ts +84 -0
  35. package/build/types/layers/composition/pie/PieMapConfig.d.ts +50 -0
  36. package/build/types/layers/composition/stripe/StripeMap.d.ts +80 -0
  37. package/build/types/layers/composition/stripe/StripeMapConfig.d.ts +45 -0
  38. package/build/types/layers/composition/waffle/WaffleMap.d.ts +124 -0
  39. package/build/types/layers/composition/waffle/WaffleMapConfig.d.ts +58 -0
  40. package/build/types/layers/flow/FlowMap.d.ts +218 -0
  41. package/build/types/layers/flow/FlowMapConfig.d.ts +220 -0
  42. package/build/types/layers/proportional-symbol/ProportionalSymbolConfig.d.ts +47 -0
  43. package/build/types/layers/proportional-symbol/ProportionalSymbolMap.d.ts +94 -0
  44. package/build/types/layers/proportional-symbol/mushroom/MushroomMap.d.ts +67 -0
  45. package/build/types/layers/proportional-symbol/mushroom/MushroomMapConfig.d.ts +39 -0
  46. package/build/types/layers/spark/SparkMap.d.ts +56 -0
  47. package/build/types/layers/spark/SparkMapConfig.d.ts +75 -0
  48. package/build/types/layers/spark/SparkStatConfig.d.ts +33 -0
  49. package/build/types/legend/LegendConfig.d.ts +3 -0
  50. package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +79 -0
  51. package/build/types/map-types/choropleth/TrivariateChoroplethConfig.d.ts +25 -16
  52. package/build/types/map-types/choropleth/TrivariateChoroplethMap.d.ts +5 -2
  53. package/build/types/map-types/composition/CompositionStatConfig.d.ts +7 -0
  54. package/build/types/map-types/composition/bar/BarMap.d.ts +97 -79
  55. package/build/types/map-types/composition/bar/BarMapConfig.d.ts +76 -54
  56. package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +29 -0
  57. package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +15 -0
  58. package/build/types/map-types/composition/pie/PieMap.d.ts +5 -5
  59. package/build/types/map-types/composition/pie/PieMapConfig.d.ts +2 -0
  60. package/build/types/map-types/composition/stripe/StripeMap.d.ts +19 -2
  61. package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +11 -0
  62. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +46 -0
  63. package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +24 -10
  64. package/build/types/map-types/flow/FlowMap.d.ts +121 -0
  65. package/build/types/map-types/flow/FlowMapConfig.d.ts +62 -0
  66. package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +30 -0
  67. package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +4 -0
  68. package/build/types/map-types/proportional-symbol/mushroom/MushroomMap.d.ts +37 -0
  69. package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +19 -0
  70. package/build/types/map-types/spark/SparkMap.d.ts +4 -0
  71. package/build/types/map-types/spark/SparkMapConfig.d.ts +32 -0
  72. package/package.json +6 -3
@@ -0,0 +1,218 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { FlowGraph, FlowCurvatureSettings, FlowWidthGradientSettings, FlowBundleSettings } from './FlowMapConfig'
3
+
4
+ /**
5
+ * Flow map type.
6
+ */
7
+ export interface FlowMap extends MapInstance {
8
+ flowGraph(): FlowGraph
9
+ flowGraph(v: FlowGraph): this
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 }) */
75
+ flowColor(): string
76
+ /** @deprecated Use flowSettings({ color }) */
77
+ flowColor(v: string): this
78
+
79
+ /** @deprecated Use flowSettings({ regionColors }) */
80
+ flowRegionColors(): string[]
81
+ /** @deprecated Use flowSettings({ regionColors }) */
82
+ flowRegionColors(v: string[]): this
83
+
84
+ /** @deprecated Use flowSettings({ regionLabels }) */
85
+ flowRegionLabels(): string[]
86
+ /** @deprecated Use flowSettings({ regionLabels }) */
87
+ flowRegionLabels(v: string[]): this
88
+
89
+ /** @deprecated Use flowSettings({ arrows }) */
90
+ flowArrows(): boolean
91
+ /** @deprecated Use flowSettings({ arrows }) */
92
+ flowArrows(v: boolean): this
93
+
94
+ /** @deprecated Use flowSettings({ arrowScale }) */
95
+ flowArrowScale(): number
96
+ /** @deprecated Use flowSettings({ arrowScale }) */
97
+ flowArrowScale(v: number): this
98
+
99
+ /** @deprecated Use flowSettings({ maxWidth }) */
100
+ flowMaxWidth(): number
101
+ /** @deprecated Use flowSettings({ maxWidth }) */
102
+ flowMaxWidth(v: number): this
103
+
104
+ /** @deprecated Use flowSettings({ minWidth }) */
105
+ flowMinWidth(): number
106
+ /** @deprecated Use flowSettings({ minWidth }) */
107
+ flowMinWidth(v: number): this
108
+
109
+ /** @deprecated Use flowSettings({ outlines }) */
110
+ flowOutlines(): boolean
111
+ /** @deprecated Use flowSettings({ outlines }) */
112
+ flowOutlines(v: boolean): this
113
+
114
+ /** @deprecated Use flowSettings({ outlineWidth }) */
115
+ flowOutlineWidth(): number
116
+ /** @deprecated Use flowSettings({ outlineWidth }) */
117
+ flowOutlineWidth(v: number): this
118
+
119
+ /** @deprecated Use flowSettings({ outlineColor }) */
120
+ flowOutlineColor(): string
121
+ /** @deprecated Use flowSettings({ outlineColor }) */
122
+ flowOutlineColor(v: string): this
123
+
124
+ /** @deprecated Use flowSettings({ colorGradient }) */
125
+ flowColorGradient(): boolean
126
+ /** @deprecated Use flowSettings({ colorGradient }) */
127
+ flowColorGradient(v: boolean): this
128
+
129
+ /** @deprecated Use flowSettings({ stack }) */
130
+ flowStack(): boolean
131
+ /** @deprecated Use flowSettings({ stack }) */
132
+ flowStack(v: boolean): this
133
+
134
+ /** @deprecated Use flowSettings({ nodes }) */
135
+ flowNodes(): boolean
136
+ /** @deprecated Use flowSettings({ nodes }) */
137
+ flowNodes(v: boolean): this
138
+
139
+ /** @deprecated Use flowSettings({ nodeType }) */
140
+ flowNodeType(): 'circle' | 'donut'
141
+ /** @deprecated Use flowSettings({ nodeType }) */
142
+ flowNodeType(v: 'circle' | 'donut'): this
143
+
144
+ /** @deprecated Use flowSettings({ labelOffsets }) */
145
+ flowLabelOffsets(): { x: number; y: number }
146
+ /** @deprecated Use flowSettings({ labelOffsets }) */
147
+ flowLabelOffsets(v: { x: number; y: number }): this
148
+
149
+ /** @deprecated Use flowSettings({ lineType }) */
150
+ flowLineType(): 'curved' | 'straight' | 'sankey'
151
+ /** @deprecated Use flowSettings({ lineType }) */
152
+ flowLineType(v: 'curved' | 'straight' | 'sankey'): this
153
+
154
+ /** @deprecated Use flowSettings({ nodeSizeScale }) */
155
+ flowNodeSizeScale(): any
156
+ /** @deprecated Use flowSettings({ nodeSizeScale }) */
157
+ flowNodeSizeScale(v: any): this
158
+
159
+ /** @deprecated Use flowSettings({ opacity }) */
160
+ flowOpacity(): number
161
+ /** @deprecated Use flowSettings({ opacity }) */
162
+ flowOpacity(v: number): this
163
+
164
+ /** @deprecated Use flowSettings({ internal }) */
165
+ flowInternal(): boolean
166
+ /** @deprecated Use flowSettings({ internal }) */
167
+ flowInternal(v: boolean): this
168
+
169
+ /** @deprecated Use flowSettings({ topLocations }) */
170
+ flowTopLocations(): number
171
+ /** @deprecated Use flowSettings({ topLocations }) */
172
+ flowTopLocations(v: number): this
173
+
174
+ /** @deprecated Use flowSettings({ topLocationsType }) */
175
+ flowTopLocationsType(): 'sum' | 'origin' | 'destination'
176
+ /** @deprecated Use flowSettings({ topLocationsType }) */
177
+ flowTopLocationsType(v: 'sum' | 'origin' | 'destination'): this
178
+
179
+ /** @deprecated Use flowSettings({ curvatureSettings }) */
180
+ flowCurvatureSettings(): FlowCurvatureSettings
181
+ /** @deprecated Use flowSettings({ curvatureSettings }) */
182
+ flowCurvatureSettings(v: FlowCurvatureSettings): this
183
+
184
+ /** @deprecated Use flowSettings({ order }) */
185
+ flowOrder(): any
186
+ /** @deprecated Use flowSettings({ order }) */
187
+ flowOrder(v: any): this
188
+
189
+ /** @deprecated Use flowSettings({ widthGradient }) */
190
+ flowWidthGradient(): boolean
191
+ /** @deprecated Use flowSettings({ widthGradient }) */
192
+ flowWidthGradient(v: boolean): this
193
+
194
+ /** @deprecated Use flowSettings({ opacityGradient }) */
195
+ flowOpacityGradient(): boolean
196
+ /** @deprecated Use flowSettings({ opacityGradient }) */
197
+ flowOpacityGradient(v: boolean): this
198
+
199
+ /** @deprecated Use flowSettings({ widthGradientSettings }) */
200
+ flowWidthGradientSettings(): FlowWidthGradientSettings
201
+ /** @deprecated Use flowSettings({ widthGradientSettings }) */
202
+ flowWidthGradientSettings(v: FlowWidthGradientSettings): this
203
+
204
+ /** @deprecated Use flowSettings({ bidirectional }) */
205
+ flowBidirectional(): boolean
206
+ /** @deprecated Use flowSettings({ bidirectional }) */
207
+ flowBidirectional(v: boolean): this
208
+
209
+ /** @deprecated Use flowSettings({ edgeBundling }) */
210
+ flowEdgeBundling(): boolean
211
+ /** @deprecated Use flowSettings({ edgeBundling }) */
212
+ flowEdgeBundling(v: boolean): this
213
+
214
+ /** @deprecated Use flowSettings({ bundleSettings }) */
215
+ flowBundleSettings(): FlowBundleSettings
216
+ /** @deprecated Use flowSettings({ bundleSettings }) */
217
+ flowBundleSettings(v: FlowBundleSettings): this
218
+ }
@@ -0,0 +1,220 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
2
+
3
+ /**
4
+ * A flow node in the flow graph.
5
+ */
6
+ export interface FlowNode {
7
+ /** Id. */
8
+ id: string
9
+ /** Name. */
10
+ name?: string
11
+ /** X. */
12
+ x?: number
13
+ /** Y. */
14
+ y?: number
15
+ /** Value. */
16
+ value?: number
17
+ [key: string]: any
18
+ }
19
+
20
+ /**
21
+ * A flow link between two nodes.
22
+ */
23
+ export interface FlowLink {
24
+ /** Source. */
25
+ source: string | FlowNode
26
+ /** Target. */
27
+ target: string | FlowNode
28
+ /** Value. */
29
+ value: number
30
+ /** Origin id. */
31
+ originId?: string
32
+ /** Dest id. */
33
+ destId?: string
34
+ [key: string]: any
35
+ }
36
+
37
+ /**
38
+ * Graph input used by flow maps.
39
+ */
40
+ export interface FlowGraph {
41
+ /** Nodes. */
42
+ nodes: FlowNode[]
43
+ /** Links. */
44
+ links: FlowLink[]
45
+ }
46
+
47
+ /**
48
+ * Curvature settings used for curved/sankey flow rendering.
49
+ */
50
+ export interface FlowCurvatureSettings {
51
+ /** Gap x. */
52
+ gapX?: number
53
+ /** Pad x. */
54
+ padX?: number
55
+ /** Pad y. */
56
+ padY?: number
57
+ /** Bump y. */
58
+ bumpY?: number
59
+ /** Curvature. */
60
+ curvature?: number
61
+ }
62
+
63
+ /**
64
+ * Width gradient settings for tapered flows.
65
+ */
66
+ export interface FlowWidthGradientSettings {
67
+ /** Start ratio. */
68
+ startRatio?: number
69
+ /** Samples. */
70
+ samples?: number
71
+ /** Min start width. */
72
+ minStartWidth?: number
73
+ /** Cap end. */
74
+ capEnd?: boolean
75
+ /** Curvature follow. */
76
+ curvatureFollow?: boolean
77
+ }
78
+
79
+ /**
80
+ * Force settings for optional edge bundling.
81
+ */
82
+ export interface FlowBundleSettings {
83
+ /** Alpha decay. */
84
+ alphaDecay?: number
85
+ /** Charge strength. */
86
+ chargeStrength?: number
87
+ /** Distance max. */
88
+ distanceMax?: number | null
89
+ /** Link strength. */
90
+ linkStrength?: number
91
+ /** Link iterations. */
92
+ linkIterations?: number
93
+ }
94
+
95
+ /**
96
+ * Configuration for flow maps.
97
+ */
98
+ export interface FlowMapConfig extends MapConfig {
99
+ /** Flow graph. */
100
+ flowGraph?: FlowGraph
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 */
136
+ /** Flow color. */
137
+ flowColor?: string
138
+ /** @deprecated Use flowSettings.regionColors */
139
+ /** Flow region colors. */
140
+ flowRegionColors?: string[]
141
+ /** @deprecated Use flowSettings.regionLabels */
142
+ /** Flow region labels. */
143
+ flowRegionLabels?: string[]
144
+ /** @deprecated Use flowSettings.arrows */
145
+ /** Flow arrows. */
146
+ flowArrows?: boolean
147
+ /** @deprecated Use flowSettings.arrowScale */
148
+ /** Flow arrow scale. */
149
+ flowArrowScale?: number
150
+ /** @deprecated Use flowSettings.maxWidth */
151
+ /** Flow max width. */
152
+ flowMaxWidth?: number
153
+ /** @deprecated Use flowSettings.minWidth */
154
+ /** Flow min width. */
155
+ flowMinWidth?: number
156
+ /** @deprecated Use flowSettings.outlines */
157
+ /** Flow outlines. */
158
+ flowOutlines?: boolean
159
+ /** @deprecated Use flowSettings.outlineWidth */
160
+ /** Flow outline width. */
161
+ flowOutlineWidth?: number
162
+ /** @deprecated Use flowSettings.outlineColor */
163
+ /** Flow outline color. */
164
+ flowOutlineColor?: string
165
+ /** @deprecated Use flowSettings.colorGradient */
166
+ /** Flow color gradient. */
167
+ flowColorGradient?: boolean
168
+ /** @deprecated Use flowSettings.stack */
169
+ /** Flow stack. */
170
+ flowStack?: boolean
171
+ /** @deprecated Use flowSettings.nodes */
172
+ /** Flow nodes. */
173
+ flowNodes?: boolean
174
+ /** @deprecated Use flowSettings.nodeType */
175
+ /** Flow node type. */
176
+ flowNodeType?: 'circle' | 'donut'
177
+ /** @deprecated Use flowSettings.labelOffsets */
178
+ /** Flow label offsets. */
179
+ flowLabelOffsets?: { x?: number; y?: number }
180
+ /** @deprecated Use flowSettings.lineType */
181
+ /** Flow line type. */
182
+ flowLineType?: 'curved' | 'straight' | 'sankey'
183
+ /** @deprecated Use flowSettings.nodeSizeScale */
184
+ flowNodeSizeScale?: (value: number) => number
185
+ /** @deprecated Use flowSettings.opacity */
186
+ /** Flow opacity. */
187
+ flowOpacity?: number
188
+ /** @deprecated Use flowSettings.internal */
189
+ /** Flow internal. */
190
+ flowInternal?: boolean
191
+ /** @deprecated Use flowSettings.topLocations */
192
+ /** Flow top locations. */
193
+ flowTopLocations?: number
194
+ /** @deprecated Use flowSettings.topLocationsType */
195
+ /** Flow top locations type. */
196
+ flowTopLocationsType?: 'sum' | 'origin' | 'destination'
197
+ /** @deprecated Use flowSettings.curvatureSettings */
198
+ /** Flow curvature settings. */
199
+ flowCurvatureSettings?: FlowCurvatureSettings
200
+ /** @deprecated Use flowSettings.order */
201
+ flowOrder?: (a: any, b: any) => number
202
+ /** @deprecated Use flowSettings.widthGradient */
203
+ /** Flow width gradient. */
204
+ flowWidthGradient?: boolean
205
+ /** @deprecated Use flowSettings.opacityGradient */
206
+ /** Flow opacity gradient. */
207
+ flowOpacityGradient?: boolean
208
+ /** @deprecated Use flowSettings.widthGradientSettings */
209
+ /** Flow width gradient settings. */
210
+ flowWidthGradientSettings?: FlowWidthGradientSettings
211
+ /** @deprecated Use flowSettings.bidirectional */
212
+ /** Flow bidirectional. */
213
+ flowBidirectional?: boolean
214
+ /** @deprecated Use flowSettings.edgeBundling */
215
+ /** Flow edge bundling. */
216
+ flowEdgeBundling?: boolean
217
+ /** @deprecated Use flowSettings.bundleSettings */
218
+ /** Flow bundle settings. */
219
+ flowBundleSettings?: FlowBundleSettings
220
+ }
@@ -0,0 +1,47 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
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
+
30
+ /**
31
+ * Configuration for proportional symbol maps
32
+ */
33
+ export interface ProportionalSymbolConfig extends MapConfig {
34
+ /** Symbol shape used for markers. */
35
+ symbol?: 'circle' | 'square'
36
+ /** Base symbol size factor. */
37
+ size?: number
38
+
39
+ /** Dorling cartogram. */
40
+ dorling?: boolean
41
+
42
+ /** Size function. */
43
+ psCustomSize?: (value: number) => number
44
+
45
+ /** Grouped proportional symbol style settings. */
46
+ psSettings?: ProportionalSymbolSettings
47
+ }
@@ -0,0 +1,94 @@
1
+ import { MapInstance } from '../../core/MapInstance'
2
+ import type { ProportionalSymbolSettings } from './ProportionalSymbolConfig'
3
+
4
+ /**
5
+ * Proportional symbol map object
6
+ */
7
+ export interface ProportionalSymbolMap extends MapInstance {
8
+ psSettings(): ProportionalSymbolSettings
9
+ psSettings(v: ProportionalSymbolSettings): this
10
+
11
+ psMaxSize(): number
12
+ psMaxSize(v: number): this
13
+
14
+ psMinSize(): number
15
+ psMinSize(v: number): this
16
+
17
+ psMaxValue(): number | undefined
18
+ psMaxValue(v: number | undefined): this
19
+
20
+ psMinValue(): number | undefined
21
+ psMinValue(v: number | undefined): this
22
+
23
+ psFill(): string
24
+ psFill(v: string): this
25
+
26
+ psFillOpacity(): number
27
+ psFillOpacity(v: number): this
28
+
29
+ psStrokeOpacity(): number
30
+ psStrokeOpacity(v: number): this
31
+
32
+ psStroke(): string
33
+ psStroke(v: string): this
34
+
35
+ psStrokeWidth(): number
36
+ psStrokeWidth(v: number): this
37
+
38
+ classifierSize(): any
39
+ classifierSize(v: any): this
40
+
41
+ classifierColor(): any
42
+ classifierColor(v: any): this
43
+
44
+ psShape(): string
45
+ psShape(v: string): this
46
+
47
+ psCustomShape(): any
48
+ psCustomShape(v: any): this
49
+
50
+ psBarWidth(): number
51
+ psBarWidth(v: number): this
52
+
53
+ psClassToFillStyle(): any
54
+ psClassToFillStyle(v: any): this
55
+
56
+ psColorFun(): any
57
+ psColorFun(v: any): this
58
+
59
+ psSizeScale(): any
60
+ psSizeScale(v: any): this
61
+
62
+ noDataFillStyle(): string
63
+ noDataFillStyle(v: string): this
64
+
65
+ psThresholds(): number[]
66
+ psThresholds(v: number[]): this
67
+
68
+ psColors(): string[] | null
69
+ psColors(v: string[] | null): this
70
+
71
+ psCustomSVG(): any
72
+ psCustomSVG(v: any): this
73
+
74
+ psOffset(): { x: number; y: number }
75
+ psOffset(v: { x: number; y: number }): this
76
+
77
+ psClassificationMethod(): string
78
+ psClassificationMethod(v: string): this
79
+
80
+ psClasses(): number
81
+ psClasses(v: number): this
82
+
83
+ dorling(): boolean
84
+ dorling(v: boolean): this
85
+
86
+ psSpikeWidth(): number
87
+ psSpikeWidth(v: number): this
88
+
89
+ psCodeLabels(): boolean
90
+ psCodeLabels(v: boolean): this
91
+
92
+ psBrightenFactor(): number
93
+ psBrightenFactor(v: number): this
94
+ }
@@ -0,0 +1,67 @@
1
+ import type { MapInstance } from '../../../core/MapInstance'
2
+
3
+ /**
4
+ * Mushroom map type.
5
+ */
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 }) */
29
+ mushroomCodes(): [string, string]
30
+ /** @deprecated Use mushroomSettings({ codes }) */
31
+ mushroomCodes(v: [string, string]): this
32
+
33
+ /** @deprecated Use mushroomSettings({ minSize }) */
34
+ mushroomMinSize(): number
35
+ /** @deprecated Use mushroomSettings({ minSize }) */
36
+ mushroomMinSize(v: number): this
37
+
38
+ /** @deprecated Use mushroomSettings({ maxSize }) */
39
+ mushroomMaxSize(): number
40
+ /** @deprecated Use mushroomSettings({ maxSize }) */
41
+ mushroomMaxSize(v: number): this
42
+
43
+ /** @deprecated Use mushroomSettings({ colors }) */
44
+ mushroomColors(): [string, string]
45
+ /** @deprecated Use mushroomSettings({ colors }) */
46
+ mushroomColors(v: [string, string]): this
47
+
48
+ /** @deprecated Use mushroomSettings({ orientation }) */
49
+ mushroomOrientation(): 'horizontal' | 'vertical'
50
+ /** @deprecated Use mushroomSettings({ orientation }) */
51
+ mushroomOrientation(v: 'horizontal' | 'vertical'): this
52
+
53
+ /** @deprecated Use mushroomSettings({ sizeScaleFunction }) */
54
+ mushroomSizeScaleFunction(): any
55
+ /** @deprecated Use mushroomSettings({ sizeScaleFunction }) */
56
+ mushroomSizeScaleFunction(v: any): this
57
+
58
+ /** @deprecated Use mushroomSettings({ sizeScaleFunctionV1 }) */
59
+ mushroomSizeScaleFunctionV1(): any
60
+ /** @deprecated Use mushroomSettings({ sizeScaleFunctionV1 }) */
61
+ mushroomSizeScaleFunctionV1(v: any): this
62
+
63
+ /** @deprecated Use mushroomSettings({ sizeScaleFunctionV2 }) */
64
+ mushroomSizeScaleFunctionV2(): any
65
+ /** @deprecated Use mushroomSettings({ sizeScaleFunctionV2 }) */
66
+ mushroomSizeScaleFunctionV2(v: any): this
67
+ }
@@ -0,0 +1,39 @@
1
+ import type { MapConfig } from '../../../core/MapConfig'
2
+
3
+ /**
4
+ * Configuration for mushroom maps.
5
+ */
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 */
19
+ /** Mushroom codes. */
20
+ mushroomCodes?: [string, string]
21
+ /** @deprecated Use mushroomSettings.minSize */
22
+ /** Mushroom min size. */
23
+ mushroomMinSize?: number
24
+ /** @deprecated Use mushroomSettings.maxSize */
25
+ /** Mushroom max size. */
26
+ mushroomMaxSize?: number
27
+ /** @deprecated Use mushroomSettings.colors */
28
+ /** Mushroom colors. */
29
+ mushroomColors?: [string, string]
30
+ /** @deprecated Use mushroomSettings.orientation */
31
+ /** Mushroom orientation. */
32
+ mushroomOrientation?: 'horizontal' | 'vertical'
33
+ /** @deprecated Use mushroomSettings.sizeScaleFunction */
34
+ mushroomSizeScaleFunction?: (value: number) => number
35
+ /** @deprecated Use mushroomSettings.sizeScaleFunctionV1 */
36
+ mushroomSizeScaleFunctionV1?: (value: number) => number
37
+ /** @deprecated Use mushroomSettings.sizeScaleFunctionV2 */
38
+ mushroomSizeScaleFunctionV2?: (value: number) => number
39
+ }