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

default values in mapping

0 votes
The nodes in my palette have different colors. I have a custom node property with integer values. Additionally, in the Properties Mapper, I have a mapping of the custom property to fill color. The mapping I would like is:

custom property = 1: fill color is red

custom property = 2: fill color is green

any other value for the custom property must show the default color of the nodes.

Is there a way to use the default color in the mapping?

Edit:

For now I have chosen to change the border color (it is black for all node types) and leave the fill color untouched.
in Help by
edited

1 Answer

0 votes
The properties mapper has no explicit support for default values. However, it should leave alone all elements for which no mapping is defined. Therefore, to mimic the required behavior, you can either set all elements to the default appearance before running the properties mapper or choose a template in the properties mapper configuration that has the default appearance.
by [yWorks] (26.8k points)
Legal Disclosure | Privacy Policy
...