UNPKG

victory-native

Version:

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

12 lines (11 loc) 717 B
import { type PanGesture, type PinchGesture } from "react-native-gesture-handler"; import { type ChartTransformState } from "../hooks/useChartTransformState"; import { type PanTransformGestureConfig } from "./applyPanTransformGestureConfig"; export type { PanTransformGestureConfig } from "./applyPanTransformGestureConfig"; type Dimension = "x" | "y"; export type PinchTransformGestureConfig = { enabled?: boolean; dimensions?: Dimension | Dimension[]; }; export declare const pinchTransformGesture: (state: ChartTransformState, _config?: PinchTransformGestureConfig) => PinchGesture; export declare const panTransformGesture: (state: ChartTransformState, _config?: PanTransformGestureConfig) => PanGesture;