From: Akihiko Kusanagi Date: Mon, 20 May 2019 15:23:54 +0000 (+0800) Subject: Keep lines on the left and right edges from being cut (#6285) X-Git-Tag: v2.9.0~1^2~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f04ee5d7784cfc318c733e19fce8ca239213a58;p=thirdparty%2FChart.js.git Keep lines on the left and right edges from being cut (#6285) --- diff --git a/src/controllers/controller.line.js b/src/controllers/controller.line.js index b7f06816d..614503c6d 100644 --- a/src/controllers/controller.line.js +++ b/src/controllers/controller.line.js @@ -278,8 +278,8 @@ module.exports = DatasetController.extend({ halfBorderWidth = (meta.dataset._model.borderWidth || 0) / 2; helpers.canvas.clipArea(chart.ctx, { - left: area.left, - right: area.right, + left: area.left - halfBorderWidth, + right: area.right + halfBorderWidth, top: area.top - halfBorderWidth, bottom: area.bottom + halfBorderWidth }); diff --git a/test/fixtures/controller.line/borderJoinStyle/scriptable.png b/test/fixtures/controller.line/borderJoinStyle/scriptable.png index 33d1c3f51..95322cabc 100644 Binary files a/test/fixtures/controller.line/borderJoinStyle/scriptable.png and b/test/fixtures/controller.line/borderJoinStyle/scriptable.png differ diff --git a/test/fixtures/controller.line/borderJoinStyle/value.png b/test/fixtures/controller.line/borderJoinStyle/value.png index 2ce1bfdae..a4eaaf14a 100644 Binary files a/test/fixtures/controller.line/borderJoinStyle/value.png and b/test/fixtures/controller.line/borderJoinStyle/value.png differ diff --git a/test/fixtures/controller.line/cubicInterpolationMode/scriptable.png b/test/fixtures/controller.line/cubicInterpolationMode/scriptable.png index 4a68926f6..33e63f8b8 100644 Binary files a/test/fixtures/controller.line/cubicInterpolationMode/scriptable.png and b/test/fixtures/controller.line/cubicInterpolationMode/scriptable.png differ diff --git a/test/fixtures/controller.line/cubicInterpolationMode/value.png b/test/fixtures/controller.line/cubicInterpolationMode/value.png index 4a68926f6..33e63f8b8 100644 Binary files a/test/fixtures/controller.line/cubicInterpolationMode/value.png and b/test/fixtures/controller.line/cubicInterpolationMode/value.png differ