slide-gesture.d.ts 977B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { PanGesture } from './pan-gesture';
  2. import { Platform } from '../platform/platform';
  3. /**
  4. * @hidden
  5. */
  6. export declare class SlideGesture extends PanGesture {
  7. slide: SlideData;
  8. constructor(plt: Platform, element: HTMLElement, opts?: {});
  9. getSlideBoundaries(_slide: SlideData, _ev: any): {
  10. min: number;
  11. max: number;
  12. };
  13. getElementStartPos(_slide: SlideData, _ev: any): number;
  14. onDragStart(ev: any): void;
  15. onDragMove(ev: any): void;
  16. onDragEnd(ev: any): void;
  17. onSlideBeforeStart(_ev?: any): void;
  18. onSlideStart(_slide?: SlideData, _ev?: any): void;
  19. onSlide(_slide?: SlideData, _ev?: any): void;
  20. onSlideEnd(_slide?: SlideData, _ev?: any): void;
  21. }
  22. /**
  23. * @hidden
  24. */
  25. export interface SlideData {
  26. min: number;
  27. max: number;
  28. distance: number;
  29. delta: number;
  30. started: boolean;
  31. pos: any;
  32. timestamp: number;
  33. pointerStartPos: number;
  34. elementStartPos: number;
  35. velocity: number;
  36. }