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

@@ -1,7 +1,7 @@
#import "/src/cetz.typ": draw
#import "/src/consts.typ": *
#import "/src/core/utils.typ": get-ctx, set-ctx
#import "/src/core/utils.typ": get-ctx, set-ctx, expand-parent-group
#let get-size(note) = {
let PAD = if note.shape == "hex" {NOTE-HEX-PAD} else {NOTE-PAD}
@@ -159,5 +159,7 @@
return c
})
}
expand-parent-group(x0, x2)
})
}