chore; add lint
CI / Frontend (push) Successful in 1m19s
CI / Rust (Tauri backend) (push) Failing after 1m13s

This commit is contained in:
Lucas
2026-11-04 11:36:41 +01:00
parent e640ae17e5
commit 4b5606dd15
19 changed files with 614 additions and 156 deletions
@@ -2,7 +2,9 @@ import { memo, useCallback, useMemo } from 'react';
import { GRAPH_FREQS, GRAPH_X_MAX, GRAPH_X_MIN, GRAPH_Y_MIN, Y_AXIS_STEP } from '../../constants';
import { Curve, CurvePoint } from '../../utils/graph/curve';
import { drawCurves } from '../../utils/graph/draw';
import LinearGraph from '../../../../components/LinearGraph/LinearGraph';
import LinearGraph, {
type LinearGraphHelpers,
} from '../../../../components/LinearGraph/LinearGraph';
// Expands [baseMin, baseMax] outward to fit whatever the curves actually
// contain (e.g. gain + geq + peq stacking past the nominal graph range),
@@ -115,7 +117,7 @@ function ResponseGraphInner<T extends string, S>({
);
const draw = useCallback(
({ ctx, toPx }: any) => {
({ ctx, toPx }: LinearGraphHelpers) => {
drawCurves({ ctx, toPx, xMin: GRAPH_X_MIN, xMax: GRAPH_X_MAX, yMin, yMax, curves });
},
[curves, yMin, yMax]