diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.22k stars 1.11k forks source link

fix: support values of `0` in stroke-dasharray #2721

Closed cfhull closed 3 weeks ago

cfhull commented 3 weeks ago

This code previously required the values in stroke-dasharray to be greater than zero, but zero is actually a valid value. It can be used with stroke-linecap to create dotted lines. See here

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: c0b97a7936aeb50d3caef9692577f1847b8bc263

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages | Name | Type | | ----------------------- | ----- | | @react-pdf/pdfkit | Patch | | @react-pdf/layout | Patch | | @react-pdf/renderer | Patch | | @react-pdf/svgkit | Patch | | @react-pdf/examples | Patch | | @react-pdf/e2e-node-cjs | Patch | | @react-pdf/e2e-node-esm | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

diegomura commented 3 weeks ago

Thanks!