UNPKG

victory-native

Version:

A charting library for React Native with a focus on performance and customization.

17 lines (16 loc) 746 B
import type { ScaleLinear } from "d3-scale"; import React, { type PropsWithChildren } from "react"; import type { CartesianChartOrientation } from "../../types"; export type CartesianChartContextValue = { xScale: ScaleLinear<number, number, never>; yScale: ScaleLinear<number, number, never>; orientation: CartesianChartOrientation; }; interface CartesianChartProviderProps { xScale: ScaleLinear<number, number, never>; yScale: ScaleLinear<number, number, never>; orientation?: CartesianChartOrientation; } export declare const CartesianChartProvider: (props: PropsWithChildren<CartesianChartProviderProps>) => React.JSX.Element; export declare const useCartesianChartContext: () => CartesianChartContextValue; export {};