Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
19c60c5ecf |
@ -1,18 +1,5 @@
|
||||
#import "example.typ": example
|
||||
|
||||
#let seq-return = example(```
|
||||
_seq(
|
||||
"Bob", "Alice",
|
||||
comment: [hello],
|
||||
enable-dst: true
|
||||
)
|
||||
_seq(
|
||||
"Alice", "Alice",
|
||||
comment: [some action]
|
||||
)
|
||||
_ret(comment: [bye])
|
||||
```)
|
||||
|
||||
#let seq-comm-align = example(```
|
||||
_par("p1", display-name: "Start participant")
|
||||
_par("p2", display-name: "End participant")
|
||||
@ -134,58 +121,15 @@ _sync({
|
||||
})
|
||||
```)
|
||||
|
||||
#let gaps = example(```
|
||||
_par("a", display-name: "Alice")
|
||||
_par("b", display-name: "Bob")
|
||||
#let gaps-seps = example(```
|
||||
_par("alice", display-name: "Alice")
|
||||
_par("bob", display-name: "Bob")
|
||||
|
||||
_seq("a", "b", comment: [message 1])
|
||||
_seq("b", "a", comment: [ok], dashed: true)
|
||||
_gap()
|
||||
_seq("a", "b", comment: [message 2])
|
||||
_seq("b", "a", comment: [ok], dashed: true)
|
||||
_gap(size: 40)
|
||||
_seq("a", "b", comment: [message 3])
|
||||
_seq("b", "a", comment: [ok], dashed: true)
|
||||
```)
|
||||
|
||||
#let seps = example(```
|
||||
_par("a", display-name: "Alice")
|
||||
_par("b", display-name: "Bob")
|
||||
|
||||
_sep[Initialization]
|
||||
_seq("a", "b", comment: [Request 1])
|
||||
_seq(
|
||||
"b", "a",
|
||||
comment: [Response 1],
|
||||
dashed: true
|
||||
)
|
||||
|
||||
_sep[Repetition]
|
||||
_seq("a", "b", comment: [Request 2])
|
||||
_seq(
|
||||
"b", "a",
|
||||
comment: [Response 2],
|
||||
dashed: true
|
||||
)
|
||||
```)
|
||||
|
||||
#let delays = example(```
|
||||
_par("a", display-name: "Alice")
|
||||
_par("b", display-name: "Bob")
|
||||
|
||||
_seq("a", "b", comment: [Auth Request])
|
||||
_delay()
|
||||
_seq(
|
||||
"b", "a",
|
||||
comment: [Auth Response],
|
||||
dashed: true
|
||||
)
|
||||
_delay(name: [5 minutes later])
|
||||
_seq(
|
||||
"b", "a",
|
||||
comment: [Good Bye !],
|
||||
dashed: true
|
||||
)
|
||||
_seq("alice", "bob", comment: "Hello")
|
||||
_gap(size: 10)
|
||||
_seq("bob", "alice", comment: "Hi")
|
||||
_sep("Another day")
|
||||
_seq("alice", "bob", comment: "Hello again")
|
||||
```)
|
||||
|
||||
#let notes-shapes = example(```
|
||||
|
@ -1,15 +1,8 @@
|
||||
/// Creates a separator before the next element
|
||||
/// #examples.seps
|
||||
/// - name (content): Name to display in the middle of the separator
|
||||
#let _sep(name) = {}
|
||||
|
||||
/// Creates a delay before the next element
|
||||
/// #examples.delays
|
||||
/// - name (content, none): Name to display in the middle of the delay area
|
||||
/// - size (int): Size of the delay
|
||||
#let _delay(name: none, size: 30) = {}
|
||||
|
||||
/// Creates a gap before the next element
|
||||
/// #examples.gaps
|
||||
/// - size (int): Size of the gap
|
||||
#let _gap(size: 20) = {}
|
||||
#let _gap(size: 20) = {}
|
||||
|
||||
/// Creates a separator before the next element
|
||||
/// #examples.gaps-seps
|
||||
/// - name (content): Name to display in the middle of the separator
|
||||
#let _sep(name) = {}
|
@ -42,17 +42,6 @@
|
||||
slant: none
|
||||
) = {}
|
||||
|
||||
/// Creates a return sequence
|
||||
/// #examples.seq-return
|
||||
/// - comment (none, content): Optional comment to display along the arrow
|
||||
#let _ret(comment: none) = {}
|
||||
|
||||
/// Accepted values for `comment-align` argument of @@_seq()
|
||||
/// #examples.seq-comm-align
|
||||
#let comment-align = (
|
||||
"start", "end", "left", "center", "right"
|
||||
)
|
||||
|
||||
/// Accepted values for `event` argument of @@_evt()
|
||||
///
|
||||
/// `EVENTS = ("create", "destroy", "enable", "disable")`
|
||||
@ -62,4 +51,10 @@
|
||||
/// #examples.seq-tips
|
||||
#let tips = (
|
||||
"", ">", ">>", "\\", "\\\\", "/", "//", "x", "o",
|
||||
)
|
||||
|
||||
/// Accepted values for `comment-align` argument of @@_seq()
|
||||
/// #examples.seq-comm-align
|
||||
#let comment-align = (
|
||||
"start", "end", "left", "center", "right"
|
||||
)
|
BIN
manual.pdf
BIN
manual.pdf
Binary file not shown.
@ -197,7 +197,7 @@ chronos.diagram({
|
||||
examples: examples
|
||||
)
|
||||
)
|
||||
#tidy.show-module(gap-sep-docs, show-outline: false, sort-functions: none)
|
||||
#tidy.show-module(gap-sep-docs, show-outline: false)
|
||||
|
||||
#pagebreak(weak: true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user