Refactored getBrushPosition helper

This commit is contained in:
Mitchell McCaffrey
2020-11-03 16:20:51 +11:00
parent 251a89eaf4
commit 9c1960ba71
4 changed files with 8 additions and 19 deletions

View File

@@ -38,8 +38,8 @@ function MapMeasure({ map, selectedToolSettings, active, gridSize }) {
return getBrushPositionForTool(
map,
getRelativePointerPositionNormalized(mapImage),
"drawing",
{ type: "line" },
map.snapToGrid,
false,
gridSize,
[]
);