Blame view

天文台pc/tianwentai-ui/node_modules/embla-carousel/cjs/components/SlideLooper.d.ts 680 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  import { AxisType } from './Axis';
  import { Vector1DType } from './Vector1d';
  import { TranslateType } from './Translate';
  type LoopPointType = {
      loopPoint: number;
      index: number;
      translate: TranslateType;
      slideLocation: Vector1DType;
      target: () => number;
  };
  export type SlideLooperType = {
      canLoop: () => boolean;
      clear: () => void;
      loop: () => void;
      loopPoints: LoopPointType[];
  };
  export declare function SlideLooper(axis: AxisType, viewSize: number, contentSize: number, slideSizes: number[], slideSizesWithGaps: number[], snaps: number[], scrollSnaps: number[], location: Vector1DType, slides: HTMLElement[]): SlideLooperType;
  export {};