react-native-graph-plus
Version:
📈 Beautiful, high-performance Graphs and Charts for React Native +
12 lines (11 loc) • 490 B
TypeScript
import type { Vector, PathCommand } from '@shopify/react-native-skia';
export declare const cubicBezierYForX: (x: number, a: Vector, b: Vector, c: Vector, d: Vector, precision?: number) => number;
interface Cubic {
from: Vector;
c1: Vector;
c2: Vector;
to: Vector;
}
export declare const selectCurve: (cmds: PathCommand[], x: number) => Cubic | undefined;
export declare const getYForX: (cmds: PathCommand[], x: number, precision?: number) => number | undefined;
export {};