25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
1.2 KiB

  1. import { ScrollbarOptions } from './interfaces/';
  2. export declare class Options {
  3. /**
  4. * Momentum reduction damping factor, a float value between `(0, 1)`.
  5. * The lower the value is, the more smooth the scrolling will be
  6. * (also the more paint frames).
  7. */
  8. damping: number;
  9. /**
  10. * Minimal size for scrollbar thumbs.
  11. */
  12. thumbMinSize: number;
  13. /**
  14. * Render every frame in integer pixel values
  15. * set to `true` to improve scrolling performance.
  16. */
  17. renderByPixels: boolean;
  18. /**
  19. * Keep scrollbar tracks visible
  20. */
  21. alwaysShowTracks: boolean;
  22. /**
  23. * Set to `true` to allow outer scrollbars continue scrolling
  24. * when current scrollbar reaches edge.
  25. */
  26. continuousScrolling: boolean;
  27. /**
  28. * Delegate wheel events and touch events to the given element.
  29. * By default, the container element is used.
  30. * This option will be useful for dealing with fixed elements.
  31. */
  32. delegateTo: EventTarget | null;
  33. wheelEventTarget: EventTarget | null;
  34. /**
  35. * Options for plugins. Syntax:
  36. * plugins[pluginName] = pluginOptions: any
  37. */
  38. readonly plugins: any;
  39. constructor(config?: Partial<ScrollbarOptions>);
  40. }