UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

11 lines 399 B
import type { CurveType } from "../../models/curve.mjs"; /** * Build the curve segments for a set of pixel-coordinate points * using d3's curve factory, then evaluate y at the given pixel x. * * Returns null if targetX is outside the curve's x range. */ export declare function evaluateCurveY(points: Array<{ x: number; y: number; }>, targetX: number, curveType?: CurveType): number | null;