From eb751f94049283f030ed9bf37e3e49e77bd61d72 Mon Sep 17 00:00:00 2001 From: LucasDLTG Date: Wed, 12 Aug 2026 12:23:08 +0200 Subject: [PATCH] feat: round max on delay graph --- src/features/dsp408/components/DelaySection/DelaySection.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/dsp408/components/DelaySection/DelaySection.tsx b/src/features/dsp408/components/DelaySection/DelaySection.tsx index 7a60282..6611c79 100644 --- a/src/features/dsp408/components/DelaySection/DelaySection.tsx +++ b/src/features/dsp408/components/DelaySection/DelaySection.tsx @@ -79,6 +79,7 @@ function DelayGraph({ unit: DelayUnit; }) { const [min, max] = DELAY_RANGES[unit]; + const roundedMax = (Math.floor(max / 100) + 1) * 100; const labelByX = useMemo(() => { const map = new Map(); rows.forEach((row, i) => map.set(i + 1, row.label)); @@ -93,7 +94,7 @@ function DelayGraph({ xMax={rows.length + 0.5} xStep={1} yMin={min} - yMax={max} + yMax={roundedMax} xLabel="Channel" yLabel={UNIT_LABEL[unit]} showGrid={true}