| 1 |
import type { ChartArea } from '../types/index.js'; |
| 2 |
import type { SplinePoint } from '../types/geometric.js'; |
| 3 |
export declare function splineCurve(firstPoint: SplinePoint, middlePoint: SplinePoint, afterPoint: SplinePoint, t: number): { |
| 4 |
previous: SplinePoint; |
| 5 |
next: SplinePoint; |
| 6 |
}; |
| 7 |
/** |
| 8 |
* This function calculates Bézier control points in a similar way than |splineCurve|, |
| 9 |
* but preserves monotonicity of the provided data and ensures no local extremums are added |
| 10 |
* between the dataset discrete points due to the interpolation. |
| 11 |
* See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation |
| 12 |
*/ |
| 13 |
export declare function splineCurveMonotone(points: SplinePoint[], indexAxis?: 'x' | 'y'): void; |
| 14 |
/** |
| 15 |
* @private |
| 16 |
*/ |
| 17 |
export declare function _updateBezierControlPoints(points: SplinePoint[], options: any, area: ChartArea, loop: boolean, indexAxis: 'x' | 'y'): void; |