99import { BrewFlow } from '../../classes/brew/brewFlow' ;
1010import { Settings } from '../../classes/settings/settings' ;
1111import BeanconquerorFlowTestDataDummy from '../../assets/BeanconquerorFlowTestDataFourth.json' ;
12- import { TranslateService } from '@ngx-translate/core' ;
1312import { UIHelper } from '../../services/uiHelper' ;
1413import { UIFileHelper } from '../../services/uiFileHelper' ;
1514import { Platform } from '@ionic/angular' ;
@@ -42,19 +41,16 @@ export class GraphDisplayCardComponent implements OnInit {
4241
4342 public traces : any = { } ;
4443
45- public flowProfileLoading : boolean = true ;
46-
4744 @ViewChild ( 'canvaContainer' , { read : ElementRef , static : true } )
4845 public canvaContainer : ElementRef ;
4946 @ViewChild ( 'profileDiv' , { read : ElementRef , static : true } )
5047 public profileDiv : ElementRef ;
5148 constructor (
52- private readonly translate : TranslateService ,
5349 private readonly uiHelper : UIHelper ,
5450 private readonly uiFileHelper : UIFileHelper ,
5551 private readonly platform : Platform ,
5652 private readonly uiSettingsStorage : UISettingsStorage ,
57- private readonly graphHelper : GraphHelperService
53+ private readonly graphHelper : GraphHelperService ,
5854 ) { }
5955
6056 public async ngOnInit ( ) {
@@ -65,7 +61,7 @@ export class GraphDisplayCardComponent implements OnInit {
6561 this . flow_profile_raw = this . uiHelper . cloneData ( this . flowProfileData ) ;
6662 } else if ( this . meticulousHistoryData ) {
6763 this . flow_profile_raw = MeticulousDevice . returnBrewFlowForShotData (
68- this . meticulousHistoryData . data
64+ this . meticulousHistoryData . data ,
6965 ) ;
7066 }
7167 setTimeout ( ( ) => {
@@ -114,7 +110,7 @@ export class GraphDisplayCardComponent implements OnInit {
114110 true ,
115111 chartWidth ,
116112 chartHeight ,
117- true
113+ true ,
118114 ) ;
119115
120116 return layout ;
@@ -129,7 +125,7 @@ export class GraphDisplayCardComponent implements OnInit {
129125 this . traces = this . graphHelper . fillTraces (
130126 this . traces ,
131127 graphSettings ,
132- true
128+ true ,
133129 ) ;
134130
135131 this . graphHelper . fillDataIntoTraces ( this . flow_profile_raw , this . traces ) ;
@@ -151,12 +147,10 @@ export class GraphDisplayCardComponent implements OnInit {
151147 this . profileDiv . nativeElement ,
152148 chartData ,
153149 layout ,
154- this . getChartConfig ( )
150+ this . getChartConfig ( ) ,
155151 ) ;
156152 this . profileDiv . nativeElement . removeAllListeners ( ) ;
157153 this . profileDiv . nativeElement . removeAllListeners ( 'plotly_click' ) ;
158-
159- this . flowProfileLoading = false ;
160154 } , 100 ) ;
161155 }
162156
@@ -165,7 +159,7 @@ export class GraphDisplayCardComponent implements OnInit {
165159 if ( this . flowProfilePath !== '' ) {
166160 try {
167161 const jsonParsed = await this . uiFileHelper . readInternalJSONFile (
168- this . flowProfilePath
162+ this . flowProfilePath ,
169163 ) ;
170164 this . flow_profile_raw = jsonParsed ;
171165 } catch ( ex ) { }
0 commit comments