From d1a44d0b0fa2b964d4d8b0872ca6791251a2c858 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Wed, 9 Jul 2025 22:35:37 +0200 Subject: [PATCH] added line-stroke participant param --- src/participant.typ | 6 ++++++ src/renderer.typ | 18 +++--------------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/participant.typ b/src/participant.typ index a9e5572..aa38c37 100644 --- a/src/participant.typ +++ b/src/participant.typ @@ -22,6 +22,11 @@ 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, @@ -37,6 +42,7 @@ invisible: invisible, shape: shape, color: color, + line-stroke: line-stroke, custom-image: custom-image, show-bottom: show-bottom, show-top: show-top diff --git a/src/renderer.typ b/src/renderer.typ index 4f70d02..205ca58 100644 --- a/src/renderer.typ +++ b/src/renderer.typ @@ -432,11 +432,7 @@ draw.line( (x, last-y), (x, line.at(1)), - stroke: ( - dash: "dashed", - paint: gray.darken(40%), - thickness: .5pt - ) + stroke: p.line-stroke ) } lines.push(line) @@ -462,11 +458,7 @@ draw.line( (x, last-y), (x, line.at(1)), - stroke: ( - dash: "dashed", - paint: gray.darken(40%), - thickness: .5pt - ) + stroke: p.line-stroke ) last-y = line.at(1) } else if event == "delay-end" { @@ -486,11 +478,7 @@ draw.line( (x, last-y), (x, y), - stroke: ( - dash: "dashed", - paint: gray.darken(40%), - thickness: .5pt - ) + stroke: p.line-stroke ) // Draw lifeline rectangles (reverse for bottom to top)