PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

add linear gradient support

Open sambauers opened this issue 2 years ago • 5 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

给大佬说666,初步使用状况正常。

w2048185182 avatar Jan 20 '24 05:01 w2048185182

@gitbrent Could you have a look at this?

niels-bosman avatar Jun 01 '24 13:06 niels-bosman

Which version can this update be used on?

xunyucheng avatar Jan 21 '25 09:01 xunyucheng

给大佬说666,初步使用状况正常。

麻烦问下,哪个版本这个示例能生效?

xunyucheng avatar Jan 22 '25 00:01 xunyucheng

this is great, i will add this to my version of pptxGenJs thank you for this

markentingh avatar Aug 08 '25 04:08 markentingh