fixed group sizing with syncs

This commit is contained in:
Louis Heredero 2024-08-25 15:11:57 +02:00
parent eb05c41810
commit 3d9e045b56
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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)