From 38534e0798624fcec6dfe329980a163955021b40 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Wed, 23 Jun 2021 19:00:06 +0100 Subject: [PATCH] Fix arrow width on curved arrows --- state/shape-utils/arrow.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/state/shape-utils/arrow.tsx b/state/shape-utils/arrow.tsx index e3835af75..b9186de57 100644 --- a/state/shape-utils/arrow.tsx +++ b/state/shape-utils/arrow.tsx @@ -102,7 +102,8 @@ const arrow = registerShapeUtils({ const strokeWidth = +styles.strokeWidth - const sw = strokeWidth * (style.dash === DashStyle.Solid ? 1 : 1.618) + const sw = + strokeWidth * (style.dash === DashStyle.Solid && bend === 0 ? 1 : 1.618) const arrowDist = vec.dist(start.point, end.point)