From c42ab624c2db2c495b88aa6b81d114cc7b0394d9 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 29 Apr 2026 22:00:10 +0100 Subject: [PATCH] Loosen dataflow graph layout --- web/epiphany-graph-viewer/README.md | 2 +- .../src/lib/EpiphanyGraphViewer.tsx | 8 +++++++- web/epiphany-graph-viewer/src/lib/layout.ts | 13 +++++++++---- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/web/epiphany-graph-viewer/README.md b/web/epiphany-graph-viewer/README.md index e515fdb..ee5bbc5 100644 --- a/web/epiphany-graph-viewer/README.md +++ b/web/epiphany-graph-viewer/README.md @@ -58,7 +58,7 @@ export function Screen() { - the viewer lays out each graph with `elkjs` on the client - `architecture` defaults to layered layout -- `dataflow` defaults to stress layout +- `dataflow` defaults to a rightward layered layout with wider stage spacing - links are exposed in the detail pane and through node badges - zoom gates title, purpose, and metadata visibility diff --git a/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx b/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx index ca1fe3d..31e38c0 100644 --- a/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx +++ b/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx @@ -389,10 +389,16 @@ export function EpiphanyGraphViewer({ strokeLinejoin="round" vectorEffect="non-scaling-stroke" /> - {activeTransform.scale > 1.25 && edge.label?.trim() && ( + {(isSelected || isConnected || activeTransform.scale > 1.75) && + edge.label?.trim() && (