-
-
Notifications
You must be signed in to change notification settings - Fork 628
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
fillColor turn's black when specifing an object to lineWidth #897
Comments
I have the same issue! |
Me too! jsPDF-AutoTable/src/tableDrawer.ts Lines 402 to 409 in 896a73d
Here is the place where the fillColor is replaced by 'S' which is the default for line stroke/fill. Imo, lines use jsPDF.setDrawColor, don't they? I can create PR with the change. |
Would be great! If all the examples works and the tests pass I'll merge right away 👌 |
So the changes would be: jsPDF-AutoTable/src/tableDrawer.ts Line 407 in 896a73d
And replace 'F' with cellStyles.fillColor (casted to null) here:jsPDF-AutoTable/src/tableDrawer.ts Line 395 in 896a73d
I actually doubt this 395 line is needed. I'm testing using my project's table where I use 'plain' theme, no borders here. |
@simonbengtsson PR ready, I'd appreciate if you take a look |
This happens when you assign the object with some or all properties (top, right, bottom, left).
The workaround is to assign fillColor a value that is not false or null (another issue), in my case I had to assign white.
The text was updated successfully, but these errors were encountered: