added note tests
This commit is contained in:
4
tests/note/position/.gitignore
vendored
Normal file
4
tests/note/position/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# generated by tytanic, do not edit
|
||||
|
||||
diff/**
|
||||
out/**
|
BIN
tests/note/position/ref/1.png
Normal file
BIN
tests/note/position/ref/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
tests/note/position/ref/2.png
Normal file
BIN
tests/note/position/ref/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
tests/note/position/ref/3.png
Normal file
BIN
tests/note/position/ref/3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
49
tests/note/position/test.typ
Normal file
49
tests/note/position/test.typ
Normal file
@ -0,0 +1,49 @@
|
||||
#set page(width: auto, height: auto)
|
||||
#import "/src/lib.typ": *
|
||||
|
||||
#diagram({
|
||||
_par("a", display-name: "Alice")
|
||||
_par("b", display-name: "Bob")
|
||||
|
||||
_seq("a", "b", comment: [hello])
|
||||
_note("left", [this is a first note])
|
||||
|
||||
_seq("b", "a", comment: [ok])
|
||||
_note("right", [this is another note])
|
||||
|
||||
_seq("b", "b", comment: [I am thinking])
|
||||
_note("left", [a note\ can also be defined\ on several lines])
|
||||
})
|
||||
|
||||
#pagebreak()
|
||||
|
||||
#diagram({
|
||||
_par("a", display-name: "Alice")
|
||||
_par("b", display-name: "Bob")
|
||||
|
||||
_note("over", [initial state of Alice], pos: "a")
|
||||
_note("over", [initial state of Bob], pos: "b")
|
||||
_seq("b", "a", comment: [hello])
|
||||
})
|
||||
|
||||
#pagebreak()
|
||||
|
||||
#diagram({
|
||||
_par("a", display-name: "Alice")
|
||||
_par("b", display-name: "Bob")
|
||||
_par("c", display-name: "Charlie")
|
||||
_par("d", display-name: "Donald")
|
||||
_par("e", display-name: "Eddie")
|
||||
|
||||
_note("across", [This note float above all participants])
|
||||
|
||||
_note("over", [initial state of Alice], pos: "a")
|
||||
_note("over", [initial state of Bob the builder], pos: "b", aligned: true)
|
||||
|
||||
_note("over", [Note 1], pos: "a")
|
||||
_note("over", [Note 2], pos: "b", aligned: true)
|
||||
_note("over", [Note 3], pos: "c", aligned: true)
|
||||
|
||||
_seq("a", "d")
|
||||
_note("over", [this is an extremely long note], pos: ("d", "e"))
|
||||
})
|
Reference in New Issue
Block a user