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 |