Appearance
@shbernal/pptxgenjs / index / ShapeFillProps
Interface: ShapeFillProps
Defined in: core-interfaces.ts:315
Extended by
Properties
alpha?
optionalalpha?:number
Defined in: core-interfaces.ts:356
Transparency (percent)
Deprecated
v3.3.0 - use transparency
color?
optionalcolor?:string
Defined in: core-interfaces.ts:322
Fill color
HexColororThemeColor
Examples
ts
'FF0000' // hex color (red)ts
pptx.SchemeColor.text1 // Theme color (Text1)gradient?
optionalgradient?:GradientFillProps
Defined in: core-interfaces.ts:339
Native PPTX gradient fill options.
image?
optionalimage?: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?
optionalpattern?:PatternFillProps
Defined in: core-interfaces.ts:344
Native PPTX pattern fill options.
transparency?
optionaltransparency?:number
Defined in: core-interfaces.ts:329
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:334
Fill type
Default
ts
'solid'