You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
% rect path:
25. 25. m
75. 25. l
75. 75. l
25. 75. l
h
q
W S % sets the path as the current clip path and strokes it
/GS1 gs
50. 0. 0. 50. 25. 25. cm
/Sh1 sh % renders the gradient clipped by the clip path
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: