UNPKG

victory-native

Version:

[![Victory Native](https://oss.nearform.com/api/banner?badge=victory&text=victory+native&bg=9c2f1e)](https://commerce.nearform.com/open-source/victory-native/)

15 lines (14 loc) 667 B
import type { ScaleLinear } from "d3-scale"; import React, { type PropsWithChildren } from "react"; interface CartesianChartContext { xScale: ScaleLinear<number, number, never>; yScale: ScaleLinear<number, number, never>; } declare const CartesianChartContext: React.Context<CartesianChartContext | undefined>; interface CartesianChartProviderProps { xScale: ScaleLinear<number, number, never>; yScale: ScaleLinear<number, number, never>; } export declare const CartesianChartProvider: (props: PropsWithChildren<CartesianChartProviderProps>) => React.JSX.Element; export declare const useCartesianChartContext: () => CartesianChartContext; export {};