-
Notifications
You must be signed in to change notification settings - Fork 528
/
Copy pathoverview.d2
61 lines (53 loc) · 1010 Bytes
/
overview.d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
input: |d2
# D2 script
hello -> world
|
input -> compiler
compiler: {
width: 300
height: 100
style: {
fill: "#7B90D2"
font-color: white
}
}
compiler -> graph
graph: Graph\n(shapes & connections) {
shape: oval
style.fill: "#A8D8B9"
}
configs -> graph mods
graph -> graph mods -> layout
# Set Dimensions -> Use ruler to measure all texts -> measured graph
# Set Dimensions -> Use given, premeasured dimensions -> measured graph
# measured graph: {
# shape: oval
# style.fill: honeydew
# }
#
# measured graph -> layout engine -> positioned graph
#
# positioned graph: {
# shape: oval
# style.fill: honeydew
# }
#
# positioned graph -> exporter -> diagram
#
# diagram: finalized diagram (styled) {
# shape: oval
# style.fill: honeydew
# }
#
# diagram -> render SVG
#
# render SVG -> use sketch post processor: optional
#
# use sketch post processor -> SVG bytes
#
# SVG bytes: {
# shape: oval
# style.fill: honeydew
# }
#
# SVG bytes -> screenshot for PNG: optional