refactor: import d3

This commit is contained in:
Azgaar 2022-07-05 21:12:55 +03:00
parent 1847772d74
commit 98ae3292fc
83 changed files with 709 additions and 69 deletions

View file

@ -3,6 +3,8 @@
import "./components";
// @ts-expect-error js-module
import {defineSvg} from "./modules/define-svg";
// @ts-expect-error js-module
import {clearLegend} from "./modules/legend";
// @ts-expect-error js-module
import {Rulers} from "./modules/measurers";
@ -37,8 +39,8 @@ statesNeutral = 1; // statesEditor growth parameter
applyStoredOptions();
rulers = new Rulers();
biomesData = Biomes.getDefault();
nameBases = Names.getNameBases(); // cultures-related data
biomesData = window.Biomes.getDefault();
nameBases = window.Names.getNameBases(); // cultures-related data
// voronoi graph extension, cannot be changed after generation
graphWidth = getInputNumber("mapWidthInput");