You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tex-compiler/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarythrough.code.tex

36 lines
1.0 KiB

% Copyright 2006 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.
\ProvidesFileRCS{tikzlibrarythrough.code.tex}
\tikzset{circle through/.code={%
\pgfkeysalso{shape=circle,inner sep=0pt,outer sep=0pt}%
% Save transformations (correct?)
\pgfgettransform{\tikz@lib@saved@transform}%
\tikz@scan@one@point\tikz@lib@circle@through#1%
}}%
\def\tikz@lib@circle@through#1{%
\tikz@addoption{%
{%
\pgfsettransform{\tikz@lib@saved@transform}%
\pgf@process{\pgfpointtransformed{#1}}%
\pgf@xa=\pgf@x%
\pgf@ya=\pgf@y%
\pgf@process{\pgfpointtransformed{\tikz@node@at}}%
\advance\pgf@xa by-\pgf@x%
\advance\pgf@ya by-\pgf@y%
\pgfmathparse{2*veclen(\the\pgf@xa,\the\pgf@ya)}%
\global\let\tikz@lib@circle@size=\pgfmathresult%
}%
\pgfset{/pgf/minimum size/.expanded=\tikz@lib@circle@size}%
}%
}%