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
A group with nothing inside still draws its frame. It is sized to hold one box, so a region you have named but not yet filled stays visible, and it takes its place in the flow like any other shape:
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.