From 3d9e045b5667a9b32c84d39ced99f510a7593abc Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Sun, 25 Aug 2024 15:11:57 +0200 Subject: [PATCH] fixed group sizing with syncs --- TODO.md | 1 + src/utils.typ | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/TODO.md b/TODO.md index 2df6e84..cefe5b4 100644 --- a/TODO.md +++ b/TODO.md @@ -14,6 +14,7 @@ - [x] Slanted arrows - [x] Different types of arrow tips - [x] Sequence comment alignment +- [x] Fix group size with syncs - [ ] Fix column spacing with notes over multiple columns - [ ] Fix notes with arrows from start / to end / small arrows - [ ] Fix group size with self arrows + notes diff --git a/src/utils.typ b/src/utils.typ index 95994df..b4eae86 100644 --- a/src/utils.typ +++ b/src/utils.typ @@ -21,6 +21,10 @@ let (i0, i1) = get-group-span(participants, elmt) min-i = calc.min(min-i, i0) max-i = calc.max(max-i, i1) + } else if elmt.type == "sync" { + let (i0, i1) = get-group-span(participants, elmt) + min-i = calc.min(min-i, i0) + max-i = calc.max(max-i, i1) } } return (min-i, max-i)