minor style improvements

This commit is contained in:
2024-06-21 18:14:40 +02:00
parent 0cff9d6799
commit 2c724598e9
9 changed files with 35 additions and 7 deletions

View File

@ -120,7 +120,7 @@
let m = measure(box(par.display-name))
let f = if i1 > i2 {-1} else {1}
end-info.x -= (m.width + PAR-PAD.last() * 2) / 2pt * f
shapes += participant.render(x-pos, par, y: y)
shapes += participant.render(x-pos, par, y: y - CREATE-OFFSET)
}
end-info.ll-lvl = lifelines.at(i2).level * LIFELINE-W / 2
@ -146,11 +146,13 @@
let style = (
mark: (
start: get-arrow-marks(elmt.start-tip, elmt.color),
end: get-arrow-marks(elmt.end-tip, elmt.color)
end: get-arrow-marks(elmt.end-tip, elmt.color),
scale: 1.2
),
stroke: (
dash: if elmt.dashed {"dashed"} else {"solid"},
paint: elmt.color
dash: if elmt.dashed {(2pt,2pt)} else {"solid"},
paint: elmt.color,
thickness: .5pt
)
)
@ -217,6 +219,7 @@
lifelines.at(i2) = dst-line
}
if elmt.create-dst {
y -= CREATE-OFFSET
let dst-line = lifelines.at(i2)
dst-line.lines.push(("create", y))
lifelines.at(i2) = dst-line