mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41: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,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