From 71bc44538373b52624af7829d39af60fb5715a50 Mon Sep 17 00:00:00 2001 From: Adam L Date: Sun, 25 Mar 2018 16:04:58 -0700 Subject: [PATCH] remove dash from arrow-head --- src/shapes/Arrow.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/shapes/Arrow.js b/src/shapes/Arrow.js index 49c0c16c..bacd676c 100644 --- a/src/shapes/Arrow.js +++ b/src/shapes/Arrow.js @@ -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); } };