Skip to content

Region

A region is a colored background block that groups a set of cells. Use it to visually bundle nodes that belong together — a layer in an architecture diagram, a trust boundary, a phase of a flow.

Regions render behind everything else. Nodes and connectors sit on top untouched.

Reusing the quickstart diagram

quickstart-02-grid-3x3 (SVG, frame 1)

Each row here has its own region (Public, App, Data). The tint is subtle — enough to delineate without competing with the nodes for attention.

Basic syntax

region <@pos | @span>+ ["<label>"] [attr=value ...] [{ body }]
  • @A1 — a single cell (a 1×1 region). Numeric @1,1 also works.
  • @A1:B2 — a rectangular range (both ends inclusive, Excel-style). Numeric @1,1:2,2 is equivalent. - is accepted as an older separator (@A1-B2) but : reads cleanly.
  • Multiple @ entries form a single compound shape (must connect by edge; see below)
  • Optional quoted string is a label placed near a corner
  • Trailing attributes override color / radius / labelScale

Key rules

  1. Ranges are inclusive@A1:C1 covers three cells (A1, B1, C1), not two.
  2. Entries must connect — when you list multiple @ entries, they have to share an edge (4-neighbor adjacency). Two disjoint rectangles aren't a single region; the parser rejects it.
  3. Cells must exist — an entry that extends past columns or rows is an integrity error.

Where to next

  • Spanning — single range vs multi-entry (L / T / blob shapes)
  • Styling — theme colors, auto-tint, alpha override, corner radius
Edit this pageLast updated: