Skip to content

Commit 132324f

Browse files
BorderRadius of Bar Chart issue on Firefox 116 (#11435)
Co-authored-by: bogdankorshunov <[email protected]>
1 parent 79f1a0a commit 132324f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/helpers.canvas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ export function addRoundedRectPath(
498498
const {x, y, w, h, radius} = rect;
499499

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

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

0 commit comments

Comments
 (0)