Files
vpn-dns-gateway/demo/tikzrefinery/documents/assets/design-diagrams/class-edit-service.tex
T
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

27 lines
1.4 KiB
TeX

\begin{tikzpicture}
\node[umlDetail,text width=16cm] {
\textbf{tkrEditService}\quad\textit{final; GUI-independent support service}
\nodepart{second}
\textbf{Responsibilities}\\
Delegate rectangle geometry to its provider; constrain built-in segments.\\
Validate provider identity, operation invariants and host constraints.\\
Prepare only changed-coordinate replacements with exact decimal addition.\\
Share the parser's stroke envelope; never mutate source, history or widgets.
\nodepart{third}
\textbf{State and dependencies}\\
Stateless; owned by value in \texttt{tkrEditorController}.\\
Borrowed inputs: element, gesture, mapper, extent and source bytes.\\
\texttt{ShapeGeometryLimits}: $0.01$ cm minimum; six-decimal offsets.\\
\texttt{GestureGeometry}: operation result and two TikZ positions.
\nodepart{fourth}\ttfamily
\normalfont\textbf{Public operations}\ttfamily\\
+ prepareGeometry(element: const ElementRecord\&, drag: const DragUpdate\&,\\
\hspace*{1em}mapper: const tkrCoordinateMapper\&, extent: const ComparisonExtent\&,\\
\hspace*{1em}pShapeProvider: const tkrShapeProvider* = nullptr)\\
\hspace*{1em}const: GestureGeometry\\
+ prepareEdits(element: const ElementRecord\&, baSource: const QByteArray\&,\\
\hspace*{1em}geometry: const GestureGeometry\&, vecEdits: QVector<CoordinateEdit>\&)\\
\hspace*{1em}const: OperationResult
};
\end{tikzpicture}