mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Manually updated the classchart
This commit is contained in:
parent
59991b70a1
commit
1d8f524913
@ -160,29 +160,29 @@
|
|||||||
</pre>
|
</pre>
|
||||||
<hr />
|
<hr />
|
||||||
<pre class="mermaid">
|
<pre class="mermaid">
|
||||||
classDiagram
|
classDiagram
|
||||||
namespace Company.Project.Module {
|
namespace Company.Project.Module {
|
||||||
class GenericClass~T~ {
|
class GenericClass~T~ {
|
||||||
+addItem(item: T)
|
+addItem(item: T)
|
||||||
+getItem() T
|
+getItem() T
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
<hr />
|
<hr />
|
||||||
<pre class="mermaid">
|
<pre class="mermaid">
|
||||||
classDiagram
|
classDiagram
|
||||||
namespace Company.Project.Module.SubModule {
|
namespace Company.Project.Module.SubModule {
|
||||||
class Report {
|
class Report {
|
||||||
+generatePDF(data: List)
|
+generatePDF(data: List)
|
||||||
+generateCSV(data: List)
|
+generateCSV(data: List)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
namespace Company.Project.Module {
|
}
|
||||||
class Admin {
|
namespace Company.Project.Module {
|
||||||
+generateReport()
|
class Admin {
|
||||||
}
|
+generateReport()
|
||||||
}
|
}
|
||||||
Admin --> Report : generates
|
}
|
||||||
|
Admin --> Report : generates
|
||||||
</pre>
|
</pre>
|
||||||
<pre class="mermaid">
|
<pre class="mermaid">
|
||||||
classDiagram
|
classDiagram
|
||||||
@ -200,44 +200,42 @@
|
|||||||
+generatePDF(reportData: List)
|
+generatePDF(reportData: List)
|
||||||
+generateCSV(reportData: List)
|
+generateCSV(reportData: List)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Admin --> User : manages
|
Admin --> User : manages
|
||||||
Admin --> Report : generates
|
Admin --> Report : generates
|
||||||
</pre>
|
</pre>
|
||||||
<hr />
|
<hr />
|
||||||
<pre class="mermaid">
|
<pre class="mermaid">
|
||||||
classDiagram
|
classDiagram
|
||||||
namespace Shapes {
|
namespace Shapes {
|
||||||
class Shape {
|
class Shape {
|
||||||
+calculateArea() double
|
+calculateArea() double
|
||||||
}
|
}
|
||||||
class Circle {
|
class Circle {
|
||||||
+double radius
|
+double radius
|
||||||
}
|
}
|
||||||
class Square {
|
class Square {
|
||||||
+double side
|
+double side
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Shape <|-- Circle
|
Shape <|-- Circle
|
||||||
Shape <|-- Square
|
Shape <|-- Square
|
||||||
|
|
||||||
namespace Vehicles {
|
namespace Vehicles {
|
||||||
class Vehicle {
|
class Vehicle {
|
||||||
+String brand
|
+String brand
|
||||||
}
|
}
|
||||||
class Car {
|
class Car {
|
||||||
+int horsepower
|
+int horsepower
|
||||||
}
|
}
|
||||||
class Bike {
|
class Bike {
|
||||||
+boolean hasGears
|
+boolean hasGears
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Vehicle <|-- Car
|
Vehicle <|-- Car
|
||||||
Vehicle <|-- Bike
|
Vehicle <|-- Bike
|
||||||
|
|
||||||
Car --> Circle : "Logo Shape"
|
Car --> Circle : "Logo Shape"
|
||||||
Bike --> Square : "Logo Shape"
|
Bike --> Square : "Logo Shape"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user