diegomura / diegomura/react-pdf

SVG Rounded Rectangle

Open
#1,247 0 comments 0 reactions 0 assignees View on GitHub
new feature
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

The following svg won`t render with rounded corners in react-pdf:

https://upload.wikimedia.org/wikipedia/commons/e/e8/Svg_example3.svg
```

```

React-pdf supports rounded rectangles, as you can see in official example: https://react-pdf.org/repl?example=rect
However it seems svg-interpreter derive a missing ry from rx value, probably same other way arround.
I did not look into the code, but maybe it is possible to implement it like ` rx = rx ?? ry ?? 0`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.