Groups don't expand to contain name, description or self sequences #18

Closed
opened 2025-07-28 21:04:19 +00:00 by HEL · 0 comments
Owner

As pointed out by @just-some-bugs in #17:

Group name, descriptions and self sequences contained inside of them are not taken into account when their bounding box is computed, leading to overflow, as shown below

Example

#diagram({
  _grp("My Nice Group", {})
  _grp("", desc: [Description], {})
  _grp("", {
    _seq("a", "a")
    _seq("a", "a", flip: true)
  })
  _grp("", {
    _seq("a", "a", comment: [A comment])
    _seq("a", "a", comment: [A comment], flip: true, comment-align: "start")
  })
})

Result

groups.png

_As pointed out by @just-some-bugs in #17:_ Group name, descriptions and self sequences contained inside of them are not taken into account when their bounding box is computed, leading to overflow, as shown below ## Example ```typ #diagram({ _grp("My Nice Group", {}) _grp("", desc: [Description], {}) _grp("", { _seq("a", "a") _seq("a", "a", flip: true) }) _grp("", { _seq("a", "a", comment: [A comment]) _seq("a", "a", comment: [A comment], flip: true, comment-align: "start") }) }) ``` ## Result ![groups.png](/attachments/29c0fa1a-66fa-4e02-9db9-449f630448e5)
HEL added this to the 0.3.0 milestone 2025-07-28 21:04:19 +00:00
HEL added the
bug
label 2025-07-28 21:04:20 +00:00
HEL closed this issue 2025-07-28 22:18:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: HEL/chronos#18
No description provided.