| 1 |
% Copyright 2018 by Mark Wibrow |
| 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 |
\usetikzlibrary{decorations}% |
| 11 |
\usepgflibrary{decorations.pathreplacing}% |
| 12 |
|
| 13 |
|
| 14 |
\def\tikz@lib@dec@installinputsegmentpoints{% |
| 15 |
\pgf@process{\pgf@decorate@inputsegment@first}% |
| 16 |
\edef\tikzinputsegmentfirst{\the\pgf@x,\the\pgf@y}% |
| 17 |
% |
| 18 |
\pgf@process{\pgf@decorate@inputsegment@last}% |
| 19 |
\edef\tikzinputsegmentlast{\the\pgf@x,\the\pgf@y}% |
| 20 |
% |
| 21 |
\pgf@process{\pgf@decorate@inputsegment@supporta}% |
| 22 |
\edef\tikzinputsegmentsupporta{\the\pgf@x,\the\pgf@y}% |
| 23 |
% |
| 24 |
\pgf@process{\pgf@decorate@inputsegment@supportb}% |
| 25 |
\edef\tikzinputsegmentsupportb{\the\pgf@x,\the\pgf@y}% |
| 26 |
}% |
| 27 |
|
| 28 |
\pgfkeys{ |
| 29 |
/pgf/decoration/.cd, |
| 30 |
moveto code/.code=\def\pgfdecoratedinputsegmentmovetocode{\tikz@lib@dec@installinputsegmentpoints#1}, |
| 31 |
lineto code/.code=\def\pgfdecoratedinputsegmentlinetocode{\tikz@lib@dec@installinputsegmentpoints#1}, |
| 32 |
curveto code/.code=\def\pgfdecoratedinputsegmentcurvetocode{\tikz@lib@dec@installinputsegmentpoints#1}, |
| 33 |
closepath code/.code=\def\pgfdecoratedinputsegmentclosepathcode{\tikz@lib@dec@installinputsegmentpoints#1} |
| 34 |
}% |
| 35 |
|
| 36 |
\endinput |