refactored notes rendering

This commit is contained in:
2025-07-28 21:07:57 +02:00
parent e8666d466b
commit 6385762696
7 changed files with 82 additions and 42 deletions

View File

@@ -70,7 +70,8 @@
h = calc.max(
h,
..seq.linked-notes.map(n => {
note.get-size(n).height / 2
let nt = ctx.notes.at(n.id)
note.get-size(nt).height / 2
})
)
ctx.y -= h
@@ -354,7 +355,8 @@
end-info.y = calc.min(
end-info.y,
y0 - calc.max(..seq.linked-notes.map(n => {
let m = note.get-size(n)
let nt = ctx.notes.at(n.id)
let m = note.get-size(nt)
return m.height / 2
}))
)