Skip to content

Commit af363b5

Browse files
author
repo-visualizer
committed
fix typo in setting colorScale colors
1 parent 881f0ec commit af363b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17482,7 +17482,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }) =
1748217482
"#f4f4f4",
1748317483
"#f4f4f4",
1748417484
colorEncoding === "last-change" ? "#C7ECEE" : "#FEEAA7",
17485-
colorEncoding === "last-change" ? "#3C40C6" : "#823471"
17485+
colorEncoding === "number-of-changes" ? "#3C40C6" : "#823471"
1748617486
];
1748717487
const colorScale2 = linear2().domain(range_default(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true);
1748817488
return { colorScale: colorScale2, colorExtent: colorExtent2 };

src/Tree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const Tree = (
9393
// @ts-ignore
9494
colorEncoding === "last-change" ? "#C7ECEE" : "#FEEAA7",
9595
// @ts-ignore
96-
colorEncoding === "last-change" ? "#3C40C6" : "#823471",
96+
colorEncoding === "number-of-changes" ? "#3C40C6" : "#823471",
9797
];
9898
const colorScale = scaleLinear()
9999
.domain(

0 commit comments

Comments
 (0)