Skip to content

Tighten min edge length to label width + small margin#56

Merged
mvalancy merged 1 commit into
developfrom
fix/min-edge-tighten
Jun 14, 2026
Merged

Tighten min edge length to label width + small margin#56
mvalancy merged 1 commit into
developfrom
fix/min-edge-tighten

Conversation

@mvalancy

Copy link
Copy Markdown
Member

Follow-up to the edge-geometry work — the minimum edge length used each card's half-diagonal (~100px), leaving a far bigger gap than the label needs. Now it uses the per-angle border reach so the border-to-border gap = label width + a small 14px margin, at any angle (direction passed through to the minEdge force + drag clamp via cached _minLen). Label-width estimate made slightly generous so the gap never under-shoots the rendered label.

Verified (geometry diagnostic): drag-clamp centerDist 306→274; flow cluster minClearSpan 120 ≥ maxLabelW 106, 0 overflowing / 0 overlapping. web units 19, THE GATE 5/5, perf 3/3. 🤖 Generated with Claude Code

…uffer)

minEdgeLength used the half-DIAGONAL of each card (~100px) as the node
projection, leaving a far larger gap than the edge label needs. Use the
per-angle border reach instead (borderReach, mirrors rectBorderPoint) so the
border-to-border gap = labelWidth + a small 14px margin, at any angle. Pass the
edge direction through from the link-distance accessor (the minEdge force and
drag clamp reuse the cached _minLen). Also make the label-width estimate
slightly generous so the gap never under-shoots the rendered label.

Verified (geometry diagnostic): drag-clamp centerDist 306->274; flow cluster
minClearSpan 120 >= maxLabelW 106 with 0 overflowing / 0 overlapping. web units
19 (new borderReach tests), THE GATE 5/5, perf 3/3.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🧪 Comprehensive Test Suite

  • Unit suites (Node 18.x & 20.x) — core, web, server, mcp-server: ✅ passed
  • Installer & deploy config: ✅ passed

Full-stack smoke gate runs in the CI workflow.

@mvalancy mvalancy merged commit a86b374 into develop Jun 14, 2026
16 checks passed
@mvalancy mvalancy deleted the fix/min-edge-tighten branch June 14, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant