Fix arrow width on curved arrows

pull/3/head
Steve Ruiz 2021-06-23 19:00:06 +01:00
rodzic 84827eea96
commit 38534e0798
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -102,7 +102,8 @@ const arrow = registerShapeUtils<ArrowShape>({
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)