#1436 Correcting intersection calculations for circles

This commit is contained in:
Knut Sveidqvist
2020-05-30 18:04:46 +02:00
parent 3bdb9f289f
commit b76e833ea5
5 changed files with 24 additions and 18 deletions

View File

@@ -116,8 +116,13 @@ export const insertEdge = function(elem, e, edge, clusterDb, diagramType, graph)
if (head.intersect && tail.intersect) {
points = points.slice(1, edge.points.length - 1);
points.unshift(tail.intersect(points[0]));
logger.info(
'Last point',
points[points.length - 1],
head,
head.intersect(points[points.length - 1])
);
points.push(head.intersect(points[points.length - 1]));
}
if (edge.toCluster) {