fonts rework - start

This commit is contained in:
Azgaar 2021-09-03 00:55:07 +03:00
parent ae75f93174
commit 89b7299eab
7 changed files with 406 additions and 259 deletions

View file

@ -122,7 +122,6 @@ let customization = 0; // 0 - no; 1 = heightmap draw; 2 - states draw; 3 - add s
let biomesData = applyDefaultBiomesSystem();
let nameBases = Names.getNameBases(); // cultures-related data
const fonts = ["Almendra+SC", "Georgia", "Arial", "Times+New+Roman", "Comic+Sans+MS", "Lucida+Sans+Unicode", "Courier+New", "Verdana", "Arial", "Impact"]; // default fonts
let color = d3.scaleSequential(d3.interpolateSpectral); // default color scheme
const lineGen = d3.line().curve(d3.curveBasis); // d3 line generator with default curve interpolation
@ -220,7 +219,7 @@ void (function checkLoadParameters() {
})();
function generateMapOnLoad() {
applyStyleOnLoad(); // apply default of previously selected style
applyStyleOnLoad(); // apply default or previously selected style
generate(); // generate map
focusOn(); // based on searchParams focus on point, cell or burg from MFCG
applyPreset(); // apply saved layers preset