Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / ShapeFillProps

Interface: ShapeFillProps

Defined in: core-interfaces.ts:368

Extended by

Properties

color?

optional color?: string

Defined in: core-interfaces.ts:375

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:392

Native PPTX gradient fill options.


image?

optional image?: ImageFillProps

Defined in: core-interfaces.ts:403

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:397

Native PPTX pattern fill options.


transparency?

optional transparency?: number

Defined in: core-interfaces.ts:382

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:387

Fill type

Default

ts
'solid'