mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
remove dash from arrow-head
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