Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-svg-worldmap

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-svg-worldmap - npm Package Compare versions

Comparing version 1.0.41 to 1.0.42

7

CHANGELOG.md

@@ -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

1

dist/WorldMap.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc