react-simple-maps
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -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({ |
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
953682