Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / TableCellLayout

Interface: TableCellLayout

Defined in: core-interfaces.ts:2086

One cell's computed rectangle from PptxGenJS.tableLayout. All values are inches; x/y are absolute (offset from the table's x/y). For a merged cell, row/col are the top-left origin and wIn/hIn cover the whole span; the cells it covers are not emitted separately.

Properties

col

col: number

Defined in: core-interfaces.ts:2090

Zero-based grid column of the cell's top-left origin.


colSpan

colSpan: number

Defined in: core-interfaces.ts:2094

Number of columns the cell spans (1 if not merged).


heightExact

heightExact: boolean

Defined in: core-interfaces.ts:2108

true when hIn/yIn are pinned by an explicit rowH (array or scalar) or table h; false when the row is auto-height and the value is a conservative (tall) estimate from the same text model as PptxGenJS.measureText.


hIn

hIn: number

Defined in: core-interfaces.ts:2102

Outer cell height in inches (sum of spanned row heights).


row

row: number

Defined in: core-interfaces.ts:2088

Zero-based grid row of the cell's top-left origin.


rowSpan

rowSpan: number

Defined in: core-interfaces.ts:2092

Number of rows the cell spans (1 if not merged).


wIn

wIn: number

Defined in: core-interfaces.ts:2100

Outer cell width in inches (sum of spanned column widths).


xIn

xIn: number

Defined in: core-interfaces.ts:2096

Left edge in inches (absolute).


yIn

yIn: number

Defined in: core-interfaces.ts:2098

Top edge in inches (absolute).