eurostat-map 4.10.0 → 4.10.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.10.0",
3
+ "version": "4.10.1",
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",
@@ -48,6 +48,24 @@ export interface ChoroplethLegendConfig extends LegendConfig {
48
48
  /** Explicit diverging arrow length in pixels. */
49
49
  divergingArrowLength?: number
50
50
 
51
+ /** Whether to draw the horizontal divergence line/tick. Set to false to show only the
52
+ * arrows (when pointOfDivergenceLabel has 2 parts separated by '|'). @default true */
53
+ showDivergingLine?: boolean
54
+
55
+ /** Extra gap in pixels added after the longest legend label when computing the diverging
56
+ * line's length, if divergingLineLength isn't explicitly set. @default 15 */
57
+ divergingLinePadding?: number
58
+
59
+ /** Position the 2 diverging labels near the top/bottom of the whole scale instead of near
60
+ * the divergence point. Unless divergingArrowLength is explicitly set, the arrows also
61
+ * stretch to reach near their own label. @default false */
62
+ pointOfDivergenceLabelsAtExtremes?: boolean
63
+
64
+ /** Position the 2 diverging labels above/below their arrowhead, starting at the arrow's x
65
+ * position, instead of beside it. Shorten divergingArrowLength to leave room for the
66
+ * label text. @default false */
67
+ pointOfDivergenceLabelsStacked?: boolean
68
+
51
69
  /** Label shown at the low end of continuous legends. @default 'Low' */
52
70
  lowLabel?: string
53
71
 
@@ -125,6 +125,24 @@ export interface ProportionalSymbolColorLegendConfig {
125
125
 
126
126
  /** Length of diverging arrows in pixels. */
127
127
  divergingArrowLength?: number
128
+
129
+ /** Whether to draw the horizontal divergence line/tick. Set to false to show only the
130
+ * arrows (when pointOfDivergenceLabel has 2 parts separated by '|'). @default true */
131
+ showDivergingLine?: boolean
132
+
133
+ /** Extra gap in pixels added after the longest legend label when computing the diverging
134
+ * line's length, if divergingLineLength isn't explicitly set. @default 15 */
135
+ divergingLinePadding?: number
136
+
137
+ /** Position the 2 diverging labels near the top/bottom of the whole scale instead of near
138
+ * the divergence point. Unless divergingArrowLength is explicitly set, the arrows also
139
+ * stretch to reach near their own label. @default false */
140
+ pointOfDivergenceLabelsAtExtremes?: boolean
141
+
142
+ /** Position the 2 diverging labels above/below their arrowhead, starting at the arrow's x
143
+ * position, instead of beside it. Shorten divergingArrowLength to leave room for the
144
+ * label text. @default false */
145
+ pointOfDivergenceLabelsStacked?: boolean
128
146
  }
129
147
 
130
148
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.10.0",
3
+ "version": "4.10.1",
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",