change layout change order

This commit is contained in:
AykutSarac 2022-07-23 11:45:45 +03:00
parent ab3413b5bc
commit d1529c50d8

View File

@ -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";