Commit 4cf5939
committed
fix: search zoom coordinates, rewrite matrix as directory-level drill-down
Search fix:
- Use sigma.getNodeDisplayData() + viewportToGraph() for camera zoom
instead of raw graph attributes. The ForceAtlas2 coordinates don't
map directly to sigma's camera space.
- Also fixed double-click zoom using same approach
- 100ms delay before camera animate so reducer applies first
Matrix rewrite:
- Default view now shows directory-to-directory relationships (~15 dirs)
instead of 239 files. Actually readable and useful.
- Each cell shows the number of imports between directories
- Click a directory row to drill into file-level within that directory
- Back button to return to directory overview
- Cell sizes scale with matrix size for readability
- Numbers visible in cells for non-zero values
- Hover tooltip shows full paths and import count
- Circular dependency detection at both directory and file level1 parent 9b6f21f commit 4cf5939
4 files changed
Lines changed: 339 additions & 228 deletions
File tree
- frontend/src/components/DependencyGraph
- GraphView
- MatrixView
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
55 | 54 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
0 commit comments