[latex3-commits] [git/LaTeX3-latex3-latex3] main: Clip path is __kernel for dvisvgm (0d861f348)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Dec 14 07:21:18 CET 2021
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/0d861f3485aed87ca9c65370d0d05db33d9c2700
>---------------------------------------------------------------
commit 0d861f3485aed87ca9c65370d0d05db33d9c2700
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Dec 14 06:20:56 2021 +0000
Clip path is __kernel for dvisvgm
>---------------------------------------------------------------
0d861f3485aed87ca9c65370d0d05db33d9c2700
l3backend/l3backend-box.dtx | 10 +++++-----
l3backend/l3backend-draw.dtx | 12 ++++++------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/l3backend/l3backend-box.dtx b/l3backend/l3backend-box.dtx
index dc592e2fc..6a7b54540 100644
--- a/l3backend/l3backend-box.dtx
+++ b/l3backend/l3backend-box.dtx
@@ -337,7 +337,7 @@
% \end{macrocode}
%
% \begin{macro}{\@@_backend_clip:N}
-% \begin{variable}{\g_@@_clip_path_int}
+% \begin{variable}{\g__kernel_clip_path_int}
% Clipping in SVG is more involved than with other backends. The first issue
% is that the clipping path must be defined separately from where it is used,
% so we need to track how many paths have applied. The naming here uses
@@ -349,9 +349,9 @@
% \begin{macrocode}
\cs_new_protected:Npn \@@_backend_clip:N #1
{
- \int_gincr:N \g_@@_clip_path_int
+ \int_gincr:N \g__kernel_clip_path_int
\__kernel_backend_literal_svg:x
- { < clipPath~id = " l3cp \int_use:N \g_@@_clip_path_int " > }
+ { < clipPath~id = " l3cp \int_use:N \g__kernel_clip_path_int " > }
\__kernel_backend_literal_svg:x
{
<
@@ -390,7 +390,7 @@
\__kernel_backend_scope:x
{
clip-path =
- "url ( \c_hash_str l3cp \int_use:N \g_@@_clip_path_int ) "
+ "url ( \c_hash_str l3cp \int_use:N \g__kernel_clip_path_int ) "
}
\__kernel_backend_scope:n
{
@@ -404,7 +404,7 @@
\box_use:N #1
\__kernel_backend_scope_end:
}
-\int_new:N \g_@@_clip_path_int
+\int_new:N \g__kernel_clip_path_int
% \end{macrocode}
% \end{variable}
% \end{macro}
diff --git a/l3backend/l3backend-draw.dtx b/l3backend/l3backend-draw.dtx
index 6cc7f5847..50ea71a5f 100644
--- a/l3backend/l3backend-draw.dtx
+++ b/l3backend/l3backend-draw.dtx
@@ -884,10 +884,10 @@
{
\bool_if:NTF \g_@@_draw_clip_bool
{
- \int_gincr:N \g_@@_clip_path_int
+ \int_gincr:N \g__kernel_clip_path_int
\@@_backend_literal:x
{
- < clipPath~id = " l3cp \int_use:N \g_@@_clip_path_int " >
+ < clipPath~id = " l3cp \int_use:N \g__kernel_clip_path_int " >
{ ?nl }
<path~d=" \g_@@_draw_path_tl "/> { ?nl }
< /clipPath > { ? nl }
@@ -900,7 +900,7 @@
\__kernel_backend_scope:x
{
clip-path =
- "url( \c_hash_str l3cp \int_use:N \g_@@_clip_path_int)"
+ "url( \c_hash_str l3cp \int_use:N \g__kernel_clip_path_int)"
}
}
{
@@ -929,10 +929,10 @@
{
\bool_if:NT \g_@@_draw_clip_bool
{
- \int_gincr:N \g_@@_clip_path_int
+ \int_gincr:N \g__kernel_clip_path_int
\@@_backend_literal:x
{
- < clipPath~id = " l3cp \int_use:N \g_@@_clip_path_int " >
+ < clipPath~id = " l3cp \int_use:N \g__kernel_clip_path_int " >
{ ?nl }
<path~d=" \g_@@_draw_path_tl "/> { ?nl }
< /clipPath >
@@ -940,7 +940,7 @@
\__kernel_backend_scope:x
{
clip-path =
- "url( \c_hash_str l3cp \int_use:N \g_@@_clip_path_int)"
+ "url( \c_hash_str l3cp \int_use:N \g__kernel_clip_path_int)"
}
}
\tl_gclear:N \g_@@_draw_path_tl
More information about the latex3-commits
mailing list.