mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-07 07:51:00 +00:00
support check for setLineDash
This commit is contained in:
parent
1e5bd1e678
commit
ca10ee0d28
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ fabric.BaseBrush = fabric.util.createClass(/** @lends fabric.BaseBrush.prototype
|
|||
ctx.lineWidth = this.width;
|
||||
ctx.lineCap = this.strokeLineCap;
|
||||
ctx.lineJoin = this.strokeLineJoin;
|
||||
if (this.strokeDashArray) {
|
||||
if (this.strokeDashArray && fabric.StaticCanvas.supports('setLineDash')) {
|
||||
ctx.setLineDash(this.strokeDashArray);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue