Socket
Socket
Sign inDemoInstall

@vx/tooltip

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vx/tooltip - npm Package Compare versions

Comparing version 0.0.153 to 0.0.158

4

build/tooltips/TooltipWithBounds.js

@@ -49,5 +49,5 @@ 'use strict';

if (rect && parentRect) {
left = offsetLeft + rect.right > parentRect.right ? left - rect.width - offsetLeft : left + offsetLeft;
left = offsetLeft + rect.right > parentRect.right || offsetLeft + rect.right > window.innerWidth ? left - rect.width - offsetLeft : left + offsetLeft;
top = offsetTop + rect.bottom > parentRect.bottom ? top - rect.height - offsetTop : top + offsetTop;
top = offsetTop + rect.bottom > parentRect.bottom || offsetTop + rect.bottom > window.innerHeight ? top - rect.height - offsetTop : top + offsetTop;
}

@@ -54,0 +54,0 @@

{
"name": "@vx/tooltip",
"version": "0.0.153",
"version": "0.0.158",
"description": "vx tooltip",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -31,6 +31,6 @@ /* eslint react/forbid-prop-types: 0 */

if (rect && parentRect) {
left = (offsetLeft + rect.right) > parentRect.right
left = ((offsetLeft + rect.right) > parentRect.right || (offsetLeft + rect.right) > window.innerWidth)
? (left - rect.width - offsetLeft) : left + offsetLeft;
top = (offsetTop + rect.bottom) > parentRect.bottom
top = ((offsetTop + rect.bottom) > parentRect.bottom || (offsetTop + rect.bottom) > window.innerHeight)
? (top - rect.height - offsetTop) : top + offsetTop;

@@ -37,0 +37,0 @@ }

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