You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really useful, if the mermaid syntax for classDiagram would allow diagramming inner classes (or enumerations).
Currently inner classes (and enumerations) have to be modeled separately, e.g.
classDiagram
class Animal {
-int age
-Gender gender
+mate()
+age() int
}
Animal *-- Gender
class Gender {
<<enumeration>>
MALE
FEMALE
OTHER
}
Loading
Nesting class/enumeration definitions could be achieved using a syntax like...
mermaid
classDiagram
class Animal {
class Gender {
<<enumeration>>
MALE
FEMALE
OTHER
}
-int age
-Gender gender
+isMammal()
+age() int
}
Animal *-- Animal::Gender
It would be really useful, if the mermaid syntax for
classDiagramwould allow diagramming inner classes (or enumerations).Currently inner classes (and enumerations) have to be modeled separately, e.g.
classDiagram class Animal { -int age -Gender gender +mate() +age() int } Animal *-- Gender class Gender { <<enumeration>> MALE FEMALE OTHER }Nesting class/enumeration definitions could be achieved using a syntax like...