added show-top / -bottom options to participants

This commit is contained in:
2024-08-20 23:19:43 +02:00
parent b9bbe6f93d
commit eb05c41810
4 changed files with 22 additions and 5 deletions

View File

@ -21,7 +21,9 @@
invisible: false,
shape: "participant",
color: rgb("#E2E2F0"),
custom-image: none
custom-image: none,
show-bottom: true,
show-top: true,
) = {
return ((
type: "par",
@ -31,7 +33,9 @@
invisible: invisible,
shape: shape,
color: color,
custom-image: custom-image
custom-image: custom-image,
show-bottom: show-bottom,
show-top: show-top
),)
}

View File

@ -218,7 +218,7 @@
// Draw participants (start)
for p in participants {
if p.from-start and not p.invisible {
if p.from-start and not p.invisible and p.show-top {
shapes += draw-par(p)
}
}
@ -417,7 +417,9 @@
}
// Draw participants (end)
draw-par(p, y: y, bottom: true)
if p.show-bottom {
draw-par(p, y: y, bottom: true)
}
}
})