Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / ShapeFillProps

Interface: ShapeFillProps

Defined in: core-interfaces.ts:315

Extended by

Properties

alpha?

optional alpha?: number

Defined in: core-interfaces.ts:356

Transparency (percent)

Deprecated

v3.3.0 - use transparency


color?

optional color?: string

Defined in: core-interfaces.ts:322

Fill color

  • HexColor or ThemeColor

Examples

ts
'FF0000' // hex color (red)
ts
pptx.SchemeColor.text1 // Theme color (Text1)

gradient?

optional gradient?: GradientFillProps

Defined in: core-interfaces.ts:339

Native PPTX gradient fill options.


image?

optional image?: ImageFillProps

Defined in: core-interfaces.ts:350

Native PPTX picture fill options. Setting this (or type: 'image') fills the shape interior with a stretched bitmap instead of a color.


pattern?

optional pattern?: PatternFillProps

Defined in: core-interfaces.ts:344

Native PPTX pattern fill options.


transparency?

optional transparency?: number

Defined in: core-interfaces.ts:329

Transparency (percent)

  • MS-PPT > Format Shape > Fill & Line > Fill > Transparency
  • range: 0-100

Default

ts
0

type?

optional type?: "none" | "image" | "pattern" | "solid" | "gradient"

Defined in: core-interfaces.ts:334

Fill type

Default

ts
'solid'