@mertdeveci55/univer-import-export
Version:
Excel/CSV import and export library for Univer spreadsheets with full format preservation
37 lines (36 loc) • 972 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
/**
* Post-processor for Excel files to fix issues that ExcelJS doesn't handle properly
* This includes:
* 1. Array formulas (TRANSPOSE, FILTER, etc.)
* 2. Defined names
* 3. Border styles (future)
*/
export declare class ExcelPostProcessor {
private zip;
private definedNames;
constructor();
/**
* Process an Excel buffer to fix known issues
*/
processExcelBuffer(buffer: Buffer, univerData: any): Promise<Buffer>;
/**
* Fix array formulas by adding t="array" and ref attributes
*/
private fixArrayFormulas;
/**
* Determine the spill range for an array formula
*/
private determineSpillRange;
/**
* Add defined names to workbook.xml
*/
private addDefinedNames;
/**
* Fix border styles (TODO: Implementation needed)
*/
private fixBorderStyles;
private columnToNumber;
private numberToColumn;
}