mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 18:41:23 +01:00
refactor: submap - recalculateMapSize
This commit is contained in:
parent
499762f1bb
commit
1305246d7b
5 changed files with 46 additions and 25 deletions
|
|
@ -126,12 +126,11 @@ async function openTransformTool() {
|
|||
const cellsNumber = +byId("transformPointsInput").value;
|
||||
changeCellsDensity(cellsNumber);
|
||||
|
||||
const parentMap = {grid: deepCopy(grid), pack: deepCopy(pack), notes: deepCopy(notes)};
|
||||
const [projection, inverse] = getProjection();
|
||||
|
||||
resetZoom(0);
|
||||
undraw();
|
||||
Resample.process({parentMap, projection, inverse, scale: 1});
|
||||
Resample.process({projection, inverse, scale: 1});
|
||||
drawLayers();
|
||||
|
||||
INFO && console.groupEnd("transformMap");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue