Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add linear gradient support #1295

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sambauers
Copy link

@sambauers sambauers commented Oct 19, 2023

  • 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',
 	},
 });

* no build files included in this commit
* should work on shapes, text, charts, and tables
* only a basic demo on shapes included
@w2048185182
Copy link

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

@niels-bosman
Copy link

@gitbrent Could you have a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants