Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

33 строки
851 B

  1. import * as I from '../interfaces/';
  2. import { TrackDirection } from './direction';
  3. export declare class ScrollbarThumb implements I.ScrollbarThumb {
  4. private _direction;
  5. private _minSize;
  6. /**
  7. * Thumb element
  8. */
  9. readonly element: HTMLDivElement;
  10. /**
  11. * Display size of the thumb
  12. * will always be greater than `scrollbar.options.thumbMinSize`
  13. */
  14. displaySize: number;
  15. /**
  16. * Actual size of the thumb
  17. */
  18. realSize: number;
  19. /**
  20. * Thumb offset to the top
  21. */
  22. offset: number;
  23. constructor(_direction: TrackDirection, _minSize?: number);
  24. /**
  25. * Attach to track element
  26. *
  27. * @param trackEl Track element
  28. */
  29. attachTo(trackEl: HTMLElement): void;
  30. update(scrollOffset: number, containerSize: number, pageSize: number): void;
  31. private _getStyle;
  32. }