eurostat-map 4.3.58 → 4.4.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 (126) hide show
  1. package/README.md +113 -49
  2. package/build/215.eurostatmap.min.js +1 -1
  3. package/build/215.eurostatmap.min.js.map +1 -1
  4. package/build/eurostatmap.js +11757 -12996
  5. package/build/eurostatmap.min.js +2 -4
  6. package/build/eurostatmap.min.js.map +1 -1
  7. package/build/package.json +87 -0
  8. package/build/types/core/DorlingSettings.d.ts +29 -0
  9. package/build/types/core/GridCartogramSettings.d.ts +30 -0
  10. package/build/types/core/InsetConfig.d.ts +23 -0
  11. package/build/types/core/MapConfig.d.ts +95 -0
  12. package/build/types/core/MapInstance.d.ts +349 -0
  13. package/build/types/core/MinimapConfig.d.ts +11 -0
  14. package/build/types/core/TooltipConfig.d.ts +16 -0
  15. package/build/types/core/decoration/CoastalMarginSettings.d.ts +21 -0
  16. package/build/types/core/decoration/ScalebarConfig.d.ts +48 -0
  17. package/build/types/core/decoration/StampConfig.d.ts +71 -0
  18. package/build/types/core/geo/centroids.d.ts +33 -0
  19. package/build/types/core/geo/geometries.d.ts +71 -0
  20. package/build/types/core/geo/kosovo.d.ts +12 -0
  21. package/build/types/core/geo/proj4.d.ts +26 -0
  22. package/build/types/core/geo/projection.d.ts +29 -0
  23. package/build/types/core/insets.d.ts +16 -0
  24. package/build/types/core/layout.d.ts +23 -0
  25. package/build/types/core/locations.d.ts +55 -0
  26. package/build/types/core/minimaps.d.ts +20 -0
  27. package/build/types/core/scale.d.ts +30 -0
  28. package/build/types/core/stat/StatConfig.d.ts +27 -0
  29. package/build/types/core/stat/StatData.d.ts +113 -0
  30. package/build/types/core/utils.d.ts +198 -0
  31. package/build/types/core/zoom.d.ts +21 -0
  32. package/build/types/index.d.ts +253 -0
  33. package/build/types/legend/CategoricalLegendConfig.d.ts +13 -0
  34. package/build/types/legend/CoxcombLegendConfig.d.ts +85 -0
  35. package/build/types/legend/LegendConfig.d.ts +51 -0
  36. package/build/types/legend/MushroomLegendConfig.d.ts +56 -0
  37. package/build/types/legend/PatternFillLegendConfig.d.ts +11 -0
  38. package/build/types/legend/PieChartLegendConfig.d.ts +68 -0
  39. package/build/types/legend/SparklineLegendConfig.d.ts +6 -0
  40. package/build/types/legend/StripeCompositionLegendConfig.d.ts +11 -0
  41. package/build/types/legend/WaffleLegendConfig.d.ts +74 -0
  42. package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +59 -0
  43. package/build/types/legend/choropleth/ChoroplethLegendConfig.d.ts +0 -0
  44. package/build/types/legend/choropleth/HistogramLegendConfig.d.ts +26 -0
  45. package/build/types/legend/choropleth/TrivariateLegendConfig.d.ts +32 -0
  46. package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +2 -0
  47. package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +2 -0
  48. package/build/types/legend/choropleth/legend-choropleth.d.ts +2 -0
  49. package/build/types/legend/composition/BarChartLegendConfig.d.ts +68 -0
  50. package/build/types/legend/composition/CoxcombLegendConfig.d.ts +85 -0
  51. package/build/types/legend/composition/PieChartLegendConfig.d.ts +68 -0
  52. package/build/types/legend/composition/SparklineLegendConfig.d.ts +94 -0
  53. package/build/types/legend/composition/StripeCompositionLegendConfig.d.ts +11 -0
  54. package/build/types/legend/composition/WaffleLegendConfig.d.ts +74 -0
  55. package/build/types/legend/composition/legend-bar-chart.d.ts +2 -0
  56. package/build/types/legend/flow/FlowLegendConfig.d.ts +0 -0
  57. package/build/types/legend/flow/FlowMapLegendConfig.d.ts +117 -0
  58. package/build/types/legend/flow/legend-flow.d.ts +2 -0
  59. package/build/types/legend/legend-categorical.d.ts +2 -0
  60. package/build/types/legend/legend-continuous.d.ts +2 -0
  61. package/build/types/legend/legend-discrete.d.ts +2 -0
  62. package/build/types/legend/legend.d.ts +13 -0
  63. package/build/types/legend/proportional-symbol/PropSymbolLegendConfig.d.ts +0 -0
  64. package/build/types/legend/proportional-symbol/ProportionalSymbolsLegendConfig.d.ts +134 -0
  65. package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +2 -0
  66. package/build/types/map-types/CategoricalMap.d.ts +21 -0
  67. package/build/types/map-types/CategoricalMapConfig.d.ts +11 -0
  68. package/build/types/map-types/CateogricalMapConfig.d.ts +11 -0
  69. package/build/types/map-types/MapType.d.ts +34 -0
  70. package/build/types/map-types/choropleth/BivariateChoroplethConfig.d.ts +23 -0
  71. package/build/types/map-types/choropleth/BivariateChoroplethMap.d.ts +39 -0
  72. package/build/types/map-types/choropleth/ChoroplethConfig.d.ts +35 -0
  73. package/build/types/map-types/choropleth/ChoroplethMap.d.ts +48 -0
  74. package/build/types/map-types/choropleth/TrivariateChoroplethConfig.d.ts +28 -0
  75. package/build/types/map-types/choropleth/TrivariateChoroplethMap.d.ts +15 -0
  76. package/build/types/map-types/choropleth/ValueByAlphaConfig.d.ts +8 -0
  77. package/build/types/map-types/choropleth/ValueByAlphaMap.d.ts +9 -0
  78. package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +4 -0
  79. package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +4 -0
  80. package/build/types/map-types/choropleth/map-choropleth.d.ts +47 -0
  81. package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +4 -0
  82. package/build/types/map-types/composition/BarMap.d.ts +86 -0
  83. package/build/types/map-types/composition/BarMapConfig.d.ts +30 -0
  84. package/build/types/map-types/composition/CompositionStatConfig.d.ts +34 -0
  85. package/build/types/map-types/composition/CoxcombMap.d.ts +42 -0
  86. package/build/types/map-types/composition/CoxcombMapConfig.d.ts +18 -0
  87. package/build/types/map-types/composition/PieMap.d.ts +62 -0
  88. package/build/types/map-types/composition/PieMapConfig.d.ts +24 -0
  89. package/build/types/map-types/composition/SparkMap.d.ts +46 -0
  90. package/build/types/map-types/composition/SparkMapConfig.d.ts +25 -0
  91. package/build/types/map-types/composition/StripeMap.d.ts +43 -0
  92. package/build/types/map-types/composition/StripeMapConfig.d.ts +16 -0
  93. package/build/types/map-types/composition/WaffleMap.d.ts +71 -0
  94. package/build/types/map-types/composition/WaffleMapConfig.d.ts +25 -0
  95. package/build/types/map-types/composition/bar/BarMap.d.ts +79 -0
  96. package/build/types/map-types/composition/bar/BarMapConfig.d.ts +54 -0
  97. package/build/types/map-types/composition/composition-map.d.ts +25 -0
  98. package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +46 -0
  99. package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +32 -0
  100. package/build/types/map-types/composition/coxcomb/CoxcombStatConfig.d.ts +16 -0
  101. package/build/types/map-types/composition/map-bar.d.ts +5 -0
  102. package/build/types/map-types/composition/map-coxcomb.d.ts +5 -0
  103. package/build/types/map-types/composition/map-pie.d.ts +10 -0
  104. package/build/types/map-types/composition/map-spark.d.ts +5 -0
  105. package/build/types/map-types/composition/map-stripe.d.ts +5 -0
  106. package/build/types/map-types/composition/map-waffle.d.ts +5 -0
  107. package/build/types/map-types/composition/pie/PieMap.d.ts +69 -0
  108. package/build/types/map-types/composition/pie/PieMapConfig.d.ts +42 -0
  109. package/build/types/map-types/composition/stripe/StripeMap.d.ts +52 -0
  110. package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +28 -0
  111. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +78 -0
  112. package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +44 -0
  113. package/build/types/map-types/flow/FlowMap.d.ts +97 -0
  114. package/build/types/map-types/flow/FlowMapConfig.d.ts +158 -0
  115. package/build/types/map-types/flow/map-flow.d.ts +5 -0
  116. package/build/types/map-types/map-categorical.d.ts +19 -0
  117. package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +17 -0
  118. package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +90 -0
  119. package/build/types/map-types/proportional-symbol/map-proportional-symbols.d.ts +35 -0
  120. package/build/types/map-types/proportional-symbol/mushroom/MushroomMap.d.ts +30 -0
  121. package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +20 -0
  122. package/build/types/map-types/spark/SparkMap.d.ts +52 -0
  123. package/build/types/map-types/spark/SparkMapConfig.d.ts +42 -0
  124. package/build/types/map-types/spark/SparkStatConfig.d.ts +16 -0
  125. package/build/types/utils/FillPatternOptions.d.ts +17 -0
  126. package/package.json +12 -5
@@ -0,0 +1,47 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /**
4
+ * Configuration for choropleth map
5
+ */
6
+ export interface ChoroplethMapConfig {
7
+ /** Number of classes for classification. @default 7 */
8
+ numberOfClasses?: number
9
+ /** Classification method: 'quantile', 'ckmeans', 'jenks', 'equinter', 'threshold'. @default 'quantile' */
10
+ classificationMethod?: 'quantile' | 'ckmeans' | 'jenks' | 'equinter' | 'threshold'
11
+ /** Threshold values when classificationMethod is 'threshold'. @default [0] */
12
+ thresholds?: number[]
13
+ /** Array of colors for classes */
14
+ colors?: string[]
15
+ /** Ensure nice rounded threshold values. @default true */
16
+ makeClassifNice?: boolean
17
+ /** Color function mapping [0,1] to color */
18
+ colorFunction?: (t: number) => string
19
+ /** Function returning color from class index */
20
+ classToFillStyle?: (i: number) => string
21
+ /** Classifier function returning class number from stat value */
22
+ classifier?: (value: number) => number
23
+ /** Fill style for regions with no data. @default '#bcbcbc' */
24
+ noDataFillStyle?: string
25
+ }
26
+
27
+ /**
28
+ * Creates a choropleth map instance.
29
+ * @param config - Map configuration
30
+ * @returns Map instance with choropleth-specific methods
31
+ */
32
+ export function map(config?: ChoroplethMapConfig): MapInstance
33
+
34
+ /**
35
+ * Gets a color function from interpolator and color array.
36
+ * @param colorFunction - D3 color interpolator function
37
+ * @param colorArray - Array of colors to interpolate
38
+ * @param schemeType - 'discrete' or 'continuous'. @default 'discrete'
39
+ * @returns Color function
40
+ */
41
+ export function getColorFunction(colorFunction: any, colorArray: string[], schemeType?: 'discrete' | 'continuous'): (t: number) => string
42
+
43
+ /**
44
+ * Gets a fill pattern legend function.
45
+ * @returns Function that returns pattern for a region
46
+ */
47
+ export function getFillPatternLegend(): (ecl: string) => any
@@ -0,0 +1,4 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /** Creates a value-by-alpha map instance */
4
+ export function map(config?: any): MapInstance
@@ -0,0 +1,86 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionStatConfig } from './CompositionStatConfig'
3
+
4
+ /**
5
+ * Bar map type.
6
+ */
7
+ export interface BarMap extends MapInstance {
8
+ barType(): 'stacked' | 'grouped'
9
+ barType(v: 'stacked' | 'grouped'): this
10
+
11
+ catColors(): any
12
+ catColors(v: any): this
13
+
14
+ catLabels(): any
15
+ catLabels(v: any): this
16
+
17
+ showOnlyWhenComplete(): boolean
18
+ showOnlyWhenComplete(v: boolean): this
19
+
20
+ noDataFillStyle(): string
21
+ noDataFillStyle(v: string): this
22
+
23
+ barMaxWidth(): number
24
+ barMaxWidth(v: number): this
25
+
26
+ barMinWidth(): number
27
+ barMinWidth(v: number): this
28
+
29
+ barHeight(): number
30
+ barHeight(v: number): this
31
+
32
+ barGroupWidth(): number
33
+ barGroupWidth(v: number): this
34
+
35
+ barGroupGap(): number
36
+ barGroupGap(v: number): this
37
+
38
+ barGroupMinHeight(): number
39
+ barGroupMinHeight(v: number): this
40
+
41
+ barGroupMaxHeight(): number
42
+ barGroupMaxHeight(v: number): this
43
+
44
+ barStrokeFill(): string
45
+ barStrokeFill(v: string): this
46
+
47
+ barStrokeWidth(): number
48
+ barStrokeWidth(v: number): this
49
+
50
+ barCornerRadius(): number
51
+ barCornerRadius(v: number): this
52
+
53
+ barOtherColor(): string
54
+ barOtherColor(v: string): this
55
+
56
+ barOtherText(): string
57
+ barOtherText(v: string): this
58
+
59
+ barTooltipWidth(): number
60
+ barTooltipWidth(v: number): this
61
+
62
+ barTooltipHeight(): number
63
+ barTooltipHeight(v: number): this
64
+
65
+ dorling(): boolean
66
+ dorling(v: boolean): this
67
+
68
+ animateDorling(): boolean
69
+ animateDorling(v: boolean): this
70
+
71
+ barTotalCode(): string | undefined
72
+ barTotalCode(v: string | undefined): this
73
+
74
+ statCodes(): string[] | undefined
75
+ statCodes(v: string[] | undefined): this
76
+
77
+ statBar(config: CompositionStatConfig): this
78
+ statBar(
79
+ config: CompositionStatConfig,
80
+ categoryParameter?: string,
81
+ categoryCodes?: string[],
82
+ categoryLabels?: string[],
83
+ categoryColors?: string[],
84
+ totalCode?: string
85
+ ): this
86
+ }
@@ -0,0 +1,30 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
2
+
3
+ /**
4
+ * Configuration for bar chart composition maps.
5
+ */
6
+ export interface BarMapConfig extends MapConfig {
7
+ barType?: 'stacked' | 'grouped'
8
+ catColors?: Record<string, string>
9
+ catLabels?: Record<string, string>
10
+ showOnlyWhenComplete?: boolean
11
+ noDataFillStyle?: string
12
+ barMinWidth?: number
13
+ barMaxWidth?: number
14
+ barHeight?: number
15
+ barGroupWidth?: number
16
+ barGroupGap?: number
17
+ barGroupMinHeight?: number
18
+ barGroupMaxHeight?: number
19
+ barStrokeFill?: string
20
+ barStrokeWidth?: number
21
+ barCornerRadius?: number
22
+ barOtherColor?: string
23
+ barOtherText?: string
24
+ barTooltipWidth?: number
25
+ barTooltipHeight?: number
26
+ dorling?: boolean
27
+ animateDorling?: boolean
28
+ barTotalCode?: string
29
+ statCodes?: string[]
30
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Statistical configuration for composition maps (pie, bar, waffle, stripe).
3
+ */
4
+ export interface CompositionStatConfig {
5
+ /** Eurostat dataset code. */
6
+ eurostatDatasetCode?: string
7
+ /** Filters. */
8
+ filters?: Record<string, any>
9
+ /** Unit text. */
10
+ unitText?: string
11
+ transform?: (value: number) => number
12
+
13
+ /** Category parameter. */
14
+ categoryParameter?: string
15
+ /** Category codes. */
16
+ categoryCodes?: string[]
17
+ /** Category labels. */
18
+ categoryLabels?: string[]
19
+ /** Category colors. */
20
+ categoryColors?: string[]
21
+ /** Total code. */
22
+ totalCode?: string
23
+
24
+ /** Legacy nested API supported by buildStatCompositionMethod. */
25
+ stat?: {
26
+ /** Eurostat dataset code. */
27
+ eurostatDatasetCode?: string
28
+ /** Filters. */
29
+ filters?: Record<string, any>
30
+ /** Unit text. */
31
+ unitText?: string
32
+ transform?: (value: number) => number
33
+ }
34
+ }
@@ -0,0 +1,42 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CoxcombStatConfig } from './CompositionStatConfig'
3
+
4
+ /**
5
+ * Coxcomb map type.
6
+ */
7
+ export interface CoxcombMap extends MapInstance {
8
+ catColors(): any
9
+ catColors(v: any): this
10
+
11
+ catLabels(): any
12
+ catLabels(v: any): this
13
+
14
+ noDataFillStyle(): string
15
+ noDataFillStyle(v: string): this
16
+
17
+ coxcombMaxRadius(): number
18
+ coxcombMaxRadius(v: number): this
19
+
20
+ coxcombMinRadius(): number
21
+ coxcombMinRadius(v: number): this
22
+
23
+ coxcombRings(): boolean
24
+ coxcombRings(v: boolean): this
25
+
26
+ coxcombStrokeFill(): string
27
+ coxcombStrokeFill(v: string): this
28
+
29
+ coxcombStrokeWidth(): number
30
+ coxcombStrokeWidth(v: number): this
31
+
32
+ hoverColor(): string
33
+ hoverColor(v: string): this
34
+
35
+ classifierSize(): any
36
+ classifierSize(v: any): this
37
+
38
+ coxcombOffsets(): { x: number; y: number }
39
+ coxcombOffsets(v: { x: number; y: number }): this
40
+
41
+ statCoxcomb(config: CoxcombStatConfig): this
42
+ }
@@ -0,0 +1,18 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
2
+
3
+ /**
4
+ * Configuration for coxcomb (polar area) chart maps.
5
+ */
6
+ export interface CoxcombMapConfig extends MapConfig {
7
+ coxcombMinRadius?: number
8
+ coxcombMaxRadius?: number
9
+ coxcombStrokeFill?: string
10
+ coxcombStrokeWidth?: number
11
+ coxcombRings?: boolean
12
+ coxcombOffsets?: { x: number; y: number }
13
+ hoverColor?: string
14
+ catColors?: Record<string, string>
15
+ catLabels?: Record<string, string>
16
+ noDataFillStyle?: string
17
+ classifierSize?: any
18
+ }
@@ -0,0 +1,62 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionStatConfig } from './CompositionStatConfig'
3
+
4
+ /**
5
+ * Pie map type.
6
+ */
7
+ export interface PieMap extends MapInstance {
8
+ catColors(): any
9
+ catColors(v: any): this
10
+
11
+ catLabels(): any
12
+ catLabels(v: any): this
13
+
14
+ showOnlyWhenComplete(): boolean
15
+ showOnlyWhenComplete(v: boolean): this
16
+
17
+ noDataFillStyle(): string
18
+ noDataFillStyle(v: string): this
19
+
20
+ pieMaxRadius(): number
21
+ pieMaxRadius(v: number): this
22
+
23
+ pieMinRadius(): number
24
+ pieMinRadius(v: number): this
25
+
26
+ pieChartInnerRadius(): number
27
+ pieChartInnerRadius(v: number): this
28
+
29
+ pieOtherColor(): string
30
+ pieOtherColor(v: string): this
31
+
32
+ pieOtherText(): string
33
+ pieOtherText(v: string): this
34
+
35
+ pieStrokeFill(): string
36
+ pieStrokeFill(v: string): this
37
+
38
+ pieStrokeWidth(): number
39
+ pieStrokeWidth(v: number): this
40
+
41
+ dorling(): boolean
42
+ dorling(v: boolean): this
43
+
44
+ animateDorling(): boolean
45
+ animateDorling(v: boolean): this
46
+
47
+ pieTotalCode(): string | undefined
48
+ pieTotalCode(v: string | undefined): this
49
+
50
+ statCodes(): string[] | undefined
51
+ statCodes(v: string[] | undefined): this
52
+
53
+ statPie(config: CompositionStatConfig): this
54
+ statPie(
55
+ config: CompositionStatConfig,
56
+ categoryParameter?: string,
57
+ categoryCodes?: string[],
58
+ categoryLabels?: string[],
59
+ categoryColors?: string[],
60
+ totalCode?: string
61
+ ): this
62
+ }
@@ -0,0 +1,24 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
2
+
3
+ /**
4
+ * Configuration for pie chart composition maps.
5
+ */
6
+ export interface PieMapConfig extends MapConfig {
7
+ pieMinRadius?: number
8
+ pieMaxRadius?: number
9
+ pieChartInnerRadius?: number
10
+ pieStrokeFill?: string
11
+ pieStrokeWidth?: number
12
+ tooltipPieRadius?: number
13
+ tooltipPieInnerRadius?: number
14
+ catColors?: Record<string, string>
15
+ catLabels?: Record<string, string>
16
+ pieOtherColor?: string
17
+ pieOtherText?: string
18
+ showOnlyWhenComplete?: boolean
19
+ noDataFillStyle?: string
20
+ dorling?: boolean
21
+ animateDorling?: boolean
22
+ pieTotalCode?: string
23
+ statCodes?: string[]
24
+ }
@@ -0,0 +1,46 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { SparkStatConfig } from './CompositionStatConfig'
3
+
4
+ /**
5
+ * Spark map type.
6
+ */
7
+ export interface SparkMap extends MapInstance {
8
+ sparkLineColor(): any
9
+ sparkLineColor(v: any): this
10
+
11
+ showOnlyWhenComplete(): boolean
12
+ showOnlyWhenComplete(v: boolean): this
13
+
14
+ sparkType(): 'line' | 'area' | 'bar'
15
+ sparkType(v: 'line' | 'area' | 'bar'): this
16
+
17
+ sparkLineWidth(): number
18
+ sparkLineWidth(v: number): this
19
+
20
+ sparkLineHeight(): number
21
+ sparkLineHeight(v: number): this
22
+
23
+ sparkLineStrokeWidth(): number
24
+ sparkLineStrokeWidth(v: number): this
25
+
26
+ sparkLineOpacity(): number
27
+ sparkLineOpacity(v: number): this
28
+
29
+ sparkLineCircleRadius(): number
30
+ sparkLineCircleRadius(v: number): this
31
+
32
+ sparkLineAreaColor(): any
33
+ sparkLineAreaColor(v: any): this
34
+
35
+ sparkTooltipChart(): any
36
+ sparkTooltipChart(v: any): this
37
+
38
+ sparkLineChartFunction(): any
39
+ sparkLineChartFunction(v: any): this
40
+
41
+ sparkLineOffsets(): { x: number; y: number }
42
+ sparkLineOffsets(v: { x: number; y: number }): this
43
+
44
+ sparklineData(dataObject: Record<string, Record<string, number>>): this
45
+ statSpark(config: SparkStatConfig): this
46
+ }
@@ -0,0 +1,25 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
2
+
3
+ /**
4
+ * Configuration for sparkline maps.
5
+ */
6
+ export interface SparkMapConfig extends MapConfig {
7
+ sparkType?: 'line' | 'area' | 'bar'
8
+ sparkLineColor?: string | ((value: number, index: number, data: any[]) => string)
9
+ sparkAreaColor?: string | ((value: number, index: number, data: any[]) => string)
10
+ sparkLineWidth?: number
11
+ sparkLineHeight?: number
12
+ sparkLineStrokeWidth?: number
13
+ sparkLineOpacity?: number
14
+ sparkLineCircleRadius?: number
15
+ sparkTooltipChart?: {
16
+ width: number
17
+ height: number
18
+ margin: { left: number; right: number; top: number; bottom: number }
19
+ circleRadius: number
20
+ }
21
+ sparkLineOffsets?: { x: number; y: number }
22
+ showOnlyWhenComplete?: boolean
23
+ sparkLineChartFunction?: (node: any, data: any[], width: number, height: number, isForTooltip?: boolean) => void
24
+ sparkYScale?: any
25
+ }
@@ -0,0 +1,43 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionStatConfig } from './CompositionStatConfig'
3
+
4
+ /**
5
+ * Stripe map type.
6
+ */
7
+ export interface StripeMap extends MapInstance {
8
+ stripeWidth(): number
9
+ stripeWidth(v: number): this
10
+
11
+ stripeOrientation(): number
12
+ stripeOrientation(v: number): this
13
+
14
+ catColors(): any
15
+ catColors(v: any): this
16
+
17
+ catLabels(): any
18
+ catLabels(v: any): this
19
+
20
+ showOnlyWhenComplete(): boolean
21
+ showOnlyWhenComplete(v: boolean): this
22
+
23
+ noDataFillStyle(): string
24
+ noDataFillStyle(v: string): this
25
+
26
+ pieChartRadius(): number
27
+ pieChartRadius(v: number): this
28
+
29
+ pieChartInnerRadius(): number
30
+ pieChartInnerRadius(v: number): this
31
+
32
+ statCodes(): string[] | undefined
33
+ statCodes(v: string[] | undefined): this
34
+
35
+ statComp(config: CompositionStatConfig): this
36
+ statComp(
37
+ config: CompositionStatConfig,
38
+ categoryParameter?: string,
39
+ categoryCodes?: string[],
40
+ categoryLabels?: string[],
41
+ categoryColors?: string[]
42
+ ): this
43
+ }
@@ -0,0 +1,16 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
2
+
3
+ /**
4
+ * Configuration for stripe composition maps.
5
+ */
6
+ export interface StripeMapConfig extends MapConfig {
7
+ stripeWidth?: number
8
+ stripeOrientation?: number
9
+ catColors?: Record<string, string>
10
+ catLabels?: Record<string, string>
11
+ showOnlyWhenComplete?: boolean
12
+ noDataFillStyle?: string
13
+ pieChartRadius?: number
14
+ pieChartInnerRadius?: number
15
+ statCodes?: string[]
16
+ }
@@ -0,0 +1,71 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionStatConfig } from './CompositionStatConfig'
3
+
4
+ /**
5
+ * Waffle map type.
6
+ */
7
+ export interface WaffleMap extends MapInstance {
8
+ catColors(): any
9
+ catColors(v: any): this
10
+
11
+ catLabels(): any
12
+ catLabels(v: any): this
13
+
14
+ showOnlyWhenComplete(): boolean
15
+ showOnlyWhenComplete(v: boolean): this
16
+
17
+ noDataFillStyle(): string
18
+ noDataFillStyle(v: string): this
19
+
20
+ waffleMaxSize(): number
21
+ waffleMaxSize(v: number): this
22
+
23
+ waffleMinSize(): number
24
+ waffleMinSize(v: number): this
25
+
26
+ waffleGridSize(): number
27
+ waffleGridSize(v: number): this
28
+
29
+ waffleCellPadding(): number
30
+ waffleCellPadding(v: number): this
31
+
32
+ waffleOtherColor(): string
33
+ waffleOtherColor(v: string): this
34
+
35
+ waffleOtherText(): string
36
+ waffleOtherText(v: string): this
37
+
38
+ waffleStrokeFill(): string
39
+ waffleStrokeFill(v: string): this
40
+
41
+ waffleStrokeWidth(): number
42
+ waffleStrokeWidth(v: number): this
43
+
44
+ waffleRoundedCorners(): number
45
+ waffleRoundedCorners(v: number): this
46
+
47
+ waffleTooltipSize(): number
48
+ waffleTooltipSize(v: number): this
49
+
50
+ dorling(): boolean
51
+ dorling(v: boolean): this
52
+
53
+ animateDorling(): boolean
54
+ animateDorling(v: boolean): this
55
+
56
+ waffleTotalCode(): string | undefined
57
+ waffleTotalCode(v: string | undefined): this
58
+
59
+ statCodes(): string[] | undefined
60
+ statCodes(v: string[] | undefined): this
61
+
62
+ statWaffle(config: CompositionStatConfig): this
63
+ statWaffle(
64
+ config: CompositionStatConfig,
65
+ categoryParameter?: string,
66
+ categoryCodes?: string[],
67
+ categoryLabels?: string[],
68
+ categoryColors?: string[],
69
+ totalCode?: string
70
+ ): this
71
+ }
@@ -0,0 +1,25 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
2
+
3
+ /**
4
+ * Configuration for waffle chart composition maps.
5
+ */
6
+ export interface WaffleMapConfig extends MapConfig {
7
+ waffleMinSize?: number
8
+ waffleMaxSize?: number
9
+ waffleGridSize?: number
10
+ waffleCellPadding?: number
11
+ waffleStrokeFill?: string
12
+ waffleStrokeWidth?: number
13
+ waffleRoundedCorners?: number
14
+ waffleTooltipSize?: number
15
+ catColors?: Record<string, string>
16
+ catLabels?: Record<string, string>
17
+ waffleOtherColor?: string
18
+ waffleOtherText?: string
19
+ showOnlyWhenComplete?: boolean
20
+ noDataFillStyle?: string
21
+ dorling?: boolean
22
+ animateDorling?: boolean
23
+ waffleTotalCode?: string
24
+ statCodes?: string[]
25
+ }
@@ -0,0 +1,79 @@
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
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
+ barGroupGap(): number
40
+ barGroupGap(v: number): this
41
+
42
+ barGroupMinHeight(): number
43
+ barGroupMinHeight(v: number): this
44
+
45
+ barGroupMaxHeight(): number
46
+ barGroupMaxHeight(v: number): this
47
+
48
+ barStrokeFill(): string
49
+ barStrokeFill(v: string): this
50
+
51
+ barStrokeWidth(): number
52
+ barStrokeWidth(v: number): this
53
+
54
+ barCornerRadius(): number
55
+ barCornerRadius(v: number): this
56
+
57
+ barOtherColor(): string
58
+ barOtherColor(v: string): this
59
+
60
+ barOtherText(): string
61
+ barOtherText(v: string): this
62
+
63
+ barTooltipWidth(): number
64
+ barTooltipWidth(v: number): this
65
+
66
+ barTooltipHeight(): number
67
+ barTooltipHeight(v: number): this
68
+
69
+ dorling(): boolean
70
+ dorling(v: boolean): this
71
+
72
+ barTotalCode(): string | undefined
73
+ barTotalCode(v: string | undefined): this
74
+
75
+ statCodes(): string[] | undefined
76
+ statCodes(v: string[] | undefined): this
77
+
78
+ statBar(config: CompositionStatConfig): this
79
+ }