1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
# pgf-umlsd package
# Matthew Bertucci 4/7/2022 for v0.6
#include:tikz
# loads arrows and shadows tikzlibraries
#include:ifthen
#keyvals:\usepackage/pgf-umlsd#c
underline#true,false
roundedcorners#true,false
#endkeyvals
\begin{sequencediagram}#\pictureHighlight
\end{sequencediagram}
\newthread{name}{text}
\newthread[color]{name}{text}
\newinst{name}{text}
\newinst[edge distance]{name}{text}
\begin{call}{caller}{function}{callee}{return value}
\begin{call}[height%plain]{caller}{function}{callee}{return value}
\end{call}
\begin{messcall}{caller}{function}{callee}
\begin{messcall}[height%plain]{caller}{function}{callee}
\end{messcall}
\messcall{caller}{function}{callee}#S
\messcall[height%plain]{caller}{function}{callee}#S
\mess{caller}{message%text}{callee}
\mess[delay]{caller}{message%text}{callee}
\begin{sdblock}{caption%text}{description%text}
\begin{sdblock}[color]{caption%text}{description%text}
\end{sdblock}
\prelevel
\postlevel
\begin{callself}{caller}{function}{return value}
\begin{callself}[height%plain]{caller}{function}{return value}
\end{callself}
\setthreadbias{anchor%keyvals}
#keyvals:\setthreadbias#c
center
west
east
#endkeyvals
\begin{callanother}{caller}{function}{callee}{return value}#*
\begin{callanother}[height%plain]{caller}{function}{callee}{return value}#*
\end{callanother}#*
\blockcolor#*
\blockcomm#*
\blockname#*
\drawthread{anchor1}{anchor2}#*
\returnvalue#*
\theblocklevel#*
\thecallevel#*
\thecallselflevel#*
\theinstnum#*
\thepreinst#*
\theseqlevel#*
\thethreadnum#*
\threadbias#*
|