Files
vpn-dns-gateway/demo/tikzrefinery/documents/assets/use-case-diagrams/uc-004-history.tex
vsun1 27b82c169e
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
Add frozen TikZRefinery demo baseline and build pipeline
2026-11-25 22:46:33 -05:00

29 lines
1.5 KiB
TeX

\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-004}\\Undo or redo an edit};
\node[ucNote,below=0.7cm of goal] (normal) {
\textbf{Main interaction}\par
The author chooses Undo or Redo. Cancel any active drag preview, restore
the exact recorded source, update history and saved/unsaved state, and
refresh the canvas from the accepted source.
};
\node[ucNote,below=0.55cm of normal] (alternative) {
\textbf{Alternative: history unavailable or restoration fails}\par
Disable an unavailable action. If restoration fails, report the failure
and preserve source and history position. A later compilation failure after successful Save
reports diagnostics without reversing an accepted restoration.
};
\node[ucNote,below=0.55cm of alternative] (outcome) {
\textbf{Outcome}\par
One completed edit is undone or redone with exact source bytes.
Disk remains unchanged until Save; the interface shows whether current
source differs from the saved baseline.
};
\draw[ucBoundary] (2,-1 |- outcome.south) ++(0,-0.45) rectangle (12.1,1.65);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.25) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- ++(0,-0.25) -| (normal.north);
\draw[ucAnnotation] (goal.east) -- (11.9,0) |- (alternative.east);
\draw[ucAnnotation] (goal.west) -- (2.15,0) |- (outcome.west);
\end{tikzpicture}