Groups¶
Group related shapes inside square brackets to draw a labelled container. A group has a name, a body, and a label after the closing bracket:
A labelled group
Region: [
A1: box "service" with .nw at (120, 100)
] "Region Alpha" fill #1d4ed8
Groups nest, and each group carries its own label and styling. Names inside a group can be referenced from outside it — for example to draw a line between two regions:
Nested groups
Campus: [
RegionA: [
A1: box "a1"
] "Region Alpha" fill #1d4ed8
RegionB: [
B1: box "b1"
] "Region Beta" fill #7c3aed
] "Campus Services" fill #0f172a textsize 16 bold
L1: line from RegionA to RegionB
Next: let SheepText place shapes for you with Automatic layout.