UNPKG

hy-vue-gantt

Version:

Evolution of vue-ganttastic package

50 lines 1.95 kB
import type { GGanttChartConfig, TimeaxisUnit, TimeUnit } from "../types"; /** * Capitalizes the first letter of a string, handling Unicode characters * @param str - Input string to capitalize * @returns Capitalized string */ export declare const capitalizeString: (str: string) => string; /** * Capitalizes the first letter of each word in a string * @param str - Input string to process * @returns String with capitalized words */ export declare const capitalizeWords: (str: string) => string; /** * A composable that manages time axis units generation and display with optimized performance. * Features include: * - Efficient caching system for calculated units * - Dynamic zoom level management * - Automatic precision adjustment * - Performance optimizations for large datasets * - Timestamp-based calculations for week handling * - Events positioning and visualization on the third axis * * @param config - Optional Gantt chart configuration * @returns Object containing timeaxis state and control methods */ export default function useTimeaxisUnits(config?: GGanttChartConfig): { timeaxisUnits: import("vue").ComputedRef<{ result: { upperUnits: TimeaxisUnit[]; lowerUnits: TimeaxisUnit[]; events: { id: string; label: string; startDate: string | Date; endDate: string | Date; color?: string | undefined; backgroundColor?: string | undefined; description?: string | undefined; width?: string | undefined; xPosition?: number | undefined; }[]; }; globalMinuteStep: string[]; }>; internalPrecision: import("vue").Ref<TimeUnit, TimeUnit>; zoomLevel: import("vue").Ref<number, number>; adjustZoomAndPrecision: (increase: boolean) => void; }; //# sourceMappingURL=useTimeaxisUnits.d.ts.map