re-resizable
Advanced tools
Comparing version 6.9.12 to 6.9.13
@@ -688,6 +688,8 @@ 'use strict'; | ||
var gap = this.props.snapGap || 0; | ||
widthChangedWithGrid = gap === 0 || Math.abs(newGridWidth - newWidth) <= gap; | ||
heightChangedWithGrid = gap === 0 || Math.abs(newGridHeight - newHeight) <= gap; | ||
newWidth = widthChangedWithGrid ? newGridWidth : newWidth; | ||
newHeight = heightChangedWithGrid ? newGridHeight : newHeight; | ||
var w = gap === 0 || Math.abs(newGridWidth - newWidth) <= gap ? newGridWidth : newWidth; | ||
var h = gap === 0 || Math.abs(newGridHeight - newHeight) <= gap ? newGridHeight : newHeight; | ||
widthChangedWithGrid = w !== newWidth; | ||
heightChangedWithGrid = h !== newHeight; | ||
newWidth = w; | ||
newHeight = h; | ||
} | ||
@@ -694,0 +696,0 @@ var delta = { |
@@ -621,6 +621,8 @@ var __extends = (this && this.__extends) || (function () { | ||
var gap = this.props.snapGap || 0; | ||
widthChangedWithGrid = gap === 0 || Math.abs(newGridWidth - newWidth) <= gap; | ||
heightChangedWithGrid = gap === 0 || Math.abs(newGridHeight - newHeight) <= gap; | ||
newWidth = widthChangedWithGrid ? newGridWidth : newWidth; | ||
newHeight = heightChangedWithGrid ? newGridHeight : newHeight; | ||
var w = gap === 0 || Math.abs(newGridWidth - newWidth) <= gap ? newGridWidth : newWidth; | ||
var h = gap === 0 || Math.abs(newGridHeight - newHeight) <= gap ? newGridHeight : newHeight; | ||
widthChangedWithGrid = w !== newWidth; | ||
heightChangedWithGrid = h !== newHeight; | ||
newWidth = w; | ||
newHeight = h; | ||
} | ||
@@ -627,0 +629,0 @@ var delta = { |
{ | ||
"name": "re-resizable", | ||
"version": "6.9.12", | ||
"version": "6.9.13", | ||
"description": "Resizable component for React.", | ||
@@ -5,0 +5,0 @@ "title": "re-resizable", |
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
153379
2895