tikz '\draw' 위치를 직접 수정하는 방법은 무엇입니까?

tikz '\draw' 위치를 직접 수정하는 방법은 무엇입니까?

두 노드의 오른쪽에 버팀대를 만들고 싶지만 부착하는 것을 원하지 않지만 추가 공간이 필요합니다. 시작 위치의 경우 내 솔루션이 잘 작동하는 것 같지만 어떤 이유로 종료 위치는 영향을 받지 않습니다. 내가 무엇을 잘못하고 있으며 어떻게 해야 합니까?

\documentclass{memoir}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, positioning, arrows.meta, decorations.pathreplacing}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
    \node (foo) [draw, minimum width=6 em]
                {Foo};
    \node (bar) [draw, minimum width=6 em, below=of foo]
                {Bar};
     \draw [thick, decorate, decoration={brace, amplitude=6pt}] (foo.north east) + (1ex,1ex) -- (bar.south east) + (1ex, -1ex) node(foobar) [midway, xshift=3em] {FooBar};
\end{tikzpicture}
\end{document}

여기에 이미지 설명을 입력하세요

답변1

교대근무나 계산이 필요하지 않고 단순히 raise=<length>버팀대 옵션에 추가하면 됩니다.

산출

그림 1

암호

\documentclass{memoir}
\usepackage{tikz}
\usetikzlibrary{calc, shapes.geometric, positioning, arrows.meta, decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
    \node (foo) [draw, minimum width=6 em]
                {Foo};
    \node (bar) [draw, minimum width=6 em, below=of foo]
                {Bar};
     \draw [thick, decorate, decoration={brace, amplitude=6pt, raise=5pt}] (foo.north east) -- (bar.south east) node(foobar) [midway, xshift=3em] {FooBar};
\end{tikzpicture}
\end{document}

관련 정보