UNPKG

@mertdeveci55/univer-import-export

Version:

Excel/CSV import and export library for Univer spreadsheets with full format preservation

45 lines (44 loc) 1.23 kB
/** * ChartExporter - Handles chart export for Excel files * * This class processes chart data from Univer format and converts it * to ExcelJS-compatible chart objects for Excel export. */ export declare class ChartExporter { /** * Export charts from resources to ExcelJS worksheets */ static exportCharts(workbook: any, worksheet: any, sheetId: string, resources: any[]): void; /** * Export a single chart to ExcelJS */ private static exportSingleChart; /** * Map Univer chart type to ExcelJS chart type */ private static mapChartType; /** * Extract data range from Univer range info */ private static extractDataRange; /** * Create ExcelJS chart configuration */ private static createChartConfig; /** * Convert column number to Excel column letter (0-based) */ private static numberToColumnLetter; /** * Check if ExcelJS supports chart export */ static isChartExportSupported(): boolean; /** * Get supported chart types */ static getSupportedChartTypes(): string[]; /** * Debug method to analyze chart data */ static analyzeChartData(resources: any[]): any; }