File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 98
98
l ,
99
99
node ,
100
100
cos = Math . cos ( this . angle ) ,
101
- sin = Math . sin ( this . angle ) ;
101
+ sin = Math . sin ( this . angle ) ,
102
+ nodeRatio = Math . pow ( this . ratio , this . settings ( 'nodesPowRatio' ) ) ,
103
+ edgeRatio = Math . pow ( this . ratio , this . settings ( 'edgesPowRatio' ) ) ;
102
104
103
105
for ( i = 0 , l = nodes . length ; i < l ; i ++ ) {
104
106
node = nodes [ i ] ;
114
116
) / this . ratio + ( options . height || 0 ) / 2 ;
115
117
node [ write + 'size' ] =
116
118
( node [ read + 'size' ] || 0 ) /
117
- Math . pow ( this . ratio , this . settings ( 'nodesPowRatio' ) ) ;
119
+ nodeRatio ;
118
120
}
119
121
120
122
for ( i = 0 , l = edges . length ; i < l ; i ++ ) {
121
123
edges [ i ] [ write + 'size' ] =
122
124
( edges [ i ] [ read + 'size' ] || 0 ) /
123
- Math . pow ( this . ratio , this . settings ( 'edgesPowRatio' ) ) ;
125
+ edgeRatio ;
124
126
}
125
127
126
128
return this ;
You can’t perform that action at this time.
0 commit comments