ScrollTo.d.ts 663 B

1234567891011
  1. import { AnimationsType } from './Animations';
  2. import { CounterType } from './Counter';
  3. import { EventHandlerType } from './EventHandler';
  4. import { ScrollBodyType } from './ScrollBody';
  5. import { ScrollTargetType } from './ScrollTarget';
  6. import { Vector1DType } from './Vector1d';
  7. export type ScrollToType = {
  8. distance: (n: number, snap: boolean) => void;
  9. index: (n: number, direction: number) => void;
  10. };
  11. export declare function ScrollTo(animation: AnimationsType, indexCurrent: CounterType, indexPrevious: CounterType, scrollBody: ScrollBodyType, scrollTarget: ScrollTargetType, targetVector: Vector1DType, eventHandler: EventHandlerType): ScrollToType;