From d6e0fd69604a3ecd88c196e2182b89a8a9312bf7 Mon Sep 17 00:00:00 2001 From: catosaurusrex2003 Date: Sat, 14 Dec 2024 20:24:17 +0530 Subject: [PATCH 1/2] done --- src/utils/dagreUtils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/dagreUtils.ts b/src/utils/dagreUtils.ts index 08316f9..0d465ae 100644 --- a/src/utils/dagreUtils.ts +++ b/src/utils/dagreUtils.ts @@ -16,7 +16,9 @@ export const getLayoutedElements = (nodes: Node[], edges: Edge[], direction = 'L dagreGraph.setEdge(edge.source, edge.target) }) - dagre.layout(dagreGraph) + dagre.layout(dagreGraph, { + disableOptimalOrderHeuristic: true, + }) nodes.forEach((node: Node) => { const nodeId = node.id From 40df70b8749ee1ecde6261dca124d17103d842db Mon Sep 17 00:00:00 2001 From: catosaurusrex2003 Date: Sat, 14 Dec 2024 20:25:23 +0530 Subject: [PATCH 2/2] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3976158..ff3bbb2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schyma", - "version": "1.0.6", + "version": "1.0.7", "description": "JSON Schemas Visualizer React component", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js",