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

Changed from above/below to auto in association et al. #14

Open TorbjornT opened 6 years ago

TorbjornT commented 6 years ago

This pull request changes two things for all \association, \unidirectionalAssociation, \aggregation and \composition:

  1. Change the node positions from above/below to auto/auto,swap. This means that the nodes will be placed next to the line regardless of its orientation, and hence solves #12. (I suggested this in https://tex.stackexchange.com/questions/389109/unidirectionalassociation-usage-problem-in-pgf-umlcd)

  2. Add the possibility of providing additional settings to the \draw, by means of an optional argument to the macros. Can be useful in cases like https://tex.stackexchange.com/questions/391474/how-to-draw-these-association-using-pgf-umlcd.

hmenke commented 4 years ago

Merged at new upstream: https://github.com/pgf-tikz/pgf-umlcd/commit/5d38f13a22cca6731796540389377bdd5ef54b49