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

react-simple-maps

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-maps - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

2

lib/Geography.js

@@ -198,3 +198,3 @@ "use strict";

var restProps = Object.keys(this.props).filter(function (key) {
return !excludeProps.includes(key);
return excludeProps.indexOf(key) === -1;
}).reduce(function (obj, key) {

@@ -201,0 +201,0 @@ obj[key] = _this2.props[key];

@@ -130,4 +130,4 @@ "use strict";

var resizeFactorX = (0, _utils.calculateResizeFactor)(this.zoomableGroupNode.parentElement.getBoundingClientRect().width, width);
var resizeFactorY = (0, _utils.calculateResizeFactor)(this.zoomableGroupNode.parentElement.getBoundingClientRect().height, height);
var resizeFactorX = (0, _utils.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().width, width);
var resizeFactorY = (0, _utils.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().height, height);

@@ -154,4 +154,4 @@ var xPercentageChange = 1 / resizeFactorX * this.state.resizeFactorX;

var resizeFactorX = (0, _utils.calculateResizeFactor)(this.zoomableGroupNode.parentElement.getBoundingClientRect().width, width);
var resizeFactorY = (0, _utils.calculateResizeFactor)(this.zoomableGroupNode.parentElement.getBoundingClientRect().height, height);
var resizeFactorX = (0, _utils.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().width, width);
var resizeFactorY = (0, _utils.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().height, height);

@@ -158,0 +158,0 @@ this.setState({

{
"name": "react-simple-maps",
"version": "0.8.1",
"version": "0.8.2",
"description": "An svg map component built with and for React",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -143,3 +143,3 @@

const restProps = Object.keys(this.props)
.filter(key => !excludeProps.includes(key))
.filter(key => excludeProps.indexOf(key) === -1)
.reduce((obj, key) => {

@@ -146,0 +146,0 @@ obj[key] = this.props[key]

@@ -82,4 +82,4 @@

const resizeFactorX = calculateResizeFactor(this.zoomableGroupNode.parentElement.getBoundingClientRect().width, width)
const resizeFactorY = calculateResizeFactor(this.zoomableGroupNode.parentElement.getBoundingClientRect().height, height)
const resizeFactorX = calculateResizeFactor(this.zoomableGroupNode.parentNode.getBoundingClientRect().width, width)
const resizeFactorY = calculateResizeFactor(this.zoomableGroupNode.parentNode.getBoundingClientRect().height, height)

@@ -99,4 +99,4 @@ const xPercentageChange = 1 / resizeFactorX * this.state.resizeFactorX

const resizeFactorX = calculateResizeFactor(this.zoomableGroupNode.parentElement.getBoundingClientRect().width, width)
const resizeFactorY = calculateResizeFactor(this.zoomableGroupNode.parentElement.getBoundingClientRect().height, height)
const resizeFactorX = calculateResizeFactor(this.zoomableGroupNode.parentNode.getBoundingClientRect().width, width)
const resizeFactorY = calculateResizeFactor(this.zoomableGroupNode.parentNode.getBoundingClientRect().height, height)

@@ -103,0 +103,0 @@ this.setState({

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