Skip to content

Commit

Permalink
chore: make x and y optional in Rect (#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj authored May 31, 2023
1 parent d6018d5 commit 113de53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/silent-eyes-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-pdf/renderer': patch
---

Make `x` and `y` optional in `Rect`
4 changes: 2 additions & 2 deletions packages/renderer/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ declare namespace ReactPDF {

interface RectProps extends SVGPresentationAttributes {
style?: SVGPresentationAttributes;
x: string | number;
y: string | number;
x?: string | number;
y?: string | number;
width: string | number;
height: string | number;
rx?: string | number;
Expand Down

0 comments on commit 113de53

Please sign in to comment.