UNPKG

hy-vue-gantt

Version:

Evolution of vue-ganttastic package

22 lines 916 B
import { type Ref } from "vue"; import type { ExportOptions, ExportResult, TimeUnit } from "../types"; import type { UseRowsReturn } from "./useRows"; /** * Composable for the Gantt chart export functionality * Supports export to PDF, PNG, SVG and Excel * * @param getChartElement - Function that returns the chart's DOM element * @returns Functions and state for export */ export declare function useExport(getChartElement: () => HTMLElement | null, getWrapperElement: () => HTMLElement | null, rowManager: UseRowsReturn, config: { barStart: Ref<string>; barEnd: Ref<string>; dateFormat: Ref<string | false>; precision: Ref<TimeUnit>; }): { exportChart: (options: ExportOptions) => Promise<ExportResult>; downloadExport: (result: ExportResult) => void; isExporting: Ref<boolean, boolean>; lastError: Ref<string | null, string | null>; }; //# sourceMappingURL=useExport.d.ts.map