refactor(es modules): move all files to src, try vite 3.0

This commit is contained in:
Azgaar 2022-06-27 01:07:42 +03:00
parent 4feed39d5c
commit 0d05e1b250
119 changed files with 8218 additions and 139 deletions

View file

@ -1,4 +1,4 @@
import {UINT8_MAX, UINT16_MAX, UINT32_MAX} from "/src/constants";
import {UINT8_MAX, UINT16_MAX, UINT32_MAX} from "../constants";
export function last<T>(array: T[]) {
return array[array.length - 1];

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import {TIME} from "../config/logging";
import {createTypedArray} from "./arrayUtils";
import {rn} from "./numberUtils";

View file

@ -1,4 +1,4 @@
import {P} from "/src/utils/probabilityUtils";
import {P} from "./probabilityUtils";
// chars that serve as vowels
const VOWELS = `aeiouyɑ'əøɛœæɶɒɨɪɔɐʊɤɯаоиеёэыуюяàèìòùỳẁȁȅȉȍȕáéíóúýẃőűâêîôûŷŵäëïöüÿẅãẽĩõũỹąęįǫųāēīōūȳăĕĭŏŭǎěǐǒǔȧėȯẏẇạẹịọụỵẉḛḭṵṳ`;

View file

@ -1,4 +1,4 @@
import {ERROR} from "/src/config/logging";
import {ERROR} from "../config/logging";
import {minmax, rn} from "./numberUtils";
const d3 = window.d3;

View file

@ -1,4 +1,4 @@
import {rn} from "/src/utils/numberUtils";
import {rn} from "./numberUtils";
// round numbers in string to d decimals
export function round(str: string, d = 1) {