Wrong alt group bounds with a return #6

Open
opened 2025-01-11 12:01:20 +00:00 by HEL · 0 comments
Owner

When an alt group contains a return element, it seems like the bounding participants are not ordered correctly

This MRE shows how the alt group seems flipped:

#import "@preview/chronos:0.2.0": diagram, _seq, _ret, _alt, _col, _par

#set page(width: auto, height: auto, margin: 1cm)

= Expected result

#diagram({
  _par("A")
  _par("B")
  _col("A", "B", width: 3cm)
  _seq("A", "B", enable-dst: true)
  _alt([desc], {
    _seq("B", "A", disable-src: true, dashed: true)
  })
})

#pagebreak()

= Actual result

#diagram({
  _par("A")
  _par("B")
  _col("A", "B", width: 3cm)
  _seq("A", "B", enable-dst: true)
  _alt([desc], {
    _ret()
  })
})
When an alt group contains a return element, it seems like the bounding participants are not ordered correctly This MRE shows how the alt group seems flipped: ```typ #import "@preview/chronos:0.2.0": diagram, _seq, _ret, _alt, _col, _par #set page(width: auto, height: auto, margin: 1cm) = Expected result #diagram({ _par("A") _par("B") _col("A", "B", width: 3cm) _seq("A", "B", enable-dst: true) _alt([desc], { _seq("B", "A", disable-src: true, dashed: true) }) }) #pagebreak() = Actual result #diagram({ _par("A") _par("B") _col("A", "B", width: 3cm) _seq("A", "B", enable-dst: true) _alt([desc], { _ret() }) }) ```
HEL added the
bug
label 2025-01-11 12:01:20 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HEL/chronos#6
No description provided.