utils.d.ts 793 B

1234567891011121314151617181920212223
  1. import { Direction, RTLOffsetType } from "./types.js";
  2. import { CSSProperties } from "vue";
  3. //#region ../../packages/components/virtual-list/src/utils.d.ts
  4. declare const getScrollDir: (prev: number, cur: number) => "forward" | "backward";
  5. declare const isHorizontal: (dir: string) => dir is "horizontal" | "ltr" | "rtl";
  6. declare const isRTL: (dir: Direction) => dir is "rtl";
  7. declare function getRTLOffsetType(recalculate?: boolean): RTLOffsetType;
  8. type RenderThumbStyleParams = {
  9. bar: {
  10. size: 'height' | 'width';
  11. axis: 'X' | 'Y';
  12. };
  13. size: string;
  14. move: number;
  15. };
  16. declare function renderThumbStyle({
  17. move,
  18. size,
  19. bar
  20. }: RenderThumbStyleParams, layout: string): CSSProperties;
  21. //#endregion
  22. export { getRTLOffsetType, getScrollDir, isHorizontal, isRTL, renderThumbStyle };