UNPKG

victory-native

Version:

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

20 lines (19 loc) 849 B
import React, { type PropsWithChildren } from "react"; import type { ChartTransformState } from "../hooks/useChartTransformState"; export type CartesianTransformContextValue = { k: number; kx: number; ky: number; tx: number; ty: number; }; type CartesianTransformProviderProps = PropsWithChildren<{ transformState?: ChartTransformState; }>; type CartesianTransformValueProviderProps = PropsWithChildren<{ value: CartesianTransformContextValue; }>; export declare const CartesianTransformValueProvider: ({ value, children, }: CartesianTransformValueProviderProps) => React.JSX.Element; export declare const CartesianTransformProvider: ({ transformState, children, }: CartesianTransformProviderProps) => React.JSX.Element; export declare const useCartesianTransformContext: () => CartesianTransformContextValue; export {};