Merge branch 'feature/arrow' of https://github.com/seethroughtrees/konva into seethroughtrees-feature/arrow

This commit is contained in:
Anton Lavrenov
2018-04-02 09:34:33 +07:00

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);
}
};