mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
remove dash from arrow-head
This commit is contained in:
parent
514e60122b
commit
71bc445383
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user