eurostat-map 4.8.2 → 4.8.5
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.
- package/build/215.eurostatmap.min.js +1 -1
- package/build/eurostatmap.js +1125 -1082
- package/build/eurostatmap.min.js +2 -2
- package/build/eurostatmap.min.js.map +1 -1
- package/build/package.json +87 -87
- package/build/types/core/InsetConfig.d.ts +71 -23
- package/build/types/core/decoration/LabelsConfig.d.ts +17 -10
- package/build/types/index.d.ts +2 -1
- package/build/types/layers/CategoricalMapConfig.d.ts +2 -0
- package/build/types/legend/LegendConfig.d.ts +73 -73
- package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +125 -134
- package/package.json +1 -1
|
@@ -1,135 +1,126 @@
|
|
|
1
|
-
import { LegendConfig } from '../LegendConfig'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Configuration for bivariate choropleth map legends.
|
|
5
|
-
* Displays a 2D grid showing the relationship between two variables,
|
|
6
|
-
* with color squares representing different class combinations.
|
|
7
|
-
*/
|
|
8
|
-
export interface BivariateLegendConfig extends LegendConfig {
|
|
9
|
-
/** Size of the legend square grid in pixels. @default 100 */
|
|
10
|
-
squareSize?: number
|
|
11
|
-
|
|
12
|
-
/** Rotation angle of the legend in degrees. @default 0 */
|
|
13
|
-
rotation?: number
|
|
14
|
-
|
|
15
|
-
/** Label for the first variable (x-axis). Supports `\\n` and `<br>` line breaks. @default 'Variable 1' */
|
|
16
|
-
label1?: string
|
|
17
|
-
|
|
18
|
-
/** Label for the second variable (y-axis). Supports `\\n` and `<br>` line breaks. @default 'Variable 2' */
|
|
19
|
-
label2?: string
|
|
20
|
-
|
|
21
|
-
/** Break labels for the first variable. Omit to hide first-axis break labels. */
|
|
22
|
-
breaks1?: Array<number | string>
|
|
23
|
-
|
|
24
|
-
/** Break labels for the second variable. Omit to hide second-axis break labels. */
|
|
25
|
-
breaks2?: Array<number | string>
|
|
26
|
-
|
|
27
|
-
/** Length of axis tick marks in pixels. @default 5 */
|
|
28
|
-
tickLength?: number
|
|
29
|
-
|
|
30
|
-
/** Offset adjustments for y-axis labels. @default { x: 0, y: 0 } */
|
|
31
|
-
yAxisLabelsOffset?: { x: number; y: number }
|
|
32
|
-
|
|
33
|
-
/** Offset adjustments for x-axis labels. @default { x: 0, y: 0 } */
|
|
34
|
-
xAxisLabelsOffset?: { x: number; y: number }
|
|
35
|
-
|
|
36
|
-
/** Offset adjustments for y-axis title. @default { x: 0, y: 0 } */
|
|
37
|
-
yAxisTitleOffset?: { x: number; y: number }
|
|
38
|
-
|
|
39
|
-
/** Offset adjustments for x-axis title. @default { x: 0, y: 0 } */
|
|
40
|
-
xAxisTitleOffset?: { x: number; y: number }
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
*/
|
|
127
|
-
annotationPadding?:
|
|
128
|
-
| number
|
|
129
|
-
| {
|
|
130
|
-
topRight?: number
|
|
131
|
-
bottomRight?: number
|
|
132
|
-
bottomLeft?: number
|
|
133
|
-
topLeft?: number
|
|
134
|
-
}
|
|
1
|
+
import { LegendConfig } from '../LegendConfig'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for bivariate choropleth map legends.
|
|
5
|
+
* Displays a 2D grid showing the relationship between two variables,
|
|
6
|
+
* with color squares representing different class combinations.
|
|
7
|
+
*/
|
|
8
|
+
export interface BivariateLegendConfig extends LegendConfig {
|
|
9
|
+
/** Size of the legend square grid in pixels. @default 100 */
|
|
10
|
+
squareSize?: number
|
|
11
|
+
|
|
12
|
+
/** Rotation angle of the legend in degrees. @default 0 */
|
|
13
|
+
rotation?: number
|
|
14
|
+
|
|
15
|
+
/** Label for the first variable (x-axis). Supports `\\n` and `<br>` line breaks. @default 'Variable 1' */
|
|
16
|
+
label1?: string
|
|
17
|
+
|
|
18
|
+
/** Label for the second variable (y-axis). Supports `\\n` and `<br>` line breaks. @default 'Variable 2' */
|
|
19
|
+
label2?: string
|
|
20
|
+
|
|
21
|
+
/** Break labels for the first variable. Omit to hide first-axis break labels. */
|
|
22
|
+
breaks1?: Array<number | string>
|
|
23
|
+
|
|
24
|
+
/** Break labels for the second variable. Omit to hide second-axis break labels. */
|
|
25
|
+
breaks2?: Array<number | string>
|
|
26
|
+
|
|
27
|
+
/** Length of axis tick marks in pixels. @default 5 */
|
|
28
|
+
tickLength?: number
|
|
29
|
+
|
|
30
|
+
/** Offset adjustments for y-axis labels. @default { x: 0, y: 0 } */
|
|
31
|
+
yAxisLabelsOffset?: { x: number; y: number }
|
|
32
|
+
|
|
33
|
+
/** Offset adjustments for x-axis labels. @default { x: 0, y: 0 } */
|
|
34
|
+
xAxisLabelsOffset?: { x: number; y: number }
|
|
35
|
+
|
|
36
|
+
/** Offset adjustments for y-axis title. @default { x: 0, y: 0 } */
|
|
37
|
+
yAxisTitleOffset?: { x: number; y: number }
|
|
38
|
+
|
|
39
|
+
/** Offset adjustments for x-axis title. @default { x: 0, y: 0 } */
|
|
40
|
+
xAxisTitleOffset?: { x: number; y: number }
|
|
41
|
+
|
|
42
|
+
/** Font size of the axis titles in pixels. Defaults to the value defined by the legend CSS. */
|
|
43
|
+
axisTitleFontSize?: number
|
|
44
|
+
|
|
45
|
+
/** Extra vertical offset for the "no data" legend item in pixels. @default 30 */
|
|
46
|
+
noDataYOffset?: number
|
|
47
|
+
|
|
48
|
+
/** Whether to show arrows at the end of both axes, or for each axis independently. @default true */
|
|
49
|
+
axisArrows?: boolean | { x?: boolean; y?: boolean }
|
|
50
|
+
|
|
51
|
+
/** Height of axis arrows in pixels. @default 15 */
|
|
52
|
+
arrowHeight?: number
|
|
53
|
+
|
|
54
|
+
/** Width of axis arrows in pixels. @default 14 */
|
|
55
|
+
arrowWidth?: number
|
|
56
|
+
|
|
57
|
+
/** Padding between arrow and axis label in pixels. @default 10 */
|
|
58
|
+
arrowPadding?: number
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Labels displayed at low/high ends of each axis.
|
|
62
|
+
* @default { x: { low: 'Low', high: 'High' }, y: { low: 'Low', high: 'High' } }
|
|
63
|
+
*/
|
|
64
|
+
axisExtremes?: {
|
|
65
|
+
x?: { low?: string; high?: string }
|
|
66
|
+
y?: { low?: string; high?: string }
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Whether to show low/high endpoint labels on both axes, or for each axis independently. @default true */
|
|
70
|
+
showAxisExtremes?: boolean | { x?: boolean; y?: boolean }
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Optional text annotations for each corner of the bivariate square.
|
|
74
|
+
* Add text for any combination of topRight, bottomRight, bottomLeft, topLeft.
|
|
75
|
+
* Supports line breaks using '<br>'/'<br/>' or '\\n'.
|
|
76
|
+
*/
|
|
77
|
+
annotations?: {
|
|
78
|
+
topRight?: string
|
|
79
|
+
bottomRight?: string
|
|
80
|
+
bottomLeft?: string
|
|
81
|
+
topLeft?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Length of corner annotation callout lines in pixels.
|
|
86
|
+
* Can be a single number for all corners, or per-corner values.
|
|
87
|
+
* @default 18
|
|
88
|
+
*/
|
|
89
|
+
annotationLineLength?:
|
|
90
|
+
| number
|
|
91
|
+
| {
|
|
92
|
+
topRight?: number
|
|
93
|
+
bottomRight?: number
|
|
94
|
+
bottomLeft?: number
|
|
95
|
+
topLeft?: number
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Annotation text offsets in pixels.
|
|
100
|
+
* Use global `{ x, y }` or per-corner values.
|
|
101
|
+
* @default auto (based on corner direction)
|
|
102
|
+
*/
|
|
103
|
+
annotationOffsets?:
|
|
104
|
+
| { x?: number; y?: number }
|
|
105
|
+
| {
|
|
106
|
+
topRight?: { x?: number; y?: number }
|
|
107
|
+
bottomRight?: { x?: number; y?: number }
|
|
108
|
+
bottomLeft?: { x?: number; y?: number }
|
|
109
|
+
topLeft?: { x?: number; y?: number }
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Extra offset applied to the leader-line endpoint where it meets the annotation label.
|
|
114
|
+
* Use global `{ x, y }` or per-corner values.
|
|
115
|
+
* @default { x: 0, y: 0 }
|
|
116
|
+
*/
|
|
117
|
+
annotationLineEndOffsets?:
|
|
118
|
+
| { x?: number; y?: number }
|
|
119
|
+
| {
|
|
120
|
+
topRight?: { x?: number; y?: number }
|
|
121
|
+
bottomRight?: { x?: number; y?: number }
|
|
122
|
+
bottomLeft?: { x?: number; y?: number }
|
|
123
|
+
topLeft?: { x?: number; y?: number }
|
|
124
|
+
}
|
|
125
|
+
|
|
135
126
|
}
|
package/package.json
CHANGED