feat:(slots UI): functional slots

This commit is contained in:
Rachel Powers
2024-04-24 23:15:54 -07:00
parent 19c85c1078
commit dbb2f71fdc
7 changed files with 111 additions and 43 deletions

View File

@@ -242,3 +242,7 @@ export function parseIntWithHexOrBinary(s: string): number {
}
return parseInt(s);
}
export function clamp (val: number, min: number, max: number) {
return Math.min(Math.max(val, min), max);
}