xuyuan / pgf-umlcd

this project is transfered to https://github.com/pgf-tikz/pgf-umlcd
https://github.com/pgf-tikz/pgf-umlcd
Other
55 stars 17 forks source link

association: bad alignment of labels for vertical line #12

Open skobls opened 8 years ago

skobls commented 8 years ago

Bug

if there are to classes, on below the other, and they are connected with an association, then the labels of the association are placed directly on the line

Desired behavior

the labels should appear at sides of the line and should not cross it.

Code that demonstrates the bug

\begin{tikzpicture} \begin{class}{ComputedPath}{0,0} \attribute{path : Path} \attribute{price : Double} \end{class} \begin{class}{RemoteStorage}{0,-3} \end{class} \association{ComputedPath}{foo}{1}% {RemoteStorage}{bar}{1} \end{tikzpicture}

P.S.: thanks for developing the package!