UNPKG

table

Version:

Formats data into a string table.

10 lines (9 loc) • 613 B
import type { VerticalAlignment } from './types/api'; import type { BaseConfig, Row } from './types/internal'; import type { WrappedCells } from './wrapCell'; export declare const padCellVertically: (lines: string[], rowHeight: number, verticalAlignment: VerticalAlignment) => string[]; /** * Maps the rows to their lines. wrappedCells, if it is given, holds the lines of the cells that * calculateRowHeights wrapped for the same rows and config. */ export declare const mapDataUsingRowHeights: (unmappedRows: Row[], rowHeights: number[], config: BaseConfig, wrappedCells?: WrappedCells | undefined) => Row[];