refactor: submap - simplify options

This commit is contained in:
Azgaar 2024-10-20 15:53:22 +02:00
parent 72be5f8220
commit 1d9ba6f17c
4 changed files with 21 additions and 53 deletions

View file

@ -128,11 +128,10 @@ async function openTransformTool() {
const parentMap = {grid: deepCopy(grid), pack: deepCopy(pack), notes: deepCopy(notes)};
const [projection, inverse] = getProjection();
const options = {depressRivers: false, smoothHeightmap: false, scale: 1, inverse, projection};
resetZoom(0);
undraw();
Resample.process(parentMap, options);
Resample.process({parentMap, projection, inverse, scale: 1});
drawLayers();
INFO && console.groupEnd("transformMap");