Groups don't expand to contain notes #13

Closed
opened 2025-07-14 19:50:01 +00:00 by HEL · 1 comment
Owner

Groups containing notes don't take their size into account, often leading to overflow, as shown below

Example

#diagram({
  _grp("Group", {
    _seq("a", "b", comment: [Sequence])
    _note("left")[Note]
  })
  _grp("Group", {
    _seq("b", "a", comment: [Sequence])
    _note("right")[Note]
  })
  _grp("Group", {
    _seq("a", "b", comment: [Sequence], start-tip: ">")
    _note("over", pos: ("a", "b"), lorem(5))
  })
})

Result

group_notes.png

Groups containing notes don't take their size into account, often leading to overflow, as shown below ## Example ```typ #diagram({ _grp("Group", { _seq("a", "b", comment: [Sequence]) _note("left")[Note] }) _grp("Group", { _seq("b", "a", comment: [Sequence]) _note("right")[Note] }) _grp("Group", { _seq("a", "b", comment: [Sequence], start-tip: ">") _note("over", pos: ("a", "b"), lorem(5)) }) }) ``` ## Result ![group_notes.png](/attachments/69170a18-34c1-4e9b-a765-f4e96aafe0e2)
HEL added this to the 0.3.0 milestone 2025-07-14 19:50:01 +00:00
HEL added the
bug
label 2025-07-14 19:50:01 +00:00
Author
Owner

This also affects neighboring participants
Note widths are not taken into account when computing column widths

PlantUML's behavior lets note overlap neighboring participants. Chronos could let user decide whether notes should behave as shown below or reserve space to avoid overlaps

#diagram({
  _par("a")
  _par("b")
  _par("c")
  _seq("b", "c")
  _note("left")[Note]
})

issue13.png

~This also affects neighboring participants Note widths are not taken into account when computing column widths~ PlantUML's behavior lets note overlap neighboring participants. Chronos could let user decide whether notes should behave as shown below or reserve space to avoid overlaps ```typst #diagram({ _par("a") _par("b") _par("c") _seq("b", "c") _note("left")[Note] }) ``` ![issue13.png](/attachments/601c95f3-b784-4ede-869e-393d441af92b)
HEL closed this issue 2025-07-16 16:53:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: HEL/chronos#13
No description provided.