You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
822 B

1 month ago
  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;