eurostat-map 4.8.0 → 4.8.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.8.0",
3
+ "version": "4.8.2",
4
4
  "description": "Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.",
5
5
  "keywords": [
6
6
  "eurostat",
@@ -230,15 +230,20 @@ export interface MapInstance {
230
230
  /** Insets. */
231
231
 
232
232
  /**
233
- * Inset map configurations. Pass 'default' for the standard
234
- * eurostat overseas territory insets. Passing true is an alias for 'default'.
235
- * Pass false to disable.
233
+ * Inset map configurations. Pass a named preset string, or a custom array, or false to
234
+ * disable. Passing true is an alias for 'default'.
235
+ * - 'default': simple grid layout of overseas territories.
236
+ * - 'image': Malta, Liechtenstein and EU/EFTA overseas/remote territories, hand-tuned
237
+ * layout with connecting decoration (background box, separator lines, blur gradients).
238
+ * - 'eu': simple grid layout of EU overseas/outermost territories, no decoration.
239
+ * - 'euEfta': like 'eu', plus Liechtenstein and Svalbard, no decoration.
236
240
  * @example map.insets('default')
241
+ * @example map.insets('image')
237
242
  * @example map.insets(true)
238
243
  * @example map.insets([{ geo: 'MT' }, { geo: 'LI' }])
239
244
  */
240
- insets(): InsetConfig[] | 'default' | false
241
- insets(config: InsetConfig[] | 'default' | true | false): this
245
+ insets(): InsetConfig[] | 'default' | 'image' | 'eu' | 'euEfta' | false
246
+ insets(config: InsetConfig[] | 'default' | 'image' | 'eu' | 'euEfta' | true | false): this
242
247
 
243
248
  /** Decoration. */
244
249
 
@@ -12,10 +12,10 @@ export interface BivariateLegendConfig extends LegendConfig {
12
12
  /** Rotation angle of the legend in degrees. @default 0 */
13
13
  rotation?: number
14
14
 
15
- /** Label for the first variable (y-axis). @default 'Variable 1' */
15
+ /** Label for the first variable (x-axis). Supports `\\n` and `<br>` line breaks. @default 'Variable 1' */
16
16
  label1?: string
17
17
 
18
- /** Label for the second variable (x-axis). @default 'Variable 2' */
18
+ /** Label for the second variable (y-axis). Supports `\\n` and `<br>` line breaks. @default 'Variable 2' */
19
19
  label2?: string
20
20
 
21
21
  /** Break labels for the first variable. Omit to hide first-axis break labels. */
@@ -42,8 +42,8 @@ export interface BivariateLegendConfig extends LegendConfig {
42
42
  /** Extra vertical offset for the "no data" legend item in pixels. @default 30 */
43
43
  noDataYOffset?: number
44
44
 
45
- /** Whether to show arrows at the end of the axes. @default true */
46
- axisArrows?: boolean
45
+ /** Whether to show arrows at the end of both axes, or for each axis independently. @default true */
46
+ axisArrows?: boolean | { x?: boolean; y?: boolean }
47
47
 
48
48
  /** Height of axis arrows in pixels. @default 15 */
49
49
  arrowHeight?: number
@@ -63,8 +63,8 @@ export interface BivariateLegendConfig extends LegendConfig {
63
63
  y?: { low?: string; high?: string }
64
64
  }
65
65
 
66
- /** Whether to show low/high endpoint labels on both axes. @default true */
67
- showAxisExtremes?: boolean
66
+ /** Whether to show low/high endpoint labels on both axes, or for each axis independently. @default true */
67
+ showAxisExtremes?: boolean | { x?: boolean; y?: boolean }
68
68
 
69
69
  /**
70
70
  * Optional text annotations for each corner of the bivariate square.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.8.0",
3
+ "version": "4.8.2",
4
4
  "description": "Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.",
5
5
  "keywords": [
6
6
  "cartography",