Canvas: Fix connection hyperbolic bug (#87002)

* Canvas: Connection original persistence check

* Canvas: Fix connection hyperbolic bug
This commit is contained in:
Drew Slobodnjak 2024-04-29 09:16:01 -07:00 committed by GitHub
parent 8d8f19b84f
commit 49fbe970fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -259,8 +259,8 @@ export const ConnectionSVG = ({
if (index < vertices.length - 1) {
// Not also the last point
const nextVertex = vertices[index + 1];
Xn = nextVertex.x * xDist + x1;
Yn = nextVertex.y * yDist + y1;
Xn = nextVertex.x * xDist + xStart;
Yn = nextVertex.y * yDist + yStart;
}
// Length of next segment