mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
config redirect
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
import type { ChartArea } from '../types/index.js';
|
||||
export interface SplinePoint {
|
||||
x: number;
|
||||
y: number;
|
||||
skip?: boolean;
|
||||
cp1x?: number;
|
||||
cp1y?: number;
|
||||
cp2x?: number;
|
||||
cp2y?: number;
|
||||
}
|
||||
export declare function splineCurve(firstPoint: SplinePoint, middlePoint: SplinePoint, afterPoint: SplinePoint, t: number): {
|
||||
previous: SplinePoint;
|
||||
next: SplinePoint;
|
||||
};
|
||||
/**
|
||||
* This function calculates Bézier control points in a similar way than |splineCurve|,
|
||||
* but preserves monotonicity of the provided data and ensures no local extremums are added
|
||||
* between the dataset discrete points due to the interpolation.
|
||||
* See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation
|
||||
*/
|
||||
export declare function splineCurveMonotone(points: SplinePoint[], indexAxis?: 'x' | 'y'): void;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export declare function _updateBezierControlPoints(points: SplinePoint[], options: any, area: ChartArea, loop: boolean, indexAxis: 'x' | 'y'): void;
|
||||
Reference in New Issue
Block a user