#19530: modify the lineage alignment algorithm to tree view (#19659)

* modify the lineage alignment algorithm to tree view

* added layout reference link
This commit is contained in:
Ashish Gupta 2025-02-05 14:22:37 +05:30 committed by GitHub
parent dba1fe9fd2
commit fd705d5ed4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,11 +217,12 @@ export const getLayoutedElements = (
return { node: uNode, edge: edgesRequired };
};
// Layout options for the elk graph https://eclipse.dev/elk/reference/algorithms/org-eclipse-elk-mrtree.html
const layoutOptions = {
'elk.algorithm': 'layered',
'elk.algorithm': 'mrtree',
'elk.direction': 'RIGHT',
'elk.layered.spacing.edgeNodeBetweenLayers': '50',
'elk.spacing.nodeNode': '60',
'elk.spacing.nodeNode': '100',
'elk.layered.nodePlacement.strategy': 'SIMPLE',
};