Blame view

天文台pc/tianwentai-ui/node_modules/embla-carousel/components/SlidesInView.d.ts 423 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
  import { EventHandlerType } from './EventHandler';
  export type SlidesInViewOptionsType = IntersectionObserverInit['threshold'];
  export type SlidesInViewType = {
      init: () => void;
      destroy: () => void;
      get: (inView?: boolean) => number[];
  };
  export declare function SlidesInView(container: HTMLElement, slides: HTMLElement[], eventHandler: EventHandlerType, threshold: SlidesInViewOptionsType): SlidesInViewType;