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,54 @@
1
+ import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { BarChartLegendConfig } from '../../../legend/composition/BarChartLegendConfig'
3
+
4
+ /**
5
+ * Configuration for bar chart composition maps.
6
+ */
7
+ export interface BarMapConfig extends MapConfig {
8
+ /** Bar type. */
9
+ barType?: 'stacked' | 'grouped'
10
+ /** Cat colors. */
11
+ catColors?: Record<string, string>
12
+ /** Cat labels. */
13
+ catLabels?: Record<string, string>
14
+ /** Show only when complete. */
15
+ showOnlyWhenComplete?: boolean
16
+ /** No data fill style. */
17
+ noDataFillStyle?: string
18
+ /** Bar min width. */
19
+ barMinWidth?: number
20
+ /** Bar max width. */
21
+ barMaxWidth?: number
22
+ /** Bar height. */
23
+ barHeight?: number
24
+ /** Bar group width. */
25
+ barGroupWidth?: number
26
+ /** Bar group gap. */
27
+ barGroupGap?: number
28
+ /** Bar group min height. */
29
+ barGroupMinHeight?: number
30
+ /** Bar group max height. */
31
+ barGroupMaxHeight?: number
32
+ /** Bar stroke fill. */
33
+ barStrokeFill?: string
34
+ /** Bar stroke width. */
35
+ barStrokeWidth?: number
36
+ /** Bar corner radius. */
37
+ barCornerRadius?: number
38
+ /** Bar other color. */
39
+ barOtherColor?: string
40
+ /** Bar other text. */
41
+ barOtherText?: string
42
+ /** Bar tooltip width. */
43
+ barTooltipWidth?: number
44
+ /** Bar tooltip height. */
45
+ barTooltipHeight?: number
46
+ /** Dorling. */
47
+ dorling?: boolean
48
+ /** Bar total code. */
49
+ barTotalCode?: string
50
+ /** Stat codes. */
51
+ statCodes?: string[]
52
+ /** Legend. */
53
+ legend?: BarChartLegendConfig | false
54
+ }
@@ -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,46 @@
1
+ import type { MapInstance } from '../../../core/MapInstance'
2
+ import type { CoxcombStatConfig } from './CoxcombStatConfig'
3
+ import type { CoxcombLegendConfig } from '../../../legend/composition/CoxcombLegendConfig'
4
+
5
+ /**
6
+ * Coxcomb map type.
7
+ */
8
+ export interface CoxcombMap extends MapInstance {
9
+ legend(): CoxcombLegendConfig
10
+ legend(config: CoxcombLegendConfig | false): this
11
+
12
+ catColors(): any
13
+ catColors(v: any): this
14
+
15
+ catLabels(): any
16
+ catLabels(v: any): this
17
+
18
+ noDataFillStyle(): string
19
+ noDataFillStyle(v: string): this
20
+
21
+ coxcombMaxRadius(): number
22
+ coxcombMaxRadius(v: number): this
23
+
24
+ coxcombMinRadius(): number
25
+ coxcombMinRadius(v: number): this
26
+
27
+ coxcombRings(): boolean
28
+ coxcombRings(v: boolean): this
29
+
30
+ coxcombStrokeFill(): string
31
+ coxcombStrokeFill(v: string): this
32
+
33
+ coxcombStrokeWidth(): number
34
+ coxcombStrokeWidth(v: number): this
35
+
36
+ hoverColor(): string
37
+ hoverColor(v: string): this
38
+
39
+ classifierSize(): any
40
+ classifierSize(v: any): this
41
+
42
+ coxcombOffsets(): { x: number; y: number }
43
+ coxcombOffsets(v: { x: number; y: number }): this
44
+
45
+ statCoxcomb(config: CoxcombStatConfig): this
46
+ }
@@ -0,0 +1,32 @@
1
+ import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { CoxcombLegendConfig } from '../../../legend/composition/CoxcombLegendConfig'
3
+
4
+ /**
5
+ * Configuration for coxcomb (polar area) chart maps.
6
+ */
7
+ export interface CoxcombMapConfig extends MapConfig {
8
+ /** Coxcomb min radius. */
9
+ coxcombMinRadius?: number
10
+ /** Coxcomb max radius. */
11
+ coxcombMaxRadius?: number
12
+ /** Coxcomb stroke fill. */
13
+ coxcombStrokeFill?: string
14
+ /** Coxcomb stroke width. */
15
+ coxcombStrokeWidth?: number
16
+ /** Coxcomb rings. */
17
+ coxcombRings?: boolean
18
+ /** Coxcomb offsets. */
19
+ coxcombOffsets?: { x: number; y: number }
20
+ /** Hover color. */
21
+ hoverColor?: string
22
+ /** Cat colors. */
23
+ catColors?: Record<string, string>
24
+ /** Cat labels. */
25
+ catLabels?: Record<string, string>
26
+ /** No data fill style. */
27
+ noDataFillStyle?: string
28
+ /** Classifier size. */
29
+ classifierSize?: any
30
+ /** Legend. */
31
+ legend?: CoxcombLegendConfig | false
32
+ }
@@ -0,0 +1,16 @@
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. */
10
+ times: string[]
11
+ /** Time labels. */
12
+ timeLabels?: string[]
13
+
14
+ /** Custom data path. */
15
+ customData?: Record<string, Record<string, Record<string, number>>>
16
+ }
@@ -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,69 @@
1
+ import type { MapInstance } from '../../../core/MapInstance'
2
+ import type { CompositionStatConfig } from '../CompositionStatConfig'
3
+ import type { PieChartLegendConfig } from '../../../legend/composition/PieChartLegendConfig'
4
+
5
+ /**
6
+ * Pie map type.
7
+ */
8
+ export interface PieMap extends MapInstance {
9
+ legend(): PieChartLegendConfig
10
+ legend(config: PieChartLegendConfig | false): this
11
+
12
+ catColors(): any
13
+ catColors(v: any): this
14
+
15
+ catLabels(): any
16
+ catLabels(v: any): this
17
+
18
+ showOnlyWhenComplete(): boolean
19
+ showOnlyWhenComplete(v: boolean): this
20
+
21
+ noDataFillStyle(): string
22
+ noDataFillStyle(v: string): this
23
+
24
+ pieMaxRadius(): number
25
+ pieMaxRadius(v: number): this
26
+
27
+ pieMinRadius(): number
28
+ pieMinRadius(v: number): this
29
+
30
+ pieChartInnerRadius(): number
31
+ pieChartInnerRadius(v: number): this
32
+
33
+ pieOtherColor(): string
34
+ pieOtherColor(v: string): this
35
+
36
+ pieOtherText(): string
37
+ pieOtherText(v: string): this
38
+
39
+ pieStrokeFill(): string
40
+ pieStrokeFill(v: string): this
41
+
42
+ pieStrokeWidth(): number
43
+ pieStrokeWidth(v: number): this
44
+
45
+ dorling(): boolean
46
+ dorling(v: boolean): this
47
+
48
+ pieTotalCode(): string | undefined
49
+ pieTotalCode(v: string | undefined): this
50
+
51
+ statCodes(): string[] | undefined
52
+ statCodes(v: string[] | undefined): this
53
+
54
+ statPie(config: CompositionStatConfig): this
55
+ statPie(
56
+ /** Config. */
57
+ config: CompositionStatConfig,
58
+ /** Category parameter. */
59
+ categoryParameter?: string,
60
+ /** Category codes. */
61
+ categoryCodes?: string[],
62
+ /** Category labels. */
63
+ categoryLabels?: string[],
64
+ /** Category colors. */
65
+ categoryColors?: string[],
66
+ /** Total code. */
67
+ totalCode?: string
68
+ ): this
69
+ }
@@ -0,0 +1,42 @@
1
+ import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { PieChartLegendConfig } from '../../../legend/composition/PieChartLegendConfig'
3
+
4
+ /**
5
+ * Configuration for pie chart composition maps.
6
+ */
7
+ export interface PieMapConfig extends MapConfig {
8
+ /** Pie min radius. */
9
+ pieMinRadius?: number
10
+ /** Pie max radius. */
11
+ pieMaxRadius?: number
12
+ /** Pie chart inner radius. */
13
+ pieChartInnerRadius?: number
14
+ /** Pie stroke fill. */
15
+ pieStrokeFill?: string
16
+ /** Pie stroke width. */
17
+ pieStrokeWidth?: number
18
+ /** Tooltip pie radius. */
19
+ tooltipPieRadius?: number
20
+ /** Tooltip pie inner radius. */
21
+ tooltipPieInnerRadius?: number
22
+ /** Cat colors. */
23
+ catColors?: Record<string, string>
24
+ /** Cat labels. */
25
+ catLabels?: Record<string, string>
26
+ /** Pie other color. */
27
+ pieOtherColor?: string
28
+ /** Pie other text. */
29
+ pieOtherText?: string
30
+ /** Show only when complete. */
31
+ showOnlyWhenComplete?: boolean
32
+ /** No data fill style. */
33
+ noDataFillStyle?: string
34
+ /** Dorling. */
35
+ dorling?: boolean
36
+ /** Pie total code. */
37
+ pieTotalCode?: string
38
+ /** Stat codes. */
39
+ statCodes?: string[]
40
+ /** Legend. */
41
+ legend?: PieChartLegendConfig | false
42
+ }
@@ -0,0 +1,52 @@
1
+ import type { MapInstance } from '../../../core/MapInstance'
2
+ import type { CompositionStatConfig } from '../CompositionStatConfig'
3
+ import type { StripeCompositionLegendConfig } from '../../../legend/composition/StripeCompositionLegendConfig'
4
+
5
+ /**
6
+ * Stripe map type.
7
+ */
8
+ export interface StripeMap extends MapInstance {
9
+ legend(): StripeCompositionLegendConfig
10
+ legend(config: StripeCompositionLegendConfig | false): this
11
+
12
+ stripeWidth(): number
13
+ stripeWidth(v: number): this
14
+
15
+ stripeOrientation(): number
16
+ stripeOrientation(v: number): this
17
+
18
+ catColors(): any
19
+ catColors(v: any): this
20
+
21
+ catLabels(): any
22
+ catLabels(v: any): this
23
+
24
+ showOnlyWhenComplete(): boolean
25
+ showOnlyWhenComplete(v: boolean): this
26
+
27
+ noDataFillStyle(): string
28
+ noDataFillStyle(v: string): this
29
+
30
+ pieChartRadius(): number
31
+ pieChartRadius(v: number): this
32
+
33
+ pieChartInnerRadius(): number
34
+ pieChartInnerRadius(v: number): this
35
+
36
+ statCodes(): string[] | undefined
37
+ statCodes(v: string[] | undefined): this
38
+
39
+ statComp(config: CompositionStatConfig): this
40
+ statComp(
41
+ /** Config. */
42
+ config: CompositionStatConfig,
43
+ /** Category parameter. */
44
+ categoryParameter?: string,
45
+ /** Category codes. */
46
+ categoryCodes?: string[],
47
+ /** Category labels. */
48
+ categoryLabels?: string[],
49
+ /** Category colors. */
50
+ categoryColors?: string[]
51
+ ): this
52
+ }
@@ -0,0 +1,28 @@
1
+ import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { StripeCompositionLegendConfig } from '../../../legend/composition/StripeCompositionLegendConfig'
3
+
4
+ /**
5
+ * Configuration for stripe composition maps.
6
+ */
7
+ export interface StripeMapConfig extends MapConfig {
8
+ /** Stripe width. */
9
+ stripeWidth?: number
10
+ /** Stripe orientation. */
11
+ stripeOrientation?: number
12
+ /** Cat colors. */
13
+ catColors?: Record<string, string>
14
+ /** Cat labels. */
15
+ catLabels?: Record<string, string>
16
+ /** Show only when complete. */
17
+ showOnlyWhenComplete?: boolean
18
+ /** No data fill style. */
19
+ noDataFillStyle?: string
20
+ /** Pie chart radius. */
21
+ pieChartRadius?: number
22
+ /** Pie chart inner radius. */
23
+ pieChartInnerRadius?: number
24
+ /** Stat codes. */
25
+ statCodes?: string[]
26
+ /** Legend. */
27
+ legend?: StripeCompositionLegendConfig | false
28
+ }
@@ -0,0 +1,78 @@
1
+ import type { MapInstance } from '../../../core/MapInstance'
2
+ import type { CompositionStatConfig } from '../CompositionStatConfig'
3
+ import type { WaffleLegendConfig } from '../../../legend/composition/WaffleLegendConfig'
4
+
5
+ /**
6
+ * Waffle map type.
7
+ */
8
+ export interface WaffleMap extends MapInstance {
9
+ legend(): WaffleLegendConfig
10
+ legend(config: WaffleLegendConfig | false): this
11
+
12
+ catColors(): any
13
+ catColors(v: any): this
14
+
15
+ catLabels(): any
16
+ catLabels(v: any): this
17
+
18
+ showOnlyWhenComplete(): boolean
19
+ showOnlyWhenComplete(v: boolean): this
20
+
21
+ noDataFillStyle(): string
22
+ noDataFillStyle(v: string): this
23
+
24
+ waffleMaxSize(): number
25
+ waffleMaxSize(v: number): this
26
+
27
+ waffleMinSize(): number
28
+ waffleMinSize(v: number): this
29
+
30
+ waffleGridSize(): number
31
+ waffleGridSize(v: number): this
32
+
33
+ waffleCellPadding(): number
34
+ waffleCellPadding(v: number): this
35
+
36
+ waffleOtherColor(): string
37
+ waffleOtherColor(v: string): this
38
+
39
+ waffleOtherText(): string
40
+ waffleOtherText(v: string): this
41
+
42
+ waffleStrokeFill(): string
43
+ waffleStrokeFill(v: string): this
44
+
45
+ waffleStrokeWidth(): number
46
+ waffleStrokeWidth(v: number): this
47
+
48
+ waffleRoundedCorners(): number
49
+ waffleRoundedCorners(v: number): this
50
+
51
+ waffleTooltipSize(): number
52
+ waffleTooltipSize(v: number): this
53
+
54
+ dorling(): boolean
55
+ dorling(v: boolean): this
56
+
57
+ waffleTotalCode(): string | undefined
58
+ waffleTotalCode(v: string | undefined): this
59
+
60
+ statCodes(): string[] | undefined
61
+ statCodes(v: string[] | undefined): this
62
+
63
+ statWaffle(config: CompositionStatConfig): this
64
+ statWaffle(
65
+ /** Config. */
66
+ config: CompositionStatConfig,
67
+ /** Category parameter. */
68
+ categoryParameter?: string,
69
+ /** Category codes. */
70
+ categoryCodes?: string[],
71
+ /** Category labels. */
72
+ categoryLabels?: string[],
73
+ /** Category colors. */
74
+ categoryColors?: string[],
75
+ /** Total code. */
76
+ totalCode?: string
77
+ ): this
78
+ }
@@ -0,0 +1,44 @@
1
+ import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { WaffleLegendConfig } from '../../../legend/composition/WaffleLegendConfig'
3
+
4
+ /**
5
+ * Configuration for waffle chart composition maps.
6
+ */
7
+ export interface WaffleMapConfig extends MapConfig {
8
+ /** Waffle min size. */
9
+ waffleMinSize?: number
10
+ /** Waffle max size. */
11
+ waffleMaxSize?: number
12
+ /** Waffle grid size. */
13
+ waffleGridSize?: number
14
+ /** Waffle cell padding. */
15
+ waffleCellPadding?: number
16
+ /** Waffle stroke fill. */
17
+ waffleStrokeFill?: string
18
+ /** Waffle stroke width. */
19
+ waffleStrokeWidth?: number
20
+ /** Waffle rounded corners. */
21
+ waffleRoundedCorners?: number
22
+ /** Waffle tooltip size. */
23
+ waffleTooltipSize?: number
24
+ /** Cat colors. */
25
+ catColors?: Record<string, string>
26
+ /** Cat labels. */
27
+ catLabels?: Record<string, string>
28
+ /** Waffle other color. */
29
+ waffleOtherColor?: string
30
+ /** Waffle other text. */
31
+ waffleOtherText?: string
32
+ /** Show only when complete. */
33
+ showOnlyWhenComplete?: boolean
34
+ /** No data fill style. */
35
+ noDataFillStyle?: string
36
+ /** Dorling. */
37
+ dorling?: boolean
38
+ /** Waffle total code. */
39
+ waffleTotalCode?: string
40
+ /** Stat codes. */
41
+ statCodes?: string[]
42
+ /** Legend. */
43
+ legend?: WaffleLegendConfig | false
44
+ }
@@ -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
+ }