Skip to content

Tb Internal Diagonal

A symmetric fan-out inside a `%%metro direction: TB` section: the hub centres over its two branch stations, which sit on X tracks either side of it, so both internal edges route as 45-degree diagonals (the `_route_tb_internal` diagonal arm) (#917).

Mermaid source
examples/topologies/tb_internal_diagonal.mmd
%%metro title: TB Internal Diagonal
%%metro style: dark
%%metro line: a | A | #e63946
%%metro line: b | B | #0570b0
%%metro grid: source | 0,0
%%metro grid: work | 1,0
graph LR
subgraph source [Source]
s1[Start]
s2[End]
s1 -->|a,b| s2
end
subgraph work [Work]
%%metro direction: TB
%%metro entry: top | a,b
hub[Demux]
left[Lane A]
right[Lane B]
hub -->|a,b| left
hub -->|a,b| right
end
s2 -->|a,b| hub
CLI command
Terminal window
nf-metro render examples/topologies/tb_internal_diagonal.mmd -o tb_internal_diagonal.svg
Rendered map
TB Internal Diagonal 1 2 Start Demux Lane A End Lane B A B created with nf-metro v1.1.0+dev