Groups don't expand to contain notes #13

Open
opened 2025-07-14 19:50:01 +00:00 by HEL · 0 comments
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
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.