-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export const useColors = () => { | ||
function getLineColor(line: number): string { | ||
const colors = new Map(); | ||
colors.set(1, '#60A75B'); | ||
colors.set(2, '#AC4D35'); | ||
colors.set(3, '#3B7B64'); | ||
colors.set(4, '#DC8953'); | ||
colors.set(5, '#AF7392'); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
laem
|
||
colors.set(6, '#396083'); | ||
colors.set(7, '#75BCAE'); | ||
colors.set(8, '#7E6D98'); | ||
colors.set(9, '#EAAB50'); | ||
colors.set(10, '#9A8A4B'); | ||
colors.set(11, '#4DADC9'); | ||
colors.set(12, '#DBABB7'); | ||
return colors.get(line); | ||
} | ||
|
||
return { getLineColor }; | ||
}; |
@benoitdemaegdt Mince, ce changement a cassé mon intégration. Le fait que toutes les données étaient dans les lignes-[x].json était pratique pour moi.
Quelle était la justification pour ne pas les inclure dans les propriétés des lignes ?