@papb/json-excel
Version:
Create a pretty Excel table from JSON data with a very simple API
8 lines (7 loc) • 427 B
TypeScript
import type { ExpandedAutoFitCellSizesOptions } from './types';
export declare function getStringHeight(string: string, maxVisualWidth?: number): number;
export declare type AutoFitSizesResult = {
columnWidths: number[];
rowHeights: number[];
};
export declare function getAutoFitCellSizes(data: string[][], considerExtraRoomForHeaderFilterArrow: boolean, options: ExpandedAutoFitCellSizesOptions): AutoFitSizesResult;