Appearance
@shbernal/pptxgenjs / index / ShapeLineProps
Interface: ShapeLineProps
Defined in: core-interfaces.ts:373
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
alpha?
optionalalpha?:number
Defined in: core-interfaces.ts:356
Transparency (percent)
Deprecated
v3.3.0 - use transparency
Inherited from
beginArrowType?
optionalbeginArrowType?:"none"|"triangle"|"arrow"|"diamond"|"oval"|"stealth"
Defined in: core-interfaces.ts:393
Begin arrow type
Since
v3.3.0
cap?
optionalcap?:LineCap
Defined in: core-interfaces.ts:388
Line end cap style
Default
ts
'flat'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)Inherited from
dashType?
optionaldashType?:"dash"|"solid"|"dashDot"|"lgDash"|"lgDashDot"|"lgDashDotDot"|"sysDash"|"sysDot"
Defined in: core-interfaces.ts:383
Dash type
Default
ts
'solid'endArrowType?
optionalendArrowType?:"none"|"triangle"|"arrow"|"diamond"|"oval"|"stealth"
Defined in: core-interfaces.ts:398
End arrow type
Since
v3.3.0
gradient?
optionalgradient?:GradientFillProps
Defined in: core-interfaces.ts:339
Native PPTX gradient fill options.
Inherited from
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.
Inherited from
lineDash?
optionallineDash?:"dash"|"solid"|"dashDot"|"lgDash"|"lgDashDot"|"lgDashDotDot"|"sysDash"|"sysDot"
Defined in: core-interfaces.ts:406
Dash type
Deprecated
v3.3.0 - use dashType
lineHead?
optionallineHead?:"none"|"triangle"|"arrow"|"diamond"|"oval"|"stealth"
Defined in: core-interfaces.ts:410
Deprecated
v3.3.0 - use beginArrowType
lineTail?
optionallineTail?:"none"|"triangle"|"arrow"|"diamond"|"oval"|"stealth"
Defined in: core-interfaces.ts:414
Deprecated
v3.3.0 - use endArrowType
pattern?
optionalpattern?:PatternFillProps
Defined in: core-interfaces.ts:344
Native PPTX pattern fill options.
Inherited from
pt?
optionalpt?:number
Defined in: core-interfaces.ts:419
Line width (pt)
Deprecated
v3.3.0 - use width
size?
optionalsize?:number
Defined in: core-interfaces.ts:424
Line size (pt)
Deprecated
v3.3.0 - use width
transparency?
optionaltransparency?:number
Defined in: core-interfaces.ts:329
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:334
Fill type
Default
ts
'solid'Inherited from
width?
optionalwidth?:number
Defined in: core-interfaces.ts:378
Line width (pt)
Default
ts
1