Fixed gap binding

This commit is contained in:
Mark Tolmacs 2025-02-28 22:07:47 +01:00
parent ca5e9c3ad9
commit fbc5e4a03d
12 changed files with 169 additions and 216 deletions

View file

@ -6,7 +6,7 @@ export const clamp = (value: number, min: number, max: number) => {
export const round = (
value: number,
precision: number,
precision: number = (Math.log(1 / PRECISION) * Math.LOG10E + 1) | 0,
func: "round" | "floor" | "ceil" = "round",
) => {
const multiplier = Math.pow(10, precision);