File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 136
136
type ,
137
137
renderer ,
138
138
graph = this . graph ,
139
- options = sigma . utils . extend ( options , this . options ) ;
139
+ options = sigma . utils . extend ( options , this . options ) ,
140
+ defaultEdgeType = this . settings ( options , 'defaultEdgeType' ) ,
141
+ defaultNodeType = this . settings ( options , 'defaultNodeType' ) ;
140
142
141
143
// Empty float arrays:
142
144
for ( k in this . nodeFloatArrays )
150
152
151
153
// Sort edges and nodes per types:
152
154
for ( a = graph . edges ( ) , i = 0 , l = a . length ; i < l ; i ++ ) {
153
- type = a [ i ] . type || this . settings ( options , ' defaultEdgeType' ) ;
155
+ type = a [ i ] . type || defaultEdgeType ;
154
156
k = ( type && sigma . webgl . edges [ type ] ) ? type : 'def' ;
155
157
156
158
if ( ! this . edgeFloatArrays [ k ] )
162
164
}
163
165
164
166
for ( a = graph . nodes ( ) , i = 0 , l = a . length ; i < l ; i ++ ) {
165
- type = a [ i ] . type || this . settings ( options , ' defaultNodeType' ) ;
167
+ type = a [ i ] . type || defaultNodeType ;
166
168
k = ( type && sigma . webgl . nodes [ type ] ) ? type : 'def' ;
167
169
168
170
if ( ! this . nodeFloatArrays [ k ] )
You can’t perform that action at this time.
0 commit comments