next-flow-interface
Version:
Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.
17 lines • 1.08 kB
TypeScript
import { default as React } from 'react';
type ReactEvent = React.MouseEvent | React.DragEvent | React.TouchEvent | React.WheelEvent;
type NativeEvent = MouseEvent | DragEvent | TouchEvent | WheelEvent;
export declare function getEventPosition(e: ReactEvent | NativeEvent): [x: number, y: number];
export declare function getDistanceBetweenEvents(e1: ReactEvent | NativeEvent, e2: ReactEvent | NativeEvent): number;
export declare function preventDefaultListener(e: ReactEvent): void;
export declare function stopPropagationListener(e: ReactEvent): void;
export declare function preventDefaultStopPropagationListener(e: ReactEvent): void;
declare const NativeEventUtils: {
getEventPosition: typeof getEventPosition;
getDistanceBetweenEvents: typeof getDistanceBetweenEvents;
preventDefaultListener: typeof preventDefaultListener;
stopPropagationListener: typeof stopPropagationListener;
preventDefaultStopPropagationListener: typeof preventDefaultStopPropagationListener;
};
export default NativeEventUtils;
//# sourceMappingURL=native-event-utils.d.ts.map