mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-28 17:24:42 +00:00
* Fixing issues with selectionDashArray bleeding into free drawing * Resetting line dash in _setBrushStyles when there is no strokeDashArray
This commit is contained in:
parent
fe55cf4d4a
commit
d73dbabb15
1 changed files with 2 additions and 2 deletions
|
|
@ -78,8 +78,8 @@ fabric.BaseBrush = fabric.util.createClass(/** @lends fabric.BaseBrush.prototype
|
|||
ctx.lineCap = this.strokeLineCap;
|
||||
ctx.miterLimit = this.strokeMiterLimit;
|
||||
ctx.lineJoin = this.strokeLineJoin;
|
||||
if (this.strokeDashArray && fabric.StaticCanvas.supports('setLineDash')) {
|
||||
ctx.setLineDash(this.strokeDashArray);
|
||||
if (fabric.StaticCanvas.supports('setLineDash')) {
|
||||
ctx.setLineDash(this.strokeDashArray || []);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue