File: exF0.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 (13 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
##Precise alignment and margins
##alignment multiple @ margin imargin
##You can use more than one block combined with a '+' sign to align to via the 'left', 'right', 'top', 'bottom', 'middle' and 'center' attributes. In that case the bounding box of all the blocks is used. Furthermore, you can use the @ symbol afterwards to select what part of the bounding box to align to. You can use all of its sides, all of its sides with margins, percents, m+percent, etc.##The 'margin' attribute sets the margin on all sides, 'margin.bottom', 'margin.left', etc. attributes impact only one side. The 'imargin' attribute likewise control the "inner margin", which is the spacing between the content of a block and its outline.
box [imargin=0, margin=0,
     line.type=none, fill.color=lgray] {
    box A;
    below rightof box B;
}
box C [middle=A+B, mleft=A+B@100%];
box CC [top=A+B@-10%, mleft=A+B@m100%];
box D [middle=A+B, mright=A+B@m0%];
box E [center=A+B, mtop=A+B@90%];
box F [center=A+B, mbottom=A+B@mtop];