Blame view

天文台pc/tianwentai-ui/node_modules/embla-carousel/esm/components/ScrollTo.d.ts 681 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
  import { AnimationsType } from './Animations.js';
  import { CounterType } from './Counter.js';
  import { EventHandlerType } from './EventHandler.js';
  import { ScrollBodyType } from './ScrollBody.js';
  import { ScrollTargetType } from './ScrollTarget.js';
  import { Vector1DType } from './Vector1d.js';
  export type ScrollToType = {
      distance: (n: number, snap: boolean) => void;
      index: (n: number, direction: number) => void;
  };
  export declare function ScrollTo(animation: AnimationsType, indexCurrent: CounterType, indexPrevious: CounterType, scrollBody: ScrollBodyType, scrollTarget: ScrollTargetType, targetVector: Vector1DType, eventHandler: EventHandlerType): ScrollToType;