utils.d.ts 697 B

12345678910111213141516
  1. import type { CSSProperties } from 'vue';
  2. import type { Direction, RTLOffsetType } from './types';
  3. export declare const getScrollDir: (prev: number, cur: number) => "forward" | "backward";
  4. export declare const isHorizontal: (dir: string) => dir is "ltr" | "rtl" | "horizontal";
  5. export declare const isRTL: (dir: Direction) => dir is "rtl";
  6. export declare function getRTLOffsetType(recalculate?: boolean): RTLOffsetType;
  7. type RenderThumbStyleParams = {
  8. bar: {
  9. size: 'height' | 'width';
  10. axis: 'X' | 'Y';
  11. };
  12. size: string;
  13. move: number;
  14. };
  15. export declare function renderThumbStyle({ move, size, bar }: RenderThumbStyleParams, layout: string): CSSProperties;
  16. export {};