This commit is contained in:
Azgaar 2019-10-17 22:41:57 +03:00
parent 905573dde7
commit efd9159737
4 changed files with 12 additions and 11 deletions

View file

@ -877,7 +877,7 @@ function drawGrid() {
console.time("drawGrid");
gridOverlay.selectAll("*").remove();
const type = styleGridType.value;
const size = +styleGridSize.value;
const size = Math.max(+styleGridSize.value, 2);
if (type === "pointyHex" || type === "flatHex") {
const points = getHexGridPoints(size, type);
const hex = "m" + getHex(size, type).slice(0, 4).join("l");

File diff suppressed because one or more lines are too long