Anchors and lines¶
Every shape has named connection points called anchors. The eight compass
names cover the edges and corners — .n, .ne, .e, .se, .s,
.sw, .w, .nw. Draw a line
between two anchors to join shapes exactly where you want:
Position something a fraction of the way between two shapes with between.
Here a caption sits at the midpoint (1/2) of the gap:
Between positioning
A: box "left" with .nw at (20, 60)
B: box "right" with .nw at (320, 60)
text "syncs with" align center textsize 12 at between(A, B, 1/2)
Putting anchors to work, here is a three-tier chain wired edge to edge:
Anchored chain
Web: box "web"
App: box "app"
DB: box "db"
line from Web.e to App.w
line from App.e to DB.w
Next: let SheepText place shapes with Automatic layout, then see authored route paths in the Syntax reference.