mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
refactor(es modules): use polylabel module and update aleaPRNG as local lib
This commit is contained in:
parent
f9f60176d9
commit
6a7ec6513a
21 changed files with 220 additions and 10 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import {getGridPolygon} from "utils/graphUtils";
|
||||
import {aleaPRNG} from "scripts/aleaPRNG";
|
||||
|
||||
export function drawIce() {
|
||||
const {cells, vertices} = grid;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import polylabel from "polylabel";
|
||||
|
||||
export function drawProvinces() {
|
||||
const labelsOn = provs.attr("data-labels") == 1;
|
||||
provs.selectAll("*").remove();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import polylabel from "polylabel";
|
||||
|
||||
export function drawStates() {
|
||||
regions.selectAll("path").remove();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue