mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 18:41:23 +01:00
refactor: submap - UI update
This commit is contained in:
parent
431a5aa3e9
commit
6e38c93841
4 changed files with 22 additions and 48 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue