]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
BorderRadius of Bar Chart issue on Firefox 116 (#11435)
authorBogdan Korshunov <49434029+bogdankorshunov@users.noreply.github.com>
Mon, 7 Aug 2023 18:16:32 +0000 (23:16 +0500)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2023 18:16:32 +0000 (20:16 +0200)
Co-authored-by: bogdankorshunov <korshunov.oren@gmail.com>
src/helpers/helpers.canvas.ts

index 5221c438c263932e73433638d4a29af6e6fc9596..a959d1dea1d2435efc3c9a1fbf22b59dfa756536 100644 (file)
@@ -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);