File: exC5.block

package info (click to toggle)
msc-generator 8.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180,484 kB
  • sloc: cpp: 129,931; yacc: 23,655; ansic: 7,464; sh: 5,026; makefile: 948
file content (11 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
##Aligning blocks middle
##align middle compound
##Here we nest blocks 2 level deep. The middle level is a block called 'BC' that groups blocks 'B' and 'C' - with some margins.##This allows aligning box 'A' to the middle of 'B' and 'C' using the 'middle' attribute of 'A'. This attribute aligns the vertical centerline of the two blocks.##You can avoid defining 'BC' by simply saying 'middle=B+C'.
box A [middle=BC];
box: Container [line.corner=round] {
    col BC {
        box B, C;
    }
}
A -> B,C;