SlideLooper.d.ts 680 B

123456789101112131415161718
  1. import { AxisType } from './Axis';
  2. import { Vector1DType } from './Vector1d';
  3. import { TranslateType } from './Translate';
  4. type LoopPointType = {
  5. loopPoint: number;
  6. index: number;
  7. translate: TranslateType;
  8. slideLocation: Vector1DType;
  9. target: () => number;
  10. };
  11. export type SlideLooperType = {
  12. canLoop: () => boolean;
  13. clear: () => void;
  14. loop: () => void;
  15. loopPoints: LoopPointType[];
  16. };
  17. export declare function SlideLooper(axis: AxisType, viewSize: number, contentSize: number, slideSizes: number[], slideSizesWithGaps: number[], snaps: number[], scrollSnaps: number[], location: Vector1DType, slides: HTMLElement[]): SlideLooperType;
  18. export {};