@@ -124,7 +124,7 @@ export default class CanvasDrawer {
124124
125125 _getImageAsset ( assetName : string , resolveName = true ) {
126126 if ( ! _ . has ( this . imageAssets , assetName ) ) {
127- const assetUrl = assetUtils . getTypeSymbol ( assetName , this . controller . getSettings ( ) . icons , resolveName ) ;
127+ const assetUrl = assetUtils . getTypeSymbol ( assetName , this . controller . getSettings ( true ) . icons , resolveName ) ;
128128 this . _loadImage ( assetUrl , assetName ) ;
129129 }
130130
@@ -182,7 +182,7 @@ export default class CanvasDrawer {
182182 return false ;
183183 }
184184
185- if ( ! this . controller . getSettings ( ) . animate && elapsedTime < 1000 ) {
185+ if ( ! this . controller . getSettings ( true ) . animate && elapsedTime < 1000 ) {
186186 return true ;
187187 }
188188 return false ;
@@ -227,7 +227,7 @@ export default class CanvasDrawer {
227227 // static element rendering
228228 // cyCanvas.resetTransform(ctx);
229229 cyCanvas . clear ( ctx ) ;
230- if ( this . controller . getSettings ( ) . showDebugInformation ) {
230+ if ( this . controller . getSettings ( true ) . showDebugInformation ) {
231231 this . _drawDebugInformation ( ) ;
232232 }
233233
@@ -275,7 +275,7 @@ export default class CanvasDrawer {
275275 this . _drawEdgeParticles ( ctx , edge , sourcePoint , targetPoint , now ) ;
276276 }
277277
278- const { showConnectionStats } = this . controller . getSettings ( ) ;
278+ const { showConnectionStats } = this . controller . getSettings ( true ) ;
279279 if ( showConnectionStats && cy . zoom ( ) > 1 ) {
280280 for ( const edge of edges ) {
281281 this . _drawEdgeLabel ( ctx , edge ) ;
@@ -322,7 +322,7 @@ export default class CanvasDrawer {
322322 }
323323
324324 _drawEdgeLabel ( ctx : CanvasRenderingContext2D , edge : cytoscape . EdgeSingular ) {
325- const { timeFormat } = this . controller . getSettings ( ) ;
325+ const { timeFormat } = this . controller . getSettings ( true ) ;
326326
327327 const midpoint = edge . midpoint ( ) ;
328328 const xMid = midpoint . x ;
@@ -413,7 +413,7 @@ export default class CanvasDrawer {
413413 index -- ;
414414 }
415415
416- const dangerColor = this . controller . getSettings ( ) . style . dangerColor ;
416+ const dangerColor = this . controller . getSettings ( true ) . style . dangerColor ;
417417 ctx . fillStyle = dangerColor ;
418418 ctx . fill ( ) ;
419419 }
@@ -508,7 +508,7 @@ export default class CanvasDrawer {
508508 this . _drawDonut ( ctx , node , 15 , 5 , 0.5 , [ errorPct , unknownPct , healthyPct ] ) ;
509509
510510 // drawing the baseline status
511- const { showBaselines } = this . controller . getSettings ( ) ;
511+ const { showBaselines } = this . controller . getSettings ( true ) ;
512512 if ( showBaselines && responseTime >= 0 && threshold >= 0 ) {
513513 const thresholdViolation = threshold < responseTime ;
514514
@@ -527,7 +527,7 @@ export default class CanvasDrawer {
527527
528528 _drawServiceIcon ( ctx : CanvasRenderingContext2D , node : cytoscape . NodeSingular ) {
529529 const nodeId : string = node . id ( ) ;
530- const iconMappings = this . controller . getSettings ( ) . icons ;
530+ const iconMappings = this . controller . getSettings ( true ) . icons ;
531531
532532 const mapping = _ . find ( iconMappings , ( { pattern } ) => {
533533 try {
@@ -550,7 +550,7 @@ export default class CanvasDrawer {
550550 }
551551
552552 _drawNodeStatistics ( ctx : CanvasRenderingContext2D , node : cytoscape . NodeSingular ) {
553- const { timeFormat } = this . controller . getSettings ( ) ;
553+ const { timeFormat } = this . controller . getSettings ( true ) ;
554554 const lines : string [ ] = [ ] ;
555555
556556 const metrics : IntGraphMetrics = node . data ( 'metrics' ) ;
@@ -614,7 +614,7 @@ export default class CanvasDrawer {
614614 ctx . closePath ( ) ;
615615
616616 ctx . setLineDash ( [ 10 , 2 ] ) ;
617- if ( violation && this . controller . getSettings ( ) . animate ) {
617+ if ( violation && this . controller . getSettings ( true ) . animate ) {
618618 ctx . lineDashOffset = this . dashAnimationOffset ;
619619 } else {
620620 ctx . lineDashOffset = 0 ;
@@ -673,7 +673,7 @@ export default class CanvasDrawer {
673673 const xPos = pos . x - labelWidth / 2 ;
674674 const yPos = pos . y + node . height ( ) * 0.8 ;
675675
676- const { showBaselines } = this . controller . getSettings ( ) ;
676+ const { showBaselines } = this . controller . getSettings ( true ) ;
677677 const metrics : IntGraphMetrics = node . data ( 'metrics' ) ;
678678 const responseTime = _ . defaultTo ( metrics . response_time , - 1 ) ;
679679 const threshold = _ . defaultTo ( metrics . threshold , - 1 ) ;
@@ -719,7 +719,7 @@ export default class CanvasDrawer {
719719 ctx . fillStyle = 'white' ;
720720 ctx . fill ( ) ;
721721
722- const { healthyColor, dangerColor, noDataColor } = this . controller . getSettings ( ) . style ;
722+ const { healthyColor, dangerColor, noDataColor } = this . controller . getSettings ( true ) . style ;
723723 const colors = [ dangerColor , noDataColor , healthyColor ] ;
724724 for ( let i = 0 ; i < percentages . length ; i ++ ) {
725725 let arc = this . _drawArc ( ctx , currentArc , cX , cY , radius , percentages [ i ] , colors [ i ] ) ;
0 commit comments