From ef60e29da366d4a51acf1c16c3803101a6cdf715 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 16 Mar 2026 14:42:48 -0700 Subject: [PATCH] feat(rflows): richer 4-layer demo with overflow cascading down and back up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Redesign both demo presets with deeper multi-layer funnel networks: - demoNodes: 3 sources → treasury → 3 domains → 5 teams → 11 outcomes - simDemoNodes: 2 sources → treasury → 4 domains → 4 sub-teams → 10 outcomes - Overflow paths create visible bidirectional flow (down and back up) - Wider spacing between nodes for breathing room - River view: larger layout constants (layer height, gaps, segment length) Co-Authored-By: Claude Opus 4.6 --- modules/rflows/components/folk-flow-river.ts | 16 +- modules/rflows/lib/presets.ts | 557 +++++++++++++------ 2 files changed, 382 insertions(+), 191 deletions(-) diff --git a/modules/rflows/components/folk-flow-river.ts b/modules/rflows/components/folk-flow-river.ts index 8b689c5..27b8cec 100644 --- a/modules/rflows/components/folk-flow-river.ts +++ b/modules/rflows/components/folk-flow-river.ts @@ -29,16 +29,16 @@ interface BranchLayout { sourceId: string; targetId: string; percentage: number; // ─── Constants ─────────────────────────────────────────── -const LAYER_HEIGHT = 160; -const WATERFALL_HEIGHT = 120; -const GAP = 40; +const LAYER_HEIGHT = 180; +const WATERFALL_HEIGHT = 140; +const GAP = 50; const MIN_RIVER_WIDTH = 24; const MAX_RIVER_WIDTH = 100; const MIN_WATERFALL_WIDTH = 4; -const SEGMENT_LENGTH = 200; -const POOL_WIDTH = 100; -const POOL_HEIGHT = 60; -const SOURCE_HEIGHT = 40; +const SEGMENT_LENGTH = 220; +const POOL_WIDTH = 110; +const POOL_HEIGHT = 65; +const SOURCE_HEIGHT = 45; const COLORS = { sourceWaterfall: "#10b981", @@ -520,7 +520,7 @@ class FolkFlowRiver extends HTMLElement { this.shadow.innerHTML = `