refactored participant rendering

This commit is contained in:
2025-07-19 17:13:56 +02:00
parent d6aeb33fa5
commit 5b57a89cdd
13 changed files with 592 additions and 337 deletions

View File

@ -17,35 +17,16 @@
#let _par(
name,
display-name: auto,
from-start: true,
invisible: false,
shape: "participant",
color: DEFAULT-COLOR,
line-stroke: (
dash: "dashed",
paint: gray.darken(40%),
thickness: .5pt
),
custom-image: none,
show-bottom: true,
show-top: true,
..style
) = {
if color == auto {
color = DEFAULT-COLOR
}
return ((
type: "par",
draw: participant.render,
name: name,
display-name: if display-name == auto {name} else {display-name},
from-start: from-start,
invisible: invisible,
shape: shape,
color: color,
line-stroke: line-stroke,
custom-image: custom-image,
show-bottom: show-bottom,
show-top: show-top
invisible: false,
style: style.named()
),)
}