-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Members & Methods Box On Class Diagram, If They Are Not Set #3139
Comments
Thanks for the suggestion. We are adding this to the backlog |
We have the same need: UML-style arrows and display of cardinalities, but would like to avoid displaying empty members & methods boxes. |
I am actively working on this one now, finally :) |
Hey, just want to thumbs up this again... would be nice to have... |
Any news on this? |
Would like to know if this is being looked at soon or not. |
This will be resolved with #5880 |
Kudos to @knsv, @jgreywolf, and @yari-dewalt for the heavy lifting on the update to the new renderer👏 Since this feature has attracted a lot of interest, here’s how to configure the class diagram to hide those empty member boxes (more in documentation). You can play around with it in the preview build.
---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
note for Duck "This will be rendered without empty boxes
once GitHub updates to the latest release ."
class Duck
|
@ParanoidUser How do we adjust hideEmptyMembersBox? Does it need special mermaid engine? Even your example looks like it still has member fields on github previewer |
FYI - This is only available in v11.4 and up. GitHub has not updated the version they are using |
Is your feature request related to a problem? Please describe.
I am using the class diagram for a domain model, as after all, in a domain model, they are ultimately going to be classes in the codebase. However, they do not have members nor methods defined.
Describe the solution you'd like
It works pretty well, but it would be much prettier if the members & methods boxes were not rendered on the diagram (nor the dividers) if there are none.
Then there would just be a node with a title. I did try using a flowchart, but for a domain model, you really need the UML-style arrows for composition, aggregation etc.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: