UNPKG

rs-react-native-image-gallery

Version:
19 lines 726 B
import { NativeTouchEvent } from 'react-native'; /** * Calculate squared distance between two points * @param a First coordinate * @param b Second coordinate */ export declare const pow2abs: (a: number, b: number) => number; /** * Get distance between two touch points * @param touches Array of touch events */ export declare const getDistance: (touches: Array<NativeTouchEvent>) => number; /** * Calculate scale based on distance ratio with a multiplier * @param currentDistance Current distance between touch points * @param initialDistance Initial distance between touch points */ export declare const getScale: (currentDistance: number, initialDistance: number) => number; //# sourceMappingURL=_helpers.d.ts.map