chronos/gallery/example1.typ

31 lines
919 B
Plaintext
Raw Normal View History

2024-06-18 11:39:38 +00:00
#import "/src/lib.typ" as chronos
#chronos.from-plantuml(```plantuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
```)
#chronos.diagram({
import "/src/diagram.typ": *
_seq("Alice", "Bob", comment: "Authentication Request")
2024-06-18 11:51:01 +00:00
_seq("Bob", "Alice", comment: "Authentication Response", dashed: true)
2024-06-18 11:39:38 +00:00
_seq("Alice", "Bob", comment: "Another authentication Request")
2024-06-18 11:51:01 +00:00
_seq("Bob", "Alice", comment: "Another authentication Response", dashed: true)
})
#chronos.diagram({
import "/src/diagram.typ": *
_seq("Bob", "Alice", comment: "bonjour", color: red)
_seq("Alice", "Bob", comment: "ok", color: blue)
2024-06-18 12:11:03 +00:00
})
#chronos.diagram({
import "/src/diagram.typ": *
_seq("Alice", "Bob", comment: "This is a test")
_seq("Alice", "Callum", comment: "This is another test with a long text")
2024-06-18 11:39:38 +00:00
})