Engine.d.ts 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import { AnimationsType } from './Animations';
  2. import { AxisType } from './Axis';
  3. import { CounterType } from './Counter';
  4. import { DragHandlerType } from './DragHandler';
  5. import { EventHandlerType } from './EventHandler';
  6. import { EventStoreType } from './EventStore';
  7. import { LimitType } from './Limit';
  8. import { NodeRectType } from './NodeRects';
  9. import { OptionsType } from './Options';
  10. import { PercentOfViewType } from './PercentOfView';
  11. import { ResizeHandlerType } from './ResizeHandler';
  12. import { ScrollBodyType } from './ScrollBody';
  13. import { ScrollBoundsType } from './ScrollBounds';
  14. import { ScrollLooperType } from './ScrollLooper';
  15. import { ScrollProgressType } from './ScrollProgress';
  16. import { SlideRegistryType } from './SlideRegistry';
  17. import { ScrollTargetType } from './ScrollTarget';
  18. import { ScrollToType } from './ScrollTo';
  19. import { SlideFocusType } from './SlideFocus';
  20. import { SlideLooperType } from './SlideLooper';
  21. import { SlidesHandlerType } from './SlidesHandler';
  22. import { SlidesInViewType } from './SlidesInView';
  23. import { SlidesToScrollType } from './SlidesToScroll';
  24. import { TranslateType } from './Translate';
  25. import { WindowType } from './utils';
  26. import { Vector1DType } from './Vector1d';
  27. export type EngineType = {
  28. ownerDocument: Document;
  29. ownerWindow: WindowType;
  30. eventHandler: EventHandlerType;
  31. axis: AxisType;
  32. animation: AnimationsType;
  33. scrollBounds: ScrollBoundsType;
  34. scrollLooper: ScrollLooperType;
  35. scrollProgress: ScrollProgressType;
  36. index: CounterType;
  37. indexPrevious: CounterType;
  38. limit: LimitType;
  39. location: Vector1DType;
  40. offsetLocation: Vector1DType;
  41. previousLocation: Vector1DType;
  42. options: OptionsType;
  43. percentOfView: PercentOfViewType;
  44. scrollBody: ScrollBodyType;
  45. dragHandler: DragHandlerType;
  46. eventStore: EventStoreType;
  47. slideLooper: SlideLooperType;
  48. slidesInView: SlidesInViewType;
  49. slidesToScroll: SlidesToScrollType;
  50. target: Vector1DType;
  51. translate: TranslateType;
  52. resizeHandler: ResizeHandlerType;
  53. slidesHandler: SlidesHandlerType;
  54. scrollTo: ScrollToType;
  55. scrollTarget: ScrollTargetType;
  56. scrollSnapList: number[];
  57. scrollSnaps: number[];
  58. slideIndexes: number[];
  59. slideFocus: SlideFocusType;
  60. slideRegistry: SlideRegistryType['slideRegistry'];
  61. containerRect: NodeRectType;
  62. slideRects: NodeRectType[];
  63. };
  64. export declare function Engine(root: HTMLElement, container: HTMLElement, slides: HTMLElement[], ownerDocument: Document, ownerWindow: WindowType, options: OptionsType, eventHandler: EventHandlerType): EngineType;