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.

Is there a possibility to scale the label symbol with the element?

0 votes
I try to make a custom symbol by combining the "Entity" and the "Relationship" symbol from the Entity Relationship Shapes. Therefore i put the Relationship-Symbol ontop of the Entity-Symbol and convert the Relationship symbol to a label.

Unfortunally the size of the Label-Symbol seems to be fixed. The Labelsymbol should scaling equally to the underlying Element.

Is there a way to acchieve this?
asked Jun 15, 2017 in Help by anonymous

1 Answer

0 votes

Unfortunately, yEd does not offer a (direct) way for label icons to be scaled depending on node size.

As a workaround, try exporting your custom symbol as SVG and then importing the generated SVG document as a custom node symbol. Please see How can I use my own node symbols in yEd? for details on importing custom node symbols.

answered Jun 16, 2017 by thomas.behr [yWorks] (125,630 points)
Importing the costum symbol as SVG does not solve the problem, because the line-thickness is now scaling with the node size. Besides it isn't possible to adjust display-properties on imported SVGs...

Is it possible to specify the size of the label-symbol dynamically by using property-variables from the node?

Something like {node.width} / {node.height}
Unfortunately, no. yEd does not offer such scripting possibilities.
Imprint | Privacy Policy