Blame view

天文台pc/tianwentai-ui/node_modules/embla-carousel/cjs/components/EmblaCarousel.d.ts 1.27 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  import { EngineType } from './Engine';
  import { EventHandlerType } from './EventHandler';
  import { EmblaOptionsType } from './Options';
  import { EmblaPluginsType, EmblaPluginType } from './Plugins';
  export type EmblaCarouselType = {
      canScrollNext: () => boolean;
      canScrollPrev: () => boolean;
      containerNode: () => HTMLElement;
      internalEngine: () => EngineType;
      destroy: () => void;
      off: EventHandlerType['off'];
      on: EventHandlerType['on'];
      emit: EventHandlerType['emit'];
      plugins: () => EmblaPluginsType;
      previousScrollSnap: () => number;
      reInit: (options?: EmblaOptionsType, plugins?: EmblaPluginType[]) => void;
      rootNode: () => HTMLElement;
      scrollNext: (jump?: boolean) => void;
      scrollPrev: (jump?: boolean) => void;
      scrollProgress: () => number;
      scrollSnapList: () => number[];
      scrollTo: (index: number, jump?: boolean) => void;
      selectedScrollSnap: () => number;
      slideNodes: () => HTMLElement[];
      slidesInView: () => number[];
      slidesNotInView: () => number[];
  };
  declare function EmblaCarousel(root: HTMLElement, userOptions?: EmblaOptionsType, userPlugins?: EmblaPluginType[]): EmblaCarouselType;
  declare namespace EmblaCarousel {
      let globalOptions: EmblaOptionsType | undefined;
  }
  export default EmblaCarousel;