Synchronized sequence not aligned if only one has a comment #21

Open
opened 2025-07-28 22:36:08 +00:00 by HEL · 0 comments
Owner

Sequences in a _sync are not correctly aligned if one has a comment and the other hasn't (or if the comments don't have the same height)

Example

#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])
  })
})

Result

unaligned_sync.png

Sequences in a `_sync` are not correctly aligned if one has a comment and the other hasn't (or if the comments don't have the same height) ## Example ```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]) }) }) ``` ## Result ![unaligned_sync.png](/attachments/4fb22392-1a06-4e92-89cb-a472d696578a)
HEL added this to the 0.3.0 milestone 2025-07-28 22:36:08 +00:00
HEL added the
bug
label 2025-07-28 22:36:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: HEL/chronos#21
No description provided.