advanced-cropper
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -214,3 +214,3 @@ 'use strict'; | ||
if (preserveRatio) { | ||
var multiplier_1 = Math.min.apply(Math, constants.ALL_DIRECTIONS.map(function (direction) { return maxResize[direction]; })); | ||
var multiplier_1 = 0; | ||
if (multiplier_1 !== Infinity) { | ||
@@ -378,2 +378,5 @@ constants.ALL_DIRECTIONS.forEach(function (direction) { | ||
if (ratioBroken && Math.abs(ratioBroken - currentWidth / currentHeight) > 1e-3) { | ||
{ | ||
console.error("Something went wrong and ratio was broken: " + currentWidth / currentHeight + " instead of " + ratioBroken); | ||
} | ||
constants.ALL_DIRECTIONS.forEach(function (direction) { | ||
@@ -838,2 +841,5 @@ if (!allowedDirections[direction]) { | ||
if (restrictions.minWidth > restrictions.maxWidth) { | ||
{ | ||
console.warn("Warning: maximum width (" + restrictions.maxWidth + "px) fewer that the minimum width (" + restrictions.minWidth + "px). It is set equal to the minimum width and width resizing was blocked"); | ||
} | ||
restrictions.maxWidth = restrictions.minWidth; | ||
@@ -843,2 +849,5 @@ restrictions.widthFrozen = true; | ||
if (restrictions.minHeight > restrictions.maxHeight) { | ||
{ | ||
console.warn("Warning: maximum height (" + restrictions.maxHeight + "px) fewer that the minimum height (" + restrictions.minHeight + "px). It is set equal to the minimum height and height resizing was blocked"); | ||
} | ||
restrictions.maxHeight = restrictions.minHeight; | ||
@@ -845,0 +854,0 @@ restrictions.heightFrozen = true; |
{ | ||
"name": "advanced-cropper", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Advanced cropper algorithms", | ||
@@ -28,3 +28,4 @@ "author": "Norserium", | ||
"lint:fix": "eslint --fix src/**/*.{js,vue}", | ||
"publish:dist": "copyfiles package.json dist && npm publish dist" | ||
"prepare:dist": "copyfiles package.json dist", | ||
"publish:dist": "npm run prepare:dist && npm publish dist" | ||
}, | ||
@@ -64,2 +65,3 @@ "dependencies": { | ||
], | ||
"types": [], | ||
"lint-staged": { | ||
@@ -66,0 +68,0 @@ "*.{js,ts}": [ |
@@ -77,3 +77,3 @@ 'use strict'; | ||
function replacedProp(value, oldName, currentName) { | ||
if (!isEmpty(value) && "production" !== 'production') { | ||
if (!isEmpty(value) && "build" !== 'production') { | ||
console.warn("Warning: prop \"" + oldName + "\" is deprecated, use \"" + currentName + "\" instead. Value:", value); | ||
@@ -80,0 +80,0 @@ } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
61725
15
1424