从距离节点一定距离的点开始箭头

从距离节点一定距离的点开始箭头

我想做这样的事: 在此处输入图片描述

请告诉我该怎么做。提前谢谢。

答案1

在此处输入图片描述

\documentclass[tikz,border=10pt,multi]{standalone} 
\usetikzlibrary{calc, arrows.meta,positioning} 
\begin{document}
    \begin{tikzpicture}
        [
        >=Latex,
        very thick,
        block/.style= {draw, rectangle, text width=2cm,minimum height=1cm,align=center},
        ]
        \node [block] (start1) {Start1};
        \node [block, below right = 1cm and 2cm of start1.east] (end1) {End1};
        \node [block, below= 2cm  of start1] (start2) {Start2};

        \path [draw, ->] ($(start1.south)+(-0.5,0)$) --  ($(start2.north)+(-0.5,0)$);
        \path [draw, ->] ($(start1.south)+(0.5,0)$) |- ($(end1.west)+(0,0.2)$);
        \path [draw, ->] ($(end1.west)+(0,-0.2)$) -| ($(start2.north)+(0.5,0)$);
\end{tikzpicture} \end{document}

答案2

编辑 不错的 @jsbibra 答案(+1)的一个小变化,代码稍微短一些:

\documentclass[tikz,border=10pt,multi]{standalone}
\usetikzlibrary{arrows.meta,
                positioning}
\begin{document}
    \begin{tikzpicture}[> = Latex,
node distance = 2mm and 8mm,
box/.style = {draw, thick, minimum height=1cm, text width=2cm, align=center},
every path/.style = {draw, -Stealth, semithick}
                        ]
\node [box] (start1)    {Start1};
\node [box, below right=of start1]  (start2)    {Start2};
\node [box, below  left=of start2]  (end1)      {End1};
%
\draw   (start1.240) -- (end1.120);
\draw   (start1.300) |- (start2.170);
\draw   (start2.190)  -| (end1.60);
    \end{tikzpicture} 
\end{document}

在此处输入图片描述

相关内容