File: defshape2.block

package info (click to toggle)
msc-generator 8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 180,648 kB
  • sloc: cpp: 133,265; yacc: 23,546; ansic: 7,210; sh: 4,512; lex: 2,028; makefile: 1,085
file content (21 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
defstyle block [text.color=white, shadow.offset=5, shadow.color=lgray, shadow.blur=2, fill.color="51,153,255", fill.color2="0,51,204", fill.gradient=up];

template cell two_small_boxes {
    box main: [text.gap.left=10, imargin=5];
    box sm1: [width=20, height=main@20%, center=main@left, top=main@20%, shadow.offset=0];
    box sm2: [width=20, height=main@20%, center=main@left, top=main@60%, shadow.offset=0];
    join main+sm1+sm2 [line.type=, shadow.offset=5, shadow.color=lgray, shadow.blur=2];
}
use col;
copy two_small_boxes as A {
    update main:Application\nComponent; 
    update sm1,sm2 [color=red, fill.color2=red-50];
}
space;
row {
    box B:Service 1;
    box C:Service 2;
}
A.sm1@left--B [routing=curvy];
A--C;