refactor: Biomes.define - partial

This commit is contained in:
max 2022-07-24 19:22:14 +03:00
parent bb78d5168b
commit 21234dc414
7 changed files with 72 additions and 59 deletions

View file

@ -1,4 +1,5 @@
import {clipPoly} from "utils/lineUtils";
import {TIME} from "config/logging";
export function drawBiomes() {
TIME && console.time("drawBiomes");
@ -6,6 +7,7 @@ export function drawBiomes() {
const {cells, vertices} = pack;
const n = cells.i.length;
const used = new Uint8Array(cells.i.length);
const paths = new Array(biomesData.i.length).fill("");

View file

@ -1,6 +1,6 @@
import {pick} from "utils/functionUtils";
export function drawRivers(pack: IPack) {
export function drawRivers() {
rivers.selectAll("*").remove();
const {addMeandering, getRiverPath} = window.Rivers;