svgmap 2.11.1 → 2.12.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.
- package/README.md +3 -3
- package/demo/html/index.html +2 -2
- package/demo/react/app/package-lock.json +615 -288
- package/dist/svgMap.js +30 -3
- package/dist/svgMap.min.js +1 -1
- package/gulpfile.js +0 -2
- package/package.json +5 -5
- package/src/js/svgMap.js +30 -3
- package/src/scss/main.scss +2 -3
- package/src/scss/map.scss +2 -0
- package/src/scss/tooltip.scss +2 -0
package/README.md
CHANGED
|
@@ -88,9 +88,9 @@ You can pass the following options into svgMap:
|
|
|
88
88
|
| `mouseWheelZoomWithKey` | `boolean` | `false` | Allow zooming only when one of the following keys is pressed: SHIFT, CONTROL, ALT, COMMAND, OPTION |
|
|
89
89
|
| `mouseWheelKeyMessage` | `string` | `'Press the [ALT] key to zoom'` | The message when trying to scroll without a key |
|
|
90
90
|
| `mouseWheelKeyMessageMac` | `string ` | `Press the [COMMAND] key to zoom` | The message when trying to scroll without a key on MacOS |
|
|
91
|
-
| `colorMax` | `string` | `'#CC0033'` | Color for highest value
|
|
92
|
-
| `colorMin` | `string` | `'#FFE5D9'` | Color for lowest value
|
|
93
|
-
| `colorNoData` | `string` | `'#E2E2E2'` | Color when there is no data
|
|
91
|
+
| `colorMax` | `string` | `'#CC0033'` | Color for highest value. Accepts CSS vars, color names, rgb or hex values. |
|
|
92
|
+
| `colorMin` | `string` | `'#FFE5D9'` | Color for lowest value. Accepts CSS vars, color names, rgb or hex values. |
|
|
93
|
+
| `colorNoData` | `string` | `'#E2E2E2'` | Color when there is no data. Accepts CSS vars, color names, rgb or hex values. |
|
|
94
94
|
| `flagType` | `'image'`, `'emoji'` | `'image'` | The type of the flag in the tooltip |
|
|
95
95
|
| `flagURL` | `string` | | The URL to the flags when using flag type `'image'`. The placeholder `{0}` will get replaced with the lowercase [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. Default: `'https://cdn.jsdelivr.net/gh/hjnilsson/country-flags@latest/svg/{0}.svg'` |
|
|
96
96
|
| `hideFlag` | `boolean` | `false` | Hide the flag in tooltips |
|
package/demo/html/index.html
CHANGED
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
targetElementID: 'svgMapPersonHeight',
|
|
65
65
|
countryNames: svgMapCountryNamesDE,
|
|
66
66
|
data: svgMapDataPersonHeight,
|
|
67
|
-
colorMin: '
|
|
68
|
-
colorMax: '
|
|
67
|
+
colorMin: 'rgb(255, 240, 249)',
|
|
68
|
+
colorMax: 'rgb(115, 11, 98)',
|
|
69
69
|
hideFlag: true,
|
|
70
70
|
noDataText: 'Keine Daten vorhanden',
|
|
71
71
|
mouseWheelZoomEnabled: true,
|