scroll.d.ts 822 B

1234567891011
  1. export declare const isScroll: (el: HTMLElement, isVertical?: boolean) => boolean;
  2. export declare const getScrollContainer: (el: HTMLElement, isVertical?: boolean) => Window | HTMLElement | undefined;
  3. export declare const getScrollBarWidth: (namespace: string) => number;
  4. /**
  5. * Scroll with in the container element, positioning the **selected** element at the top
  6. * of the container
  7. */
  8. export declare function scrollIntoView(container: HTMLElement, selected: HTMLElement): void;
  9. export declare function animateScrollTo(container: HTMLElement | Window, from: number, to: number, duration: number, callback?: unknown): () => void;
  10. export declare const getScrollElement: (target: HTMLElement, container: HTMLElement | Window) => HTMLElement;
  11. export declare const getScrollTop: (container: HTMLElement | Window) => number;