@mertdeveci55/univer-import-export
Version:
Excel/CSV import and export library for Univer spreadsheets with full format preservation
41 lines (40 loc) • 1.29 kB
TypeScript
import type { ICellData, IColumnData, IFreeze, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, IRowData, IWorksheetData } from '@univerjs/core';
import { BooleanNumber } from '../common/univerEnums';
export interface UniverSheetBaseParams {
id?: string;
name?: string;
cellData?: IObjectMatrixPrimitiveType<ICellData>;
rowCount?: number;
colCount?: number;
}
export declare class UniverSheetBase implements IWorksheetData {
id: string;
name: string;
type: any;
tabColor: string;
hidden: BooleanNumber;
freeze: IFreeze;
rowCount: number;
columnCount: number;
zoomRatio: number;
scrollTop: number;
scrollLeft: number;
defaultColumnWidth: number;
defaultRowHeight: number;
mergeData: IRange[];
cellData: IObjectMatrixPrimitiveType<ICellData>;
rowData: IObjectArrayPrimitiveType<Partial<IRowData>>;
columnData: IObjectArrayPrimitiveType<Partial<IColumnData>>;
rowHeader: {
width: number;
hidden?: BooleanNumber | undefined;
};
columnHeader: {
height: number;
hidden?: BooleanNumber | undefined;
};
showGridlines: BooleanNumber;
rightToLeft: BooleanNumber;
selections: string[];
constructor(params?: UniverSheetBaseParams);
}