Add hex support for default inset function

This commit is contained in:
Mitchell McCaffrey
2021-02-05 11:00:31 +11:00
parent e90b6dea49
commit 5dfddd6af9
5 changed files with 87 additions and 63 deletions

View File

@@ -16,7 +16,7 @@ import blobToBuffer from "../helpers/blobToBuffer";
import { resizeImage } from "../helpers/image";
import { useSearch, useGroup, handleItemSelect } from "../helpers/select";
import {
getMapDefaultInset,
getGridDefaultInset,
getGridSize,
gridSizeVaild,
} from "../helpers/grid";
@@ -206,7 +206,7 @@ function SelectMapModal({
type: "file",
grid: {
size: gridSize,
inset: getMapDefaultInset(
inset: getGridDefaultInset(
image.width,
image.height,
gridSize.x,