File: exE9.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 (16 lines) | stat: -rw-r--r-- 1,160 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
##Precise block alignment
##align block percent use col draw_before coordinate
##Use the 'use col;' command to achieve column layout. This applies the 'col' design to all subsequent blocks. This design adjusts default alignment to be below the previous block horizontally centered. The 'use draw_before=A;' command will apply the 'draw_before=A' attribute to all subsequent blocks and arrows, which will make then be drawn in the background.##You can specify alignment in the percentage of a block's horizontal/vertical span using the @<percent> syntax. 'A@0%' means the top or left of block 'A', 'A@50%' means its middle and 'A@100%' means its bottom/right side. You can go above 100% and below 0%.##Use the '()' syntax to specify arrow coordinates. Omitting one of the coordinates will make it equal to that of the other end of the arrow.
use col;
box A;
box: Aligned to left of A [left=A@0%];
box: A Bit right [left=A@10%];
box: Right by a quarter of A [left=A@25%];
box: Right by a half of A [left=A@50%];
box: Aligned to right of A [left=A@100%];
box: Beyond the right of A [left=A@150%];

use draw_before=A;
(A@left,A)..(,A+300);
(A@right,A)..(,A+300);