mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-08 14:54:08 +01:00
#993 Added mermaid documentation for class diagram-minor fixes
This commit is contained in:
@@ -16,16 +16,16 @@ Mermaid can render class diagrams.
|
|||||||
Animal : +String gender
|
Animal : +String gender
|
||||||
Animal: +isMammal()
|
Animal: +isMammal()
|
||||||
Animal: +mate()
|
Animal: +mate()
|
||||||
Duck{
|
class Duck{
|
||||||
+String beakColor
|
+String beakColor
|
||||||
+swim()
|
+swim()
|
||||||
+quack()
|
+quack()
|
||||||
}
|
}
|
||||||
Fish{
|
class Fish{
|
||||||
-int sizeInFeet
|
-int sizeInFeet
|
||||||
-canEat()
|
-canEat()
|
||||||
}
|
}
|
||||||
Zebra{
|
class Zebra{
|
||||||
+bool is_wild
|
+bool is_wild
|
||||||
+run()
|
+run()
|
||||||
}
|
}
|
||||||
@@ -304,10 +304,11 @@ class Color{
|
|||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
classDiagram
|
classDiagram
|
||||||
class Shape
|
class Shape{
|
||||||
<<interface>> Shape
|
<<interface>>
|
||||||
Shape : noOfVertices
|
noOfVertices
|
||||||
Shape : draw()
|
draw()
|
||||||
|
}
|
||||||
class Color{
|
class Color{
|
||||||
<<enumeration>>
|
<<enumeration>>
|
||||||
RED
|
RED
|
||||||
|
|||||||
Reference in New Issue
Block a user