Skip to content

Commit

Permalink
Keep lines on the left and right edges from being cut (chartjs#6285)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix authored and simonbrunel committed May 20, 2019
1 parent 73f62a9 commit d1b1141
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/controller.line.js
Expand Up @@ -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
});
Expand Down
Binary file modified test/fixtures/controller.line/borderJoinStyle/scriptable.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/fixtures/controller.line/borderJoinStyle/value.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/fixtures/controller.line/cubicInterpolationMode/scriptable.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/fixtures/controller.line/cubicInterpolationMode/value.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1b1141

Please sign in to comment.