UNPKG

react-native-gesture-handler

Version:

Declarative API exposing native platform touch and gesture system to React Native

13 lines (12 loc) 695 B
import { PointerType } from '../PointerType'; import type { GestureHandlerRef, Point, StylusData, SVGRef } from './interfaces'; export declare function isPointerInBounds(view: HTMLElement, { x, y }: Point): boolean; export declare const PointerTypeMapping: Map<string, PointerType>; export declare const degToRad: (degrees: number) => number; export declare const coneToDeviation: (degrees: number) => number; export declare function calculateViewScale(view: HTMLElement): { scaleX: number; scaleY: number; }; export declare function tryExtractStylusData(event: PointerEvent): StylusData | undefined; export declare function isRNSVGElement(viewRef: SVGRef | GestureHandlerRef): boolean;