ScrollSnaps.d.ts 452 B

123456789
  1. import { AlignmentType } from './Alignment';
  2. import { AxisType } from './Axis';
  3. import { NodeRectType } from './NodeRects';
  4. import { SlidesToScrollType } from './SlidesToScroll';
  5. export type ScrollSnapsType = {
  6. snaps: number[];
  7. snapsAligned: number[];
  8. };
  9. export declare function ScrollSnaps(axis: AxisType, alignment: AlignmentType, containerRect: NodeRectType, slideRects: NodeRectType[], slidesToScroll: SlidesToScrollType): ScrollSnapsType;