This commit is contained in:
freedakgmail
2025-12-10 13:03:10 +08:00
parent 47be495fcf
commit e7167f4340
153 changed files with 1155 additions and 458 deletions
+5 -5
View File
@@ -323,11 +323,11 @@ const D3OrgChartFlowComponent = forwardRef<D3OrgChartRef, D3OrgChartFlowProps>(
return spouseCount === 0 ? 170 : spouseCount === 1 ? 300 : 170 + spouseCount * 110
}) // 根据配偶数量动态调整宽度
.nodeHeight(() => 175)
.childrenMargin(() => 70)
.compactMarginBetween(() => 50) // 增加间距
.compactMarginPair(() => 50)
.neighbourMargin(() => 50)
.siblingsMargin(() => 50)
.childrenMargin(() => 50)
.compactMarginBetween(() => 20) // 减少间距
.compactMarginPair(() => 20)
.neighbourMargin(() => 20)
.siblingsMargin(() => 20)
.linkUpdate(function (d: any, i: any, arr: any) {
// 现代风格连线 - 使用柔和的灰蓝色
d3.select(arr[i])