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

Please Add Feature to turn shapes!

+7 votes
The feature to turn shapes would be very helpful. i.e. to turn triangles, etc.
asked Oct 12, 2011 in Feature Requests by anonymous

1 Answer

0 votes
 
Best answer

There are two workarounds available to get rotated shapes in yEd:

1. Use "Import Symbol" to import a custom image/vector graphic with the desired orientation. To do that, open the Palette Manager ("Edit" -> "Manage Palette ..."), create a new section ("New Section"), select the newly created section in on of the lists to the right, and use "Import Symbols". Aside from SVG, raster image formats such as PNG, JPG, and GIF are supported.
This is the preferred way to get rotated nodes.

2. Create a rectangular node. Then create a triangle (or whatever shape you want to rotate). Drag the triangle over the rectangle. Right-click the triangle and choose "Convert to Label". While the triangle is selected, specify the desired rotation angle in the label Properties View. Finally, choose "No Color" for the *rectangle's* fill and line color.
Note, using this approach, edges have to be connected to the now invisible rectangle and will be clipped at the rectangle's bounds.

Creating a rotated triangle with approach 2, then exporting to SVG, and finally importing the generated SVG using approach 1 will probably give the best result.

answered Oct 13, 2011 by thomas.behr [yWorks] (11,060 points)
hmm.... it's nice there are suggested workarounds, but I really hope you guys are working on this feature. The fact that all I have is an upward pointing triangle, but I can't get a left/right/down triangle without resorting to hacks, is disappointing.

Note that if you want to have text on a rotated triangle, you have to pre-rotate the text in the opposite direction before converting to a label and rotating. (But workaround #2 looks like it produces a passable result, if rather inconvenient.)