@@ -38,7 +38,7 @@ namespace NetworkMonitor {
3838
3939 var x = padding ;
4040 var y = heightTab + padding ;
41- var widgets : Widget [ ] = [ ] ;
41+ var widgets : WidgetDesc [ ] = [ ] ;
4242 createGraphTextWidgets ( widgets , x , y , StatKind . receive ) ;
4343 y += textHeight + padding ;
4444 createGraphWidget ( widgets , x , y , graphWidth , graphHeight , StatKind . receive , 'graphReceived' ) ;
@@ -180,7 +180,7 @@ namespace NetworkMonitor {
180180 }
181181 }
182182
183- function createLabel ( name : string , x : number , y : number , text : string ) : LabelWidget {
183+ function createLabel ( name : string , x : number , y : number , text : string ) : LabelDesc {
184184 return {
185185 type : 'label' ,
186186 name : name ,
@@ -192,7 +192,7 @@ namespace NetworkMonitor {
192192 } ;
193193 }
194194
195- function createLegendColourWidget ( name : string , x : number , y : number , w : number , h : number , colour : number ) : CustomWidget {
195+ function createLegendColourWidget ( name : string , x : number , y : number , w : number , h : number , colour : number ) : CustomDesc {
196196 return {
197197 type : 'custom' ,
198198 name : name ,
@@ -207,7 +207,7 @@ namespace NetworkMonitor {
207207 } ;
208208 }
209209
210- function createGraphTextWidgets ( widgets : Widget [ ] , x : number , y : number , kind : StatKind ) {
210+ function createGraphTextWidgets ( widgets : WidgetDesc [ ] , x : number , y : number , kind : StatKind ) {
211211 if ( kind === StatKind . receive ) {
212212 widgets . push ( createLabel ( 'lblReceive' , x , y , "Receive" ) ) ;
213213 widgets . push ( createLabel ( 'lblReceivedBytes' , x + 70 , y , "0.000 B/sec" ) ) ;
@@ -221,7 +221,7 @@ namespace NetworkMonitor {
221221 }
222222 }
223223
224- function createGraphWidget ( widgets : Widget [ ] , x : number , y : number , w : number , h : number , kind : StatKind , name : string ) {
224+ function createGraphWidget ( widgets : WidgetDesc [ ] , x : number , y : number , w : number , h : number , kind : StatKind , name : string ) {
225225 widgets . push ( {
226226 type : 'custom' ,
227227 name : name ,
@@ -238,7 +238,7 @@ namespace NetworkMonitor {
238238 } ) ;
239239 }
240240
241- function createLegendWidgets ( widgets : Widget [ ] , x : number , y : number ) {
241+ function createLegendWidgets ( widgets : WidgetDesc [ ] , x : number , y : number ) {
242242 for ( var n = 0 ; n < categoryGroups . length ; n ++ ) {
243243 var cg = categoryGroups [ n ] ;
244244
0 commit comments