recognizers.d.ts 443B

12345678910111213141516
  1. import { PointerCoordinates } from '../util/dom';
  2. export declare class PanRecognizer {
  3. private direction;
  4. private startCoord;
  5. private dirty;
  6. private threshold;
  7. private maxCosine;
  8. private _angle;
  9. private _isPan;
  10. constructor(direction: string, threshold: number, maxAngle: number);
  11. start(coord: PointerCoordinates): void;
  12. detect(coord: PointerCoordinates): boolean;
  13. angle(): any;
  14. pan(): number;
  15. }