Is it possible to hide relations?

0 votes
asked Jul 12, 2021 in Question / help by jean (120 points)
E.g. I'd like a diagram showing the relations between classes but hiding all the attributes/methods, and then another diagram showing all the detail of attributes/methods but no relations: i.e. just a list of big boxes. Is that possible?

1 Answer

0 votes
answered Jul 12, 2021 by The-Lu (65,440 points)

Hello J.,

1/ For:

a diagram showing the relations between classes but hiding all the attributes/methods

You can use:

hide members 

Example:

2/ And for:

another diagram showing all the detail of attributes/methods but no relations: i.e. just a list of big boxes.

A possibility is to use new style functionality:

<style>
classDiagram {
  arrow {
    LineColor transparent
  }
}
</style>

Example:

See also doc. here:

If that can help,
Regards,
Th.

...