-
Notifications
You must be signed in to change notification settings - Fork 104
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
Gradient filled rectangles, why is the border thinner #297
Comments
Here is a stripped down version of the SVG:
It seems that for gradients (only for gradients) the fill is rendered up to the center of the stroke, covering half of the stroke, as you can see with opacity enabled. This doesn't happen with regular fills. This can be reproduced in Chrome/Edge Version 126.0.2592.102 (Official build) (64-bit) on Windows 11 I can't tell whether this is an issue with jspdf or svg2pdf at this point. PS: thanks for the report, but next time, please at least delete all of the template parts that you have not filled out. |
It looks like the fill and stroke are applied in the wrong order:
This should be fixed in jspdf. I'm not sure if there is an elegant solution to this without having to duplicate the shape path. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
See this playground.
Expected behavior
I would have expected the PDF to look like so.
This is in accordance to the following SVG spec.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: