Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

How can I place a group such that the most upper box in the group is place exactly at say y=100?

0 votes
While I can assign X=0 (for instance) to the "group" with all elements at the left hand side of the group then being as well x=0, this does not work with Y. I like to move a group such that the "member of the group" which are the upper most members are exactly at a specific value y (e.g. y = 120). When chosing y=120 for the group, the upper most member would be assigned y= 121.99 (or the like).
in Help by

1 Answer

0 votes
  1. Find the top-most node in your group.
  2. Get its y-coordinate.
  3. Determine the distance between said y-coordinate and the desired y-coordinate, i.e. in your example that would be
    dx = 120.0 - 121.99 = -1.99.
  4. Select the group and all of its content.
  5. Open "Tools" -> "Geometric Transformations".
  6. Set "Operation" to "Translate".
  7. Set "Horizontal Distance" to 0.
  8. Set "Vertical Distance" to the above calculated value of dx.
  9. Enabled "Act On Selection Only".
  10. Click "Ok".
by [yWorks] (161k points)
Legal Disclosure | Privacy Policy
...