Blame view

天文台pc/tianwentai-ui/node_modules/embla-carousel/components/Options.d.ts 1.55 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
33
34
35
36
37
38
39
40
  import { AlignmentOptionType } from './Alignment';
  import { AxisDirectionOptionType, AxisOptionType } from './Axis';
  import { SlidesToScrollOptionType } from './SlidesToScroll';
  import { ScrollContainOptionType } from './ScrollContain';
  import { DragHandlerOptionType } from './DragHandler';
  import { ResizeHandlerOptionType } from './ResizeHandler';
  import { SlidesHandlerOptionType } from './SlidesHandler';
  import { SlidesInViewOptionsType } from './SlidesInView';
  import { FocusHandlerOptionType } from './SlideFocus';
  export type LooseOptionsType = {
      [key: string]: unknown;
  };
  export type CreateOptionsType<Type extends LooseOptionsType> = Type & {
      active: boolean;
      breakpoints: {
          [key: string]: Omit<Partial<CreateOptionsType<Type>>, 'breakpoints'>;
      };
  };
  export type OptionsType = CreateOptionsType<{
      align: AlignmentOptionType;
      axis: AxisOptionType;
      container: string | HTMLElement | null;
      slides: string | HTMLElement[] | NodeListOf<HTMLElement> | null;
      containScroll: ScrollContainOptionType;
      direction: AxisDirectionOptionType;
      slidesToScroll: SlidesToScrollOptionType;
      dragFree: boolean;
      dragThreshold: number;
      inViewThreshold: SlidesInViewOptionsType;
      loop: boolean;
      skipSnaps: boolean;
      duration: number;
      startIndex: number;
      watchDrag: DragHandlerOptionType;
      watchResize: ResizeHandlerOptionType;
      watchSlides: SlidesHandlerOptionType;
      watchFocus: FocusHandlerOptionType;
  }>;
  export declare const defaultOptions: OptionsType;
  export type EmblaOptionsType = Partial<OptionsType>;