Appearance
@shbernal/pptxgenjs / index / ShapeFillProps
Interface: ShapeFillProps
Defined in: core-interfaces.ts:368
Extended by
Properties
color?
optionalcolor?:string
Defined in: core-interfaces.ts:375
Fill color
HexColororThemeColor
Examples
ts
'FF0000' // hex color (red)ts
pptx.SchemeColor.text1 // Theme color (Text1)gradient?
optionalgradient?:GradientFillProps
Defined in: core-interfaces.ts:392
Native PPTX gradient fill options.
image?
optionalimage?: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?
optionalpattern?:PatternFillProps
Defined in: core-interfaces.ts:397
Native PPTX pattern fill options.
transparency?
optionaltransparency?:number
Defined in: core-interfaces.ts:382
Transparency (percent)
- MS-PPT > Format Shape > Fill & Line > Fill > Transparency
- range: 0-100
Default
ts
0type?
optionaltype?:"none"|"image"|"pattern"|"solid"|"gradient"
Defined in: core-interfaces.ts:387
Fill type
Default
ts
'solid'