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

16 lines (15 loc) 835 B
import { type PanGesture, type PinchGesture } from "react-native-gesture-handler"; import type { PanGestureConfig } from "react-native-gesture-handler/lib/typescript/handlers/PanGestureHandler"; import { type ChartTransformState } from "../hooks/useChartTransformState"; type Dimension = "x" | "y"; export type PinchTransformGestureConfig = { enabled?: boolean; dimensions?: Dimension | Dimension[]; }; export declare const pinchTransformGesture: (state: ChartTransformState, _config?: PinchTransformGestureConfig) => PinchGesture; export type PanTransformGestureConfig = { enabled?: boolean; dimensions?: Dimension | Dimension[]; } & Pick<PanGestureConfig, "activateAfterLongPress">; export declare const panTransformGesture: (state: ChartTransformState, _config?: PanTransformGestureConfig) => PanGesture; export {};