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

Is there a way to hide elements temporarily?

0 votes
I have a model that has 4 different types of elements (oval, square, circle, pyramid).  The model has about 40 total elements.  Is it possible to show only the ovals somehow temporarily?  Then show only the squares, or maybe only show the squares and ovals.  I also have 3 different types of lines/edges.  Can I do the same with edges, show only the ovals with dashed line edges?
in Help by

1 Answer

–1 vote

It's not difficult:

  • Add a new property (Edit, Manage Custom Properties), maybe SHAPE.
  • Fill this property, SHAPE in all your nodes.
  • In Edit, Property Mapper you have to add two nodes configuration, HIDE and SHOW.
  • For HIDE add two lines:
    • ------ 1st--------
    • Data Source = SHAPE
    • Map to = Fill Color
    • Conversion = Distinct Values
    • SHAPE (bellow) = OVAL
    • Fill Color = #ffffff (you can choose it)
    • -------2 nd -------
    • Data Source = SHAPE
    • Map to = Border Color
    • Conversion = Distinct Values
    • SHAPE (below) = OVAL
    • Border Color = #ffffff
  • For SHOW add other two lines:
    • ------ 1st--------
    • Data Source = SHAPE
    • Map to = Fill Color
    • Conversion = Distinct Values
    • SHAPE (bellow) = OVAL
    • Fill Color = <the original node fill color>
    • -------2 nd -------
    • Data Source = SHAPE
    • Map to = Border Color
    • Conversion = Distinct Values
    • SHAPE (below) = OVAL
    • Border Color = <the original node border color>

Now, you can choos Edit, Property Mapper. If you choose HIDE and click the button apply, all elements with OVAL in its SHAPE property appeas in white (so, hide). But if you choose SHOW and click the button apply, all OVAL-SHAPED nodes appear in its original colors.

http://yed.yworks.com/support/qa/?qa=blob&qa_blobid=11210262299932275269

by (300 points)
Legal Disclosure | Privacy Policy
...