gesture.d.ts 581B

12345678910111213141516171819202122
  1. /**
  2. * @hidden
  3. * A gesture recognizer class.
  4. *
  5. * TODO(mlynch): Re-enable the DOM event simulation that was causing issues (or verify hammer does this already, it might);
  6. */
  7. export declare class Gesture {
  8. private _hammer;
  9. private _options;
  10. private _callbacks;
  11. element: HTMLElement;
  12. direction: string;
  13. isListening: boolean;
  14. constructor(element: HTMLElement, opts?: any);
  15. options(opts: any): void;
  16. on(type: string, cb: Function): void;
  17. off(type: string, cb: Function): void;
  18. listen(): void;
  19. unlisten(): void;
  20. destroy(): void;
  21. }