Move measurement options to map settings

This commit is contained in:
Mitchell McCaffrey
2021-02-10 19:59:15 +11:00
parent 19def8cdb0
commit 96298e8943
15 changed files with 153 additions and 210 deletions

View File

@@ -348,7 +348,7 @@ function loadVersions(db) {
);
}
// 1.8.0 - Add thumbnail to maps
// 1.8.0 - Add thumbnail to maps and add measurement to grid
db.version(19)
.stores({})
.upgrade(async (tx) => {
@@ -362,6 +362,7 @@ function loadVersions(db) {
.toCollection()
.modify((map) => {
map.thumbnail = thumbnails[map.id];
map.grid.measurement = { type: "chebyshev", scale: "5ft" };
});
});