@@ -121,10 +121,17 @@ export class GenerateDependencyInjectionGraph extends ShowHierarchyBase {
121
121
componentFilename = componentFilename . split ( '\\' ) . join ( '/' ) ;
122
122
const componentPosition = this . graphState . nodePositions [ component . name ] ;
123
123
appendNodes ( [ new Node ( component . name , this . generatedComponentNode ( component ) , componentFilename , component . filename , false , NodeType . component , componentPosition ) ] ) ;
124
- component . dependencyInjections . forEach ( injectable => {
125
- const injectablePosition = this . graphState . nodePositions [ injectable . name ] ;
126
- appendNodes ( [ new Node ( injectable . name , injectable . name , injectable . filename . replace ( this . workspaceDirectory , '' ) , injectable . filename , false , NodeType . injectable , injectablePosition ) ] ) ;
127
- appendEdges ( [ new Edge ( ( this . edges . length + 1 ) . toString ( ) , injectable . name , component . name , ArrowType . injectable ) ] ) ;
124
+ component . dependencies . forEach ( injectable => {
125
+ const injectablePosition = this . graphState . nodePositions [ injectable . name ] ;
126
+ appendNodes ( [ new Node ( injectable . name , injectable . name , injectable . filename . replace ( this . workspaceDirectory , '' ) , injectable . filename , false , NodeType . injectable , injectablePosition ) ] ) ;
127
+ appendEdges ( [ new Edge ( ( this . edges . length + 1 ) . toString ( ) , injectable . name , component . name , ArrowType . injectable ) ] ) ;
128
+ } ) ;
129
+ } ) ;
130
+ project . injectables . forEach ( injectable => {
131
+ injectable . dependencies . forEach ( dependency => {
132
+ const dependencyPosition = this . graphState . nodePositions [ dependency . name ] ;
133
+ appendNodes ( [ new Node ( dependency . name , dependency . name , dependency . filename . replace ( this . workspaceDirectory , '' ) , dependency . filename , false , NodeType . injectable , dependencyPosition ) ] ) ;
134
+ appendEdges ( [ new Edge ( ( this . edges . length + 1 ) . toString ( ) , dependency . name , injectable . name , ArrowType . injectable ) ] ) ;
128
135
} ) ;
129
136
} ) ;
130
137
}
0 commit comments