mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
Merge pull request #1915 from nnnick/fix/1914
Properly begin path before drawing line at edge of scale
This commit is contained in:
commit
3c614a5dfe
@ -661,6 +661,7 @@
|
||||
x2 += helpers.aliasPixel(this.ctx.lineWidth);
|
||||
}
|
||||
|
||||
this.ctx.beginPath();
|
||||
this.ctx.moveTo(x1, y1);
|
||||
this.ctx.lineTo(x2, y2);
|
||||
this.ctx.stroke();
|
||||
|
@ -1026,6 +1026,9 @@ describe('Linear Scale', function() {
|
||||
}, {
|
||||
"name": "setStrokeStyle",
|
||||
"args": ["rgba(0, 0, 0, 0.1)"]
|
||||
}, {
|
||||
"name": "beginPath",
|
||||
"args": []
|
||||
}, {
|
||||
"name": "moveTo",
|
||||
"args": [0, 100.5]
|
||||
@ -1099,6 +1102,9 @@ describe('Linear Scale', function() {
|
||||
}, {
|
||||
"name": "setStrokeStyle",
|
||||
"args": ["rgba(0, 0, 0, 0.1)"]
|
||||
}, {
|
||||
"name": "beginPath",
|
||||
"args": []
|
||||
}, {
|
||||
"name": "moveTo",
|
||||
"args": [0, 100.5]
|
||||
@ -1558,6 +1564,9 @@ describe('Linear Scale', function() {
|
||||
}, {
|
||||
"name": "setStrokeStyle",
|
||||
"args": ["rgba(0, 0, 0, 0.1)"]
|
||||
}, {
|
||||
"name": "beginPath",
|
||||
"args": []
|
||||
}, {
|
||||
"name": "moveTo",
|
||||
"args": [30.5, 0]
|
||||
@ -1689,6 +1698,9 @@ describe('Linear Scale', function() {
|
||||
}, {
|
||||
"name": "setStrokeStyle",
|
||||
"args": ["rgba(0, 0, 0, 0.1)"]
|
||||
}, {
|
||||
"name": "beginPath",
|
||||
"args": []
|
||||
}, {
|
||||
"name": "moveTo",
|
||||
"args": [30.5, 0]
|
||||
@ -1946,6 +1958,9 @@ describe('Linear Scale', function() {
|
||||
}, {
|
||||
"name": "setStrokeStyle",
|
||||
"args": ["rgba(0, 0, 0, 0.1)"]
|
||||
}, {
|
||||
"name": "beginPath",
|
||||
"args": []
|
||||
}, {
|
||||
"name": "moveTo",
|
||||
"args": [30.5, 0]
|
||||
|
Loading…
Reference in New Issue
Block a user