| 1 |
% Copyright 2018 by Till Tantau |
| 2 |
% |
| 3 |
% This file may be distributed and/or modified |
| 4 |
% |
| 5 |
% 1. under the LaTeX Project Public License and/or |
| 6 |
% 2. under the GNU Public License. |
| 7 |
% |
| 8 |
% See the file doc/generic/pgf/licenses/LICENSE for more details. |
| 9 |
|
| 10 |
\ProvidesFileRCS{tikzlibrarysvg.path.code.tex} |
| 11 |
|
| 12 |
\usepgflibrary{svg.path}% |
| 13 |
|
| 14 |
\def\tikz@svg@path vg{\pgfutil@ifnextchar[\tikz@svg@@path{\tikz@svg@@path[]}}%}% |
| 15 |
|
| 16 |
\def\tikz@svg@@path[#1]{\pgfutil@ifnextchar"{\tikz@svg@@path@old{#1}}{\tikz@svg@@path@new{#1}}}% |
| 17 |
\def\tikz@svg@@path@new#1#2{\tikz@svg@@path@old{#1}"#2"}% |
| 18 |
\def\tikz@svg@@path@old#1"#2"{ |
| 19 |
{% |
| 20 |
\tikzset{#1}% |
| 21 |
\pgfpathsvg{#2}% |
| 22 |
}% |
| 23 |
{ |
| 24 |
\pgftransforminvert |
| 25 |
\pgf@process{\pgfpointtransformed{\pgfqpoint{\pgf@path@lastx}{\pgf@path@lasty}}} |
| 26 |
} |
| 27 |
\tikz@lastx=\pgf@x% |
| 28 |
\tikz@lasty=\pgf@y% |
| 29 |
\tikz@lastxsaved=\tikz@lastx% |
| 30 |
\tikz@lastysaved=\tikz@lasty% |
| 31 |
\tikz@updatecurrenttrue% |
| 32 |
\tikz@scan@next@command |
| 33 |
}% |