% !TeX root = tikz-ext-manual.tex
% !TeX spellcheck = en_US
% Copyright 2023 by Qrrbrbirlbel
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Free Documentation License.
%
\section{Autobending}
\label{library:topaths.autobend}
\begin{tikzlibrary}{ext.topaths.autobend}
This library provides various bended |to| paths
that bend in the specified direction.
The keys \referenceKeyandIndexO{bend left}
and \referenceKeyandIndexO{bend left} from \tikzname\
bend the requested curve in relation of the connecting
coordinates/nodes.
The keys provided by this library bend the curve in the direction relative
to the paper (north, south, west and east) or relative to the current
coordinate system (up, down, left and right).
\begin{key}{/\tikzext/autobend north=\meta{angle} (default \normalfont last value)}
Works like the |bend left| and |bend right| options
but bends the curve to the top of the page (i.\,e. it ignores the current transformation).
\end{key}
\begin{key}{/\tikzext/autobend south=\meta{angle} (default \normalfont last value)}
Works like |autobend north| but bends the curve to the bottom of the page.
\end{key}
\begin{key}{/\tikzext/autobend west=\meta{angle} (default \normalfont last value)}
Works like |autobend north| but bends the curve to the left of the page.
\end{key}
\begin{key}{/\tikzext/autobend east=\meta{angle} (default \normalfont last value)}
Works like |autobend north| but bends the curve to the right of the page.
\end{key}
\begin{key}{/\tikzext/autobend up=\meta{angle} (default \normalfont last value)}
Works like the |bend left| and |bend right| options
but bends the curve upwards (i.\,e. it observes the current transformation).
\end{key}
\begin{key}{/\tikzext/autobend down=\meta{angle} (default \normalfont last value)}
Works like |autobend up| but bends the curve downwards.
\end{key}
\begin{key}{/\tikzext/autobend left=\meta{angle} (default \normalfont last value)}
Works like |autobend up| but bends the curve leftwards.
\end{key}
\begin{key}{/\tikzext/autobend right=\meta{angle} (default \normalfont last value)}
Works like |autobend up| but bends the curve rightwards.
\end{key}