Added snap to grid option to map settings

This commit is contained in:
Mitchell McCaffrey
2020-08-07 12:28:50 +10:00
parent 6b97614a60
commit 76cad29f2b
9 changed files with 52 additions and 55 deletions

View File

@@ -44,6 +44,7 @@ export function MapDataProvider({ children }) {
lastModified: Date.now() + i,
gridType: "grid",
showGrid: false,
snapToGrid: true,
});
// Add a state for the map if there isn't one already
const state = await database.table("states").get(id);