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

@vx/event

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vx/event - npm Package Compare versions

Comparing version 0.0.109 to 0.0.110

Readme.md

13

build/index.js

@@ -9,8 +9,9 @@ 'use strict';

var _localPoint2 = _interopRequireDefault(_localPoint);
Object.defineProperty(exports, 'localPoint', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_localPoint).default;
}
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = {
localPoint: _localPoint2.default
};
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -10,6 +10,2 @@ 'use strict';

var _point2 = _interopRequireDefault(_point);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function localPoint(node, event) {

@@ -23,3 +19,3 @@ if (!node) return;

point = point.matrixTransform(node.getScreenCTM().inverse());
return new _point2.default({
return new _point.Point({
x: point.x,

@@ -30,3 +26,3 @@ y: point.y

var rect = node.getBoundingClientRect();
return new _point2.default({
return new _point.Point({
x: event.clientX - rect.left - node.clientLeft,

@@ -33,0 +29,0 @@ y: event.clientY - rect.top - node.clientTop

{
"name": "@vx/event",
"version": "0.0.109",
"version": "0.0.110",
"description": "vx event",

@@ -38,4 +38,4 @@ "main": "build/index.js",

"dependencies": {
"@vx/point": "0.0.84"
"@vx/point": "0.0.110"
}
}
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