Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / TableCell3DProps

Interface: TableCell3DProps

Defined in: src/types/table.ts:148

A cell's 3-D bevel (a:tcPr/a:cell3D).

A minimal surface over CT_Cell3D, which is a required a:bevel plus an optional a:lightRig. PowerPoint's table UI exposes no control for it — it reaches a deck through a theme's table style or through another producer — so this exists to author and reproduce one, not as a general 3-D model.

Properties

height?

optional height?: number

Defined in: src/types/table.ts:163

Bevel height in points (a:bevel/@h; the attribute is EMU).

Default

ts
6 // 76200 EMU

lightRig?

optional lightRig?: object

Defined in: src/types/table.ts:174

Scene lighting (a:cell3D/a:lightRig). Both fields are required by the schema, so either give both or omit the whole object and let the renderer light the bevel.

dir

dir: "r" | "b" | "br" | "tr" | "t" | "l" | "tl" | "bl"

rig

rig: "flat" | "balanced" | "glow" | "legacyFlat1" | "legacyFlat2" | "legacyFlat3" | "legacyFlat4" | "legacyNormal1" | "legacyNormal2" | "legacyNormal3" | "legacyNormal4" | "legacyHarsh1" | "legacyHarsh2" | "legacyHarsh3" | "legacyHarsh4" | "threePt" | "soft" | "harsh" | "flood" | "contrasting" | "morning" | "sunrise" | "sunset" | "chilly" | "freezing" | "twoPt" | "brightRoom"

Example

ts
lightRig: { rig: 'threePt', dir: 't' }

material?

optional material?: "flat" | "clear" | "legacyMatte" | "legacyPlastic" | "legacyMetal" | "legacyWireframe" | "matte" | "plastic" | "metal" | "warmMatte" | "translucentPowder" | "powder" | "dkEdge" | "softEdge" | "softmetal"

Defined in: src/types/table.ts:168

Surface material (a:cell3D/@prstMaterial), which decides how the bevel takes light.

Default

ts
'plastic'

preset?

optional preset?: "angle" | "circle" | "cross" | "relaxedInset" | "slope" | "softRound" | "convex" | "coolSlant" | "divot" | "riblet" | "hardEdge" | "artDeco"

Defined in: src/types/table.ts:153

The bevel's preset shape (a:bevel/@prst).

Default

ts
'circle'

width?

optional width?: number

Defined in: src/types/table.ts:158

Bevel width in points (a:bevel/@w; the attribute is EMU).

Default

ts
6 // 76200 EMU