d2/e2etests/testdata/files/grid_nested_simple_edges.d2

46 lines
725 B
Text
Raw Permalink Normal View History

direction: right
2023-09-27 23:57:22 +00:00
outer-grid -> outer-container
2023-09-27 22:30:40 +00:00
2023-09-27 23:57:22 +00:00
outer-grid: {
grid-columns: 1
2023-09-27 22:30:40 +00:00
2023-09-27 23:57:22 +00:00
inner-grid -> container -> etc
2023-09-27 22:30:40 +00:00
2023-09-27 23:57:22 +00:00
container: {
label.near: top-left
2023-09-28 00:05:04 +00:00
(** -> **)[*].class: red
# edges on grid descendant now supported
a -> b -> c -> a
d -> e -> g.h.i
d -> f -> g.h
b -> g
2023-09-27 23:57:22 +00:00
}
inner-grid: {
grid-rows: 1
2023-09-28 00:05:04 +00:00
# edges inside another grid now supported
1 -> 2 -> 3: {class: red}
2023-09-27 23:57:22 +00:00
}
}
2023-09-27 22:30:40 +00:00
2023-09-27 23:57:22 +00:00
outer-container: {
grid -> container
grid: {
grid-rows: 1
# direct child edges ok in least nested grid
1 -> 2 -> 3
}
container: {
# non grid edges ok
4 -> 5 -> 6
nested container: {
# nested non grid edges ok
7 -> 8
}
}
}
2023-09-28 00:05:04 +00:00
classes.red.style.stroke: red