UI for Zipcoin Blue

item-reorder-gesture.d.ts 1.0KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Platform } from '../../platform/platform';
  2. /**
  3. * @hidden
  4. */
  5. export declare class ItemReorderGesture {
  6. plt: Platform;
  7. reorderList: ItemReorderGestureDelegate;
  8. private selectedItemEle;
  9. private selectedItemHeight;
  10. private offset;
  11. private lastToIndex;
  12. private lastYcoord;
  13. private lastScrollPosition;
  14. private emptyZone;
  15. private windowHeight;
  16. private events;
  17. constructor(plt: Platform, reorderList: ItemReorderGestureDelegate);
  18. private onDragStart(ev);
  19. private onDragMove(ev);
  20. private onDragEnd(ev);
  21. private itemForCoord(coord);
  22. private scroll(posY);
  23. /**
  24. * @hidden
  25. */
  26. destroy(): void;
  27. }
  28. export interface ItemReorderGestureDelegate {
  29. _isStart: boolean;
  30. getNativeElement: () => any;
  31. _reorderPrepare: () => void;
  32. _scrollContent: (scrollPosition: number) => number;
  33. _reorderStart: () => void;
  34. _reorderMove: (fromIndex: number, toIndex: number, itemHeight: number) => void;
  35. _reorderEmit: (fromIndex: number, toIndex: number) => void;
  36. }