restructured code in separated files
This commit is contained in:
@ -10,7 +10,7 @@ Alice <-- Bob: Another authentication Response
|
||||
|
||||
|
||||
#chronos.diagram({
|
||||
import "/src/diagram.typ": *
|
||||
import chronos: *
|
||||
_seq("Alice", "Bob", comment: "Authentication Request")
|
||||
_seq("Bob", "Alice", comment: "Authentication Response", dashed: true)
|
||||
|
||||
@ -19,19 +19,19 @@ Alice <-- Bob: Another authentication Response
|
||||
})
|
||||
|
||||
#chronos.diagram({
|
||||
import "/src/diagram.typ": *
|
||||
import chronos: *
|
||||
_seq("Bob", "Alice", comment: "bonjour", color: red)
|
||||
_seq("Alice", "Bob", comment: "ok", color: blue)
|
||||
})
|
||||
|
||||
#chronos.diagram({
|
||||
import "/src/diagram.typ": *
|
||||
import chronos: *
|
||||
_seq("Alice", "Bob", comment: "This is a test")
|
||||
_seq("Alice", "Callum", comment: "This is another test with a long text")
|
||||
})
|
||||
|
||||
#chronos.diagram({
|
||||
import "/src/diagram.typ": *
|
||||
import chronos: *
|
||||
_seq("Alice", "Bob", comment: "Authentication Request")
|
||||
_seq("Bob", "Alice", comment: "Authentication Failure")
|
||||
|
||||
@ -45,7 +45,7 @@ Alice <-- Bob: Another authentication Response
|
||||
})
|
||||
|
||||
#chronos.diagram({
|
||||
import "/src/diagram.typ": *
|
||||
import chronos: *
|
||||
_sep("Initialization")
|
||||
_seq("Alice", "Bob", comment: "Authentication Request")
|
||||
_seq("Bob", "Alice", comment: "Authentication Response", dashed: true)
|
||||
@ -56,7 +56,7 @@ Alice <-- Bob: Another authentication Response
|
||||
})
|
||||
|
||||
#chronos.diagram({
|
||||
import "/src/diagram.typ": *
|
||||
import chronos: *
|
||||
_seq("Alice", "Bob", comment: "message 1")
|
||||
_seq("Bob", "Alice", comment: "ok", dashed: true)
|
||||
_gap()
|
||||
@ -68,7 +68,7 @@ Alice <-- Bob: Another authentication Response
|
||||
})
|
||||
|
||||
#chronos.diagram({
|
||||
import "/src/diagram.typ": *
|
||||
import chronos: *
|
||||
_seq("Alice", "Alice", comment: "On the\nright")
|
||||
_seq("Alice", "Alice", flip: true, comment: "On the\nleft")
|
||||
})
|
Reference in New Issue
Block a user