mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
refactor(es modules): move all files to src, try vite 3.0
This commit is contained in:
parent
4feed39d5c
commit
0d05e1b250
119 changed files with 8218 additions and 139 deletions
32
src/modules/define-globals.js
Normal file
32
src/modules/define-globals.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
"use strict";
|
||||
// define global vabiable, each to be refactored and de-globalized 1-by-1
|
||||
|
||||
let grid = {}; // initial graph based on jittered square grid and data
|
||||
let pack = {}; // packed graph and data
|
||||
let seed;
|
||||
let mapId;
|
||||
let mapHistory = [];
|
||||
let elSelected;
|
||||
|
||||
let notes = [];
|
||||
let customization = 0;
|
||||
|
||||
let rulers;
|
||||
let biomesData;
|
||||
let nameBases;
|
||||
|
||||
let color;
|
||||
let lineGen;
|
||||
|
||||
// defined in main.js
|
||||
let graphWidth;
|
||||
let graphHeight;
|
||||
let svgWidth;
|
||||
let svgHeight;
|
||||
|
||||
let options = {};
|
||||
let populationRate;
|
||||
let distanceScale;
|
||||
let urbanization;
|
||||
let urbanDensity;
|
||||
let statesNeutral;
|
||||
Loading…
Add table
Add a link
Reference in a new issue