![如何去除带箭头的路径的突出部分?](https://linux22.com/image/458769/%E5%A6%82%E4%BD%95%E5%8E%BB%E9%99%A4%E5%B8%A6%E7%AE%AD%E5%A4%B4%E7%9A%84%E8%B7%AF%E5%BE%84%E7%9A%84%E7%AA%81%E5%87%BA%E9%83%A8%E5%88%86%EF%BC%9F.png)
此代码来自我之前帖子的回答。箭头很好,但如果我想通过设置将箭头移动到路径的末尾,mark = at position 1
仍然有一个突出的部分,看起来不太好看。
有什么办法可以删除这个部分吗?
\documentclass[tikz, border=1cm]{standalone}
\usepackage[american, siunitx, RPvoltages]{circuitikz}
\usetikzlibrary{decorations.markings, arrows.meta}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{tikzpicture}
\ctikzset{inductors/scale=0.5, capacitors/scale=0.5, sources/scale=0.5, switches/scale=0.5}
\draw (0,0) coordinate (start) node[ocirc]{} to [cute open switch]
++(1,0) to [cute inductor, l^=$L$] ++(1,0) to [short]++(0.5,0) node[ocirc]{} coordinate (end);
\begin{scope}[on background layer, decoration={
markings, mark=at position 1 with {\arrow{Stealth[scale=0.8]}}} ]
\draw[ultra thick, red!40, postaction={decorate}, transform canvas={yshift=3pt}] (start) --(end);
\end{scope}
\end{tikzpicture}
\end{document}