Skip to content

Commit 52a9fb1

Browse files
author
repo-visualizer
committed
remove color_encoding param
we're not getting commit info while processing the dir, and I'd rather not add complexity if unneeded
1 parent af363b5 commit 52a9fb1

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ The maximum number of nested folders to show files within. A higher number will
3030

3131
Default: 5
3232

33-
## `color_encoding`
34-
35-
What metric to represent with color in the diagram. Options: "type" | "number-of-changes" | "last-change"
36-
37-
Default: "type"
38-
3933
## Example usage
4034

4135
You'll need to run the `actions/checkout` Action beforehand, to check out the code.

action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ inputs:
1111
max_depth:
1212
description: "The maximum number of nested folders to show files within. Default: 9"
1313
required: false
14-
color_encoding:
15-
description: "What metric to represent with color in the diagram. Options: 'type' | 'number-of-changes' | 'last-change'. Default: 'type'"
16-
required: false
1714
runs:
1815
using: "node12"
1916
main: "index.js"

index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17474,10 +17474,6 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }) =
1747417474
const flatTree = colorEncoding === "last-change" ? items.map(lastCommitAccessor).sort((a2, b) => b - a2).slice(0, -8) : items.map(numberOfCommitsAccessor).sort((a2, b) => b - a2).slice(2, -2);
1747517475
const colorExtent2 = extent_default(flatTree);
1747617476
const colors = [
17477-
"#f4f4f4",
17478-
"#f4f4f4",
17479-
"#f4f4f4",
17480-
"#f4f4f4",
1748117477
"#f4f4f4",
1748217478
"#f4f4f4",
1748317479
"#f4f4f4",
@@ -17709,7 +17705,7 @@ var ColorLegend = ({ scale, extent, colorEncoding }) => {
1770917705
return null;
1771017706
const ticks = scale.ticks(10);
1771117707
return /* @__PURE__ */ import_react2.default.createElement("g", {
17712-
transform: `translate(${width - 60}, ${height - 90})`
17708+
transform: `translate(${width - 160}, ${height - 90})`
1771317709
}, /* @__PURE__ */ import_react2.default.createElement("text", {
1771417710
x: 50,
1771517711
y: "-5",

src/Tree.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ export const Tree = (
8383
// .clamp(true);
8484
// const colorScale = scaleSequential((d) => interpolateBuPu(valueScale(d)));
8585
const colors = [
86-
"#f4f4f4",
87-
"#f4f4f4",
88-
"#f4f4f4",
89-
"#f4f4f4",
9086
"#f4f4f4",
9187
"#f4f4f4",
9288
"#f4f4f4",
@@ -398,7 +394,7 @@ const ColorLegend = ({ scale, extent, colorEncoding }) => {
398394
const ticks = scale.ticks(10);
399395
return (
400396
<g
401-
transform={`translate(${width - 60}, ${height - 90})`}
397+
transform={`translate(${width - 160}, ${height - 90})`}
402398
>
403399
<text
404400
x={50}

0 commit comments

Comments
 (0)