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.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user