mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
refactor: submap - recalculateMapSize
This commit is contained in:
parent
499762f1bb
commit
1305246d7b
5 changed files with 46 additions and 25 deletions
|
|
@ -8,7 +8,9 @@ window.Resample = (function () {
|
|||
inverse: f(Number, Number) -> [Number, Number]
|
||||
scale: Number
|
||||
*/
|
||||
function process({parentMap, projection, inverse, scale}) {
|
||||
function process({projection, inverse, scale}) {
|
||||
const parentMap = {grid: deepCopy(grid), pack: deepCopy(pack), notes: deepCopy(notes)};
|
||||
|
||||
grid = generateGrid();
|
||||
pack = {};
|
||||
notes = parentMap.notes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue