refactor: import d3

This commit is contained in:
Azgaar 2022-07-05 21:12:55 +03:00
parent 1847772d74
commit 98ae3292fc
83 changed files with 709 additions and 69 deletions

View file

@ -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();