From 44817d66859ed792dfa8acd7fd74f8ecc29c0aa5 Mon Sep 17 00:00:00 2001 From: headlessdev Date: Sat, 19 Apr 2025 14:26:42 +0200 Subject: [PATCH] Adjust flowchart spacing constants for improved layout and readability --- app/api/flowchart/route.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/api/flowchart/route.ts b/app/api/flowchart/route.ts index 3cdc532..4874d16 100644 --- a/app/api/flowchart/route.ts +++ b/app/api/flowchart/route.ts @@ -45,15 +45,15 @@ const NODE_WIDTH = 220; const NODE_HEIGHT = 60; const APP_NODE_WIDTH = 160; const APP_NODE_HEIGHT = 40; -const HORIZONTAL_SPACING = 800; // Stark erhöht für mehr Hauptabstand -const VERTICAL_SPACING = 150; // Vergrößerter Basisabstand +const HORIZONTAL_SPACING = 700; +const VERTICAL_SPACING = 80; const START_Y = 120; const ROOT_NODE_WIDTH = 300; const CONTAINER_PADDING = 40; -const COLUMN_SPACING = 300; // Vergrößerter Seitenabstand -const VM_APP_SPACING = 250; // Vergrößerter App-Abstand -const MIN_VM_SPACING = 10; // Mindestabstand auch bei leeren VMs -const APP_ROW_SPACING = 30; // Abstand zwischen App-Nodes +const COLUMN_SPACING = 220; +const VM_APP_SPACING = 220; +const MIN_VM_SPACING = 10; +const APP_ROW_SPACING = 15; export async function GET() { try {