implemented aligned notes
This commit is contained in:
Binary file not shown.
@ -74,10 +74,19 @@
|
||||
#chronos.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("over", [initial state of Alice], pos: "a")
|
||||
_note("over", [initial state of Bob], pos: "b", aligned: true)
|
||||
_seq("b", "a", comment: [hello])
|
||||
_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"))
|
||||
})
|
||||
|
||||
#pagebreak()
|
||||
@ -111,4 +120,19 @@
|
||||
_note("over", [
|
||||
#underline([This is hosted], stroke: rgb("#FF33FF")) by #box(baseline: 50%, image("gitea.png", width: 1cm, height: 1cm, fit: "contain"))
|
||||
], pos: ("a", "b"))
|
||||
})
|
||||
})
|
||||
|
||||
// TODO
|
||||
/*
|
||||
#pagebreak()
|
||||
|
||||
#chronos.diagram({
|
||||
_par("a", display-name: [Alice])
|
||||
_par("b", display-name: [Bob])
|
||||
|
||||
_seq("a", "b", comment: [Hello])
|
||||
_note("left", [This is a note])
|
||||
|
||||
_seq("[", "a", comment: [Test])
|
||||
_note("left", [This is also a note])
|
||||
})*/
|
Reference in New Issue
Block a user