Comparing version 0.7.61 to 0.7.62
{ | ||
"name": "squishjs", | ||
"version": "0.7.61", | ||
"version": "0.7.62", | ||
"description": "squish & unsquish stuff", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -13,2 +13,20 @@ const Physics = { | ||
if (newX < 0 || newX > endX || newY < 0 || newY > endY) { | ||
let _newX = newX; | ||
let _newY = newY; | ||
if (newX < 0) { | ||
_newX = 0; | ||
} else if (newX > endX) { | ||
_newX = endX; | ||
} | ||
if (newY < 0) { | ||
_newY = 0; | ||
} else if (newY > endY) { | ||
_newY = endY; | ||
} | ||
if (!(path[path.length - 1][0] === _newX || path[path.length - 1][1] === _newY)) { | ||
path.push([_newX, _newY]); | ||
} | ||
withinEdges = false; | ||
@@ -15,0 +33,0 @@ } else { |
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
162678
3110