Skip to content

vyaz-monorepo / core/src / TableCellLayoutResult

Interface: TableCellLayoutResult ​

Defined in: core/src/layout/TableLayoutEngine.ts:71

Properties ​

after? ​

optional after?: object

Defined in: core/src/layout/TableLayoutEngine.ts:113

content ​

content: TextFrameLayoutResult

x ​

x: number

y ​

y: number

See ​

before — from TableCell.after, right-anchored instead.


allowOverflow ​

allowOverflow: boolean

Defined in: core/src/layout/TableLayoutEngine.ts:89

TableCellStyle.allowOverflow — let content paint past the cell's padding box. Default false.


before? ​

optional before?: object

Defined in: core/src/layout/TableLayoutEngine.ts:111

TableCell.before, laid out unwrapped at its own natural size and positioned absolute-within-the-table, already vertically centered. Absent when the cell has no before.

content ​

content: TextFrameLayoutResult

x ​

x: number

y ​

y: number


bgColor? ​

optional bgColor?: string

Defined in: core/src/layout/TableLayoutEngine.ts:90


border? ​

optional border?: ResolvedBorder

Defined in: core/src/layout/TableLayoutEngine.ts:91


colSpan ​

colSpan: number

Defined in: core/src/layout/TableLayoutEngine.ts:115

Columns this cell occupies (>1 for colSpan).


content ​

content: TextFrameLayoutResult

Defined in: core/src/layout/TableLayoutEngine.ts:98

The cell's laid-out content — same shape a lone TextFrame produces. When TableCell.content was a TableFrame (see nestedTable), this is a zero-line placeholder sized to match it — a renderer should check nestedTable first and use that instead of painting content as text.


cx ​

cx: number

Defined in: core/src/layout/TableLayoutEngine.ts:85

TableCellStyle.cx/cy — an additional px nudge on top of padding/alignment. Default 0.


cy ​

cy: number

Defined in: core/src/layout/TableLayoutEngine.ts:87

See ​

cx


height ​

height: number

Defined in: core/src/layout/TableLayoutEngine.ts:79

Full box height — sums every spanned row + the gaps between them.


nestedTable? ​

optional nestedTable?: TableLayoutResult

Defined in: core/src/layout/TableLayoutEngine.ts:105

Present when TableCell.content was a TableFrame — a table nested inside this cell, already laid out at the cell's own content width. content (above) is a same-sized placeholder in this case, not real text — paint this instead.


padding ​

padding: object

Defined in: core/src/layout/TableLayoutEngine.ts:81

Resolved padding box (inside the border, if any).

bottom ​

bottom: number

left ​

left: number

right: number

top ​

top: number


rowSpan ​

rowSpan: number

Defined in: core/src/layout/TableLayoutEngine.ts:117

Rows this cell occupies (>1 for rowSpan).


verticalOffset ​

verticalOffset: number

Defined in: core/src/layout/TableLayoutEngine.ts:83

Extra Y offset inside the padding box from verticalAlign (0 for 'top').


width ​

width: number

Defined in: core/src/layout/TableLayoutEngine.ts:77

Full box width — sums every spanned column + the gaps between them.


x ​

x: number

Defined in: core/src/layout/TableLayoutEngine.ts:73

Absolute X of the cell box (border-box) within the table.


y ​

y: number

Defined in: core/src/layout/TableLayoutEngine.ts:75

Absolute Y of the cell box within the table.

Released under the MIT License.