feat: update layouting & update elkjs config

This commit is contained in:
AykutSarac 2023-07-25 20:57:49 +03:00
parent 900e560242
commit 4bae8c4b7d
No known key found for this signature in database

View File

@ -184,6 +184,10 @@ export const Graph = ({ isWidget = false }: GraphProps) => {
height={paneHeight}
width={paneWidth}
direction={direction}
layoutOptions={{
"elk.layered.compaction.postCompaction.strategy": "EDGE_LENGTH",
"elk.layered.nodePlacement.strategy": "NETWORK_SIMPLEX",
}}
onLayoutChange={onLayoutChange}
onCanvasClick={onCanvasClick}
node={memoizedNode}