Hidden
Set Hidden on a node or an edge to take it off the canvas while it stays in your lists. Hiding a node also hides every edge attached to it, so folding part of a graph away needs only the nodes named; fitting the view leaves hidden nodes out unless IncludeHiddenNodes asks for them.
Press Tab to move between the nodes and edges of the diagram.
Press Enter or Space to select it, Shift with Enter to add it to the selection, the arrow keys to move the selected nodes, Delete to remove them and Escape to clear the selection. Press C to start a connection from it.
Press Enter or Space to select it, Delete to remove it and Escape to clear the selection. Press C to move its end to another node.
bit BlowTry it
- Tick hide the middle row: nodes 2 and 3 disappear and take all four edges with them, since every edge touches one of them. Untick it and everything comes back as it was.
- Tick hide edge 3 → 4 on its own: just that edge goes, with both of its nodes still on screen.
- With the row hidden, press Fit visible nodes: the view closes in on nodes 1 and 4 alone. Press Fit with hidden nodes: it widens again to leave room for nodes 2 and 3. The control bar's fit button fits the visible nodes.
- While the row is hidden, click the background and press Ctrl+A: only nodes 1 and 4 are selected. The minimap leaves the hidden nodes out too.
How it works
BlowNode.Hidden = truekeeps the node inNodes, where your code still sees it, but leaves it out of rendering, selection, box selection, select-all, connecting, fit-view, alignment guides, the minimap and keyboard nudges.- An edge with a hidden end is not drawn: there is nothing left for it to be a line between. So the checkbox names only the two nodes, and does no bookkeeping over
Edges. BlowEdge.Hiddenhides a single edge and leaves its nodes alone.FitViewAsyncwith aBlowFitViewOptionsskips hidden nodes unlessIncludeHiddenNodesis true;Durationeases the view there.- The layout helpers still place hidden nodes (
LayoutAsyncskips them). A node with children can be collapsed withSetCollapsedAsyncinstead, which keeps the edges to the outside: see the Layouts and Collapsing example.