Skip to content

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

change layout change order

AykutSaracd1529c50d85c
diff --git a/src/containers/Editor/LiveEditor/helpers.ts b/src/containers/Editor/LiveEditor/helpers.ts
index f93b498a..43a53475 100644
--- a/src/containers/Editor/LiveEditor/helpers.ts
+++ b/src/containers/Editor/LiveEditor/helpers.ts
@@ -62,13 +62,13 @@ export function getEdgeNodes(
export function getNextLayout(layout: CanvasDirection) {
switch (layout) {
case "RIGHT":
- return "UP";
+ return "DOWN";
- case "UP":
+ case "DOWN":
return "LEFT";
case "LEFT":
- return "DOWN";
+ return "UP";
default:
return "RIGHT";