PptxGenJS
PptxGenJS copied to clipboard
Apply Shadow in table cell.
Thank you for reporting an issue, suggesting an enhancement, or asking a question.
We appreciate your feedback - to help the team understand your needs please complete the below template to ensure we have the details to help. Thanks!
Please check out the Docs to see if your question is already addressed there. This will help us ensure our documentation covers the most frequent questions.
Category
- [ ] Enhancement
- [X] Bug
- [ ] Question
- [ ] Documentation gap/issue
Version
Please specify what version of the library you are using: [ 3.8.0 ]
Please specify what version(s) of PowerPoint you are targeting: [ Powerpoint 365 v16 ]
If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.
Expected / Desired Behavior / Question
Applied shadow options within a table cell
let shadowOpts = { type: "outer", color: "0000ff", blur: 4, offset: 6, angle: 90, opacity: 0.4 };
slide.addText([
{
text: severity.capitalize() + "\n",
options: { fill: fillColour, align: "center", bold: false, fontSize: 11, color: textColour, fontFace: "Open Sans (Body)", breakline: true },
},
{ text: "■", options: { shadow: shadowOpts, fill: fillColour, align: "center", bold: false, fontSize: 25, color: sevBox, fontFace: "Open Sans (Body)" } },
]);
Expected shadow to appear
Observed Behavior
No shadow effects shown
Steps to Reproduce
Use addTable functionality and apply shadow in options of a table cell.
Just wanted to clarify. Shadow options work when applying in text in general but only fails when trying to apply this within a cell in table.
Confirmed issue. The shadow
property is not being applied on a text-run basis.
Created branch: https://github.com/gitbrent/PptxGenJS/tree/issue-1011