I have multiple blocks which should be connected to "base" block like in UML diagram with "extends" arrow, (I created this example just by drawing without TeX):
I'm trying to do it using this code with |-
for common line for arrows and (270:10mm)
to move it down for 10mm
:
\tikzset{node distance=1.6cm, auto, every text node part/.style={align=center, font={\sffamily\small}}}
\tikzstyle{block} = [draw=myblack, fill=white, inner sep=0.3cm, outer sep=0.1cm, thick]
\begin{tikzpicture}
\node[block] (base) {Base};
\node[block, below=of base] (impl2) {Impl2};
\node[block, left=of impl2] (impl1) {Impl1};
\node[block, right=of impl2] (impl3) {Impl3};
\draw[->] (impl1.north) |- (270:10mm) --++ (base.south);
\draw[->] (impl2.north) |- (270:10mm) --++ (base.south);
\draw[->] (impl3.north) |- (270:10mm) --++ (base.south);
\end{tikzpicture}
but I'm getting this picture:
How to join multiple arrows correctly with a common line? Most probably I'll need to change amount of blocks and the position of them, so fixed or hard-coded line coordinates won't work for me.
\draw[->] (impl1.north) |- (270:10mm) -| (base.south); \draw (impl2.north) -- (base.south); \draw (impl3.north) |- (270:10mm) -| (base.south);
outer sep=0cm
.\documentclass
and end with\end{document}
. This saves a lot of time for people trying to help you.