Skip to content

Commit 74853f8

Browse files
committed
docs: update interface
1 parent 4a13d7a commit 74853f8

File tree

1 file changed

+48
-10
lines changed

1 file changed

+48
-10
lines changed

docs/feakin.uml

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class Graph {
44
Node[] nodes;
55
Edge[] edges;
6-
Property property;
6+
GraphProperty property;
77
}
88

99
class Node {
@@ -24,26 +24,64 @@ class Point {
2424
int y;
2525
}
2626

27+
Position --|> Point
28+
2729
class Geometry {
28-
String stroke;
29-
Int fillWith;
30-
String fillStroke;
31-
String fillOpacity;
32-
String scale;
30+
int size;
31+
Position position;
3332
}
3433

34+
Geometry::position --> Position
35+
3536
Graph --> Node
3637
Graph --> Edge
3738
Node --> Shape
38-
Edge --> Point
3939
Node --> Geometry
4040

4141
interface Shape {
4242
String type;
4343
}
4444

45-
Shape o- Rectangle
46-
Shape o- Circle
47-
Shape o- Ellipse
45+
Shape <|-- Rectangle
46+
Shape <|-- Hexagon
47+
Shape <|-- Circle
48+
Shape <|-- Ellipse
49+
50+
interface Property {
51+
String stroke;
52+
Int fillWith;
53+
String fillStroke;
54+
String fillOpacity;
55+
String scale;
56+
}
57+
58+
GraphProperty --|> Property
59+
NodeProperty --|> Property
60+
61+
62+
interface Layout {
63+
String name;
64+
}
65+
66+
Layout <|-- Dagre
67+
Layout <|-- CoSE
68+
Layout <|-- Circle
69+
70+
71+
Edge <|-- Arrow
72+
Edge <|-- Connector
73+
Edge <|-- Polyline
74+
75+
76+
'class LayoutOptions {}
77+
'
78+
'interface Renderer {
79+
' String name;
80+
' LayoutOptions layoutOptions;
81+
'
82+
' + void configure(Graph graph);
83+
'}
84+
'
85+
4886

4987
@enduml

0 commit comments

Comments
 (0)