Socket
Socket
Sign inDemoInstall

re-resizable

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

re-resizable - npm Package Compare versions

Comparing version 6.9.17 to 6.9.18

17

lib/index.es5.js

@@ -560,2 +560,3 @@ 'use strict';

Resizable.prototype.setBoundingClientRect = function () {
var adjustedScale = 1 / (this.props.scale || 1);
// For parent boundary

@@ -566,4 +567,4 @@ if (this.props.bounds === 'parent') {

var parentRect = parent_2.getBoundingClientRect();
this.parentLeft = parentRect.left;
this.parentTop = parentRect.top;
this.parentLeft = parentRect.left * adjustedScale;
this.parentTop = parentRect.top * adjustedScale;
}

@@ -574,4 +575,4 @@ }

var targetRect = this.props.bounds.getBoundingClientRect();
this.targetLeft = targetRect.left;
this.targetTop = targetRect.top;
this.targetLeft = targetRect.left * adjustedScale;
this.targetTop = targetRect.top * adjustedScale;
}

@@ -581,6 +582,6 @@ // For boundary

var _a = this.resizable.getBoundingClientRect(), left = _a.left, top_1 = _a.top, right = _a.right, bottom = _a.bottom;
this.resizableLeft = left;
this.resizableRight = right;
this.resizableTop = top_1;
this.resizableBottom = bottom;
this.resizableLeft = left * adjustedScale;
this.resizableRight = right * adjustedScale;
this.resizableTop = top_1 * adjustedScale;
this.resizableBottom = bottom * adjustedScale;
}

@@ -587,0 +588,0 @@ };

@@ -493,2 +493,3 @@ var __extends = (this && this.__extends) || (function () {

Resizable.prototype.setBoundingClientRect = function () {
var adjustedScale = 1 / (this.props.scale || 1);
// For parent boundary

@@ -499,4 +500,4 @@ if (this.props.bounds === 'parent') {

var parentRect = parent_2.getBoundingClientRect();
this.parentLeft = parentRect.left;
this.parentTop = parentRect.top;
this.parentLeft = parentRect.left * adjustedScale;
this.parentTop = parentRect.top * adjustedScale;
}

@@ -507,4 +508,4 @@ }

var targetRect = this.props.bounds.getBoundingClientRect();
this.targetLeft = targetRect.left;
this.targetTop = targetRect.top;
this.targetLeft = targetRect.left * adjustedScale;
this.targetTop = targetRect.top * adjustedScale;
}

@@ -514,6 +515,6 @@ // For boundary

var _a = this.resizable.getBoundingClientRect(), left = _a.left, top_1 = _a.top, right = _a.right, bottom = _a.bottom;
this.resizableLeft = left;
this.resizableRight = right;
this.resizableTop = top_1;
this.resizableBottom = bottom;
this.resizableLeft = left * adjustedScale;
this.resizableRight = right * adjustedScale;
this.resizableTop = top_1 * adjustedScale;
this.resizableBottom = bottom * adjustedScale;
}

@@ -520,0 +521,0 @@ };

{
"name": "re-resizable",
"version": "6.9.17",
"version": "6.9.18",
"description": "Resizable component for React.",

@@ -5,0 +5,0 @@ "title": "re-resizable",

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