chore; add lint
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user