@@ -14556,7 +14556,7 @@ var getAngleFromPosition = (x2, y2) => {
14556
14556
var keepCircleInsideCircle = (parentR, parentPosition, childR, childPosition) => {
14557
14557
const distance = Math.sqrt(Math.pow(parentPosition[0] - childPosition[0], 2) + Math.pow(parentPosition[1] - childPosition[1], 2));
14558
14558
const angle = getAngleFromPosition(childPosition[0] - parentPosition[0], childPosition[1] - parentPosition[1]);
14559
- const padding = angle < -40 && angle > -150 ? 13 : 2 ;
14559
+ const padding = angle < -40 && angle > -150 ? 13 : 3 ;
14560
14560
if (distance > parentR - childR - padding) {
14561
14561
const diff = getPositionFromAngleAndDistance(angle, parentR - childR - padding);
14562
14562
return [
@@ -14630,8 +14630,8 @@ var Tree = ({ data, filesChanged = [] }) => {
14630
14630
return !((_a = d2.children) == null ? void 0 : _a.length);
14631
14631
}).length > 1;
14632
14632
if (hasChildWithNoChildren)
14633
- return 4 ;
14634
- return 9 ;
14633
+ return 5 ;
14634
+ return 11 ;
14635
14635
})(hierarchicalData);
14636
14636
packedTree.children = reflowSiblings(packedTree.children, cachedPositions.current);
14637
14637
const children2 = packedTree.descendants();
@@ -14965,7 +14965,7 @@ var reflowSiblings = (siblings, cachedPositions = {}, parentRadius, parentPositi
14965
14965
originalY: d.y
14966
14966
};
14967
14967
})];
14968
- const paddingScale = linear2().domain([10 , 1]).range([3 , 10]).clamp(true);
14968
+ const paddingScale = linear2().domain([4 , 1]).range([2 , 10]).clamp(true);
14969
14969
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) => {
14970
14970
var _a;
14971
14971
return ((_a = cachedPositions[d.data.path]) == null ? void 0 : _a[0]) || width / 2;
@@ -14978,8 +14978,8 @@ var reflowSiblings = (siblings, cachedPositions = {}, parentRadius, parentPositi
14978
14978
}).strength((d) => {
14979
14979
var _a;
14980
14980
return ((_a = cachedPositions[d.data.path]) == null ? void 0 : _a[0]) ? 0.5 : 0.1;
14981
- })).force("collide", collide_default((d) => d.children ? d.r + paddingScale(d.depth) : d.r + 3 ).iterations(9).strength(1)).stop();
14982
- for (let i = 0; i < 190 ; i++) {
14981
+ })).force("collide", collide_default((d) => d.children ? d.r + paddingScale(d.depth) : d.r + 2 ).iterations(9).strength(1)).stop();
14982
+ for (let i = 0; i < 290 ; i++) {
14983
14983
simulation.tick();
14984
14984
items.forEach((d) => {
14985
14985
d.x = keepBetween(d.r, d.x, width - d.r);
0 commit comments