use round for line join to avoid sharp edge for outline effect

This commit is contained in:
Huabing.Xu
2016-06-01 14:39:33 +08:00
parent 54538104e2
commit 93acfa93a5
@@ -425,7 +425,8 @@
var startPosition = this._calculateFillTextStartPosition();
var lineHeight = this._getLineHeight();
//use round for line join to avoid sharp intersect point
this._labelContext.lineJoin = 'round';
var color = this._displayedColor;
this._labelContext.fillStyle = 'rgb(' + color.r + ',' + color.g + ',' + color.b + ')';