Fix for points to rearrange function for issue when using dagre

This commit is contained in:
Knut Sveidqvist
2024-10-16 13:52:06 +02:00
parent 3b5ca1c638
commit c7adb37a1f

View File

@@ -431,8 +431,6 @@ export const insertEdge = function (elem, edge, clusterDb, diagramType, startNod
const tail = startNode;
var head = endNode;
const pointsStr = btoa(JSON.stringify(points));
if (head.intersect && tail.intersect) {
points = points.slice(1, edge.points.length - 1);
points.unshift(tail.intersect(points[0]));
@@ -447,6 +445,7 @@ export const insertEdge = function (elem, edge, clusterDb, diagramType, startNod
);
points.push(head.intersect(points[points.length - 1]));
}
const pointsStr = btoa(JSON.stringify(points));
if (edge.toCluster) {
log.info('to cluster abc88', clusterDb.get(edge.toCluster));
points = cutPathAtIntersect(edge.points, clusterDb.get(edge.toCluster).node);