Open digulla opened 4 years ago
I came across looking for a similar feature to the PlantUML 'hide' feature. I currently have a class diagram lets say '3 layers' deep' and I want to hide the layer-3 nodes. e.g. hide MyL3Class
More details referenced here under heading "Hide attributes, methods" https://plantuml.com/class-diagram
This is currently possible using css styles/classes - will have to look into adding this into the backlog for enhancing the current design for the diagram though
For printing and generally for a better overview, it would be great to be able to filter the resulting diagrams. For example in classes, just show the class names and omit the fields. For Gantt charts, just show important tasks and hide the "noise" or allow to assign tasks to developers.
I would like to suggest to implement this feature with hashtags. The rendered graph should offer a popup or simply a line of all tags plus a "show all" button.
Example class diagram:
There are four tags in this example:
persistence
,cid
,fk
andmonetary
.By clicking on a tag, only elements with this tag (and their parents) are still visible. Clicking on a tag should toggle it for easy multi-selection ("show all" deselects all tags).
Clicking on
cid
would just displayCustomer
and the fieldname
.Foo
andBankAccount
would be hidden.Clicking on
persistence
would display two classes and the three fields related to database operations.