Mise à jour graphique
This commit is contained in:
@@ -13,6 +13,7 @@ export * from './category.model';
|
||||
export * from './chart.model';
|
||||
export * from './dropzone.model';
|
||||
export * from './errors.model';
|
||||
export * from './hw.model';
|
||||
export * from './jump.model';
|
||||
export * from './jump-list.model';
|
||||
export * from './jump-list-config.model';
|
||||
|
||||
@@ -67,6 +67,15 @@ export class UtilitiesService {
|
||||
getCurrentDateFr(): string {
|
||||
return new Date().toLocaleDateString('fr');
|
||||
}
|
||||
|
||||
secondsToDuration(seconds: number, delimiter: string = ':'): string {
|
||||
return [
|
||||
Math.floor(seconds / 60 / 60),
|
||||
Math.floor(seconds / 60 % 60),
|
||||
Math.floor(seconds % 60)
|
||||
].join(delimiter)
|
||||
.replace(/\b(\d)\b/g, "0$1")//.replace(/^00\:/, '')
|
||||
}
|
||||
|
||||
getSeriesColors(opacity: number, palette: string = 'all', offset: number = 0): string[] {
|
||||
let colors: string[] = [];
|
||||
|
||||
Reference in New Issue
Block a user