refactored notes

This commit is contained in:
2025-07-14 17:02:16 +02:00
parent 3a1c274e83
commit b1ad3b98d2
5 changed files with 183 additions and 176 deletions

View File

@ -1,6 +1,7 @@
#import "../utils.typ": get-ctx, set-ctx
#import "../../consts.typ": *
#import "../../cetz.typ": draw, vector
#import "note.typ"
#let get-arrow-marks(sym, color) = {
@ -166,7 +167,7 @@
let y0 = start-info.y
if "linked-note" in seq {
// TODO: adapt note.render
note.render(seq.linked-note, y: start-info.y)
(seq.linked-note.draw)(seq.linked-note, y: start-info.y, forced: true)
}
let flip-mark = end-info.i <= start-info.i