added note tests

This commit is contained in:
2025-07-14 19:06:30 +02:00
parent 964d708280
commit 2a46612bfb
19 changed files with 128 additions and 3 deletions

4
tests/note/color/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
# generated by tytanic, do not edit
diff/**
out/**

BIN
tests/note/color/ref/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

13
tests/note/color/test.typ Normal file
View File

@ -0,0 +1,13 @@
#set page(width: auto, height: auto)
#import "/src/lib.typ": *
#diagram({
_par("a", display-name: "Alice")
_par("b", display-name: "Bob")
_note("left", [This is displayed\ left of Alice.], pos: "a", color: rgb("#00FFFF"))
_note("right", [This is displayed right of Alice.], pos: "a")
_note("over", [This is displayed over Alice.], pos: "a")
_note("over", [This is displayed\ over Bob and Alice.], pos: ("a", "b"), color: rgb("#FFAAAA"))
_note("over", [This is yet another\ example of\ a long note.], pos: ("a", "b"))
})