fixed group width containing notes

This commit is contained in:
2025-07-16 18:45:10 +02:00
parent 0b401df67d
commit caad9ed823
3 changed files with 37 additions and 9 deletions

View File

@ -104,4 +104,14 @@
#let get-ctx(func) = draw.get-ctx(c => {
let ctx = c.shared-state.chronos
func(ctx)
})
#let expand-parent-group(x0, x1) = set-ctx(ctx => {
if ctx.groups.len() != 0 {
let group = ctx.groups.last()
group.min-x = calc.min(group.min-x, x0)
group.max-x = calc.max(group.max-x, x1)
ctx.groups.last() = group
}
return ctx
})