victory-native
Version:
[](https://commerce.nearform.com/open-source/victory-native/)
15 lines (14 loc) • 667 B
TypeScript
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 {};