Skip to content

Commit

Permalink
BorderRadius of Bar Chart issue on Firefox 116
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMoldy committed Aug 4, 2023
1 parent 095a984 commit 3ada299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/helpers.canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ export function addRoundedRectPath(
const {x, y, w, h, radius} = rect;

// top left arc
ctx.arc(x + radius.topLeft, y + radius.topLeft, radius.topLeft, -HALF_PI, PI, true);
ctx.arc(x + radius.topLeft, y + radius.topLeft, radius.topLeft, 1.5 * PI, PI, true);

// line from top left to bottom left
ctx.lineTo(x, y + h - radius.bottomLeft);
Expand Down

0 comments on commit 3ada299

Please sign in to comment.