[latex3-commits] [git/LaTeX3-latex3-latex3] master: Provide an interface for bb control in drawings (9fb6107)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Mar 4 12:07:29 CET 2018


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

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

commit 9fb610717149c4244fc25a691912e54ed060ca4d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Mar 4 11:05:57 2018 +0000

    Provide an interface for bb control in drawings


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

9fb610717149c4244fc25a691912e54ed060ca4d
 l3experimental/l3draw/l3draw-paths.dtx  |    4 ++--
 l3experimental/l3draw/l3draw-scopes.dtx |    6 +++---
 l3experimental/l3draw/l3draw.dtx        |    8 ++++++++
 3 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/l3experimental/l3draw/l3draw-paths.dtx b/l3experimental/l3draw/l3draw-paths.dtx
index 2b5397a..8ac7a02 100644
--- a/l3experimental/l3draw/l3draw-paths.dtx
+++ b/l3experimental/l3draw/l3draw-paths.dtx
@@ -128,7 +128,7 @@
       { \dim_max:nn \g_@@_path_ymax_dim {#2} }
     \dim_gset:Nn \g_@@_path_ymin_dim
       { \dim_min:nn \g_@@_path_ymin_dim {#2} }
-    \bool_if:NT \l_@@_update_bb_bool
+    \bool_if:NT \l_draw_bb_update_bool
       {
         \dim_gset:Nn \g_@@_xmax_dim
           { \dim_max:nn \g_@@_xmax_dim {#1} }
@@ -894,7 +894,7 @@
       }
     \@@_softpath_round_corners:
     \bool_lazy_and:nnT
-      { \l_@@_update_bb_bool }
+      { \l_draw_bb_update_bool }
       { \l_@@_path_use_stroke_bool }
       { \@@_path_use_stroke_bb: }
     \bool_if:NTF \l_@@_path_use_clear_bool
diff --git a/l3experimental/l3draw/l3draw-scopes.dtx b/l3experimental/l3draw/l3draw-scopes.dtx
index 0a6d0f0..629af46 100644
--- a/l3experimental/l3draw/l3draw-scopes.dtx
+++ b/l3experimental/l3draw/l3draw-scopes.dtx
@@ -72,11 +72,11 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{variable}{\l_@@_update_bb_bool}
+% \begin{variable}{\l_draw_bb_update_bool}
 %   Flag to indicate that a path (or similar) should update the bounding box
 %   of the drawing.
 %    \begin{macrocode}
-\bool_new:N \l_@@_update_bb_bool
+\bool_new:N \l_draw_bb_update_bool
 %    \end{macrocode}
 % \end{variable}
 %
@@ -123,7 +123,7 @@
         \driver_draw_begin:
         \@@_reset_bb:
         \@@_path_reset_limits:
-        \bool_set_true:N \l_@@_update_bb_bool
+        \bool_set_true:N \l_draw_bb_update_bool
         \draw_transform_matrix_reset:
         \draw_transform_shift_reset:
         \@@_softpath_clear:
diff --git a/l3experimental/l3draw/l3draw.dtx b/l3experimental/l3draw/l3draw.dtx
index bfb6142..cbce079 100644
--- a/l3experimental/l3draw/l3draw.dtx
+++ b/l3experimental/l3draw/l3draw.dtx
@@ -872,6 +872,14 @@
 %   are given as canvas points.
 % \end{function}
 %
+% \subsection{Bounding box}
+%
+% \begin{variable}{\l_draw_bb_update_bool}
+%   All functions automatically update the bounding box of the image, unless
+%   specified otherwise. This behavior is selectable using the
+%   \cs{l_draw_bb_update_bool} boolean.
+% \end{variable}
+%
 % \subsection{Text}
 %
 % \begin{function}{\draw_hbox_use:N}





More information about the latex3-commits mailing list