Added bounds to grid name match

This commit is contained in:
Mitchell McCaffrey
2020-10-22 12:07:06 +11:00
parent 76e650e478
commit d4ccad8e0a
2 changed files with 10 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ const gridSizeStd = { x: 14.438842, y: 15.582376 };
const minGridSize = 10;
const maxGridSize = 200;
function gridSizeVaild(x, y) {
export function gridSizeVaild(x, y) {
return (
x > minGridSize && y > minGridSize && x < maxGridSize && y < maxGridSize
);