eurostat-map 4.3.57 → 4.4.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 (116) hide show
  1. package/build/215.eurostatmap.min.js +1 -1
  2. package/build/eurostatmap.js +11755 -13012
  3. package/build/eurostatmap.min.js +2 -4
  4. package/build/eurostatmap.min.js.map +1 -1
  5. package/build/package.json +87 -0
  6. package/build/types/core/InsetConfig.d.ts +15 -0
  7. package/build/types/core/MapConfig.d.ts +85 -0
  8. package/build/types/core/MapInstance.d.ts +354 -0
  9. package/build/types/core/MinimapConfig.d.ts +11 -0
  10. package/build/types/core/TooltipConfig.d.ts +13 -0
  11. package/build/types/core/decoration/ScalebarConfig.d.ts +48 -0
  12. package/build/types/core/decoration/StampConfig.d.ts +71 -0
  13. package/build/types/core/geo/centroids.d.ts +33 -0
  14. package/build/types/core/geo/geometries.d.ts +56 -0
  15. package/build/types/core/geo/kosovo.d.ts +10 -0
  16. package/build/types/core/geo/proj4.d.ts +26 -0
  17. package/build/types/core/geo/projection.d.ts +29 -0
  18. package/build/types/core/insets.d.ts +16 -0
  19. package/build/types/core/layout.d.ts +23 -0
  20. package/build/types/core/locations.d.ts +55 -0
  21. package/build/types/core/minimaps.d.ts +20 -0
  22. package/build/types/core/scale.d.ts +30 -0
  23. package/build/types/core/stat/StatConfig.d.ts +27 -0
  24. package/build/types/core/stat/StatData.d.ts +107 -0
  25. package/build/types/core/utils.d.ts +194 -0
  26. package/build/types/core/zoom.d.ts +21 -0
  27. package/build/types/index.d.ts +237 -0
  28. package/build/types/legend/CategoricalLegendConfig.d.ts +13 -0
  29. package/build/types/legend/CoxcombLegendConfig.d.ts +85 -0
  30. package/build/types/legend/LegendConfig.d.ts +43 -0
  31. package/build/types/legend/MushroomLegendConfig.d.ts +56 -0
  32. package/build/types/legend/PatternFillLegendConfig.d.ts +11 -0
  33. package/build/types/legend/PieChartLegendConfig.d.ts +68 -0
  34. package/build/types/legend/SparklineLegendConfig.d.ts +68 -0
  35. package/build/types/legend/StripeCompositionLegendConfig.d.ts +11 -0
  36. package/build/types/legend/WaffleLegendConfig.d.ts +74 -0
  37. package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +59 -0
  38. package/build/types/legend/choropleth/ChoroplethLegendConfig.d.ts +0 -0
  39. package/build/types/legend/choropleth/HistogramLegendConfig.d.ts +26 -0
  40. package/build/types/legend/choropleth/TrivariateLegendConfig.d.ts +32 -0
  41. package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +2 -0
  42. package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +2 -0
  43. package/build/types/legend/choropleth/legend-choropleth.d.ts +2 -0
  44. package/build/types/legend/composition/BarChartLegendConfig.d.ts +68 -0
  45. package/build/types/legend/composition/legend-bar-chart.d.ts +2 -0
  46. package/build/types/legend/flow/FlowLegendConfig.d.ts +0 -0
  47. package/build/types/legend/flow/FlowMapLegendConfig.d.ts +117 -0
  48. package/build/types/legend/flow/legend-flow.d.ts +2 -0
  49. package/build/types/legend/legend-categorical.d.ts +2 -0
  50. package/build/types/legend/legend-continuous.d.ts +2 -0
  51. package/build/types/legend/legend-discrete.d.ts +2 -0
  52. package/build/types/legend/legend.d.ts +13 -0
  53. package/build/types/legend/proportional-symbol/PropSymbolLegendConfig.d.ts +0 -0
  54. package/build/types/legend/proportional-symbol/ProportionalSymbolsLegendConfig.d.ts +134 -0
  55. package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +2 -0
  56. package/build/types/map-types/CategoricalMap.d.ts +21 -0
  57. package/build/types/map-types/CategoricalMapConfig.d.ts +11 -0
  58. package/build/types/map-types/CateogricalMapConfig.d.ts +11 -0
  59. package/build/types/map-types/MapType.d.ts +34 -0
  60. package/build/types/map-types/choropleth/BivariateChoroplethConfig.d.ts +15 -0
  61. package/build/types/map-types/choropleth/BivariateChoroplethMap.d.ts +39 -0
  62. package/build/types/map-types/choropleth/ChoroplethConfig.d.ts +29 -0
  63. package/build/types/map-types/choropleth/ChoroplethMap.d.ts +48 -0
  64. package/build/types/map-types/choropleth/TrivariateChoroplethConfig.d.ts +18 -0
  65. package/build/types/map-types/choropleth/TrivariateChoroplethMap.d.ts +15 -0
  66. package/build/types/map-types/choropleth/ValueByAlphaConfig.d.ts +8 -0
  67. package/build/types/map-types/choropleth/ValueByAlphaMap.d.ts +9 -0
  68. package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +4 -0
  69. package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +4 -0
  70. package/build/types/map-types/choropleth/map-choropleth.d.ts +47 -0
  71. package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +4 -0
  72. package/build/types/map-types/composition/BarMap.d.ts +86 -0
  73. package/build/types/map-types/composition/BarMapConfig.d.ts +30 -0
  74. package/build/types/map-types/composition/CompositionStatConfig.d.ts +21 -0
  75. package/build/types/map-types/composition/CoxcombMap.d.ts +42 -0
  76. package/build/types/map-types/composition/CoxcombMapConfig.d.ts +18 -0
  77. package/build/types/map-types/composition/PieMap.d.ts +62 -0
  78. package/build/types/map-types/composition/PieMapConfig.d.ts +24 -0
  79. package/build/types/map-types/composition/SparkMap.d.ts +46 -0
  80. package/build/types/map-types/composition/SparkMapConfig.d.ts +25 -0
  81. package/build/types/map-types/composition/StripeMap.d.ts +43 -0
  82. package/build/types/map-types/composition/StripeMapConfig.d.ts +16 -0
  83. package/build/types/map-types/composition/WaffleMap.d.ts +71 -0
  84. package/build/types/map-types/composition/WaffleMapConfig.d.ts +25 -0
  85. package/build/types/map-types/composition/bar/BarMap.d.ts +78 -0
  86. package/build/types/map-types/composition/bar/BarMapConfig.d.ts +30 -0
  87. package/build/types/map-types/composition/composition-map.d.ts +25 -0
  88. package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +42 -0
  89. package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +18 -0
  90. package/build/types/map-types/composition/coxcomb/CoxcombStatConfig.d.ts +14 -0
  91. package/build/types/map-types/composition/map-bar.d.ts +5 -0
  92. package/build/types/map-types/composition/map-coxcomb.d.ts +5 -0
  93. package/build/types/map-types/composition/map-pie.d.ts +10 -0
  94. package/build/types/map-types/composition/map-spark.d.ts +5 -0
  95. package/build/types/map-types/composition/map-stripe.d.ts +5 -0
  96. package/build/types/map-types/composition/map-waffle.d.ts +5 -0
  97. package/build/types/map-types/composition/pie/PieMap.d.ts +62 -0
  98. package/build/types/map-types/composition/pie/PieMapConfig.d.ts +24 -0
  99. package/build/types/map-types/composition/stripe/StripeMap.d.ts +43 -0
  100. package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +16 -0
  101. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +71 -0
  102. package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +25 -0
  103. package/build/types/map-types/flow/FlowMap.d.ts +97 -0
  104. package/build/types/map-types/flow/FlowMapConfig.d.ts +103 -0
  105. package/build/types/map-types/flow/map-flow.d.ts +5 -0
  106. package/build/types/map-types/map-categorical.d.ts +19 -0
  107. package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +24 -0
  108. package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +99 -0
  109. package/build/types/map-types/proportional-symbol/map-proportional-symbols.d.ts +35 -0
  110. package/build/types/map-types/proportional-symbol/mushroom/MushroomMap.d.ts +30 -0
  111. package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +15 -0
  112. package/build/types/map-types/spark/SparkMap.d.ts +48 -0
  113. package/build/types/map-types/spark/SparkMapConfig.d.ts +25 -0
  114. package/build/types/map-types/spark/SparkStatConfig.d.ts +10 -0
  115. package/build/types/utils/FillPatternOptions.d.ts +17 -0
  116. package/package.json +8 -5
@@ -0,0 +1,48 @@
1
+ import { MapInstance } from '../../core/MapInstance'
2
+
3
+ /**
4
+ * Choropleth map object
5
+ */
6
+ export interface ChoroplethMap extends MapInstance {
7
+ numberOfClasses(): number
8
+ numberOfClasses(n: number): this
9
+
10
+ classificationMethod(): string
11
+ classificationMethod(method: 'quantile' | 'ckmeans' | 'jenks' | 'equinter' | 'threshold'): this
12
+
13
+ thresholds(): number[]
14
+ thresholds(t: number[]): this
15
+
16
+ colors(): string[]
17
+ colors(c: string[]): this
18
+
19
+ colorFunction(): (t: number) => string
20
+ colorFunction(fn: (t: number) => string): this
21
+
22
+ makeClassifNice(): boolean
23
+ makeClassifNice(v: boolean): this
24
+
25
+ classToFillStyle(): any
26
+ classToFillStyle(v: any): this
27
+
28
+ classifier(): any
29
+ classifier(v: any): this
30
+
31
+ colorSchemeType(): string
32
+ colorSchemeType(type: 'discrete' | 'continuous'): this
33
+
34
+ valueTransform(): (x: number) => number
35
+ valueTransform(v: (x: number) => number): this
36
+
37
+ valueUntransform(): (x: number) => number
38
+ valueUntransform(v: (x: number) => number): this
39
+
40
+ pointOfDivergence(): number | null
41
+ pointOfDivergence(v: number | null): this
42
+
43
+ skipNormalization(): boolean
44
+ skipNormalization(v: boolean): this
45
+
46
+ noDataFillStyle(): string
47
+ noDataFillStyle(style: string): this
48
+ }
@@ -0,0 +1,18 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
2
+
3
+ /**
4
+ * Configuration for trivariate choropleth maps.
5
+ */
6
+ export interface TrivariateChoroplethConfig extends MapConfig {
7
+ ternaryCodes?: [string, string, string]
8
+ noDataFillStyle?: string
9
+ ternarySettings?: {
10
+ hue?: number
11
+ chroma?: number
12
+ lightness?: number
13
+ contrast?: number
14
+ spread?: number
15
+ breaks?: number
16
+ meanCentering?: boolean
17
+ }
18
+ }
@@ -0,0 +1,15 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /**
4
+ * Trivariate choropleth map type.
5
+ */
6
+ export interface TrivariateChoroplethMap extends MapInstance {
7
+ ternaryCodes(): string[]
8
+ ternaryCodes(v: string[]): this
9
+
10
+ noDataFillStyle(): string
11
+ noDataFillStyle(v: string): this
12
+
13
+ ternarySettings(): any
14
+ ternarySettings(v: any): this
15
+ }
@@ -0,0 +1,8 @@
1
+ import type { ChoroplethConfig } from './ChoroplethConfig'
2
+
3
+ /**
4
+ * Configuration for value-by-alpha choropleth maps.
5
+ */
6
+ export interface ValueByAlphaConfig extends ChoroplethConfig {
7
+ opacityScale?: (value: number) => number
8
+ }
@@ -0,0 +1,9 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /**
4
+ * Value-by-alpha choropleth map type.
5
+ */
6
+ export interface ValueByAlphaMap extends MapInstance {
7
+ opacityScale(): ((value: number) => number) | null
8
+ opacityScale(v: ((value: number) => number) | null): this
9
+ }
@@ -0,0 +1,4 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /** Creates a bivariate choropleth map instance */
4
+ export function map(config?: any): MapInstance
@@ -0,0 +1,4 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /** Creates a trivariate choropleth map instance */
4
+ export function map(config?: any): MapInstance
@@ -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,21 @@
1
+ /**
2
+ * Statistical configuration for composition maps (pie, bar, waffle, stripe).
3
+ */
4
+ export interface CompositionStatConfig {
5
+ eurostatDatasetCode?: string
6
+ filters?: Record<string, any>
7
+ unitText?: string
8
+
9
+ categoryParameter?: string
10
+ categoryCodes?: string[]
11
+ categoryLabels?: string[]
12
+ categoryColors?: string[]
13
+ totalCode?: string
14
+
15
+ // Legacy nested API supported by buildStatCompositionMethod
16
+ stat?: {
17
+ eurostatDatasetCode?: string
18
+ filters?: Record<string, any>
19
+ unitText?: string
20
+ }
21
+ }
@@ -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
+ }