mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: first build
This commit is contained in:
parent
3018d94618
commit
41180c57bf
26 changed files with 37 additions and 35 deletions
82
public/libs/define-globals.js
Normal file
82
public/libs/define-globals.js
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
"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;
|
||||
|
||||
// defined in main.js
|
||||
let graphWidth;
|
||||
let graphHeight;
|
||||
let svgWidth;
|
||||
let svgHeight;
|
||||
|
||||
let options = {};
|
||||
let populationRate;
|
||||
let distanceScale;
|
||||
let urbanization;
|
||||
let urbanDensity;
|
||||
let statesNeutral;
|
||||
|
||||
// svg d3 selections
|
||||
let svg,
|
||||
defs,
|
||||
viewbox,
|
||||
scaleBar,
|
||||
legend,
|
||||
ocean,
|
||||
oceanLayers,
|
||||
oceanPattern,
|
||||
lakes,
|
||||
landmass,
|
||||
texture,
|
||||
terrs,
|
||||
biomes,
|
||||
cells,
|
||||
gridOverlay,
|
||||
coordinates,
|
||||
compass,
|
||||
rivers,
|
||||
terrain,
|
||||
relig,
|
||||
cults,
|
||||
regions,
|
||||
statesBody,
|
||||
statesHalo,
|
||||
provs,
|
||||
zones,
|
||||
borders,
|
||||
stateBorders,
|
||||
provinceBorders,
|
||||
routes,
|
||||
roads,
|
||||
trails,
|
||||
searoutes,
|
||||
temperature,
|
||||
coastline,
|
||||
ice,
|
||||
prec,
|
||||
population,
|
||||
emblems,
|
||||
labels,
|
||||
icons,
|
||||
burgLabels,
|
||||
burgIcons,
|
||||
anchors,
|
||||
armies,
|
||||
markers,
|
||||
fogging,
|
||||
ruler,
|
||||
debug;
|
||||
Loading…
Add table
Add a link
Reference in a new issue