Dependency edges
This guide is also in the app, under Help › Guide. The dotted names are buttons, panels and options there: in the app, clicking one lights up its place in the window. That only works in the app.
When you switch on for a repository, Code Canvas reads every file with tree-sitter. It draws an edge for each pair of files where one depends on the other. For example:
- TypeScript's
import { f } from './b', Rust'suse crate::b, Python'sfrom b import f. - A class extending a class from another file, or implementing its interface.
- A stylesheet or asset a file loads, or a file named in a configuration.
Which way edges run
An edge leaves a file from its right side. It enters the file it depends on from that file's left side. So edges run from the file that imports to the file it imports. The layout reads left to right for the same reason.
Choosing which edges show
The panel lists the kinds of edges found, such as imports, uses and inherits. It shows how many there are of each.
- to remove its edges. The layout then ignores them too.
- to hide its edges. The layout still counts them. While edges are hidden, a notice at the bottom right of the canvas says so. Its × shows them again.
- Press a box or an eye and drag down the rows to change the others the pointer passes, too.
- Hover a kind to light up its edges. Select a file to light up its own.
can leave out , and . sets and . sets how thick the edges are and how they fade.
Draws a relationship kind, and lays out by it, or leaves it out: the layout glides to its new arrangement.
In the app:
Takes a kind's edges out of sight with nothing moving (its eye in the Edges view); the layout still counts them, and the selection's still show.
In the app:
Pairs whose every reference is to a type.
In the app:
From an importer straight to the file declaring what a barrel passes on.
In the app:
To and from files that re-export others.
In the app:
Edges a comparison added in green and removed in red.
In the app:
Off, edges with neither end in view fade as you zoom in.
In the app:
Names the selection's off-screen files at the canvas's edge; a click goes there.
In the app:
Names the selected symbol's off-screen places at the canvas's edge.
In the app:
Arrowheads at the importer for dependency edges, at each place for a language server's answer.
In the app:
Edges whose target is left of their source, against the layout's flow, in red, brighter, wider and whole.
In the app:
How thick merged edges get, how faint they get zoomed out, how long edges fade in the middle, and thinning crowded edges.
In the app: