@nivo/core
Advanced tools
Comparing version 0.33.0-7 to 0.33.0-8
@@ -13,8 +13,8 @@ /* | ||
export var getRelativeCursor = function getRelativeCursor(el, event) { | ||
var pageX = event.pageX, | ||
pageY = event.pageY; | ||
var clientX = event.clientX, | ||
clientY = event.clientY; | ||
var bounds = el.getBoundingClientRect(); | ||
return [pageX - bounds.left, pageY - bounds.top]; | ||
return [clientX - bounds.left, clientY - bounds.top]; | ||
}; |
@@ -17,8 +17,8 @@ 'use strict'; | ||
var getRelativeCursor = exports.getRelativeCursor = function getRelativeCursor(el, event) { | ||
var pageX = event.pageX, | ||
pageY = event.pageY; | ||
var clientX = event.clientX, | ||
clientY = event.clientY; | ||
var bounds = el.getBoundingClientRect(); | ||
return [pageX - bounds.left, pageY - bounds.top]; | ||
return [clientX - bounds.left, clientY - bounds.top]; | ||
}; /* | ||
@@ -25,0 +25,0 @@ * This file is part of the nivo project. |
{ | ||
"name": "@nivo/core", | ||
"version": "0.33.0-7", | ||
"version": "0.33.0-8", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@nivo/babel-preset": "0.33.0-7", | ||
"@nivo/babel-preset": "0.33.0-8", | ||
"babel-cli": "^6.26.0", | ||
@@ -24,0 +24,0 @@ "babel-jest": "^20.0.3", |
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
443714