free-mode.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. export interface FreeModeMethods {
  2. onTouchMove(): void;
  3. onTouchEnd(): void;
  4. }
  5. export interface FreeModeEvents {}
  6. export interface FreeModeOptions {
  7. enabled?: boolean;
  8. /**
  9. * If enabled, then slide will keep moving for a while after you release it
  10. *
  11. * @default true
  12. */
  13. momentum?: boolean;
  14. /**
  15. * Higher value produces larger momentum distance after you release slider
  16. *
  17. * @default 1
  18. */
  19. momentumRatio?: number;
  20. /**
  21. * Higher value produces larger momentum velocity after you release slider
  22. *
  23. * @default 1
  24. */
  25. momentumVelocityRatio?: number;
  26. /**
  27. * Set to `false` if you want to disable momentum bounce in free mode
  28. *
  29. * @default true
  30. */
  31. momentumBounce?: boolean;
  32. /**
  33. * Higher value produces larger momentum bounce effect
  34. *
  35. * @default 1
  36. */
  37. momentumBounceRatio?: number;
  38. /**
  39. * Minimum touchmove-velocity required to trigger free mode momentum
  40. *
  41. * @default 0.02
  42. */
  43. minimumVelocity?: number;
  44. /**
  45. * Set to enabled to enable snap to slides positions in free mode
  46. *
  47. * @default false
  48. */
  49. sticky?: boolean;
  50. }