From fb27886b44a4d3948cbdd1af42c28f420b121563 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Wed, 21 Oct 2026 18:33:24 +0100 Subject: [PATCH] docs(app): keep the graph edge layer within its 160-line budget Join two doc-comment lines without changing the painter; the file is now 160 lines, matching the item's stated source budget. --- app/lib/features/graph/painting/graph_edge_layer.dart | 5 ++--- app/notes/P2-edge.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/lib/features/graph/painting/graph_edge_layer.dart b/app/lib/features/graph/painting/graph_edge_layer.dart index 418eb492..3ce7d053 100644 --- a/app/lib/features/graph/painting/graph_edge_layer.dart +++ b/app/lib/features/graph/painting/graph_edge_layer.dart @@ -111,9 +111,8 @@ class GraphEdgePainter extends CustomPainter { return path; } - /// A filled triangle whose tip is exactly [EdgeRoute.targetPort]. - /// - /// The direction follows the route's last segment, so forward, backward, + /// A filled triangle whose tip is exactly [EdgeRoute.targetPort]. The + /// direction follows the route's last segment, so forward, backward, /// same-rank and self-loop edges keep their honest arrival direction. A /// degenerate tail falls back to the target port's inward normal. Path arrowPath(EdgeRoute route) { diff --git a/app/notes/P2-edge.md b/app/notes/P2-edge.md index 7e02849d..78c69953 100644 --- a/app/notes/P2-edge.md +++ b/app/notes/P2-edge.md @@ -8,7 +8,7 @@ committed the candidate on `flutter/p2-edge-layer` and merged `main`. | File | Lines | Responsibility | | --- | --- | --- | -| `lib/features/graph/painting/graph_edge_layer.dart` | 161 | `GraphEdgeLayer` widget + `GraphEdgePainter` path/arrow painting | +| `lib/features/graph/painting/graph_edge_layer.dart` | 160 | `GraphEdgeLayer` widget + `GraphEdgePainter` path/arrow painting | | `test/features/graph/painting/edge_layer_fixtures.dart` | 41 | hand-built routes and arrival helper for the tests | | `test/features/graph/painting/graph_edge_geometry_test.dart` | 240 | path and arrow geometry, routed forward/self-loop/cycle edges, a hand-built backward route and an off-port tip case | | `test/features/graph/painting/graph_edge_layer_test.dart` | 190 | draw calls, clip, hit-test transparency, style colors, repaint rules, widget size |