Skip to content

Commit e27da73

Browse files
author
Amelia Wattenbeger
committed
never visualize .git folder
1 parent e647d0d commit e27da73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14630,8 +14630,8 @@ var Tree = ({ data, filesChanged = [] }) => {
1463014630
return !((_a = d2.children) == null ? void 0 : _a.length);
1463114631
}).length > 1;
1463214632
if (hasChildWithNoChildren)
14633-
return 9;
14634-
return 15;
14633+
return 4;
14634+
return 9;
1463514635
})(hierarchicalData);
1463614636
packedTree.children = reflowSiblings(packedTree.children, cachedPositions.current);
1463714637
const children2 = packedTree.descendants();
@@ -14965,7 +14965,7 @@ var reflowSiblings = (siblings, cachedPositions = {}, parentRadius, parentPositi
1496514965
originalY: d.y
1496614966
};
1496714967
})];
14968-
const paddingScale = linear2().domain([10, 1]).range([3, 30]).clamp(true);
14968+
const paddingScale = linear2().domain([10, 1]).range([3, 10]).clamp(true);
1496914969
let simulation = simulation_default(items).force("centerX", x_default2(width / 2).strength(items[0].depth <= 2 ? 0.01 : 0)).force("centerY", y_default2(height / 2).strength(items[0].depth <= 2 ? 0.05 : 0)).force("centerX2", x_default2(parentPosition == null ? void 0 : parentPosition[0]).strength(parentPosition ? 0.5 : 0)).force("centerY2", y_default2(parentPosition == null ? void 0 : parentPosition[1]).strength(parentPosition ? 0.5 : 0)).force("x", x_default2((d) => {
1497014970
var _a;
1497114971
return ((_a = cachedPositions[d.data.path]) == null ? void 0 : _a[0]) || width / 2;

src/process-dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const processDir = async (rootPath, excludedPaths = []) => {
66
return;
77
}
88

9-
const foldersToIgnore = [.git, ...excludedPaths]
9+
const foldersToIgnore = [".git", ...excludedPaths]
1010
const fullPathFoldersToIgnore = foldersToIgnore.map((d) =>
1111
`${rootPath}/${d}`
1212
);

0 commit comments

Comments
 (0)