tcmd: Accordion and popover md elements

This commit is contained in:
2024-02-28 21:41:12 -07:00
parent 2e9bfa1557
commit ff0a4280e2
22 changed files with 729 additions and 68 deletions

1
lib/utils/bulkRound.ts Normal file
View File

@@ -0,0 +1 @@
export const bulkRound = (...args: number[]): number[] => args.map(n => Math.round(n));

2
lib/utils/clamp.ts Normal file
View File

@@ -0,0 +1,2 @@
export const clamp = (value: number, min: number, max: number) =>
Math.max(Math.min(value, max), min)