Blame view

天文台pc/tianwentai-ui/node_modules/embla-carousel/cjs/components/ResizeHandler.d.ts 775 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
  import { AxisType } from './Axis';
  import { EmblaCarouselType } from './EmblaCarousel';
  import { EventHandlerType } from './EventHandler';
  import { NodeRectsType } from './NodeRects';
  import { WindowType } from './utils';
  type ResizeHandlerCallbackType = (emblaApi: EmblaCarouselType, entries: ResizeObserverEntry[]) => boolean | void;
  export type ResizeHandlerOptionType = boolean | ResizeHandlerCallbackType;
  export type ResizeHandlerType = {
      init: (emblaApi: EmblaCarouselType) => void;
      destroy: () => void;
  };
  export declare function ResizeHandler(container: HTMLElement, eventHandler: EventHandlerType, ownerWindow: WindowType, slides: HTMLElement[], axis: AxisType, watchResize: ResizeHandlerOptionType, nodeRects: NodeRectsType): ResizeHandlerType;
  export {};