d2/e2etests/testdata/files/nesting_power.d2

98 lines
1.6 KiB
Text
Raw Normal View History

2023-09-28 22:51:51 +00:00
l: Left Constant Near {
direction: right
near: center-left
2023-09-28 22:18:45 +00:00
default -> layout -> here
2023-09-28 22:51:51 +00:00
default: {
direction: right
dagre -- elk -- tala: or
}
default.* -> layout: runs this
2023-09-28 22:18:45 +00:00
here: {
grid-columns: 3
this -> is
2023-09-28 22:51:51 +00:00
this: {
grid-rows: 5
row 1 -> row 2 -> row 3 -> row 4 -> row 5
}
is -> grid: A {style.font-size: 24}
grid: {
shape: sequence_diagram
with -> a -> sequence diagram -> you can
you can: {
grid-rows: 2
grid-columns: 2
grid-gap: 0
have
another
grid: {
grid-rows: 3
horizontal-gap: 10
vertical-gap: 20
1 -> 2 -> 3
}
here and: {
shape: sequence_diagram
continue -> nesting
}
}
}
this.row 2 -> is.child of is.grandchild: {class: green}
# this.row 2 -> grid.you can
}
here.this.row 5 -> default.dagre: straight edge across {class: green}
here.this.row 1 <- default.tala: straight edge across nested types {class: green}
}
center -> directions: default layout
directions: {
grid-rows: 3
r: right {
direction: right
1 -> 2 -> 3
2 -> 4
}
l: left {
direction: left
1 -> 2 -> 3
2 -> 4
}
v: "" {
grid-columns: 2
grid-gap: 0
u: up {
direction: up
1 -> 2 -> 3
2 -> 4
}
d: down {
direction: down
1 -> 2 -> 3
2 -> 4
}
2023-09-28 22:18:45 +00:00
}
}
2023-09-28 22:51:51 +00:00
# center -> tl
r: Right Constant Near {
near: center-right
grid-columns: 5
is -> constant.n -> and -> also.a -> grid
constant.n: near
}
classes.green.style.stroke: green