refactor: refactor religions expand

This commit is contained in:
Azgaar 2022-09-01 00:22:46 +03:00
parent 5361565cd7
commit b9ff6a652c
13 changed files with 55 additions and 40 deletions

View file

@ -26,6 +26,7 @@ import {createGrid} from "./grid/grid";
import {createPack} from "./pack/pack";
import {getInputValue, setInputValue} from "utils/nodeUtils";
import {calculateMapCoordinates} from "modules/coordinates";
import {drawPoint} from "utils/debugUtils";
const {Zoom, ThreeD} = window;
@ -72,6 +73,10 @@ async function generate(options?: IGenerationOptions) {
// renderLayer("states");
renderLayer("religions");
// pack.cells.route.forEach((route, index) => {
// if (route === 2) drawPoint(pack.cells.p[index], {color: "black"});
// });
WARN && console.warn(`TOTAL: ${rn((performance.now() - timeStart) / 1000, 2)}s`);
// showStatistics();
INFO && console.groupEnd();