Various fixes, some settings handling

This commit is contained in:
ZXY101
2023-09-14 02:57:01 +02:00
parent 1093aaba30
commit 5a06f0e5b8
10 changed files with 52 additions and 33 deletions

3
src/lib/util/misc.ts Normal file
View File

@@ -0,0 +1,3 @@
export function clamp(num: number, min: number, max: number) {
return Math.min(Math.max(num, min), max);
}