swiper-utils.d.ts 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { Slides } from '../slides';
  2. import { Platform } from '../../../platform/platform';
  3. export declare function round(a: any): number;
  4. export declare function inlineStyle(ele: any, styles: any): void;
  5. export declare function addClass(ele: any, className: string): void;
  6. export declare function removeClass(ele: any, className: any): void;
  7. export declare function getElementIndex(ele: any): number;
  8. export declare function queryChildren(parentEle: HTMLElement, query: string): HTMLElement[];
  9. export declare function eachChild(parentEle: HTMLElement, query: string, callback: {
  10. (foundEle: HTMLElement): void;
  11. }): void;
  12. export declare function transform(ele: HTMLElement, val: any): void;
  13. export declare function transition(ele: HTMLElement, duration: any): void;
  14. export declare function triggerTransitionEnd(plt: Platform, ele: HTMLElement): void;
  15. export declare function offset(ele: HTMLElement, plt: Platform): {
  16. top: number;
  17. left: number;
  18. };
  19. export declare function updateSlidesOffset(s: Slides): void;
  20. export declare function isHorizontal(s: Slides): boolean;
  21. export declare function isFormElement(el: any): boolean;
  22. export declare function minTranslate(s: Slides): number;
  23. export declare function maxTranslate(s: Slides): number;
  24. export declare const CLS: {
  25. noSwiping: string;
  26. containerModifier: string;
  27. slide: string;
  28. slideActive: string;
  29. slideDuplicateActive: string;
  30. slideVisible: string;
  31. slideDuplicate: string;
  32. slideNext: string;
  33. slideDuplicateNext: string;
  34. slidePrev: string;
  35. slideDuplicatePrev: string;
  36. wrapper: string;
  37. bullet: string;
  38. bulletActive: string;
  39. buttonDisabled: string;
  40. paginationCurrent: string;
  41. paginationTotal: string;
  42. paginationHidden: string;
  43. paginationProgressbar: string;
  44. paginationClickable: string;
  45. paginationModifier: string;
  46. lazyLoading: string;
  47. lazyStatusLoading: string;
  48. lazyStatusLoaded: string;
  49. lazyPreloader: string;
  50. notification: string;
  51. preloader: string;
  52. zoomContainer: string;
  53. };