fixed sync alignment with unequal elements
All checks were successful
CI / tests (push) Successful in 18s

fixes #21
This commit is contained in:
2026-01-21 15:20:26 +01:00
parent a7db89b214
commit 34ec00768f
5 changed files with 75 additions and 5 deletions

View File

@@ -0,0 +1,37 @@
#set page(width: auto, height: auto)
#import "/src/lib.typ": *
#diagram({
_par("a")
_par("b")
_par("c")
_sync({
_seq("b", "a")
_seq("b", "c")
})
_gap()
_sync({
_seq("b", "a", comment: [Comment])
_seq("b", "c")
})
_gap()
_sync({
_seq("b", "a")
_seq("b", "c", comment: [Comment])
})
_gap()
_sync({
_seq("b", "a", comment: [Two\ lines])
_seq("b", "c", comment: [Comment])
})
_sync({
_seq("b", "a")
_seq("b", "c", slant: 10)
})
_sync({
_seq("b", "a")
_seq("b", "b")
})
})