From: Bogdan Korshunov <49434029+bogdankorshunov@users.noreply.github.com> Date: Mon, 7 Aug 2023 18:16:32 +0000 (+0500) Subject: BorderRadius of Bar Chart issue on Firefox 116 (#11435) X-Git-Tag: v4.4.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=132324f5b8cdd6965a308b2112a91e8aa3a22000;p=thirdparty%2FChart.js.git BorderRadius of Bar Chart issue on Firefox 116 (#11435) Co-authored-by: bogdankorshunov --- diff --git a/src/helpers/helpers.canvas.ts b/src/helpers/helpers.canvas.ts index 5221c438c..a959d1dea 100644 --- a/src/helpers/helpers.canvas.ts +++ b/src/helpers/helpers.canvas.ts @@ -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);