File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,7 @@ export default class Link extends React.PureComponent {
45
45
`M${ d . source . x } ,${ d . source . y } V${ d . target . y } H${ d . target . x } ` ;
46
46
}
47
47
48
- collapsePath ( ) {
49
- const { linkData, orientation, pathFunc } = this . props ;
50
- const origin = { x : linkData . source . x , y : linkData . source . y } ;
51
- const pathDescriptor = { source : origin , target : origin } ;
52
- return pathFunc === 'diagonal'
53
- ? this . diagonalPath ( pathDescriptor , orientation )
54
- : this . elbowPath ( pathDescriptor , orientation ) ;
55
- }
56
-
57
- expandPath ( ) {
48
+ drawPath ( ) {
58
49
const { linkData, orientation, pathFunc } = this . props ;
59
50
return pathFunc === 'diagonal'
60
51
? this . diagonalPath ( linkData , orientation )
@@ -67,7 +58,7 @@ export default class Link extends React.PureComponent {
67
58
ref = { ( l ) => { this . link = l ; } }
68
59
style = { this . state . initialStyle }
69
60
className = "linkBase"
70
- d = { this . expandPath ( ) }
61
+ d = { this . drawPath ( ) }
71
62
/>
72
63
) ;
73
64
}
You can’t perform that action at this time.
0 commit comments