@@ -7,10 +7,10 @@ import humanFormat from 'human-format';
77import assetUtils from '../asset_utils' ;
88
99const scaleValues = [
10- { unit : "ms" , factor : 1 } ,
11- { unit : "s" , factor : 1000 } ,
12- { unit : "m" , factor : 60000 }
13- ]
10+ { unit : 'ms' , factor : 1 } ,
11+ { unit : 's' , factor : 1000 } ,
12+ { unit : 'm' , factor : 60000 } ,
13+ ] ;
1414
1515export default class CanvasDrawer {
1616 readonly colors = {
@@ -81,10 +81,10 @@ export default class CanvasDrawer {
8181 }
8282
8383 _getTimeScale ( timeUnit : any ) {
84- const scale : any = { }
85- for ( const scaleValue of scaleValues ) {
84+ const scale : any = { } ;
85+ for ( const scaleValue of scaleValues ) {
8686 scale [ scaleValue . unit ] = scaleValue . factor ;
87- if ( scaleValue . unit === timeUnit ) {
87+ if ( scaleValue . unit === timeUnit ) {
8888 return scale ;
8989 }
9090 }
@@ -324,7 +324,7 @@ export default class CanvasDrawer {
324324 }
325325
326326 _drawEdgeLabel ( ctx : CanvasRenderingContext2D , edge : cytoscape . EdgeSingular ) {
327- const { timeFormat } = this . controller . getSettings ( ) ;
327+ const { timeFormat } = this . controller . getSettings ( ) ;
328328
329329 const midpoint = edge . midpoint ( ) ;
330330 const xMid = midpoint . x ;
@@ -510,7 +510,7 @@ export default class CanvasDrawer {
510510 this . _drawDonut ( ctx , node , 15 , 5 , 0.5 , [ errorPct , unknownPct , healthyPct ] ) ;
511511
512512 // drawing the baseline status
513- const { showBaselines} = this . controller . getSettings ( ) ;
513+ const { showBaselines } = this . controller . getSettings ( ) ;
514514 if ( showBaselines && responseTime >= 0 && threshold >= 0 ) {
515515 const thresholdViolation = threshold < responseTime ;
516516
@@ -552,7 +552,7 @@ export default class CanvasDrawer {
552552 }
553553
554554 _drawNodeStatistics ( ctx : CanvasRenderingContext2D , node : cytoscape . NodeSingular ) {
555- const { timeFormat } = this . controller . getSettings ( )
555+ const { timeFormat } = this . controller . getSettings ( ) ;
556556 const lines : string [ ] = [ ] ;
557557
558558 const metrics : IntGraphMetrics = node . data ( 'metrics' ) ;
@@ -675,7 +675,7 @@ export default class CanvasDrawer {
675675 const xPos = pos . x - labelWidth / 2 ;
676676 const yPos = pos . y + node . height ( ) * 0.8 ;
677677
678- const { showBaselines} = this . controller . getSettings ( ) ;
678+ const { showBaselines } = this . controller . getSettings ( ) ;
679679 const metrics : IntGraphMetrics = node . data ( 'metrics' ) ;
680680 const responseTime = _ . defaultTo ( metrics . response_time , - 1 ) ;
681681 const threshold = _ . defaultTo ( metrics . threshold , - 1 ) ;
0 commit comments