mirror of
https://github.com/konvajs/konva.git
synced 2025-11-24 08:46:44 +08:00
Merge branch 'feature/arrow' of https://github.com/seethroughtrees/konva into seethroughtrees-feature/arrow
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user