remove dash from arrow-head

This commit is contained in:
Adam L 2018-03-25 16:04:58 -07:00
parent 514e60122b
commit 71bc445383

View File

@ -66,7 +66,21 @@
ctx.closePath();
ctx.restore();
}
this._fillArrowHead(ctx);
},
// removing dash from arrow-head only, but putting it back to the
// intial value after render
_fillArrowHead: function(ctx) {
var isDashEnabled = this.dashEnabled();
if (isDashEnabled) {
this.dashEnabled(false);
}
ctx.fillStrokeShape(this);
this.dashEnabled(isDashEnabled);
}
};