Appearance
@shbernal/pptxgenjs / index / ShapeLineProps
Interface: ShapeLineProps
Defined in: core-interfaces.ts:420
Line (stroke) options.
A stroke is painted like a fill: in addition to a solid color, it accepts the inherited gradient/pattern/image fill options (DrawingML allows the same fill group inside <a:ln>). Setting gradient (or type: 'gradient') paints a gradient stroke, e.g. line: { width: 1, gradient: { kind: 'linear', angle: 0, stops: [{ position: 0, color: 'accent3' }, { position: 100, color: 'accent4' }] } }.
Extends
Properties
beginArrowType?
optionalbeginArrowType?:"none"|"triangle"|"arrow"|"diamond"|"oval"|"stealth"
Defined in: core-interfaces.ts:439
Begin arrow type
cap?
optionalcap?:LineCap
Defined in: core-interfaces.ts:435
Line end cap style
Default
ts
'flat'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)Inherited from
dashType?
optionaldashType?:"dash"|"solid"|"dashDot"|"lgDash"|"lgDashDot"|"lgDashDotDot"|"sysDash"|"sysDot"
Defined in: core-interfaces.ts:430
Dash type
Default
ts
'solid'endArrowType?
optionalendArrowType?:"none"|"triangle"|"arrow"|"diamond"|"oval"|"stealth"
Defined in: core-interfaces.ts:443
End arrow type
gradient?
optionalgradient?:GradientFillProps
Defined in: core-interfaces.ts:392
Native PPTX gradient fill options.
Inherited from
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.
Inherited from
pattern?
optionalpattern?:PatternFillProps
Defined in: core-interfaces.ts:397
Native PPTX pattern fill options.
Inherited from
transparency?
optionaltransparency?:number
Defined in: core-interfaces.ts:382
Transparency (percent)
- MS-PPT > Format Shape > Fill & Line > Fill > Transparency
- range: 0-100
Default
ts
0Inherited from
type?
optionaltype?:"none"|"image"|"pattern"|"solid"|"gradient"
Defined in: core-interfaces.ts:387
Fill type
Default
ts
'solid'Inherited from
width?
optionalwidth?:number
Defined in: core-interfaces.ts:425
Line width (pt)
Default
ts
1