fix: Y labels on gain graphs
This commit is contained in:
@@ -68,8 +68,7 @@ function buildCurvesForChannels<T extends string>(
|
||||
}
|
||||
|
||||
const formatX = (v: number) => Math.round(v).toString();
|
||||
export const formatOutputY = (v: number) => Math.round(v).toString();
|
||||
export const formatInputY = (v: number) => {
|
||||
export const formatY = (v: number) => {
|
||||
if (v === 0) return '0';
|
||||
if (v > 0) return v % 12 === 0 ? `+${Math.round(v)}` : '';
|
||||
return Math.abs(v) % 15 === 0 ? Math.round(v).toString() : '';
|
||||
|
||||
Reference in New Issue
Block a user