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/)

21 lines (20 loc) 586 B
import { type SharedValue } from "react-native-reanimated"; import { type Matrix4 } from "@shopify/react-native-skia"; export type ChartTransformState = { panActive: SharedValue<boolean>; zoomActive: SharedValue<boolean>; origin: SharedValue<{ x: number; y: number; }>; matrix: SharedValue<Matrix4>; offset: SharedValue<Matrix4>; }; type ChartTransformStateConfig = { scaleX?: number; scaleY?: number; }; export declare const useChartTransformState: (config?: ChartTransformStateConfig) => { state: ChartTransformState; }; export {};