Skip to content

Commit 9f3788a

Browse files
committed
docs: add different for location & point
1 parent f9346fc commit 9f3788a

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

docs/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
refs:
1+
# Concepts
22

33

4+
- Location is a fixed place.
5+
- Position is a variable place.
6+
7+
# Refs
8+
49
## GoJS
510

611
use `path` data with Geometry
@@ -10,3 +15,4 @@ go.Shape.defineArrowheadGeometry('Standard', 'F1 m 0,0 l 8,4 -8,4 2,-4 z');
1015
go.Shape.defineArrowheadGeometry('Backward', 'F1 m 8,0 l -2,4 2,4 -8,-4 z');
1116
go.Shape.defineArrowheadGeometry('Triangle', 'F1 m 0,0 l 8,4.62 -8,4.62 z');
1217
```
18+

docs/feakin.uml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
class Graph {
44
Node[] nodes;
55
Edge[] edges;
6+
' GraphProperty can transfer for different renderer
67
GraphProperty property;
78
}
89

@@ -26,6 +27,7 @@ class TextStyle {
2627

2728
class Edge {
2829
Point[] points;
30+
String edgeType;
2931
}
3032

3133
class Point {
@@ -35,6 +37,10 @@ class Point {
3537

3638
Position --|> Point
3739

40+
class Position {
41+
42+
}
43+
3844
class Geometry {
3945
int size;
4046
Position position;
@@ -71,29 +77,29 @@ GraphProperty --|> Property
7177
NodeProperty --|> Property
7278

7379

74-
interface Layout {
80+
interface LayoutStrategy {
7581
String name;
7682
}
7783

78-
Layout <|-- Dagre
79-
Layout <|-- CoSE
80-
Layout <|-- Circle
84+
LayoutStrategy <|-- Dagre
85+
LayoutStrategy <|-- CoSE
86+
LayoutStrategy <|-- Circle
8187

8288

8389
Edge <|-- Arrow
8490
Edge <|-- Connector
8591
Edge <|-- Polyline
8692

8793

88-
'class LayoutOptions {}
89-
'
90-
'interface Renderer {
91-
' String name;
92-
' LayoutOptions layoutOptions;
93-
'
94-
' + void configure(Graph graph);
95-
'}
96-
'
94+
interface Renderer {
95+
String name;
96+
LayoutOptions layoutOptions;
97+
98+
+ void configure(LayoutOptions layoutOptions);
99+
+ void drawing(Graph graph);
100+
}
97101

102+
SvgRenderer --|> Renderer
103+
CanvasRenderer --|> Renderer
98104

99105
@enduml

0 commit comments

Comments
 (0)