Skip to main content

Interface: TableOptions

Defined in: src/mobjects/table/Table.ts:19

Options for creating a Table

Properties​

arrangeInRowsFirst?​

optional arrangeInRowsFirst: boolean

Defined in: src/mobjects/table/Table.ts:39

Whether to arrange entries in rows. Default: true


backgroundFillOpacity?​

optional backgroundFillOpacity: number

Defined in: src/mobjects/table/Table.ts:45

Background fill opacity. Default: 0


backgroundStrokeColor?​

optional backgroundStrokeColor: string

Defined in: src/mobjects/table/Table.ts:43

Background color for cells. Default: transparent


colLabels?​

optional colLabels: Mobject[]

Defined in: src/mobjects/table/Table.ts:25

Column labels to display on top


data​

data: Mobject[][]

Defined in: src/mobjects/table/Table.ts:21

2D array of mobjects to display in the table


entriesColor?​

optional entriesColor: string

Defined in: src/mobjects/table/Table.ts:41

Color for all entries. If set, overrides individual colors


hBuff?​

optional hBuff: number

Defined in: src/mobjects/table/Table.ts:33

Horizontal buffer between cells. Default: 0.5


includeOuterLines?​

optional includeOuterLines: boolean

Defined in: src/mobjects/table/Table.ts:29

Whether to include outer lines around the table. Default: true


lineColor?​

optional lineColor: string

Defined in: src/mobjects/table/Table.ts:35

Color of the grid lines. Default: WHITE


lineStrokeWidth?​

optional lineStrokeWidth: number

Defined in: src/mobjects/table/Table.ts:37

Stroke width of grid lines. Default: 2


position?​

optional position: Vector3Tuple

Defined in: src/mobjects/table/Table.ts:47

Starting position. Default: ORIGIN


rowLabels?​

optional rowLabels: Mobject[]

Defined in: src/mobjects/table/Table.ts:23

Row labels to display on the left side


topLeftEntry?​

optional topLeftEntry: Mobject

Defined in: src/mobjects/table/Table.ts:27

Top-left element when both row and column labels exist


vBuff?​

optional vBuff: number

Defined in: src/mobjects/table/Table.ts:31

Vertical buffer between cells. Default: 0.3