ls1intum / Apollon

UML Modeling Editor written in React
https://apollon-library.readthedocs.io
MIT License
60 stars 21 forks source link

Toggle Stereotype Visibility #361

Open farisd16 opened 2 weeks ago

farisd16 commented 2 weeks ago

Problem

In a Component diagram, stereotypes can't be removed from Components and Subsystems, which may present additional clutter. Same goes for Components and Nodes in a Deployment diagram.

Solution

A new button could be added to the edit popup of the mentioned UML elements. The picture below shows exactly where. This button could have the text/icon "<< >>" inside of it, to indicate it is linked to the stereotype. When the stereotype is visible, the button is active and has a darker background. Otherwise, the button is not active and the background is transparent. Upon clicking the button, visibility of the stereotype is changed.

stereotype-toggle-proposal

FelixTJDietrich commented 2 weeks ago

Sounds good to me 👍 Are there any other toggle buttons in Apollon somewhere, maybe you can copy the style from there. Otherwise I think you can start implementing it.