Socket
Socket
Sign inDemoInstall

@nivo/core

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/core - npm Package Compare versions

Comparing version 0.33.0-7 to 0.33.0-8

6

es/lib/interactivity/index.js

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

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