Skip to main content

Interface: RenderContext<Row>

Defined in: packages/sdvtables/src/html/cells.ts:45

Decided once per render; the team, scale and scaleNote maps are filled before the row loop.

Type Parameters​

Row​

Row

Properties​

columns​

readonly columns: readonly ColumnSpec<Row>[]

Defined in: packages/sdvtables/src/html/cells.ts:53


domainRows​

readonly domainRows: readonly Row[]

Defined in: packages/sdvtables/src/html/cells.ts:49

The rows scale and legend domains come from (RenderOptions.domainRows, default rows).


groupKey​

readonly groupKey: string | undefined

Defined in: packages/sdvtables/src/html/cells.ts:54


id​

readonly id: string

Defined in: packages/sdvtables/src/html/cells.ts:51


recorded​

readonly recorded: ColumnScale | undefined

Defined in: packages/sdvtables/src/html/cells.ts:61

The last scale in column order — what gt_legend_continuous reads back as _sdvplot_scale.


rows​

readonly rows: readonly Row[]

Defined in: packages/sdvtables/src/html/cells.ts:47


scaled​

readonly scaled: Map<string, { decimals: number; divisor: number; }>

Defined in: packages/sdvtables/src/html/cells.ts:63

scaleNote divisor + decimals per num/int column; applyDecorations fills it before the row loop.


scales​

readonly scales: ReadonlyMap<string, ColumnScale>

Defined in: packages/sdvtables/src/html/cells.ts:59

Scales per pills/ranks/percentile column, keyed by column key.


sel​

readonly sel: string

Defined in: packages/sdvtables/src/html/cells.ts:52


spec​

readonly spec: TableSpec<Row>

Defined in: packages/sdvtables/src/html/cells.ts:46


teamIds​

readonly teamIds: ReadonlyMap<string, readonly (string | undefined)[]>

Defined in: packages/sdvtables/src/html/cells.ts:57

Team ids per team column, ONE resolveSync per column, keyed by the column key.


theme​

readonly theme: Theme

Defined in: packages/sdvtables/src/html/cells.ts:50


warn​

readonly warn: (key, message) => void

Defined in: packages/sdvtables/src/html/cells.ts:55

Parameters​

key​

string

message​

string

Returns​

void