refactor: submap - UI update

This commit is contained in:
Azgaar 2024-10-20 02:29:10 +02:00
parent 431a5aa3e9
commit 6e38c93841
4 changed files with 22 additions and 48 deletions

View file

@ -123,13 +123,13 @@ async function openTransformTool() {
async function transformMap() {
INFO && console.group("transformMap");
const cellsNumber = +byId("transformPointsInput").value;
changeCellsDensity(cellsNumber);
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};
const cellsNumber = +byId("transformPointsInput").value;
changeCellsDensity(cellsNumber);
resetZoom(0);
undraw();
await Submap.resample(parentMap, options);