File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,19 +8,6 @@ export function timingDisplay(timing: number): string {
88 return `${ Math . round ( timing * 1000 ) / 1000 } s` ;
99}
1010
11- export function classForDiff ( diff : number ) : string {
12- if ( diff === 0.0 ) return 'error-0' ;
13- else if ( diff < 0.001 ) return 'error-1' ;
14- else if ( diff < 0.01 ) return 'error-2' ;
15- else if ( diff < 0.05 ) return 'error-3' ;
16- else if ( diff < 0.1 ) return 'error-4' ;
17- else if ( diff < 0.25 ) return 'error-5' ;
18- else if ( diff < 0.5 ) return 'error-6' ;
19- else if ( diff < 0.75 ) return 'error-7' ;
20- else if ( diff < 1.0 ) return 'error-8' ;
21- else return 'error-9' ;
22- }
23-
2411export function diffStyle ( diff : number ) : { backgroundColor : string ; color : string } {
2512 if ( diff === 0.0 ) return { backgroundColor : '#eeeeee' , color : '#111111' } ;
2613 else if ( diff < 0.001 ) return { backgroundColor : '#4ce600' , color : '#111111' } ;
You can’t perform that action at this time.
0 commit comments