mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-17 04:40:58 +00:00
Only call _renderStroke in line and circle when this.stroke exists
This commit is contained in:
parent
20e0712688
commit
bc8acac692
2 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@
|
|||
ctx.closePath();
|
||||
|
||||
this._renderFill(ctx);
|
||||
this._renderStroke(ctx);
|
||||
this.stroke && this._renderStroke(ctx);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@
|
|||
// (by copying fillStyle to strokeStyle, since line is stroked, not filled)
|
||||
var origStrokeStyle = ctx.strokeStyle;
|
||||
ctx.strokeStyle = this.stroke || ctx.fillStyle;
|
||||
this._renderStroke(ctx);
|
||||
this.stroke && this._renderStroke(ctx);
|
||||
ctx.strokeStyle = origStrokeStyle;
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue