react-svg-worldmap
Advanced tools
Comparing version 1.0.41 to 1.0.42
@@ -86,2 +86,7 @@ # CHANGELOG | ||
* Responsive size option for different sized layouts (mobile/desktop/tablet/etc...) | ||
* Responsive size option for different sized layouts (mobile/desktop/tablet/etc...) | ||
## 1.0.42 | ||
* Deprecated marker functionality to fix improper highlight bug. | ||
* Erased console.log |
@@ -26,3 +26,2 @@ import React from "react"; | ||
frameColor?: string; | ||
type?: string; | ||
styleFunction?: (context: ICountryContext) => {}; | ||
@@ -29,0 +28,0 @@ onClickFunction?: (event: React.MouseEvent<SVGElement, MouseEvent>, countryName: string, isoCode: string, value: string, prefix: string, suffix: string) => {}; |
{ | ||
"name": "react-svg-worldmap", | ||
"version": "1.0.41", | ||
"version": "1.0.42", | ||
"license": "MIT", | ||
@@ -30,3 +30,2 @@ "displayName": "React Worldmap", | ||
"d3-geo": "^1.11.9", | ||
"react-path-marker": "^1.0.8", | ||
"react-path-tooltip": "^1.0.13" | ||
@@ -49,6 +48,4 @@ }, | ||
"devDependencies": { | ||
"@types/jest": "^25.1.4", | ||
"@types/react": "^16.14.2", | ||
"@types/react-dom": "^16.9.10", | ||
"husky": "^4.3.7", | ||
"terser": "^5.3.3", | ||
@@ -55,0 +52,0 @@ "tsdx": "^0.13.3", |
@@ -147,3 +147,3 @@ # react-svg-worldmap [![License: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://img.shields.io/npm/v/react-svg-worldmap.svg?style=flat)](https://www.npmjs.com/package/react-svg-worldmap) [![Demo: Simple Example](https://img.shields.io/badge/demo-live-red.svg)](https://react-svg-worldmap-simple-example.imfast.io) | ||
| borderColor | string | Border color around each individual country. "black" by default | | ||
| type | string | Select type of map you want, either "tooltip" or "marker" | | ||
| :construction: type :construction: | string | Select type of map you want, either "tooltip" or "marker". :memo: This functionality not only complicated the code, but was infrequently used and needs to be rethought to make it better. For simplicity sake, I have deprecated this functionality for the time being pending on a more elegant solution. :memo: | | ||
| styleFunction | (context: any) => {} | A callback function to customize styling of each country (see custom-style-example) | | ||
@@ -150,0 +150,0 @@ | tooltipTextFunction | (countryName: string, isoCode: string, value: string, prefix?: string, suffix?: string) => {} | A callback function to customize tooltip text (see localization-example) | |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
6
186333
41
- Removedreact-path-marker@^1.0.8
- Removedreact-path-marker@1.0.8(transitive)