Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

feat: update layouting & update elkjs config

AykutSarac4bae8c4b7d37
diff --git a/src/components/Graph/index.tsx b/src/components/Graph/index.tsx
index fcebf98e..e9590681 100644
--- a/src/components/Graph/index.tsx
+++ b/src/components/Graph/index.tsx
@@ -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}