PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

add linear gradient support

Open sambauers opened this issue 8 months ago • 1 comments

  • no build files included in this commit
  • should work on shapes, text, charts, and tables
  • only a basic demo on shapes included

Example usage:

slide.addShape(pptx.shapes.RECTANGLE, {
 	x: 5.1,
 	y: 6,
 	w: 3.0,
 	h: 1,
 	fill: {
 		type: "linearGradient",
 		stops: [
 			{ position: 0, color: '000000', transparency: 10 },
 			{ position: 100, color: '333333', transparency: 50 },
 		],
 		angle: 45,
 		scaled: 1,
 		rotWithShape: false,
 		tileRect: { t: 0, r: 0.5, b: 0.25, l: 1 },
 		flip: 'xy',
 	},
 });

sambauers avatar Oct 19 '23 04:10 sambauers