mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: import d3
This commit is contained in:
parent
1847772d74
commit
98ae3292fc
83 changed files with 709 additions and 69 deletions
|
|
@ -1,4 +1,4 @@
|
|||
const d3 = window.d3;
|
||||
import * as d3 from "d3";
|
||||
|
||||
const c12: Hex[] = [
|
||||
"#dababf",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
// @ts-nocheck
|
||||
import * as d3 from "d3";
|
||||
import Delaunator from "delaunator";
|
||||
|
||||
import {TIME} from "../config/logging";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import * as d3 from "d3";
|
||||
|
||||
import {ERROR} from "../config/logging";
|
||||
import {minmax, rn} from "./numberUtils";
|
||||
|
||||
const d3 = window.d3;
|
||||
|
||||
// random number in range
|
||||
export function rand(min: number, max: number) {
|
||||
if (min === undefined && max === undefined) return Math.random();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue