| 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{tikzlibrarythrough.code.tex} |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
\tikzset{circle through/.code={% |
| 15 |
\pgfkeysalso{shape=circle,inner sep=0pt,outer sep=0pt}% |
| 16 |
% Save transformations (correct?) |
| 17 |
\pgfgettransform{\tikz@lib@saved@transform}% |
| 18 |
\tikz@scan@one@point\tikz@lib@circle@through#1% |
| 19 |
}}% |
| 20 |
|
| 21 |
\def\tikz@lib@circle@through#1{% |
| 22 |
\tikz@addoption{% |
| 23 |
{% |
| 24 |
\pgfsettransform{\tikz@lib@saved@transform}% |
| 25 |
\pgf@process{\pgfpointtransformed{#1}}% |
| 26 |
\pgf@xa=\pgf@x% |
| 27 |
\pgf@ya=\pgf@y% |
| 28 |
\pgf@process{\pgfpointtransformed{\tikz@node@at}}% |
| 29 |
\advance\pgf@xa by-\pgf@x% |
| 30 |
\advance\pgf@ya by-\pgf@y% |
| 31 |
\pgfmathparse{2*veclen(\the\pgf@xa,\the\pgf@ya)}% |
| 32 |
\global\let\tikz@lib@circle@size=\pgfmathresult% |
| 33 |
}% |
| 34 |
\pgfset{/pgf/minimum size/.expanded=\tikz@lib@circle@size}% |
| 35 |
}% |
| 36 |
}% |