当bending
库被加载时,double
箭头不再附着在线上。
\documentclass[tikz,border=5mm]{standalone}
\usetikzlibrary{bending}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[]
% Old arrows library prior to Tikz 3.0
\begin{scope}[>=latex]
\draw (90:1.5)--(0,0)--(0:1.5);
\draw [blue,,->] (0:5mm)arc[start angle=0,delta angle=90,radius=5mm];
\draw [red,double,->] (0:10mm)arc[start angle=0,delta angle=90,radius=10mm];
\node[align=left,anchor=west] at (0,-1){With old library\\ arrows no bug};
\end{scope}
% New arrows.meta library introduced with Tikz 3.0
\begin{scope}[>={Triangle[]},xshift=4cm]
\draw (90:1.5)--(0,0)--(0:1.5);
\draw [blue,,->] (0:5mm)arc[start angle=0,delta angle=90,radius=5mm];
\draw [red,double,->] (0:10mm)arc[start angle=0,delta angle=90,radius=10mm];
\end{scope}
\begin{scope}[>=Stealth,xshift=6cm]
\draw (90:1.5)--(0,0)--(0:1.5);
\draw [blue,,->] (0:5mm)arc[start angle=0,delta angle=90,radius=5mm];
\draw [red,double,->] (0:10mm)arc[start angle=0,delta angle=90,radius=10mm];
\node[align=left,anchor=center] at (0,-1){With new library\\ arrows.meta: bug};
\end{scope}
\end{tikzpicture}
\end{document}