[latex3-commits] [git/LaTeX3-latex3-latex3] master: l3draw: Several driver passthroughs (a97b538)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Feb 13 21:46:38 CET 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/a97b538b75ad68fbda541d5358d260d185228817

>---------------------------------------------------------------

commit a97b538b75ad68fbda541d5358d260d185228817
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Feb 13 20:46:38 2018 +0000

    l3draw: Several driver passthroughs
    
    The only work here is that at the higher level we allow
    fp expressions.


>---------------------------------------------------------------

a97b538b75ad68fbda541d5358d260d185228817
 l3trial/l3draw/l3draw-state.dtx |   27 +++++++++++++++++++++
 l3trial/l3draw/l3draw.dtx       |   50 +++++++++++++++++++++++++++++++++++++--
 2 files changed, 75 insertions(+), 2 deletions(-)

diff --git a/l3trial/l3draw/l3draw-state.dtx b/l3trial/l3draw/l3draw-state.dtx
index e1015fa..f89b551 100644
--- a/l3trial/l3draw/l3draw-state.dtx
+++ b/l3trial/l3draw/l3draw-state.dtx
@@ -90,6 +90,33 @@
 %    \end{macrocode}
 % \end{macro}
 %
+% \begin{macro}{\draw_miterlimit:n}
+%   Pass through to the driver layer.
+%    \begin{macrocode}
+\cs_new_protected:Npn \draw_miterlimit:n #1
+  { \driver_draw_miterlimit:n { \fp_to_dim:n {#1} } }
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}
+%   {
+%     \draw_cap_butt:, \draw_cap_rectangle:, \draw_cap_round:,
+%     \draw_evenodd_rule:, \draw_nonzero_rule:,
+%     \draw_join_bevel:, \draw_join_miter:, \draw_join_round:
+%   }
+%   All straight wrappers.
+%    \begin{macrocode}
+\cs_new_protected:Npn \draw_cap_butt: { \driver_draw_cap_butt: }
+\cs_new_protected:Npn \draw_cap_rectangle: { \driver_draw_cap_rectangle: }
+\cs_new_protected:Npn \draw_cap_round: { \driver_draw_cap_round: }
+\cs_new_protected:Npn \draw_evenodd_rule: { \driver_draw_evenodd_rule: }
+\cs_new_protected:Npn \draw_nonzero_rule: { \driver_draw_nonzero_rule: }
+\cs_new_protected:Npn \draw_join_bevel: { \driver_draw_join_bevel: }
+\cs_new_protected:Npn \draw_join_miter: { \driver_draw_join_miter: }
+\cs_new_protected:Npn \draw_join_round: { \driver_draw_join_round: }
+%    \end{macrocode}
+% \end{macro}
+%
 %    \begin{macrocode}
 %</initex|package>
 %    \end{macrocode}
diff --git a/l3trial/l3draw/l3draw.dtx b/l3trial/l3draw/l3draw.dtx
index 40f4ec0..82b7db5 100644
--- a/l3trial/l3draw/l3draw.dtx
+++ b/l3trial/l3draw/l3draw.dtx
@@ -60,15 +60,61 @@
 %   \end{syntax}
 % \end{function}
 %
-% \subsection{Settings}
+% \subsection{Graphics state}
 %
 % \begin{function}{\g_draw_linewidth_default_dim}
+%   The default value of the linewidth for stokes, set at the start
+%   of every drawing (\cs{draw_begin:}).
 % \end{function}
 %
 % \begin{function}{\draw_linewidth:n, \draw_inner_linewidth:n}
 %   \begin{syntax}
-%     \cs{draw_linewidth:n} \Arg{dim}
+%     \cs{draw_linewidth:n} \Arg{fp expr}
 %   \end{syntax}
+%   Sets the width to be used for stroking to \meta{fp expr} in \texttt{pt}.
+% \end{function}
+%
+% \begin{function}{\draw_nonzero_rule:, \draw_evenodd_rule:}
+%   \begin{syntax}
+%     \cs{draw_nonzero_rule:}
+%   \end{syntax}
+%   Active either the non-zero winding number or the even-odd rule,
+%   respectively, for determining what is inside a fill or clip area.
+%   For technical reasons, these command are not influenced by scoping
+%   and apply on an ongoing basis.
+% \end{function}
+%
+% \begin{function}
+%   {
+%     \draw_cap_butt:      ,
+%     \draw_cap_rectangle: ,
+%     \draw_cap_round:
+%   }
+%   \begin{syntax}
+%     \cs{draw_cap_butt:}
+%   \end{syntax}
+%   Sets the style of terminal stroke position to one of butt, rectangle or
+%   round.
+% \end{function}
+%
+% \begin{function}
+%   {
+%     \draw_join_bevel: ,
+%     \draw_join_miter: ,
+%     \draw_join_round:
+%   }
+%   \begin{syntax}
+%     \cs{draw_cap_butt:}
+%   \end{syntax}
+%   Sets the style of stroke joins to one of bevel, miter or round.
+% \end{function}
+%
+% \begin{function}{\draw_miterlimit:n}
+%   \begin{syntax}
+%     \cs{draw_miterlimit:n} \Arg{fp expr}
+%   \end{syntax}
+%   Sets the miter limit of lines joined as a miter, as described in the
+%   PDF and PostScript manuals.
 % \end{function}
 %
 % \subsection{Points}





More information about the latex3-commits mailing list