Skip to content

Commit 7dbd277

Browse files
committed
fixes broken loops on big nodes
1 parent e975d2a commit 7dbd277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nakar-client-web/src/lib/d3/D3Calculator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class D3Calculator {
121121
y1,
122122
x2,
123123
y2,
124-
d.isLoop ? curvAmount * 4 : d.parallelIndex * curvAmount,
124+
d.isLoop ? curvAmount + d.source.radius : d.parallelIndex * curvAmount,
125125
);
126126

127127
return {

0 commit comments

Comments
 (0)