Add simple tree graph mode #4

Merged
pierre merged 16 commits from simple_tree into master 2023-08-26 14:00:00 +00:00
Showing only changes of commit 966bae979b - Show all commits

View File

@ -113,11 +113,8 @@ function buildSimpleDownTreeNode(
if (node.spouse) { if (node.spouse) {
levelWidth = levelWidth =
SPOUSE_SPACING + SPOUSE_SPACING +
2 * memberCardWidth(node.member) +
Math.max( memberCardWidth(node.spouse.member);
memberCardWidth(node.member),
memberCardWidth(node.spouse.member)
);
} else { } else {
levelWidth = memberCardWidth(node.member); levelWidth = memberCardWidth(node.member);
} }