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,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,78 @@
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
+ }
@@ -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,25 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /**
4
+ * Base configuration for composition maps (pie, bar, coxcomb, waffle, etc.)
5
+ */
6
+ export interface CompositionMapConfig {
7
+ /** Array of statistical dataset codes */
8
+ statCodes?: string[]
9
+ /** Array of colors for categories */
10
+ colors?: string[]
11
+ /** Size dataset code for proportional sizing */
12
+ sizeDatasetCode?: string
13
+ /** Maximum size in pixels */
14
+ maxSize?: number
15
+ /** Minimum size in pixels */
16
+ minSize?: number
17
+ }
18
+
19
+ /**
20
+ * Creates a composition map base instance.
21
+ * @param config - Map configuration
22
+ * @param mapType - Type of composition map
23
+ * @returns Map instance with composition-specific methods
24
+ */
25
+ export function createCompositionMap(config?: CompositionMapConfig, mapType?: string): MapInstance
@@ -0,0 +1,42 @@
1
+ import type { MapInstance } from '../../../core/MapInstance'
2
+ import type { CoxcombStatConfig } from './CoxcombStatConfig'
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,14 @@
1
+ import { CompositionStatConfig } from '../CompositionStatConfig'
2
+
3
+ /**
4
+ * Statistical configuration for coxcomb maps.
5
+ */
6
+ export interface CoxcombStatConfig extends CompositionStatConfig {
7
+ // Eurostat path
8
+ timeParameter?: string
9
+ times: string[]
10
+ timeLabels?: string[]
11
+
12
+ // Custom data path
13
+ customData?: Record<string, Record<string, Record<string, number>>>
14
+ }
@@ -0,0 +1,5 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionMapConfig } from './composition-map'
3
+
4
+ /** Creates a bar chart map instance */
5
+ export function map(config?: CompositionMapConfig): MapInstance
@@ -0,0 +1,5 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionMapConfig } from './composition-map'
3
+
4
+ /** Creates a coxcomb (radial) chart map instance */
5
+ export function map(config?: CompositionMapConfig): MapInstance
@@ -0,0 +1,10 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionMapConfig } from './composition-map'
3
+
4
+ /**
5
+ * Creates a pie chart map instance.
6
+ * Displays pie charts at region centroids showing composition data.
7
+ * @param config - Map configuration
8
+ * @returns Map instance with pie chart methods
9
+ */
10
+ export function map(config?: CompositionMapConfig): MapInstance
@@ -0,0 +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
@@ -0,0 +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
@@ -0,0 +1,5 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionMapConfig } from './composition-map'
3
+
4
+ /** Creates a waffle chart map instance */
5
+ export function map(config?: CompositionMapConfig): MapInstance
@@ -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,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,97 @@
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
+ flowColor(): string
12
+ flowColor(v: string): this
13
+
14
+ flowRegionColors(): string[]
15
+ flowRegionColors(v: string[]): this
16
+
17
+ flowRegionLabels(): string[]
18
+ flowRegionLabels(v: string[]): this
19
+
20
+ flowArrows(): boolean
21
+ flowArrows(v: boolean): this
22
+
23
+ flowArrowScale(): number
24
+ flowArrowScale(v: number): this
25
+
26
+ flowMaxWidth(): number
27
+ flowMaxWidth(v: number): this
28
+
29
+ flowMinWidth(): number
30
+ flowMinWidth(v: number): this
31
+
32
+ flowOutlines(): boolean
33
+ flowOutlines(v: boolean): this
34
+
35
+ flowOutlineWidth(): number
36
+ flowOutlineWidth(v: number): this
37
+
38
+ flowOutlineColor(): string
39
+ flowOutlineColor(v: string): this
40
+
41
+ flowColorGradient(): boolean
42
+ flowColorGradient(v: boolean): this
43
+
44
+ flowStack(): boolean
45
+ flowStack(v: boolean): this
46
+
47
+ flowNodes(): boolean
48
+ flowNodes(v: boolean): this
49
+
50
+ flowNodeType(): 'circle' | 'donut'
51
+ flowNodeType(v: 'circle' | 'donut'): this
52
+
53
+ flowLabelOffsets(): { x: number; y: number }
54
+ flowLabelOffsets(v: { x: number; y: number }): this
55
+
56
+ flowLineType(): 'curved' | 'straight' | 'sankey'
57
+ flowLineType(v: 'curved' | 'straight' | 'sankey'): this
58
+
59
+ flowNodeSizeScale(): any
60
+ flowNodeSizeScale(v: any): this
61
+
62
+ flowOpacity(): number
63
+ flowOpacity(v: number): this
64
+
65
+ flowInternal(): boolean
66
+ flowInternal(v: boolean): this
67
+
68
+ flowTopLocations(): number
69
+ flowTopLocations(v: number): this
70
+
71
+ flowTopLocationsType(): 'sum' | 'origin' | 'destination'
72
+ flowTopLocationsType(v: 'sum' | 'origin' | 'destination'): this
73
+
74
+ flowCurvatureSettings(): FlowCurvatureSettings
75
+ flowCurvatureSettings(v: FlowCurvatureSettings): this
76
+
77
+ flowOrder(): any
78
+ flowOrder(v: any): this
79
+
80
+ flowWidthGradient(): boolean
81
+ flowWidthGradient(v: boolean): this
82
+
83
+ flowOpacityGradient(): boolean
84
+ flowOpacityGradient(v: boolean): this
85
+
86
+ flowWidthGradientSettings(): FlowWidthGradientSettings
87
+ flowWidthGradientSettings(v: FlowWidthGradientSettings): this
88
+
89
+ flowBidirectional(): boolean
90
+ flowBidirectional(v: boolean): this
91
+
92
+ flowEdgeBundling(): boolean
93
+ flowEdgeBundling(v: boolean): this
94
+
95
+ flowBundleSettings(): FlowBundleSettings
96
+ flowBundleSettings(v: FlowBundleSettings): this
97
+ }